log10: Work around OSF/1 5.1 bug.
[gnulib.git] / ChangeLog
1 2012-04-01  Bruno Haible  <bruno@clisp.org>
2
3         log10: Work around OSF/1 5.1 bug.
4         * lib/math.in.h (log10): New declaration.
5         * lib/log10.c: New file.
6         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
7         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
8         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
9         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
10         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
11         * modules/log10 (Files): Add lib/log10.c.
12         (Depends-on): Add math.
13         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
14         * tests/test-math-c++.cc: Check the declaration of log10.
15         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
16
17 2012-03-31  Bruno Haible  <bruno@clisp.org>
18
19         log10l tests: More tests.
20         * modules/log10l-tests (Files): Add tests/test-log10l.h,
21         tests/minus-zero.h, tests/randoml.c.
22         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
23         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
24         (main): Invoke test_function.
25
26         log10f tests: More tests.
27         * modules/log10f-tests (Files): Add tests/test-log10.h,
28         tests/minus-zero.h, tests/randomf.c.
29         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
30         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
31         (main): Invoke test_function.
32
33         log10 tests: More tests.
34         * tests/test-log10.h: New file.
35         * modules/log10-tests (Files): Add tests/test-log10.h,
36         tests/minus-zero.h, tests/randomd.c.
37         (Makefile.am): Add randomd.c to test_log10_SOURCES.
38         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
39         (main): Invoke test_function.
40
41 2012-03-31  Simon Josefsson  <simon@josefsson.org>
42
43         fflush: Fix syntax error.
44         * lib/fflush.c: Include unused-parameter.h, needed for
45         _GL_UNUSED_PARAMETER.
46         * modules/fflush (Depends-on): Add snippet/unused-parameter.
47
48 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49
50         regex: pacify GCC when compiling GRUB
51         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
52         a diagnostic.  Reported by Vladimir Serbinenko in
53         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
54
55 2012-03-29  Eric Blake  <eblake@redhat.com>
56
57         stdio: don't assume gets any more
58         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
59         support.
60         * modules/stdio (Makefile.am): Likewise.
61         * lib/stdio-read.c (gets): Likewise.
62         * tests/test-stdio-c++.cc: Likewise.
63         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
64         * lib/stdio.in.h (gets): Make warning occur in more places.
65         * doc/posix-functions/gets.texi (gets): Update documentation.
66         Reported by Christer Solskogen.
67
68         maint.mk: fix syntax checks without exclusions
69         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
70         Reported by Daniel P. Berrange.
71
72         strerror_r: avoid compiler warning
73         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
74         level.
75
76         fflush: avoid compiler warning
77         * lib/fflush.c (update_fpos_cache): Mark variables that are
78         potentially unused.
79
80 2012-03-25  Bruno Haible  <bruno@clisp.org>
81
82         Tests for module 'localeconv'.
83         * modules/localeconv-tests: New file.
84         * tests/test-localeconv.c: New file.
85
86         New module 'localeconv'.
87         * lib/locale.in.h (localeconv): New declaration.
88         * lib/localeconv.c: New file.
89         * m4/localeconv.m4: New file.
90         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
91         REPLACE_LOCALECONV.
92         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
93         REPLACE_LOCALECONV.
94         * modules/localeconv: New file.
95         * modules/nl_langinfo (Depends-on): Add localeconv.
96         * modules/human (Depends-on): Likewise.
97         * doc/posix-functions/localeconv.texi: Mention the new module.
98
99 2012-03-25  Bruno Haible  <bruno@clisp.org>
100
101         locale: Provide a complete 'struct lconv'.
102         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
103         'struct lconv' does not contain int_p_cs_precedes.
104         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
105         * doc/posix-headers/locale.texi: Update.
106
107         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
108         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
109         * doc/posix-headers/locale.texi: Update.
110
111         locale: Provide a working 'struct lconv'.
112         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
113         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
114         'struct lconv' does not even contain decimal_point.
115         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
116         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
117         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
118         * doc/posix-headers/locale.texi: Mention the problems with
119         'struct lconv'.
120         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
121
122 2012-03-24  Bruno Haible  <bruno@clisp.org>
123
124         Enable common subexpression optimization in GCC.
125         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
126         macros.
127         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
128         GCC attribute 'const'.
129         (uc_locale_language): Declare with GCC attribute 'pure'.
130         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
131         with GCC attribute 'const'.
132         * lib/unictype.in.h (uc_is_general_category_withtable,
133         uc_combining_class, uc_combining_class_name,
134         uc_combining_class_long_name, uc_bidi_class_name,
135         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
136         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
137         uc_decimal_value, uc_digit_value, uc_numeric_value,
138         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
139         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
140         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
141         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
142         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
143         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
144         Declare with GCC attribute 'const'.
145         (uc_general_category_name, uc_general_category_long_name,
146         uc_general_category_byname, uc_general_category,
147         uc_is_general_category, uc_combining_class_byname,
148         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
149         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
150         Declare with GCC attribute 'pure'.
151         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
152         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
153         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
154         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
155         with GCC attribute 'pure'.
156         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
157         'const'.
158         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
159         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
160         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
161         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
162         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
163         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
164         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
165         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
166         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
167         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
168         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
169         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
170         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
171         GCC attribute 'pure'.
172         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
173         'const'.
174         * lib/uniwidth.in.h (uc_width): Simplify declaration.
175         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
176         u32_strwidth): Declare with GCC attribute 'pure'.
177
178         Enable common subexpression optimization in GCC.
179         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
180         (alphasort): Declare with GCC attribute 'pure'.
181         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
182         (atoll): Declare with GCC attribute 'pure'.
183         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
184         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
185         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
186         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
187         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
188         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
189         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
190
191 2012-03-24  Bruno Haible  <bruno@clisp.org>
192
193         gnulib-tool: Avoid unintended error output from 'cmp'.
194         * gnulib-tool (func_add_file, func_update_file, func_import): Use
195         "cmp -s", not "cmp > /dev/null".
196
197 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
198
199         gnulib-tool: fix imprecise comments w.r.t. an automake bug
200
201         It's not just Automake versions < 1.9b that creates an empty
202         pkgdatadir at installation time if pkgdata_DATA is specified
203         to empty; modern automake versions do this as well, at least
204         until automake 1.11.4 (not yet released at the moment of writing,
205         but soon to appear).  That behaviour was generally considered a
206         feature rather than a bug, at least until this discussion:
207         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
208
209         See also automake bugs #10997 and #11030.
210
211         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
212         reference to relevant automake bug numbers.
213         (func_emit_tests_Makefile_am): Likewise.
214
215 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
216
217         announce-gen: use Digest::SHA when possible
218         * build-aux/announce-gen: Use Digest::SHA when possible, falling
219         back to Digest::SHA1 if necessary.
220
221 2012-03-20  Jim Meyering  <meyering@redhat.com>
222
223         tests: avoid gcc warnings about argv vs. const initializers
224         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
225         warnings about discarding 'const' qualifier from pointer target type.
226         * tests/test-posix_spawn2.c (main): Likewise.
227
228 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
229
230         README-release: simplify slightly
231         * top/README-release: Run "git checkout master" only once.
232
233 2012-03-15  Mark Wielaard  <mark@klomp.org>
234
235         git-merge-changelog: add specific example on how to use with hg.
236         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
237
238 2012-03-18  Mark Wielaard  <mark@klomp.org>
239
240         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
241
242 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
243
244         git-version-gen: don't let "prefix" envvar cause trouble
245         * build-aux/git-version-gen (prefix): Initialize properly,
246         so as not to use a value specified via the environment.
247         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
248
249 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
250
251         regex: diagnose too-large repeat counts in EREs
252         Previously, the code did not diagnose the too-large repeat count
253         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
254         as if it were 'b\{1000000000}', which is unexpected.
255         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
256         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
257         is a reasonable one for this problem.  Another option would be to
258         create a new REG_OVERFLOW error for repeat counts that are too large.
259         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
260         count is too large, so that the caller can distinguish the two cases.
261         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
262         "Too large" return code, and that repeat counts are one example of this.
263
264 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
265
266         doc: some glibc x32 integer width issues
267         * doc/posix-headers/sys_types.texi (sys/types.h):
268         * doc/posix-headers/time.texi (time.h):
269         Mention that glibc x32 does not conform to POSIX in a couple of
270         areas related to integer widths.
271
272 2012-03-15  Bruno Haible  <bruno@clisp.org>
273
274         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
275         * lib/fma.c (VOLATILE): New macro.
276         (FUNC): Use it to work around a GCC compiler bug.
277
278 2012-03-13  Bruno Haible  <bruno@clisp.org>
279
280         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
281         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
282         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
283         REPLACE_HYPOTL to 1.
284         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
285
286 2012-03-13  Bruno Haible  <bruno@clisp.org>
287
288         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
289         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
290         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
291         REPLACE_REMAINDERL to 1.
292         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
293         bug.
294
295 2012-03-13  Bruno Haible  <bruno@clisp.org>
296
297         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
298         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
299         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
300         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
301         too big rounding errors.
302         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
303         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
304         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
305         (Depends-on): Update conditions.
306         * tests/test-sqrtl.c (my_ldexpl): New function.
307         (main): Add test of a particular value.
308         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
309
310 2012-03-13  Pádraig Brady  <P@draigBrady.com>
311
312         doc: Update timer_* platform portability notes.
313         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
314         that always return ENOSYS.
315         * doc/posix-functions/timer_delete.texi: Likewise.
316         * doc/posix-functions/timer_gettime.texi: Likewise.
317         * doc/posix-functions/timer_settime.texi: Likewise.
318
319 2012-03-13  Bruno Haible  <bruno@clisp.org>
320
321         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
322         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
323         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
324         REPLACE_CBRTL to 1.
325         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
326
327 2012-03-13  Bruno Haible  <bruno@clisp.org>
328
329         remainderl: Avoid compilation error on AIX >= 5.2.
330         * lib/math.in.h (remainderl): Undefine macro from the system header.
331
332 2012-03-13  Bruno Haible  <bruno@clisp.org>
333
334         Avoid compilation errors with MSVC option -fp:strict.
335         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
336         * lib/cbrtf.c: Likewise.
337         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
338
339 2012-03-12  Bruno Haible  <bruno@clisp.org>
340
341         uninorm: Don't crash in out-of-memory conditions.
342         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
343         gracefully.
344         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
345         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
346
347 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
348
349         quote: fix syntax-check
350         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
351         also exports quote_quoting_options.
352
353 2012-03-12  Simon Josefsson  <simon@josefsson.org>
354
355         Collapse list of copyright years to ranges.  See
356         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
357         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
358         build-aux/csharpexec.sh.in, build-aux/gnupload,
359         build-aux/install-reloc, build-aux/javacomp.sh.in,
360         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
361         build-aux/move-if-change, build-aux/reloc-ldflags,
362         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
363
364 2012-03-11  Bruno Haible  <bruno@clisp.org>
365
366         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
367         * m4/log2f-ieee.m4: New file.
368         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
369         whether log2f works with a minus zero argument. Replace it if not.
370         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
371         (Depends-on): Add log2-ieee.
372         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
373         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
374
375         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
376         * m4/log2-ieee.m4: New file.
377         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
378         whether log2 works with a minus zero argument. Replace it if not.
379         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
380         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
381         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
382
383         Tests for module 'log2l-ieee'.
384         * modules/log2l-ieee-tests: New file.
385         * tests/test-log2l-ieee.c: New file.
386
387         New module 'log2l-ieee'.
388         * modules/log2l-ieee: New file.
389
390         Tests for module 'log2-ieee'.
391         * modules/log2-ieee-tests: New file.
392         * tests/test-log2-ieee.c: New file.
393
394         New module 'log2-ieee'.
395         * modules/log2-ieee: New file.
396
397         Tests for module 'log2f-ieee'.
398         * modules/log2f-ieee-tests: New file.
399         * tests/test-log2f-ieee.c: New file.
400         * tests/test-log2-ieee.h: New file.
401
402         New module 'log2f-ieee'.
403         * modules/log2f-ieee: New file.
404
405 2012-03-11  Bruno Haible  <bruno@clisp.org>
406
407         Tests for module 'log2l'.
408         * modules/log2l-tests: New file.
409         * tests/test-log2l.c: New file.
410
411         New module 'log2l'.
412         * lib/math.in.h (log2l): New declaration.
413         * lib/log2l.c: New file.
414         * m4/log2l.m4: New file.
415         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
416         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
417         REPLACE_LOG2L.
418         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
419         REPLACE_LOG2L.
420         * modules/log2l: New file.
421         * tests/test-math-c++.cc: Check the declaration of log2l.
422         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
423         and OSF/1 problems.
424
425 2012-03-11  Bruno Haible  <bruno@clisp.org>
426
427         Tests for module 'log2f'.
428         * modules/log2f-tests: New file.
429         * tests/test-log2f.c: New file.
430
431         New module 'log2f'.
432         * lib/math.in.h (log2f): New declaration.
433         * lib/log2f.c: New file.
434         * m4/log2f.m4: New file.
435         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
437         REPLACE_LOG2F.
438         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
439         REPLACE_LOG2F.
440         * modules/log2f: New file.
441         * tests/test-math-c++.cc: Check the declaration of log2f.
442         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
443         and OSF/1 and Cygwin problems.
444
445 2012-03-11  Bruno Haible  <bruno@clisp.org>
446
447         Tests for module 'log2'.
448         * modules/log2-tests: New file.
449         * tests/test-log2.c: New file.
450         * tests/test-log2.h: New file.
451
452         New module 'log2'.
453         * lib/math.in.h (log2): New declaration.
454         * lib/log2.c: New file.
455         * m4/log2.m4: New file.
456         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
457         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
458         REPLACE_LOG2.
459         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
460         REPLACE_LOG2.
461         * modules/log2: New file.
462         * tests/test-math-c++.cc: Check the declaration of log2.
463         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
464         and OSF/1 and Cygwin problems.
465
466 2012-03-11  Bruno Haible  <bruno@clisp.org>
467
468         exp2* tests: More tests.
469         * tests/test-exp2.h (test_function): Test all integral arguments that
470         don't need to overflow or denormalized numbers.
471         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
472         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
473         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
474
475 2012-03-10  Bruno Haible  <bruno@clisp.org>
476
477         log1pl-ieee: Work around test failure on AIX 7.1.
478         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
479
480         log1pl-ieee: Work around test failure on IRIX 6.5.
481         * m4/log1pl-ieee.m4: New file.
482         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
483         test whether log1pl works with a minus zero argument. Replace it if
484         not.
485         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
487         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
488         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
489         (Depends-on): Update conditions.
490         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
491         m4/signbit.m4.
492         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
493         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
494
495         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
496         * m4/log1pf-ieee.m4: New file.
497         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
498         test whether log1pf works with a minus zero argument. Replace it if
499         not.
500         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
501         m4/signbit.m4.
502         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
503         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
504
505         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
506         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
507         (configure.ac): Require gl_FUNC_LOG1PF.
508
509         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
510         * m4/log1p-ieee.m4: New file.
511         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
512         whether log1p works with a minus zero argument. Replace it if not.
513         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
515         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
516         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
517         (Depends-on): Update conditions.
518         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
519         m4/signbit.m4.
520         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
521         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
522
523         Tests for module 'log1pl-ieee'.
524         * modules/log1pl-ieee-tests: New file.
525         * tests/test-log1pl-ieee.c: New file.
526
527         New module 'log1pl-ieee'.
528         * modules/log1pl-ieee: New file.
529
530         Tests for module 'log1p-ieee'.
531         * modules/log1p-ieee-tests: New file.
532         * tests/test-log1p-ieee.c: New file.
533
534         New module 'log1p-ieee'.
535         * modules/log1p-ieee: New file.
536
537         Tests for module 'log1pf-ieee'.
538         * modules/log1pf-ieee-tests: New file.
539         * tests/test-log1pf-ieee.c: New file.
540         * tests/test-log1p-ieee.h: New file.
541
542         New module 'log1pf-ieee'.
543         * modules/log1pf-ieee: New file.
544
545 2012-03-10  Bruno Haible  <bruno@clisp.org>
546
547         Tests for module 'log1pl'.
548         * modules/log1pl-tests: New file.
549         * tests/test-log1pl.c: New file.
550
551         New module 'log1pl'.
552         * lib/math.in.h (log1pl): New declaration.
553         * lib/log1pl.c: New file.
554         * m4/log1pl.m4: New file.
555         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
556         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
557         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
558         * modules/log1pl: New file.
559         * tests/test-math-c++.cc: Check the declaration of log1pl.
560         * doc/posix-functions/log1pl.texi: Mention the new module.
561
562 2012-03-10  Bruno Haible  <bruno@clisp.org>
563
564         Tests for module 'log1pf'.
565         * modules/log1pf-tests: New file.
566         * tests/test-log1pf.c: New file.
567
568         New module 'log1pf'.
569         * lib/math.in.h (log1pf): New declaration.
570         * lib/log1pf.c: New file.
571         * m4/log1pf.m4: New file.
572         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
573         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
574         REPLACE_LOG1PF.
575         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
576         REPLACE_LOG1PF.
577         * modules/log1pf: New file.
578         * tests/test-math-c++.cc: Check the declaration of log1pf.
579         * doc/posix-functions/log1pf.texi: Mention the new module.
580
581 2012-03-10  Bruno Haible  <bruno@clisp.org>
582
583         log1p tests: More tests.
584         * tests/test-log1p.h: New file.
585         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
586         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
587         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
588         (main): Invoke test_function.
589
590         log1p: Provide replacement for Minix and MSVC.
591         * lib/math.in.h (log1p): New declaration.
592         * lib/log1p.c: New file.
593         * m4/log1p.m4: New file.
594         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
596         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
597         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
598         (Depends-on): Add math, isnand, log, round.
599         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
600         HAVE_LOG1P is 0.
601         * tests/test-math-c++.cc: Check the declaration of log1p.
602         * doc/posix-functions/log1p.texi: Mention the replacement.
603
604 2012-03-10  Bruno Haible  <bruno@clisp.org>
605
606         math tests: Small simplification.
607         * tests/test-exp.h (test_function): Use the same err_bound for
608         'double' on platforms with sizeof (long double) == sizeof (double)
609         than on platforms with sizeof (long double) > sizeof (double).
610         * tests/test-exp2.h (test_function): Likewise.
611         * tests/test-expm1.h (test_function): Likewise.
612         * tests/test-log.h (test_function): Likewise.
613
614 2012-03-10  Bruno Haible  <bruno@clisp.org>
615
616         Fix some comments.
617         * lib/expl.c: Fix an ambiguous comment.
618         * lib/expm1.c: Likewise.
619         * lib/expm1l.c: Likewise.
620         * lib/exp2.c: Likewise.
621         * lib/exp2l.c: Likewise.
622
623 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
624
625         regex: allow inclusion of <regex.h> before <limits.h>
626         Without this patch, portable programs had to include <limits.h> before
627         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
628         I ran into this problem with a test version of GNU grep on Solaris 8.
629         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
630         This is done conditionally so that this change can be merged
631         back to glibc.
632         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
633         using the included regex.
634
635         fts: depend on fdopendir
636         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
637         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
638         problem was introduced when fdopendir was split out.
639
640 2012-03-10  Bruno Haible  <bruno@clisp.org>
641
642         Remove unused variables.
643         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
644         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
645
646 2012-03-10  Bruno Haible  <bruno@clisp.org>
647
648         isnanf-nolibm: Fix last commit.
649         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
650
651         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
652         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
653
654 2012-03-10  Bruno Haible  <bruno@clisp.org>
655
656         logf-ieee: Work around test failure on NetBSD 5.1.
657         * m4/logf-ieee.m4: New file.
658         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
659         whether logf works with a negative argument. Replace it if not.
660         * lib/logf.c (logf): For negative arguments, return NaN.
661         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
662         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
663         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
664
665         logf-ieee: Work around test failure on Solaris 9.
666         * modules/logf-ieee (Depends-on): Add log-ieee.
667         (configure.ac): Require gl_FUNC_LOGF.
668
669         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
670         * m4/log-ieee.m4: New file.
671         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
672         log works with a negative argument. Replace it if not.
673         * lib/log.c (log): For negative arguments, return NaN.
674         * modules/log-ieee (Files): Add m4/log-ieee.m4.
675         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
676         * doc/posix-functions/log.texi: Mention the log-ieee module.
677
678         Tests for module 'logl-ieee'.
679         * modules/logl-ieee-tests: New file.
680         * tests/test-logl-ieee.c: New file.
681
682         New module 'logl-ieee'.
683         * modules/logl-ieee: New file.
684
685         Tests for module 'log-ieee'.
686         * modules/log-ieee-tests: New file.
687         * tests/test-log-ieee.c: New file.
688
689         New module 'log-ieee'.
690         * modules/log-ieee: New file.
691
692         Tests for module 'logf-ieee'.
693         * modules/logf-ieee-tests: New file.
694         * tests/test-logf-ieee.c: New file.
695         * tests/test-log-ieee.h: New file.
696
697         New module 'logf-ieee'.
698         * modules/logf-ieee: New file.
699
700 2012-03-10  Bruno Haible  <bruno@clisp.org>
701
702         log: Fix bug introduced on 2012-03-09.
703         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
704
705 2012-03-10  Pádraig Brady  <P@draigBrady.com>
706
707         timer-time: link explicitly with pthreads on glibc
708         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
709         to support static linking, when newer glibc is
710         detected, as that contains pthread emulation of
711         POSIX timer functions where required.
712         * modules/timer-time: Depend on threadlib to
713         pull in the appropriate library to link.
714
715 2012-03-10  Bruno Haible  <bruno@clisp.org>
716
717         log* tests: More tests.
718         * tests/test-log.h: New file.
719         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
720         (main): Invoke test_function.
721         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
722         (main): Invoke test_function.
723         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
724         (main): Invoke test_function.
725         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
726         tests/randomd.c.
727         (Makefile.am): Add randomd.c to test_log_SOURCES.
728         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
729         tests/randomf.c.
730         (Makefile.am): Add randomf.c to test_logf_SOURCES.
731         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
732         tests/randoml.c.
733         (Depends-on): Add 'float'.
734         (Makefile.am): Add randoml.c to test_logl_SOURCES.
735
736 2012-03-09  Bruno Haible  <bruno@clisp.org>
737
738         logl: Work around OSF/1 5.1 bug.
739         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
740         * lib/logl.c (logl): If logl exists, use it and provide just the
741         workaround.
742         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
743         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
745         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
746         * modules/logl (configure.ac): Consider REPLACE_LOGL.
747         (Depends-on): Update conditions.
748         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
749
750 2012-03-09  Bruno Haible  <bruno@clisp.org>
751
752         logf: Work around OSF/1 5.1 bug.
753         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
754         * lib/logf.c (logf): If logf exists, use it and provide just the
755         workaround.
756         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
757         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
759         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
760         * modules/logf (configure.ac): Consider REPLACE_LOGF.
761         (Depends-on): Update conditions.
762         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
763
764 2012-03-09  Bruno Haible  <bruno@clisp.org>
765
766         log: Work around OSF/1 5.1 bug.
767         * lib/math.in.h (log): New declaration.
768         * lib/log.c: New file.
769         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
770         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
771         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
773         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
774         * modules/log (Files): Add lib/log.c.
775         (Depends-on): Add math.
776         (configure.ac): If REPLACE_LOG is 1, compile an override.
777         * tests/test-math-c++.cc: Check the declaration of log.
778         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
779
780 2012-03-09  Jim Meyering  <meyering@redhat.com>
781
782         readtokens.c: adjust wording in a comment
783         * lib/readtokens.c: Insert omitted "that" in a comment.
784
785 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
786
787         modechange: add notations +40, 00440, etc.
788         * lib/modechange.c (mode_compile): Support new notations
789         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
790
791 2012-03-08  Bruno Haible  <bruno@clisp.org>
792
793         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
794         * m4/exp2l-ieee.m4: New file.
795         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
796         test whether exp2l works with a NaN argument and with a negative
797         infinity argument. Replace it if not.
798         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
800         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
801         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
802         (Depends-on): Update conditions.
803         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
804         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
805         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
806
807         Tests for module 'exp2l-ieee'.
808         * modules/exp2l-ieee-tests: New file.
809         * tests/test-exp2l-ieee.c: New file.
810
811         New module 'exp2l-ieee'.
812         * modules/exp2l-ieee: New file.
813
814         Tests for module 'exp2-ieee'.
815         * modules/exp2-ieee-tests: New file.
816         * tests/test-exp2-ieee.c: New file.
817
818         New module 'exp2-ieee'.
819         * modules/exp2-ieee: New file.
820
821         Tests for module 'exp2f-ieee'.
822         * modules/exp2f-ieee-tests: New file.
823         * tests/test-exp2f-ieee.c: New file.
824         * tests/test-exp2-ieee.h: New file.
825
826         New module 'exp2f-ieee'.
827         * modules/exp2f-ieee: New file.
828
829 2012-03-08  Bruno Haible  <bruno@clisp.org>
830
831         Tests for module 'exp2l'.
832         * modules/exp2l-tests: New file.
833         * tests/test-exp2l.c: New file.
834
835         New module 'exp2l'.
836         * lib/math.in.h (exp2l): New declaration.
837         * lib/exp2l.c: New file.
838         * lib/expl-table.c: New file, extracted from lib/expl.c.
839         * lib/expl.c (gl_expl_table): New declaration.
840         (expl): Remove expl_table. Update reference.
841         * m4/exp2l.m4: New file.
842         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
844         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
845         * modules/exp2l: New file.
846         * modules/expl (Files): Add lib/expl-table.c.
847         (configure.ac): Compile also expl-table.c.
848         * tests/test-math-c++.cc: Check the declaration of exp2l.
849         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
850         problem.
851
852 2012-03-08  Bruno Haible  <bruno@clisp.org>
853
854         Tests for module 'exp2f'.
855         * modules/exp2f-tests: New file.
856         * tests/test-exp2f.c: New file.
857
858         New module 'exp2f'.
859         * lib/math.in.h (exp2f): New declaration.
860         * lib/exp2f.c: New file.
861         * m4/exp2f.m4: New file.
862         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
863         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
864         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
865         * modules/exp2f: New file.
866         * tests/test-math-c++.cc: Check the declaration of exp2f.
867         * doc/posix-functions/exp2f.texi: Mention the new module and the
868         IRIX problem.
869
870 2012-03-08  Bruno Haible  <bruno@clisp.org>
871
872         Tests for module 'exp2'.
873         * modules/exp2-tests: New file.
874         * tests/test-exp2.c: New file.
875         * tests/test-exp2.h: New file.
876
877         New module 'exp2'.
878         * lib/math.in.h (exp2): New declaration.
879         * lib/exp2.c: New file.
880         * m4/exp2.m4: New file.
881         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
882         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
883         REPLACE_EXP2.
884         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
885         REPLACE_EXP2.
886         * modules/exp2: New file.
887         * tests/test-math-c++.cc: Check the declaration of exp2.
888         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
889         and OpenBSD problems.
890
891 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
892
893         savedir: fix comment typo
894         * lib/savedir.c (savedirstream): Fix typo in comment.
895
896 2012-03-08  Bruno Haible  <bruno@clisp.org>
897
898         test-readtokens.c: use const; remove unwarranted cast
899         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
900
901 2012-03-08  Bruno Haible  <bruno@clisp.org>
902
903         fmal: Avoid compilation error on AIX.
904         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
905         AIX 5.2..7.1.
906
907 2012-03-08  Bruno Haible  <bruno@clisp.org>
908
909         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
910         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
911         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
912         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
913         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
914         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
915         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
916
917 2012-03-08  Bruno Haible  <bruno@clisp.org>
918
919         remainderf: Override buggy system function on IRIX 6.5.
920         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
921         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
922         when it exists.
923         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
924
925 2012-03-08  Jim Meyering  <meyering@redhat.com>
926
927         test-readtokens.c: avoid const-related compilation warnings
928         * tests/test-readtokens.c: Avoid const-related compilation warnings.
929
930 2012-03-07  Jim Meyering  <meyering@redhat.com>
931             Bruno Haible  <bruno@clisp.org>
932
933         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
934         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
935         tests/randomd.c.
936         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
937         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
938         tests/randoml.c.
939         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
940
941 2012-03-07  Bruno Haible  <bruno@clisp.org>
942
943         expm1l: Avoid compilation error on AIX.
944         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
945         AIX 5.2..7.1.
946
947 2012-03-07  Bruno Haible  <bruno@clisp.org>
948
949         expm1l: Don't override undeclared system function on IRIX 6.5.
950         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
951         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
952         it exists. Set HAVE_DECL_EXPM1L.
953         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
954         HAVE_EXPM1L.
955         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
956         HAVE_EXPM1L.
957         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
958
959 2012-03-07  Bruno Haible  <bruno@clisp.org>
960
961         remainderl: Don't override undeclared system function on IRIX 6.5.
962         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
963         HAVE_REMAINDERL.
964         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
965         declared when it exists. Set HAVE_DECL_REMAINDERL.
966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
967         not HAVE_REMAINDERL.
968         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
969         HAVE_REMAINDERL.
970         * doc/posix-functions/remainderl.texi: Mention missing declaration
971         problem.
972
973 2012-03-07  Bruno Haible  <bruno@clisp.org>
974
975         rintf: Don't override undeclared system function on IRIX 6.5.
976         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
977         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
978         exists. Set HAVE_DECL_RINTF.
979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
980         HAVE_RINTF.
981         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
982         HAVE_RINTF.
983         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
984
985 2012-03-07  Bruno Haible  <bruno@clisp.org>
986
987         roundl: Avoid compilation error on AIX.
988         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
989         AIX 5.2..7.1.
990
991 2012-03-07  Bruno Haible  <bruno@clisp.org>
992
993         roundl: Don't override undeclared system function on IRIX 6.5.
994         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
995         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
996         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
997         * modules/roundl (configure.ac): For replacement code, test
998         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
999         (Depends-on): Update conditions.
1000         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1001
1002 2012-03-07  Bruno Haible  <bruno@clisp.org>
1003
1004         roundf: Don't override undeclared system function on IRIX 6.5.
1005         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1006         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1007         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1008         * modules/roundf (configure.ac): For replacement code, test
1009         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1010         (Depends-on): Update conditions.
1011         * modules/roundf-ieee (Depends-on): Update conditions.
1012         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1013
1014 2012-03-07  Bruno Haible  <bruno@clisp.org>
1015
1016         round: Don't override undeclared system function on IRIX 6.5.
1017         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1018         argument.
1019         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1020         also when it is not declared. Set HAVE_ROUND. For replacement code,
1021         test HAVE_ROUND, not HAVE_DECL_ROUND.
1022         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1023         not HAVE_DECL_ROUND.
1024         (Depends-on): Update conditions.
1025         * modules/round-ieee (Depends-on): Update conditions.
1026         * doc/posix-functions/round.texi: Mention the IRIX problem.
1027
1028 2012-03-07  Bruno Haible  <bruno@clisp.org>
1029
1030         copysignf: Don't override undeclared system function on IRIX 6.5.
1031         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1032         HAVE_COPYSIGNF.
1033         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1034         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1036         not HAVE_COPYSIGNF.
1037         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1038         HAVE_COPYSIGNF.
1039         * doc/posix-functions/copysignf.texi: Mention missing declaration
1040         problem.
1041
1042 2012-03-07  Jim Meyering  <meyering@redhat.com>
1043
1044         readtokens: add tests
1045         * modules/readtokens-tests: New file.
1046         * tests/test-readtokens.c: New file.
1047
1048 2012-03-07  Jim Meyering  <meyering@redhat.com>
1049
1050         quotearg: the module must now include quote.h
1051         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1052         So must the module.
1053         * modules/quotearg (Files): Add quote.h.
1054
1055 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1056
1057         readtokens: avoid core dumps with unusual calling patterns
1058         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1059         * lib/readtokens.c: Include limits.h.
1060         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1061         (readtoken): Don't cache the delimiters; the cache code was buggy
1062         if !delim && saved_delim, or if the new n_delim differs from the old.
1063         Also, it wasn't thread-safe.
1064
1065 2012-03-07  Bruno Haible  <bruno@clisp.org>
1066
1067         quote: Adhere to common module description layout.
1068         * modules/quote (Makefile.am): Add back empty section.
1069
1070 2012-03-06  Akim Demaille  <demaille@gostai.com>
1071
1072         quote: fuse into quotearg
1073         This patch is made for the benefit of Bison.
1074         quote does not leave the choice of the quoting style to the user.
1075         quoting_style provides poor customizability, yet quoting_options,
1076         which is very rich, is hidden inside quotearg.c.  So in order to
1077         allow quote customization, move its implementation to quotearg.c.
1078         * lib/quote.c: Remove.
1079         * modules/quote: Adjust.
1080         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1081         warning: provide all the members of literal structs.
1082         (quote_quoting_options): New.
1083         (quote, quote_n): Import implementation from quote.c.
1084         * lib/quote.h: Import the comments from quote.c.
1085         (quote_quoting_options): New.
1086
1087 2012-03-06  Bruno Haible  <bruno@clisp.org>
1088
1089         Tests for module 'expm1l-ieee'.
1090         * modules/expm1l-ieee-tests: New file.
1091         * tests/test-expm1l-ieee.c: New file.
1092
1093         New module 'expm1l-ieee'.
1094         * modules/expm1l-ieee: New file.
1095
1096         Tests for module 'expm1f-ieee'.
1097         * modules/expm1f-ieee-tests: New file.
1098         * tests/test-expm1f-ieee.c: New file.
1099
1100         New module 'expm1f-ieee'.
1101         * modules/expm1f-ieee: New file.
1102
1103         Tests for module 'expm1-ieee'.
1104         * modules/expm1-ieee-tests: New file.
1105         * tests/test-expm1-ieee.c: New file.
1106         * tests/test-expm1-ieee.h: New file.
1107
1108         New module 'expm1-ieee'.
1109         * modules/expm1-ieee: New file.
1110         * m4/expm1-ieee.m4: New file.
1111         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1112         whether expm1 works with a minus zero argument. Replace it if not.
1113         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1115         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1116         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1117         (Depends-on): Update conditions.
1118         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1119         AIX problem.
1120
1121 2012-03-06  Bruno Haible  <bruno@clisp.org>
1122
1123         Work around expm1f bug on IRIX 6.5.
1124         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1125         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1126         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1127         not work.
1128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1129         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1130         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1131         (Depends-on): Update conditions.
1132         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1133
1134 2012-03-06  Bruno Haible  <bruno@clisp.org>
1135
1136         Tests for module 'expm1l'.
1137         * modules/expm1l-tests: New file.
1138         * tests/test-expm1l.c: New file.
1139
1140         New module 'expm1l'.
1141         * lib/math.in.h (expm1l): New declaration.
1142         * lib/expm1l.c: New file.
1143         * m4/expm1l.m4: New file.
1144         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1145         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1146         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1147         * modules/expm1l: New file.
1148         * tests/test-math-c++.cc: Check the declaration of expm1l.
1149         * doc/posix-functions/expm1l.texi: Mention the new module.
1150
1151 2012-03-06  Bruno Haible  <bruno@clisp.org>
1152
1153         Tests for module 'expm1f'.
1154         * modules/expm1f-tests: New file.
1155         * tests/test-expm1f.c: New file.
1156
1157         New module 'expm1f'.
1158         * lib/math.in.h (expm1f): New declaration.
1159         * lib/expm1f.c: New file.
1160         * m4/expm1f.m4: New file.
1161         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1163         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1164         * modules/expm1f: New file.
1165         * tests/test-math-c++.cc: Check the declaration of expm1f.
1166         * doc/posix-functions/expm1f.texi: Mention the new module.
1167
1168 2012-03-06  Bruno Haible  <bruno@clisp.org>
1169
1170         Tests for module 'expm1'.
1171         * modules/expm1-tests: New file.
1172         * tests/test-expm1.c: New file.
1173         * tests/test-expm1.h: New file.
1174
1175         New module 'expm1'.
1176         * lib/math.in.h (expm1): New declaration.
1177         * lib/expm1.c: New file.
1178         * m4/expm1.m4: New file.
1179         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1181         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1182         * modules/expm1: New file.
1183         * tests/test-math-c++.cc: Check the declaration of expm1.
1184         * doc/posix-functions/expm1.texi: Mention the new module.
1185
1186 2012-03-06  Bruno Haible  <bruno@clisp.org>
1187
1188         math: Ensure declarations of math functions.
1189         * modules/acosf (Depends-on): Add 'extensions'.
1190         * modules/asinf (Depends-on): Likewise.
1191         * modules/atan2f (Depends-on): Likewise.
1192         * modules/atanf (Depends-on): Likewise.
1193         * modules/cbrt (Depends-on): Likewise.
1194         * modules/cbrtf (Depends-on): Likewise.
1195         * modules/cbrtl (Depends-on): Likewise.
1196         * modules/copysignf (Depends-on): Likewise.
1197         * modules/copysignl (Depends-on): Likewise.
1198         * modules/cosf (Depends-on): Likewise.
1199         * modules/coshf (Depends-on): Likewise.
1200         * modules/expf (Depends-on): Likewise.
1201         * modules/fabsf (Depends-on): Likewise.
1202         * modules/fabsl (Depends-on): Likewise.
1203         * modules/fmaf (Depends-on): Likewise.
1204         * modules/fmal (Depends-on): Likewise.
1205         * modules/fmodf (Depends-on): Likewise.
1206         * modules/fmodl (Depends-on): Likewise.
1207         * modules/frexpf (Depends-on): Likewise.
1208         * modules/frexpl (Depends-on): Likewise.
1209         * modules/hypot (Depends-on): Likewise.
1210         * modules/hypotf (Depends-on): Likewise.
1211         * modules/hypotl (Depends-on): Likewise.
1212         * modules/ldexpf (Depends-on): Likewise.
1213         * modules/ldexpl (Depends-on): Likewise.
1214         * modules/log10f (Depends-on): Likewise.
1215         * modules/log10l (Depends-on): Likewise.
1216         * modules/log1p (Depends-on): Likewise.
1217         * modules/logb (Depends-on): Likewise.
1218         * modules/logf (Depends-on): Likewise.
1219         * modules/modff (Depends-on): Likewise.
1220         * modules/modfl (Depends-on): Likewise.
1221         * modules/powf (Depends-on): Likewise.
1222         * modules/remainderf (Depends-on): Likewise.
1223         * modules/remainderl (Depends-on): Likewise.
1224         * modules/rintf (Depends-on): Likewise.
1225         * modules/rintl (Depends-on): Likewise.
1226         * modules/sinf (Depends-on): Likewise.
1227         * modules/sinhf (Depends-on): Likewise.
1228         * modules/sqrtf (Depends-on): Likewise.
1229         * modules/tanf (Depends-on): Likewise.
1230         * modules/tanhf (Depends-on): Likewise.
1231         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1232         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1233         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1234         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1235         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1236         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1237         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1238         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1239         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1240         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1241         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1242         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1243         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1244         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1245         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1246         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1247         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1248         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1249         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1250         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1251         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1252         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1253         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1254         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1255         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1256         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1257         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1258         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1259         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1260         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1261         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1262         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1263         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1264         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1265         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1266         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1267         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1268         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1269         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1270         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1271         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1272
1273 2012-03-06  Bruno Haible  <bruno@clisp.org>
1274
1275         math: Update module names in warnings.
1276         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1277         tanl): Use specific module name in warn-on-use warning.
1278
1279 2012-03-06  Bruno Haible  <bruno@clisp.org>
1280
1281         expl: Simplify computation.
1282         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1283
1284 2012-03-05  Bruno Haible  <bruno@clisp.org>
1285
1286         exp* tests: More tests.
1287         * tests/test-exp.h: New file.
1288         * tests/test-exp.c: Include <float.h> and test-exp.h.
1289         (main): Invoke test_function.
1290         * tests/test-expf.c: Include <float.h> and test-exp.h.
1291         (main): Invoke test_function.
1292         * tests/test-expl.c: Include <float.h> and test-exp.h.
1293         (main): Invoke test_function.
1294         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1295         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1296         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1297         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1298         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1299         (Depends-on): Add 'float'.
1300         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1301
1302         expl: Fix precision of computed result.
1303         * lib/expl.c: Completely rewritten.
1304         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1305         (Maintainer): Add me.
1306         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1307
1308 2012-03-05  Bruno Haible  <bruno@clisp.org>
1309
1310         cbrt* tests: More tests.
1311         * tests/test-cbrt.h: New file.
1312         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1313         (main): Invoke test_function.
1314         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1315         (main): Invoke test_function.
1316         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1317         (main): Invoke test_function.
1318         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1319         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1320         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1321         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1322         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1323         (Depends-on): Add 'float'.
1324         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1325
1326 2012-03-05  Bruno Haible  <bruno@clisp.org>
1327
1328         hypot* tests: More tests.
1329         * tests/test-hypot.h: New file, partially extracted from
1330         tests/test-hypotl.c.
1331         * tests/test-hypot.c: Include test-hypot.h.
1332         (main): Invoke test_function.
1333         * tests/test-hypotf.c: Include test-hypot.h.
1334         (main): Invoke test_function.
1335         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1336         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1337         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1338         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1339         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1340         tests/randomf.c.
1341         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1342         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1343         tests/randoml.c.
1344         (Depends-on): Add 'fpucw', 'float'.
1345         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1346
1347 2012-03-05  Bruno Haible  <bruno@clisp.org>
1348
1349         fpucw: Doc about FreeBSD.
1350         * lib/fpucw.h: Mention FreeBSD in comments.
1351
1352 2012-03-04  Bruno Haible  <bruno@clisp.org>
1353
1354         sqrt* tests: More tests.
1355         * tests/test-sqrt.h: New file.
1356         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1357         (main): Invoke test_function.
1358         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1359         (main): Invoke test_function.
1360         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1361         (main): Invoke test_function.
1362         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1363         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1364         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1365         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1366         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1367         (Depends-on): Add 'float'.
1368         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1369
1370 2012-03-04  Bruno Haible  <bruno@clisp.org>
1371
1372         remainder* tests: More tests.
1373         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1374         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1375         (main): Invoke test_function.
1376         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1377         (main): Invoke test_function.
1378         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1379         (main): Invoke test_function.
1380         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1381         tests/randomd.c.
1382         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1383         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1384         tests/randomf.c.
1385         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1386         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1387         tests/randoml.c.
1388         (Depends-on): Add 'float'.
1389         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1390
1391 2012-03-04  Bruno Haible  <bruno@clisp.org>
1392
1393         remainder, remainderf, remainderl: Fix computation for large quotients.
1394         * lib/remainder.c: Completely rewritten.
1395         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1396         USE_FLOAT.
1397         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1398         USE_LONG_DOUBLE.
1399         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1400         isnand, isinf. Remove round, fma.
1401         * modules/remainderf (Files): Add lib/remainder.c.
1402         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1403         Remove roundf, fmaf.
1404         * modules/remainderl (Files): Add lib/remainder.c.
1405         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1406         isinf. Remove roundl, fmal.
1407         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1408         REMAINDER_LIBM.
1409         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1410         REMAINDERF_LIBM.
1411         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1412         REMAINDERL_LIBM.
1413
1414 2012-03-04  Bruno Haible  <bruno@clisp.org>
1415
1416         fmod* tests: More tests.
1417         * tests/test-fmod.h (my_ldexp): New function.
1418         (test_function): Reduce amount of random numbers to test. Add tests
1419         of very large quotients x / y.
1420         * tests/test-fmod.c (MAX_EXP): New macro.
1421         * tests/test-fmodf.c (MAX_EXP): Likewise.
1422         * tests/test-fmodl.c (MAX_EXP): Likewise.
1423
1424 2012-03-04  Bruno Haible  <bruno@clisp.org>
1425
1426         fmod, fmodl: Fix computation for large quotients x / y.
1427         * lib/fmod.c: Completely rewritten.
1428         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1429         USE_LONG_DOUBLE.
1430         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1431         isnand. Remove fma.
1432         * modules/fmodl (Files): Add lib/fmod.c.
1433         (Depends-on): Add float, isfinite, signbit, fabsl,
1434         frexpl, ldexpl, isnanl. Remove fma.
1435         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1436         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1437
1438 2012-03-03  Bruno Haible  <bruno@clisp.org>
1439
1440         fmod* tests: More tests.
1441         * tests/test-fmod.h: New file.
1442         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1443         (main): Invoke test_function.
1444         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1445         (main): Invoke test_function.
1446         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1447         (main): Invoke test_function.
1448         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1449         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1450         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1451         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1452         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1453         (Depends-on): Add 'float'.
1454         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1455
1456 2012-03-03  Bruno Haible  <bruno@clisp.org>
1457
1458         rint* tests: More tests.
1459         * tests/test-rint.h: New file, partially extracted from
1460         tests/test-rintl.c.
1461         * tests/test-rint.c: Include test-rint.h.
1462         (main): Invoke test_function.
1463         * tests/test-rintf.c: Include test-rint.h.
1464         (main): Invoke test_function.
1465         * tests/test-rintl.c: Include test-rint.h.
1466         (main): Invoke test_function.
1467         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1468         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1469         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1470         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1471         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1472         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1473
1474 2012-03-03  Bruno Haible  <bruno@clisp.org>
1475
1476         modf* tests: More tests.
1477         * tests/test-modf.h: New file.
1478         * tests/test-modf.c: Include <float.h> and test-modf.h.
1479         (main): Invoke test_function.
1480         * tests/test-modff.c: Include <float.h> and test-modf.h.
1481         (main): Invoke test_function.
1482         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1483         (main): Invoke test_function.
1484         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1485         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1486         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1487         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1488         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1489         (Depends-on): Add 'float'.
1490         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1491
1492 2012-03-03  Bruno Haible  <bruno@clisp.org>
1493
1494         fabs* tests: More tests.
1495         * tests/test-fabs.h: New file, partially extracted from
1496         tests/test-fabsl.c.
1497         * tests/test-fabs.c (RANDOM): New macro.
1498         * tests/test-fabsf.c (RANDOM): New macro.
1499         * tests/test-fabsl.c (RANDOM): New macro.
1500         * modules/fabs-tests (Files): Add tests/randomd.c.
1501         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1502         * modules/fabsf-tests (Files): Add tests/randomf.c.
1503         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1504         * modules/fabsl-tests (Files): Add tests/randoml.c.
1505         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1506
1507 2012-03-03  Bruno Haible  <bruno@clisp.org>
1508
1509         ldexp* tests: More tests.
1510         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1511         * tests/test-ldexp.c (RANDOM): New macro.
1512         * tests/test-ldexpf.c (RANDOM): New macro.
1513         * tests/test-ldexpl.c (RANDOM): New macro.
1514         * modules/ldexp-tests (Files): Add tests/randomd.c.
1515         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1516         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1517         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1518         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1519         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1520
1521 2012-03-03  Bruno Haible  <bruno@clisp.org>
1522
1523         frexp* tests: More tests.
1524         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1525         * tests/test-frexp.c (RANDOM): New macro.
1526         * tests/test-frexpf.c (RANDOM): New macro.
1527         * tests/test-frexpl.c (RANDOM): New macro.
1528         * modules/frexp-tests (Files): Add tests/randomd.c.
1529         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1530         * modules/frexpf-tests (Files): Add tests/randomf.c.
1531         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1532         * modules/frexpl-tests (Files): Add tests/randoml.c.
1533         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1534
1535 2012-03-03  Bruno Haible  <bruno@clisp.org>
1536
1537         Support for pseudo-random numbers in tests.
1538         * tests/randomf.c: New file.
1539         * tests/randomd.c: New file.
1540         * tests/randoml.c: New file.
1541         * tests/macros.h (randomf, randomd, randoml): New declarations.
1542
1543 2012-03-03  Bruno Haible  <bruno@clisp.org>
1544
1545         frexp* tests: Refactor.
1546         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1547         * tests/test-frexp.c: Include and use it.
1548         * tests/test-frexpf.c: Likewise.
1549         * tests/test-frexpl.c: Likewise.
1550         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1551         * modules/frexpf-tests (Files): Likewise.
1552         * modules/frexpl-tests (Files): Likewise.
1553
1554 2012-03-02  Jim Meyering  <meyering@redhat.com>
1555
1556         maint: don't specify XZ_OPT=-9ev in dist-related rule
1557         Using xz's -9 option is warranted only if you have a very large
1558         tarball (see xz's documentation for the sizes vs. presets), and
1559         requires 64MiB of memory at decompression time.
1560         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1561         Automake's default of just "-e" is fine.  Override on a
1562         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1563
1564 2012-03-01  Eric Blake  <eblake@redhat.com>
1565
1566         maint.mk: allow announcement for non-gnulib project
1567         * maint.mk (announcement): Skip gnulib version if not used.
1568
1569 2012-03-01  Jim Meyering  <meyering@redhat.com>
1570
1571         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1572         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1573         envvar settings cannot interfere.  Otherwise, setting envvars like
1574         prohibit=foo require=bar, etc. would cause spurious test failures.
1575
1576 2012-03-01  Eric Blake  <eblake@redhat.com>
1577
1578         maint.mk: add per-line exclusions to prohibitions
1579         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1580         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1581         (sc_const_long_option): Use it.
1582
1583 2012-03-01  Bruno Haible  <bruno@clisp.org>
1584
1585         Tests for module 'expl-ieee'.
1586         * modules/expl-ieee-tests: New file.
1587         * tests/test-expl-ieee.c: New file.
1588
1589         New module 'expl-ieee'.
1590         * modules/expl-ieee: New file.
1591
1592         Tests for module 'exp-ieee'.
1593         * modules/exp-ieee-tests: New file.
1594         * tests/test-exp-ieee.c: New file.
1595
1596         New module 'exp-ieee'.
1597         * modules/exp-ieee: New file.
1598
1599         Tests for module 'expf-ieee'.
1600         * modules/expf-ieee-tests: New file.
1601         * tests/test-expf-ieee.c: New file.
1602         * tests/test-exp-ieee.h: New file.
1603
1604         New module 'expf-ieee'.
1605         * modules/expf-ieee: New file.
1606
1607 2012-02-29  Bruno Haible  <bruno@clisp.org>
1608
1609         cbrtl-ieee: Work around test failure on IRIX 6.5.
1610         * m4/cbrtl-ieee.m4: New file.
1611         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1612         test whether cbrtl works with a minus zero argument. Replace it if not.
1613         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1615         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1616         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1617         (Depends-on): Update conditions.
1618         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1619         m4/signbit.m4.
1620         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1621         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1622         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1623
1624         Tests for module 'cbrtl-ieee'.
1625         * modules/cbrtl-ieee-tests: New file.
1626         * tests/test-cbrtl-ieee.c: New file.
1627
1628         New module 'cbrtl-ieee'.
1629         * modules/cbrtl-ieee: New file.
1630
1631         Tests for module 'cbrt-ieee'.
1632         * modules/cbrt-ieee-tests: New file.
1633         * tests/test-cbrt-ieee.c: New file.
1634
1635         New module 'cbrt-ieee'.
1636         * modules/cbrt-ieee: New file.
1637
1638         Tests for module 'cbrtf-ieee'.
1639         * modules/cbrtf-ieee-tests: New file.
1640         * tests/test-cbrtf-ieee.c: New file.
1641         * tests/test-cbrt-ieee.h: New file.
1642
1643         New module 'cbrtf-ieee'.
1644         * modules/cbrtf-ieee: New file.
1645
1646 2012-02-29  Bruno Haible  <bruno@clisp.org>
1647
1648         cbrtf: Work around bug in IRIX 6.5 system function.
1649         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1650         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1651         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1652         work.
1653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1654         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1655         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1656         (Depends-on): Update conditions.
1657         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1658
1659 2012-02-29  Bruno Haible  <bruno@clisp.org>
1660
1661         Tests for module 'cbrtl'.
1662         * modules/cbrtl-tests: New file.
1663         * tests/test-cbrtl.c: New file.
1664
1665         New module 'cbrtl'.
1666         * lib/math.in.h (cbrtl): New declaration.
1667         * lib/cbrtl.c: New file.
1668         * m4/cbrtl.m4: New file.
1669         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1670         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1671         HAVE_DECL_CBRTL.
1672         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1673         HAVE_DECL_CBRTL.
1674         * modules/cbrtl: New file.
1675         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1676         * doc/posix-functions/cbrtl.texi: Mention the new module.
1677
1678 2012-02-29  Bruno Haible  <bruno@clisp.org>
1679
1680         Tests for module 'cbrtf'.
1681         * modules/cbrtf-tests: New file.
1682         * tests/test-cbrtf.c: New file.
1683
1684         New module 'cbrtf'.
1685         * lib/math.in.h (cbrtf): New declaration.
1686         * lib/cbrtf.c: New file.
1687         * m4/cbrtf.m4: New file.
1688         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1690         HAVE_DECL_CBRTF.
1691         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1692         HAVE_DECL_CBRTF.
1693         * modules/cbrtf: New file.
1694         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1695         * doc/posix-functions/cbrtf.texi: Mention the new module.
1696
1697 2012-02-29  Bruno Haible  <bruno@clisp.org>
1698
1699         cbrt: Provide replacement on MSVC and Minix.
1700         * lib/math.in.h (cbrt): New declaration.
1701         * lib/cbrt.c: New file.
1702         * m4/cbrt.m4: New file.
1703         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1705         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1706         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1707         (Depends-on): Add dependencies.
1708         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1709         * tests/test-math-c++.cc: Check the declaration of cbrt.
1710         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1711         replacement.
1712
1713 2012-02-29  Bruno Haible  <bruno@clisp.org>
1714
1715         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1716         * m4/hypotl-ieee.m4: New file.
1717         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1718         test whether hypotl works with mixed NaN and Infinity arguments.
1719         Replace it if not.
1720         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1722         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1723         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1724         (Depends-on): Update conditions.
1725         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1726         (Depends-on): Add hypot-ieee.
1727         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1728         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1729
1730         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1731         * m4/hypotf-ieee.m4: New file.
1732         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1733         test whether hypotf works with mixed NaN and Infinity arguments.
1734         Replace it if not.
1735         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1736         (Depends-on): Add hypot-ieee.
1737         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1738         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1739
1740         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1741         * lib/math.in.h (hypot): New declaration.
1742         * lib/hypot.c: New file.
1743         * m4/hypot-ieee.m4: New file.
1744         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1745         whether hypot works with mixed NaN and Infinity arguments. Replace it
1746         if not.
1747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1748         REPLACE_HYPOT.
1749         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1750         * modules/hypot (Files): Add lib/hypot.c.
1751         (Depends-on): Add dependencies.
1752         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1753         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1754         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1755         * tests/test-math-c++.cc: Check the declaration of hypot.
1756         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1757
1758         Tests for module 'hypotl-ieee'.
1759         * modules/hypotl-ieee-tests: New file.
1760         * tests/test-hypotl-ieee.c: New file.
1761
1762         New module 'hypotl-ieee'.
1763         * modules/hypotl-ieee: New file.
1764
1765         Tests for module 'hypot-ieee'.
1766         * modules/hypot-ieee-tests: New file.
1767         * tests/test-hypot-ieee.c: New file.
1768
1769         New module 'hypot-ieee'.
1770         * modules/hypot-ieee: New file.
1771
1772         Tests for module 'hypotf-ieee'.
1773         * modules/hypotf-ieee-tests: New file.
1774         * tests/test-hypotf-ieee.c: New file.
1775         * tests/test-hypot-ieee.h: New file.
1776
1777         New module 'hypotf-ieee'.
1778         * modules/hypotf-ieee: New file.
1779
1780 2012-02-29  Bruno Haible  <bruno@clisp.org>
1781
1782         Remove unused variables.
1783         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1784         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1785         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1786         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1787
1788 2012-02-29  Eric Blake  <eblake@redhat.com>
1789
1790         termios: fix pid_t always, not just for tcgetsid
1791         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1792         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1793         just when building tcgetsid.
1794
1795 2012-02-29  Bruno Haible  <bruno@clisp.org>
1796
1797         Tests for module 'hypotl'.
1798         * modules/hypotl-tests: New file.
1799         * tests/test-hypotl.c: New file.
1800
1801         New module 'hypotl'.
1802         * lib/math.in.h (hypotl): New declaration.
1803         * lib/hypotl.c: New file.
1804         * m4/hypotl.m4: New file.
1805         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1807         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1808         * modules/hypotl: New file.
1809         * tests/test-math-c++.cc: Check the hypotl declaration.
1810         * doc/posix-functions/hypotl.texi: Mention the new module.
1811
1812 2012-02-29  Eric Blake  <eblake@redhat.com>
1813
1814         tcgetsid: fix cygwin header bug
1815         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1816
1817         docs: update cygwin progress
1818         * doc/posix-functions/llround.texi (llround): Added in cygwin
1819         1.7.8.
1820         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1821         * doc/glibc-functions/program_invocation_name.texi
1822         (program_invocation_name): Likewise.
1823         * doc/glibc-functions/program_invocation_short_name.texi
1824         (program_invocation_short_name): Likewise.
1825         * doc/glibc-functions/madvise.texi (madvise): Likewise.
1826         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
1827         Likewise.
1828         * doc/posix-functions/pthread_spin_destroy.texi
1829         (pthread_spin_destroy): Added in cygwin 1.7.10.
1830         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
1831         Likewise.
1832         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
1833         Likewise.
1834         * doc/posix-functions/pthread_spin_trylock.texi
1835         (pthread_spin_trylock): Likewise.
1836         * doc/posix-functions/pthread_spin_unlock.texi
1837         (pthread_spin_unlock): Likewise.
1838         * doc/posix-functions/pthread_setschedprio.texi
1839         (pthread_setschedprio): Likewise.
1840         * doc/posix-functions/pthread_attr_getstack.texi
1841         (pthread_attr_getstack): Likewise.
1842         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
1843         (pthread_attr_getstackaddr): Likewise.
1844         * doc/glibc-functions/pthread_getattr_np.texi
1845         (pthread_getattr_np): Likewise.
1846         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
1847         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
1848         * doc/posix-functions/clock_settime.texi (clock_settime):
1849         Likewise.
1850         * doc/posix-functions/pthread_attr_getguardsize.texi
1851         (pthread_attr_getguardsize): Likewise.
1852         * doc/posix-functions/pthread_attr_setguardsize.texi
1853         (pthread_attr_setguardsize): Likewise.
1854         * doc/posix-functions/pthread_attr_setstack.texi
1855         (pthread_attr_setstack): Likewise.
1856         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
1857         (pthread_attr_setstackaddr): Likewise.
1858         * doc/posix-functions/clock_getcpuclockid.texi
1859         (clock_getcpuclockid): Likewise.
1860         * doc/posix-functions/pthread_getcpuclockid.texi
1861         (pthread_getcpuclockid): Likewise.
1862         * doc/glibc-functions/error.texi (error): Likewise.
1863         * doc/glibc-functions/error_at_line.texi (error_at_line):
1864         Likewise.
1865         * doc/glibc-functions/error_message_count.texi
1866         (error_message_count): Likewise.
1867         * doc/glibc-functions/error_one_per_line.texi
1868         (error_one_per_line): Likewise.
1869         * doc/glibc-functions/error_print_progname.texi
1870         (error_print_progname): Likewise.
1871         * doc/posix-functions/pthread_condattr_getclock.texi
1872         (pthread_condattr_getclock): Likewise.
1873         * doc/posix-functions/pthread_condattr_setclock.texi
1874         (pthread_condattr_setclock): Likewise.
1875         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
1876         Likewise.
1877         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
1878         * doc/glibc-functions/getpt.texi (getpt): Likewise.
1879         * doc/glibc-functions/get_current_dir_name.texi
1880         (get_current_dir_name): Likewise.
1881         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
1882         Likewise.
1883         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
1884         wrong return type.
1885         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
1886         1.7.11.
1887
1888 2012-02-29  Bruno Haible  <bruno@clisp.org>
1889
1890         Tests for module 'hypotf'.
1891         * modules/hypotf-tests: New file.
1892         * tests/test-hypotf.c: New file.
1893
1894         New module 'hypotf'.
1895         * lib/math.in.h (hypotf): New declaration.
1896         * lib/hypotf.c: New file.
1897         * m4/hypotf.m4: New file.
1898         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1899         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
1900         REPLACE_HYPOTF.
1901         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
1902         REPLACE_HYPOTF.
1903         * modules/hypotf: New file.
1904         * tests/test-math-c++.cc: Check the hypotf declaration.
1905         * doc/posix-functions/hypotf.texi: Mention the new module.
1906
1907         hypot: Prepare for hypotf module.
1908         * m4/hypot.m4: New file.
1909         * modules/hypot (Files): Add m4/hypot.m4.
1910         (configure.ac): Invoke gl_FUNC_HYPOT.
1911
1912 2012-02-29  Bruno Haible  <bruno@clisp.org>
1913
1914         hypot tests: More tests.
1915         * tests/test-hypot.c: Include <float.h>.
1916         (main): Add tests about overflow and underflow.
1917
1918 2012-02-29  Bruno Haible  <bruno@clisp.org>
1919
1920         math code: Add comments.
1921         * lib/acosl.c: Add comment about related glibc source files.
1922         * lib/asinl.c: Likewise.
1923         * lib/atanl.c: Likewise.
1924         * lib/expl.c: Likewise.
1925         * lib/logl.c: Likewise.
1926         * lib/sincosl.c: Likewise.
1927         * lib/sinl.c: Likewise.
1928         * lib/tanl.c: Likewise.
1929         * lib/trigl.c: Likewise.
1930         * lib/cosl.c: Likewise. Fix comments.
1931
1932 2012-02-28  Bruno Haible  <bruno@clisp.org>
1933
1934         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
1935         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
1936         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
1937         HUGE_VALL are defined.
1938         (numeric_equald): Renamed from numeric_equal.
1939         (numeric_equalf, numeric_equall): New functions.
1940         (main): Check also HUGE_VALF, HUGE_VALL.
1941         * modules/math-tests (Files): Add tests/macros.h.
1942         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
1943         HUGE_VALL.
1944
1945 2012-02-28  Bruno Haible  <bruno@clisp.org>
1946
1947         doc: Move ISO C11 feature notes into POSIX chapters.
1948         * doc/posix-functions/aligned_alloc.texi: Renamed from
1949         doc/glibc-functions/aligned_alloc.texi.
1950         * doc/posix-functions/quick_exit.texi: Renamed from
1951         doc/glibc-functions/quick_exit.texi.
1952         * doc/posix-headers/uchar.texi: Renamed from
1953         doc/glibc-headers/uchar.texi.
1954         * doc/posix-functions/c16rtomb.texi: Renamed from
1955         doc/glibc-functions/c16rtomb.texi.
1956         * doc/posix-functions/c32rtomb.texi: Renamed from
1957         doc/glibc-functions/c32rtomb.texi.
1958         * doc/posix-functions/mbrtoc16.texi: Renamed from
1959         doc/glibc-functions/mbrtoc16.texi.
1960         * doc/posix-functions/mbrtoc32.texi: Renamed from
1961         doc/glibc-functions/mbrtoc32.texi.
1962         * doc/gnulib.texi: Update.
1963         (Glibc uchar.h): Remove section.
1964         Suggested by Eric Blake.
1965
1966 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
1967
1968         stdnoreturn: port to MSVC better
1969         MSVC standard headers use __declspec(noreturn), so #define noreturn
1970         to empty on that platform.  Reported by Bruno Haible in
1971         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
1972         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
1973         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
1974
1975 2012-02-28  Bruno Haible  <bruno@clisp.org>
1976
1977         doc: Mention new glibc headers and functions.
1978         * doc/glibc-headers/uchar.texi: New file.
1979         * doc/glibc-functions/aligned_alloc.texi: New file.
1980         * doc/glibc-functions/c16rtomb.texi: New file.
1981         * doc/glibc-functions/c32rtomb.texi: New file.
1982         * doc/glibc-functions/clock_adjtime.texi: New file.
1983         * doc/glibc-functions/fanotify_init.texi: New file.
1984         * doc/glibc-functions/fanotify_mark.texi: New file.
1985         * doc/glibc-functions/inet6_opt_append.texi: New file.
1986         * doc/glibc-functions/inet6_opt_find.texi: New file.
1987         * doc/glibc-functions/inet6_opt_finish.texi: New file.
1988         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
1989         * doc/glibc-functions/inet6_opt_init.texi: New file.
1990         * doc/glibc-functions/inet6_opt_next.texi: New file.
1991         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
1992         * doc/glibc-functions/inet6_rth_add.texi: New file.
1993         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
1994         * doc/glibc-functions/inet6_rth_init.texi: New file.
1995         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
1996         * doc/glibc-functions/inet6_rth_segments.texi: New file.
1997         * doc/glibc-functions/inet6_rth_space.texi: New file.
1998         * doc/glibc-functions/login.texi: New file.
1999         * doc/glibc-functions/mbrtoc16.texi: New file.
2000         * doc/glibc-functions/mbrtoc32.texi: New file.
2001         * doc/glibc-functions/name_to_handle_at.texi: New file.
2002         * doc/glibc-functions/ntp_gettimex.texi: New file.
2003         * doc/glibc-functions/open_by_handle_at.texi: New file.
2004         * doc/glibc-functions/prlimit.texi: New file.
2005         * doc/glibc-functions/process_vm_readv.texi: New file.
2006         * doc/glibc-functions/process_vm_writev.texi: New file.
2007         * doc/glibc-functions/recvmmsg.texi: New file.
2008         * doc/glibc-functions/scandirat.texi: New file.
2009         * doc/glibc-functions/sendmmsg.texi: New file.
2010         * doc/glibc-functions/setns.texi: New file.
2011         * doc/glibc-functions/timespec_get.texi: New file.
2012         * doc/gnulib.texi: Include them.
2013         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2014         sections.
2015         Reported by Eric Blake.
2016
2017 2012-02-28  Bruno Haible  <bruno@clisp.org>
2018
2019         Avoid compilation errors with MSVC option -fp:strict.
2020         * lib/floor.c: Use MSVC specific pragma fenv_access.
2021         * lib/ceil.c: Likewise.
2022         * lib/trunc.c: Likewise.
2023         * lib/round.c: Likewise.
2024         * lib/rint.c: Likewise.
2025         * lib/fma.c: Likewise.
2026         * lib/integer_length.c: Likewise.
2027         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2028         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2029         * tests/test-floor2.c: Likewise.
2030         * tests/test-floorf2.c: Likewise.
2031         * tests/test-ceil2.c: Likewise.
2032         * tests/test-ceilf2.c: Likewise.
2033         * tests/test-trunc2.c: Likewise.
2034         * tests/test-truncf2.c: Likewise.
2035         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2036
2037 2012-02-27  Bruno Haible  <bruno@clisp.org>
2038
2039         Tests for module 'sqrtl-ieee'.
2040         * modules/sqrtl-ieee-tests: New file.
2041         * tests/test-sqrtl-ieee.c: New file.
2042
2043         New module 'sqrtl-ieee'.
2044         * modules/sqrtl-ieee: New file.
2045
2046         Tests for module 'sqrt-ieee'.
2047         * modules/sqrt-ieee-tests: New file.
2048         * tests/test-sqrt-ieee.c: New file.
2049
2050         New module 'sqrt-ieee'.
2051         * modules/sqrt-ieee: New file.
2052
2053         Tests for module 'sqrtf-ieee'.
2054         * modules/sqrtf-ieee-tests: New file.
2055         * tests/test-sqrtf-ieee.c: New file.
2056         * tests/test-sqrt-ieee.h: New file.
2057
2058         New module 'sqrtf-ieee'.
2059         * modules/sqrtf-ieee: New file.
2060
2061 2012-02-27  Bruno Haible  <bruno@clisp.org>
2062
2063         remainderl-ieee: Work around test failure on OSF/1.
2064         * m4/remainderl-ieee.m4: New file.
2065         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2066         present, test whether remainderl works with a zero second argument.
2067         Replace it if not.
2068         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2070         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2071         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2072         (Depends-on): Update conditions.
2073         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2074         (Depends-on): Add remainder-ieee.
2075         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2076         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2077         module.
2078
2079         remainderf-ieee: Work around test failure on OSF/1.
2080         * m4/remainderf-ieee.m4: New file.
2081         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2082         present, test whether remainderf works with a zero second argument.
2083         Replace it if not.
2084         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2086         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2087         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2088         (Depends-on): Update conditions.
2089         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2090         (Depends-on): Add remainder-ieee.
2091         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2092         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2093         module.
2094
2095         remainder-ieee: Work around test failure on OSF/1.
2096         * m4/remainder-ieee.m4: New file.
2097         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2098         present, test whether remainder works with a zero second argument.
2099         Replace it if not.
2100         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2102         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2103         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2104         (Depends-on): Update dependencies.
2105         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2106         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2107         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2108
2109         Tests for module 'remainderl-ieee'.
2110         * modules/remainderl-ieee-tests: New file.
2111         * tests/test-remainderl-ieee.c: New file.
2112
2113         New module 'remainderl-ieee'.
2114         * modules/remainderl-ieee: New file.
2115
2116         Tests for module 'remainder-ieee'.
2117         * modules/remainder-ieee-tests: New file.
2118         * tests/test-remainder-ieee.c: New file.
2119
2120         New module 'remainder-ieee'.
2121         * modules/remainder-ieee: New file.
2122
2123         Tests for module 'remainderf-ieee'.
2124         * modules/remainderf-ieee-tests: New file.
2125         * tests/test-remainderf-ieee.c: New file.
2126         * tests/test-remainder-ieee.h: New file.
2127
2128         New module 'remainderf-ieee'.
2129         * modules/remainderf-ieee: New file.
2130
2131 2012-02-27  Bruno Haible  <bruno@clisp.org>
2132
2133         modff, modfl: Fix configure syntax error.
2134         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2135         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2136
2137 2012-02-27  Bruno Haible  <bruno@clisp.org>
2138
2139         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2140         * m4/fmodl-ieee.m4: New file.
2141         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2142         whether fmodl works with zero arguments. Replace it if not.
2143         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2144         (Depends-on): Add fmod-ieee.
2145         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2146         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2147
2148         fmodf-ieee: Work around test failure on OSF/1.
2149         * m4/fmodf-ieee.m4: New file.
2150         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2151         whether fmodf works with zero arguments. Replace it if not.
2152         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2154         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2155         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2156         (Depends-on): Update dependencies.
2157         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2158         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2159         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2160
2161         fmodf-ieee: Work around test failure on MSVC 9.
2162         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2163         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2164
2165         fmod-ieee: Work around test failures on OSF/1, mingw.
2166         * m4/fmod-ieee.m4: New file.
2167         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2168         whether fmod works with zero arguments. Replace it if not.
2169         * lib/math.in.h (fmod): New declaration.
2170         * lib/fmod.c: New file.
2171         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2173         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2174         * modules/fmod (Files): Add lib/fmod.c.
2175         (Depends-on): Add math, isinf, trunc, fma.
2176         (configure.ac): Arrange to compile lib/fmod.c if needed.
2177         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2178         m4/signbit.m4.
2179         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2180         * tests/test-math-c++.cc: Check the declaration of fmod.
2181         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2182
2183         fmodl-ieee: Fix test failures.
2184         * lib/fmodl.c (fmodl): Treat Inf specially.
2185         * modules/fmodl (Depends-on): Add isinf.
2186
2187         Tests for module 'fmodl-ieee'.
2188         * modules/fmodl-ieee-tests: New file.
2189         * tests/test-fmodl-ieee.c: New file.
2190
2191         New module 'fmodl-ieee'.
2192         * modules/fmodl-ieee: New file.
2193
2194         Tests for module 'fmod-ieee'.
2195         * modules/fmod-ieee-tests: New file.
2196         * tests/test-fmod-ieee.c: New file.
2197
2198         New module 'fmod-ieee'.
2199         * modules/fmod-ieee: New file.
2200
2201         Tests for module 'fmodf-ieee'.
2202         * modules/fmodf-ieee-tests: New file.
2203         * tests/test-fmodf-ieee.c: New file.
2204         * tests/test-fmod-ieee.h: New file.
2205
2206         New module 'fmodf-ieee'.
2207         * modules/fmodf-ieee: New file.
2208
2209 2012-02-27  Bruno Haible  <bruno@clisp.org>
2210
2211         Tests for module 'rintl-ieee'.
2212         * modules/rintl-ieee-tests: New file.
2213         * tests/test-rintl-ieee.c: New file.
2214
2215         New module 'rintl-ieee'.
2216         * modules/rintl-ieee: New file.
2217
2218         Tests for module 'rint-ieee'.
2219         * modules/rint-ieee-tests: New file.
2220         * tests/test-rint-ieee.c: New file.
2221
2222         New module 'rint-ieee'.
2223         * modules/rint-ieee: New file.
2224
2225         Tests for module 'rintf-ieee'.
2226         * modules/rintf-ieee-tests: New file.
2227         * tests/test-rintf-ieee.c: New file.
2228         * tests/test-rint-ieee.h: New file.
2229
2230         New module 'rintf-ieee'.
2231         * modules/rintf-ieee: New file.
2232
2233 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2234
2235         regex: re_search etc. should return -2 when memory exhausted
2236         This bug was uncovered when testing 'grep'.  Without the fix,
2237         re_search and friends return -1 when memory is exhausted, but -1
2238         means no match, and this causes grep to falsely report no-match
2239         instead of memory-exhaustion.  See
2240         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2241         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2242         trouble; this can occur if re_search_internal ran out of memory.
2243
2244 2012-02-26  Bruno Haible  <bruno@clisp.org>
2245
2246         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2247         * m4/modfl-ieee.m4: New file.
2248         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2249         whether modfl works with Inf. Replace it if not.
2250         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2252         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2253         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2254         (Depends-on): Update dependencies.
2255         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2256         m4/signbit.m4.
2257         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2258         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2259
2260         modfl-ieee: Fix dependencies.
2261         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2262
2263         modfl-ieee: Fix test failures.
2264         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2265         * modules/modfl (Depends-on): Add isfinite, isinf.
2266
2267         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2268         * m4/modff-ieee.m4: New file.
2269         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2270         whether modff works with NaN and Inf. Replace it if not.
2271         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2273         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2274         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2275         (Depends-on): Update dependencies.
2276         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2277         m4/signbit.m4.
2278         (Depends-on): Add modf-ieee.
2279         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2280         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2281
2282         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2283         * m4/modf-ieee.m4: New file.
2284         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2285         whether modf works with NaN and Inf. Replace it if not.
2286         * lib/math.in.h (modf): New declaration.
2287         * lib/modf.c: New file.
2288         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2290         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2291         * modules/modf (Files): Add lib/modf.c.
2292         (Depends-on): Add math, isfinite, trunc, isinf.
2293         (configure.ac): Addrange to compile lib/modf.c if needed.
2294         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2295         m4/signbit.m4.
2296         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2297         * tests/test-math-c++.cc: Check the declaration of modf.
2298         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2299
2300         Tests for module 'modfl-ieee'.
2301         * modules/modfl-ieee-tests: New file.
2302         * tests/test-modfl-ieee.c: New file.
2303
2304         New module 'modfl-ieee'.
2305         * modules/modfl-ieee: New file.
2306
2307         Tests for module 'modf-ieee'.
2308         * modules/modf-ieee-tests: New file.
2309         * tests/test-modf-ieee.c: New file.
2310
2311         New module 'modf-ieee'.
2312         * modules/modf-ieee: New file.
2313
2314         Tests for module 'modff-ieee'.
2315         * modules/modff-ieee-tests: New file.
2316         * tests/test-modff-ieee.c: New file.
2317         * tests/test-modf-ieee.h: New file.
2318
2319         New module 'modff-ieee'.
2320         * modules/modff-ieee: New file.
2321
2322 2012-02-26  Bruno Haible  <bruno@clisp.org>
2323
2324         Tests for module 'fabsl-ieee'.
2325         * modules/fabsl-ieee-tests: New file.
2326         * tests/test-fabsl-ieee.c: New file.
2327
2328         New module 'fabsl-ieee'.
2329         * modules/fabsl-ieee: New file.
2330
2331         Tests for module 'fabs-ieee'.
2332         * modules/fabs-ieee-tests: New file.
2333         * tests/test-fabs-ieee.c: New file.
2334
2335         New module 'fabs-ieee'.
2336         * modules/fabs-ieee: New file.
2337
2338         Tests for module 'fabsf-ieee'.
2339         * modules/fabsf-ieee-tests: New file.
2340         * tests/test-fabsf-ieee.c: New file.
2341         * tests/test-fabs-ieee.h: New file.
2342
2343         New module 'fabsf-ieee'.
2344         * modules/fabsf-ieee: New file.
2345
2346 2012-02-26  Bruno Haible  <bruno@clisp.org>
2347
2348         Tests for module 'fmal-ieee'.
2349         * modules/fmal-ieee-tests: New file.
2350         * tests/test-fmal-ieee.c: New file.
2351
2352         New module 'fmal-ieee'.
2353         * modules/fmal-ieee: New file.
2354
2355         Tests for module 'fma-ieee'.
2356         * modules/fma-ieee-tests: New file.
2357         * tests/test-fma-ieee.c: New file.
2358
2359         New module 'fma-ieee'.
2360         * modules/fma-ieee: New file.
2361
2362         Tests for module 'fmaf-ieee'.
2363         * modules/fmaf-ieee-tests: New file.
2364         * tests/test-fmaf-ieee.c: New file.
2365         * tests/test-fma-ieee.h: New file.
2366
2367         New module 'fmaf-ieee'.
2368         * modules/fmaf-ieee: New file.
2369
2370 2012-02-26  Bruno Haible  <bruno@clisp.org>
2371
2372         Tests for module 'ldexpl-ieee'.
2373         * modules/ldexpl-ieee-tests: New file.
2374         * tests/test-ldexpl-ieee.c: New file.
2375
2376         New module 'ldexpl-ieee'.
2377         * modules/ldexpl-ieee: New file.
2378
2379         Tests for module 'ldexp-ieee'.
2380         * modules/ldexp-ieee-tests: New file.
2381         * tests/test-ldexp-ieee.c: New file.
2382
2383         New module 'ldexp-ieee'.
2384         * modules/ldexp-ieee: New file.
2385
2386         Tests for module 'ldexpf-ieee'.
2387         * modules/ldexpf-ieee-tests: New file.
2388         * tests/test-ldexpf-ieee.c: New file.
2389         * tests/test-ldexp-ieee.h: New file.
2390
2391         New module 'ldexpf-ieee'.
2392         * modules/ldexpf-ieee: New file.
2393
2394 2012-02-26  Bruno Haible  <bruno@clisp.org>
2395
2396         Refactor frexp*-ieee tests.
2397         * tests/test-frexp-ieee.h: New file.
2398         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2399         (main): Just call test_function.
2400         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2401         (main): Just call test_function.
2402         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2403         (main): Just call test_function.
2404         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2405         * modules/frexp-ieee-tests (Files): Likewise.
2406         * modules/frexpl-ieee-tests (Files): Likewise.
2407
2408         Tests for module 'frexpl-ieee'.
2409         * modules/frexpl-ieee-tests: New file.
2410         * tests/test-frexpl-ieee.c: New file.
2411
2412         New module 'frexpl-ieee'.
2413         * modules/frexpl-ieee: New file.
2414
2415         Tests for module 'frexp-ieee'.
2416         * modules/frexp-ieee-tests: New file.
2417         * tests/test-frexp-ieee.c: New file.
2418
2419         New module 'frexp-ieee'.
2420         * modules/frexp-ieee: New file.
2421
2422         Tests for module 'frexpf-ieee'.
2423         * modules/frexpf-ieee-tests: New file.
2424         * tests/test-frexpf-ieee.c: New file.
2425
2426         New module 'frexpf-ieee'.
2427         * modules/frexpf-ieee: New file.
2428
2429 2012-02-26  Bruno Haible  <bruno@clisp.org>
2430
2431         roundl-ieee tests: More tests.
2432         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2433         (main): Add tests for [MX] shaded specification in POSIX.
2434         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2435         (Depends-on): Add isnanl-nolibm.
2436
2437         round-ieee tests: More tests.
2438         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2439         (main): Add tests for [MX] shaded specification in POSIX.
2440         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2441         (Depends-on): Add isnand-nolibm.
2442
2443         roundf-ieee tests: More tests.
2444         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2445         (main): Add tests for [MX] shaded specification in POSIX.
2446         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2447         (Depends-on): Add isnanf-nolibm.
2448
2449         truncl-ieee tests: More tests.
2450         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2451         (main): Add tests for [MX] shaded specification in POSIX.
2452         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2453         (Depends-on): Add isnanl-nolibm.
2454
2455         trunc-ieee tests: More tests.
2456         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2457         (main): Add tests for [MX] shaded specification in POSIX.
2458         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2459         (Depends-on): Add isnand-nolibm.
2460
2461         truncf-ieee tests: More tests.
2462         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2463         (main): Add tests for [MX] shaded specification in POSIX.
2464         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2465         (Depends-on): Add isnanf-nolibm.
2466
2467         ceill-ieee tests: More tests.
2468         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2469         (main): Add tests for [MX] shaded specification in POSIX.
2470         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2471         (Depends-on): Add isnanl-nolibm.
2472
2473         ceil-ieee tests: More tests.
2474         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2475         (main): Add tests for [MX] shaded specification in POSIX.
2476         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2477         (Depends-on): Add isnand-nolibm.
2478
2479         ceilf-ieee tests: More tests.
2480         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2481         (main): Add tests for [MX] shaded specification in POSIX.
2482         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2483         (Depends-on): Add isnanf-nolibm.
2484
2485         floorl-ieee tests: More tests.
2486         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2487         (main): Add tests for [MX] shaded specification in POSIX.
2488         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2489         (Depends-on): Add isnanl-nolibm.
2490
2491         floor-ieee tests: More tests.
2492         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2493         (main): Add tests for [MX] shaded specification in POSIX.
2494         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2495         (Depends-on): Add isnand-nolibm.
2496
2497         floorf-ieee tests: More tests.
2498         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2499         (main): Add tests for [MX] shaded specification in POSIX.
2500         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2501         (Depends-on): Add isnanf-nolibm.
2502
2503 2012-02-26  Bruno Haible  <bruno@clisp.org>
2504
2505         fpieee: More comments.
2506         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2507
2508 2012-02-25  Bruno Haible  <bruno@clisp.org>
2509
2510         Tests for module 'log10l'.
2511         * modules/log10l-tests: New file.
2512         * tests/test-log10l.c: New file.
2513         * tests/test-math-c++.cc: Check the declaration of log10l.
2514
2515         New module 'log10l'.
2516         * lib/math.in.h (log10l): New declaration.
2517         * lib/log10l.c: New file.
2518         * m4/log10l.m4: New file.
2519         * modules/log10l: New file.
2520         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2522         HAVE_DECL_LOG10L.
2523         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2524         HAVE_DECL_LOG10L.
2525         * doc/posix-functions/log10l.texi: Mention the new module.
2526
2527 2012-02-25  Bruno Haible  <bruno@clisp.org>
2528
2529         fmodl, remainder*: Avoid wrong results due to rounding errors.
2530         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2531         expected bounds.
2532         * lib/remainderf.c (remainderf): Likewise.
2533         * lib/remainder.c (remainder): Likewise.
2534         * lib/remainderl.c (remainderl): Likewise.
2535
2536 2012-02-25  Bruno Haible  <bruno@clisp.org>
2537
2538         Tests for module 'remainderl'.
2539         * modules/remainderl-tests: New file.
2540         * tests/test-remainderl.c: New file.
2541         * tests/test-math-c++.cc: Check the declaration of remainderl.
2542
2543         New module 'remainderl'.
2544         * lib/math.in.h (remainderl): New declaration.
2545         * lib/remainderl.c: New file.
2546         * m4/remainderl.m4: New file.
2547         * modules/remainderl: New file.
2548         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2549         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2550         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2551         HAVE_REMAINDERL.
2552         * doc/posix-functions/remainderl.texi: Mention the new module.
2553
2554 2012-02-25  Bruno Haible  <bruno@clisp.org>
2555
2556         Tests for module 'remainderf'.
2557         * modules/remainderf-tests: New file.
2558         * tests/test-remainderf.c: New file.
2559         * tests/test-math-c++.cc: Check the declaration of remainderf.
2560
2561         New module 'remainderf'.
2562         * lib/math.in.h (remainderf): New declaration.
2563         * lib/remainderf.c: New file.
2564         * m4/remainderf.m4: New file.
2565         * modules/remainderf: New file.
2566         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2568         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2569         HAVE_REMAINDERF.
2570         * doc/posix-functions/remainderf.texi: Mention the new module.
2571
2572 2012-02-25  Bruno Haible  <bruno@clisp.org>
2573
2574         remainder: Support for MSVC.
2575         * lib/math.in.h (remainder): New declaration.
2576         * lib/remainder.c: New file.
2577         * m4/remainder.m4: New file.
2578         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2579         (Depends-on): Add math, round, fma.
2580         (configure.ac): Use results of gl_FUNC_REMAINDER.
2581         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2583         HAVE_DECL_REMAINDER.
2584         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2585         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2586         * tests/test-math-c++.cc: Check the declaration of remainder.
2587         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2588         problems are fixed.
2589
2590 2012-02-25  Bruno Haible  <bruno@clisp.org>
2591
2592         Tests for module 'fmodl'.
2593         * modules/fmodl-tests: New file.
2594         * tests/test-fmodl.c: New file.
2595         * tests/test-math-c++.cc: Check the declaration of fmodl.
2596
2597         New module 'fmodl'.
2598         * lib/math.in.h (fmodl): New declaration.
2599         * lib/fmodl.c: New file.
2600         * m4/fmodl.m4: New file.
2601         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2602         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2603         REPLACE_FMODL.
2604         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2605         REPLACE_FMODL.
2606         * modules/fmodl: New file.
2607         * doc/posix-functions/fmodl.texi: Mention the new module.
2608
2609 2012-02-25  Bruno Haible  <bruno@clisp.org>
2610
2611         Tests for module 'modfl'.
2612         * modules/modfl-tests: New file.
2613         * tests/test-modfl.c: New file.
2614         * tests/test-math-c++.cc: Check the declaration of modfl.
2615
2616         New module 'modfl'.
2617         * lib/math.in.h (modfl): New declaration.
2618         * lib/modfl.c: New file.
2619         * m4/modfl.m4: New file.
2620         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2621         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2622         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2623         * modules/modfl: New file.
2624         * doc/posix-functions/modfl.texi: Mention the new module.
2625
2626 2012-02-25  Bruno Haible  <bruno@clisp.org>
2627
2628         Tests for module 'fabsl'.
2629         * modules/fabsl-tests: New file.
2630         * tests/test-fabsl.c: New file.
2631         * tests/test-math-c++.cc: Check the declaration of fabsl.
2632
2633         New module 'fabsl'.
2634         * lib/math.in.h (fabsl): New declaration.
2635         * lib/fabsl.c: New file.
2636         * m4/fabsl.m4: New file.
2637         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2638         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2639         REPLACE_FABSL.
2640         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2641         REPLACE_FABSL.
2642         * modules/fabsl: New file.
2643         * doc/posix-functions/fabsl.texi: Mention the new module.
2644
2645 2012-02-25  Bruno Haible  <bruno@clisp.org>
2646
2647         fabs tests: More tests.
2648         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2649         (zero): New variable.
2650         (main): Add tests for signed zero.
2651         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2652
2653         fabsf tests: More tests.
2654         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2655         (zero): New variable.
2656         (main): Add tests for signed zero.
2657         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2658
2659 2012-02-24  Bruno Haible  <bruno@clisp.org>
2660
2661         atanl: Provide function definition on MSVC.
2662         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2663         function pointer.
2664         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2665
2666 2012-02-24  Bruno Haible  <bruno@clisp.org>
2667
2668         acosl: Provide function definition on MSVC.
2669         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2670         function pointer.
2671         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2672
2673 2012-02-24  Bruno Haible  <bruno@clisp.org>
2674
2675         asinl: Provide function definition on MSVC.
2676         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2677         function pointer.
2678         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2679
2680 2012-02-24  Bruno Haible  <bruno@clisp.org>
2681
2682         tanl: Provide function definition on MSVC.
2683         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2684         function pointer.
2685         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2686
2687 2012-02-24  Bruno Haible  <bruno@clisp.org>
2688
2689         cosl: Provide function definition on MSVC.
2690         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2691         function pointer.
2692         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2693
2694 2012-02-24  Bruno Haible  <bruno@clisp.org>
2695
2696         sinl: Provide function definition on MSVC.
2697         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2698         function pointer.
2699         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2700
2701 2012-02-24  Bruno Haible  <bruno@clisp.org>
2702
2703         logl: Provide function definition on MSVC.
2704         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2705         function pointer.
2706         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2707
2708 2012-02-24  Bruno Haible  <bruno@clisp.org>
2709
2710         expl: Provide function definition on MSVC.
2711         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2712         function pointer.
2713         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2714
2715 2012-02-24  Bruno Haible  <bruno@clisp.org>
2716
2717         sqrtl: Provide function definition on MSVC.
2718         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2719         a function pointer.
2720         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2721
2722 2012-02-24  Bruno Haible  <bruno@clisp.org>
2723
2724         ceill: Provide function definition on MSVC.
2725         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2726         used as a function pointer.
2727         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2728
2729 2012-02-24  Bruno Haible  <bruno@clisp.org>
2730
2731         floorl: Provide function definition on MSVC.
2732         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2733         used as a function pointer.
2734         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2735
2736 2012-02-24  Bruno Haible  <bruno@clisp.org>
2737
2738         ceilf: Provide function definition on MSVC.
2739         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2740         used as a function pointer.
2741         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2742
2743 2012-02-24  Bruno Haible  <bruno@clisp.org>
2744
2745         floorf: Provide function definition on MSVC.
2746         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2747         used as a function pointer.
2748         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2749
2750 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2751
2752         stdnoreturn: new module
2753         This implements a replacement for C11's <stdnoreturn.h>.
2754         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2755         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2756         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2757         * tests/test-stdnoreturn.c: New files.
2758
2759 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2760
2761         regex: fix false multibyte matches in some regular expressions
2762         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2763         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2764         * lib/regex_internal.c (re_string_skip_chars):
2765         Fix miscomputation of remain_len that may cause incomplete
2766         multi-byte character and false match.
2767
2768 2012-02-24  Jim Meyering  <meyering@redhat.com>
2769
2770         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2771         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2772         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2773         Remove now-unnecessary str''cmp obfuscation.
2774         Suggested by Akim Demaille.
2775
2776 2012-02-24  Bruno Haible  <bruno@clisp.org>
2777
2778         streq: Rename macro.
2779         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2780         * NEWS: Mention the change.
2781         * lib/mbrtowc.c (mbrtowc): Update.
2782         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2783         * lib/wcwidth.c (wcwidth): Update.
2784         Suggested by Akim Demaille and Jim Meyering.
2785
2786 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2787
2788         regex: fix typo in definition of MIN
2789         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2790         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2791
2792 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2793             Bruno Haible  <bruno@clisp.org>
2794
2795         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2796         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2797         entries into a stack-allocated buffer directly.
2798         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2799
2800 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2801             Bruno Haible  <bruno@clisp.org>
2802
2803         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2804
2805          - There were several instances of this pattern:
2806
2807              for (;;) {
2808                n = acl (f, GETACLCNT, 0, NULL);
2809                [ allocate an array A of size N ]
2810                if (acl (f, GETACL, n, a) == n)
2811                  break;
2812              }
2813
2814            This loop might never terminate if some other process is constantly
2815            manipulating the file's ACL.  The loop should be rewritten to
2816            terminate.
2817
2818          - The acl (... GETACLNT ...) call is merely an optimization; its value
2819            is merely a hint as to how big to make the array.  A better
2820            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2821            and just guess a reasonably-big size, growing the size and trying
2822            again if it's not large enough.  This guarantees termination, and
2823            saves a system call.
2824
2825         * lib/acl-internal.h: Include <limits.h>.
2826         (MIN, SIZE_MAX): New macros.
2827         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
2828         a stack-allocated buffer, and use malloc if it does not fit. Don't
2829         use GETACLCNT.
2830         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2831
2832 2012-02-19  Bruno Haible  <bruno@clisp.org>
2833
2834         acl: Fix endless loop on Solaris with vxfs.
2835         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
2836         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
2837         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2838         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
2839         * tests/test-sameacls.c (main)[Solaris]: Likewise.
2840         Reported by Bill Jones in
2841         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
2842
2843 2012-02-19  Bruno Haible  <bruno@clisp.org>
2844
2845         acl: Fix copy-acl test failure on Solaris 11 2011-11.
2846         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
2847         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
2848         that this function returns 0 in some more cases.
2849
2850 2012-02-19  Bruno Haible  <bruno@clisp.org>
2851
2852         acl: Update doc references.
2853         * doc/acl-resources.txt: Update links to Solaris documentation.
2854
2855 2012-02-19  Bruno Haible  <bruno@clisp.org>
2856
2857         Fix test failure in many locales on Solaris 11.
2858         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
2859         'tr' arguments.
2860         * tests/test-pipe-filter-ii1.c (main): Likewise.
2861         * build-aux/bootstrap (check_versions): Run 'tr' command with range
2862         expressions in the C locale.
2863         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2864         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2865
2866 2012-02-19  Bruno Haible  <bruno@clisp.org>
2867
2868         gnulib-tool: Improve usage message.
2869         * gnulib-tool (func_usage): Move doc of --help and --version to the
2870         section "Operation modes".
2871
2872 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
2873
2874         README-release: make it easier to execute commands
2875         * top/README-release: break commands out on to separate lines.
2876
2877 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2878
2879         GNUmakefile: simplify detection of unconfigured trees
2880         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
2881         whether the tree make is being run from is already configured or
2882         not.  Related simplifications.
2883
2884 2012-02-13  Simon Josefsson  <simon@josefsson.org>
2885
2886         * gnulib-tool (func_usage): Document --help and --version.
2887
2888 2012-02-11  Jim Meyering  <meyering@redhat.com>
2889
2890         bootstrap: don't exit 0 upon gnulib-tool failure
2891         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
2892         its exit status, not 0.
2893
2894 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
2895
2896         README-release: various improvements
2897         * top/README-release: Give a command to push changes for the
2898         release.  Add "distcheck" to list of other pre-release checks.
2899         Fix instance of "make stable" which should be "make TYPE".
2900
2901 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2902
2903         maint: replace FSF snail-mail addresses with URLs
2904         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
2905         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
2906         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
2907         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
2908         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
2909         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
2910         * lib/check-version.c, lib/check-version.h, lib/config.charset:
2911         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
2912         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
2913         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
2914         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
2915         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
2916         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
2917         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
2918         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
2919         * lib/glthread/thread.c, lib/glthread/thread.h:
2920         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
2921         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
2922         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
2923         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
2924         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
2925         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
2926         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
2927         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
2928         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
2929         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
2930         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
2931         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
2932         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
2933         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
2934         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
2935         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
2936         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
2937         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
2938         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
2939         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
2940         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
2941         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
2942         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
2943         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
2944         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
2945         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
2946         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
2947         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
2948         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
2949         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
2950         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
2951         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
2952         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
2953         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
2954         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
2955         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
2956         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
2957         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
2958         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
2959         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
2960         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
2961         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
2962         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
2963         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
2964         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
2965         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
2966         * tests/test-poll.c, tests/test-quotearg-simple.c:
2967         * tests/test-quotearg.c, tests/test-quotearg.h:
2968         * tests/test-round-ieee.c, tests/test-round1.c:
2969         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
2970         * tests/test-roundl-ieee.c, tests/test-roundl.c:
2971         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
2972         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
2973         * tests/test-strerror.c, tests/test-strerror_r.c:
2974         * tests/test-strsignal.c, tests/test-strverscmp.c:
2975         * tests/test-xmemdup0.c:
2976         Replace FSF snail mail addresses with URLs, as per GNU coding
2977         standards.  See glibc bug
2978         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
2979
2980 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2981
2982         README-release: capitalize a word and split a line
2983         * top/README-release: Fix punctuation and spacing.
2984
2985 2012-02-08  Akim Demaille  <demaille@gostai.com>
2986
2987         fatal-signal: use C prototypes (with explicit void).
2988         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2989         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
2990
2991 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2992
2993         regex: spelling fix
2994         * lib/regexec.c: spelling fix
2995
2996         regex: rely on stdint.h for SIZE_MAX
2997         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
2998
2999 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3000
3001         regex: merge glibc changes
3002
3003         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3004         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3005         (init_word_char): Work even if bitset words are not exactly 32 or
3006         64 bits wide.  Don't assume there are no padding bits.
3007         * lib/regex.c [_LIBC]: Do not include <config.h>.
3008         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3009         and -Wtype-limits.
3010         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3011         needless disagreement with glibc.  All uses changed.  Define it to
3012         1 only if _GNU_SOURCE, to match glibc.
3013         (_REG_RM_NAME): Remove; no longer needed, since the names in
3014         question are now all protected by __USE_GNU.
3015         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3016         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3017         * lib/regex_internal.h (MIN): New macro.
3018
3019         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3020         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3021
3022         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3023         * lib/regex_internal.c (re_string_fetch_byte_case):
3024         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3025         is miscompiled, and it turns out it is because of an incorrect
3026         attribute on re_string_fetch_byte_case.  Unlike
3027         re_string_peek_byte_case, this one is really not pure, it modifies
3028         memory (increments pstr->cur_idx), and with the pure attribute GCC
3029         assumed it doesn't and it cached the presumed value of
3030         regexp->cur_idx in a variable across the
3031          for (;; ++i)
3032            {
3033              if (i >= BRACKET_NAME_BUF_SIZE)
3034                return REG_EBRACK;
3035              if (token->type == OP_OPEN_CHAR_CLASS)
3036                ch = re_string_fetch_byte_case (regexp);
3037              else
3038                ch = re_string_fetch_byte (regexp);
3039              if (re_string_eoi(regexp))
3040                return REG_EBRACK;
3041              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3042                break;
3043              elem->opr.name[i] = ch;
3044            }
3045
3046         2011-11-29 Andreas Schwab <schwab@redhat.com>
3047         * lib/regcomp.c (build_equiv_class):
3048         Fix access after end of search string in regex matcher.
3049
3050         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3051         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3052
3053         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3054         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3055
3056         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3057         * lib/regcomp.c (parse_branch, parse_sub_exp):
3058         More regex memory leak fixes and tests.
3059         (parse_sub_exp, parse_bracket_exp):
3060         Fix memory leak for some invalid regular expressions.
3061
3062         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3063         * lib/regex_internal.c, lib/regexec.c:
3064         Fix unnecessary overallocation due to incomplete character.  When
3065         incomplete characters are found at the end of a string the code
3066         ran amok and allocated lots of memory.  Stricter limits are now in
3067         place.
3068
3069         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3070         * lib/regex.h: Update documentation.
3071
3072         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3073         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3074
3075         2010-05-05 Andreas Schwab <schwab@redhat.com>
3076         * lib/regexec.c (find_collation_sequence_value):
3077         Fix lookup of collation sequence value during regexp matching.
3078
3079         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3080         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3081
3082         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3083         * lib/regex.h: Cleanup namespace.
3084
3085         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3086         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3087
3088         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3089         * lib/regex_internal.h: Prevent some declarations and definitions
3090         to be seen when used in tests.
3091
3092         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3093         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3094         __libc_lock_* macros if not _LIBC.
3095         (struct re_dfa_t): Add lock.
3096
3097 2012-02-07  Eric Blake  <eblake@redhat.com>
3098
3099         maint.mk: also prohibit lower-case @var@
3100         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3101         lower case, like @top_srcdir@.
3102
3103 2012-02-04  Eric Blake  <eblake@redhat.com>
3104
3105         canonicalize: avoid uninitialized memory use
3106         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3107         random '/' left in dest.
3108         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3109
3110 2012-02-04  Bruno Haible  <bruno@clisp.org>
3111
3112         isatty: Fix test failure of ptsname_r on native Windows.
3113         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3114         and don't set errno.
3115         (isatty): Test first whether fd is valid. Set errno when returning 0.
3116
3117 2012-02-04  Bruno Haible  <bruno@clisp.org>
3118
3119         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3120         * tests/test-spawn-pipe-main.c: Include progname.h.
3121         (main): Invoke set_program_name.
3122         * modules/spawn-pipe-tests (Depends-on): Add progname.
3123
3124         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3125         * tests/test-nonblocking-socket-main.c: Include progname.h.
3126         (main): Invoke set_program_name.
3127         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3128
3129         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3130         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3131         (main): Invoke set_program_name.
3132         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3133
3134 2012-02-04  Eric Blake  <eblake@redhat.com>
3135
3136         canonicalize-lgpl: fix // handling
3137         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3138
3139         canonicalize: fix // handling
3140         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3141         /// to //, since only // is special.
3142
3143 2012-02-04  Bruno Haible  <bruno@clisp.org>
3144
3145         ioctl: Fix test failure on native Windows.
3146         * lib/ioctl.c: Include msvc-nothrow.h.
3147         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3148
3149 2012-02-04  Bruno Haible  <bruno@clisp.org>
3150
3151         fsync: Avoid test failure on native Windows.
3152         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3153         read-only.
3154
3155 2012-02-04  Bruno Haible  <bruno@clisp.org>
3156
3157         sys_select: Avoid syntax error on OpenBSD 5.0.
3158         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3159         currently being included, just include the system's <sys/select.h>.
3160
3161 2012-02-04  Bruno Haible  <bruno@clisp.org>
3162
3163         sys_select: Avoid syntax error on OpenBSD 5.0.
3164         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3165         <sys/select.h>, not before.
3166         Reported by Jiri B <jirib@devio.us>.
3167
3168 2012-02-04  Bruno Haible  <bruno@clisp.org>
3169
3170         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3171         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3172         global variables.
3173         * tests/test-get-rusage-data.c (main): Likewise.
3174         Reported by Jim Meyering.
3175
3176 2012-02-04  Bruno Haible  <bruno@clisp.org>
3177
3178         stdioext: Fix last commit.
3179         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3180
3181 2012-02-03  Bruno Haible  <bruno@clisp.org>
3182
3183         stdioext: Add tentative support for Plan9.
3184         * lib/stdio-impl.h: Include <errno.h>.
3185         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3186         * lib/freadable.c (freadable): Likewise.
3187         * lib/fwritable.c (fwritable): Likewise.
3188         * lib/fbufmode.c (fbufmode): Likewise.
3189         * lib/freading.c (freading): Likewise.
3190         * lib/fwriting.c (fwriting): Likewise.
3191         * lib/freadptr.c (freadptr): Likewise.
3192         * lib/freadseek.c (freadptrinc): Likewise.
3193         * lib/freadahead.c (freadahead): Likewise.
3194         * lib/fpurge.c (fpurge): Likewise.
3195         * lib/fseeko.c (rpl_fseeko): Likewise.
3196         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3197         Reported by Jens Staal <staal1978@gmail.com>.
3198
3199 2012-02-02  Jim Meyering  <meyering@redhat.com>
3200
3201         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3202         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3203         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3204         not even to try to add the attribute.  Instead, add a pragma to suppress
3205         the suggestion/warning.
3206
3207 2012-01-31  Karl Berry  <karl@gnu.org>
3208
3209         setstate doc: typo.
3210         * doc/posix-functions/setstate.texi (setstate): { not (.
3211
3212 2012-01-31  Bruno Haible  <bruno@clisp.org>
3213
3214         popen: Make more robust on Windows.
3215         * lib/popen.c: On native Windows, use the _popen based code even if
3216         HAVE_POPEN is set.
3217         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3218         environment variable on native Windows.
3219
3220 2012-01-30  Bruno Haible  <bruno@clisp.org>
3221
3222         pclose: Fix typo.
3223         * lib/stdio.in.h (pclose): Fix typo in warning message.
3224
3225 2012-01-30  Bruno Haible  <bruno@clisp.org>
3226
3227         doc about getlogin_r, setstate.
3228         * doc/posix-functions/getlogin_r.texi: List the incompatible
3229         declaration problem under "not fixed by gnulib".
3230         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3231         problem on Solaris 11 and other platforms.
3232
3233 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3234             Bruno Haible  <bruno@clisp.org>
3235
3236         poll tests: Make test more robust.
3237         * tests/test-poll.c: Include macros.h.
3238         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3239         return value of various I/O operations.
3240         * modules/poll-tests (Files): Add tests/macros.h.
3241
3242 2012-01-30  Bruno Haible  <bruno@clisp.org>
3243
3244         sys_stat: Fix support for mingw64 and MSVC.
3245         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3246         header files already do it.
3247         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3248         stat itself.
3249         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3250
3251 2012-01-30  Bruno Haible  <bruno@clisp.org>
3252
3253         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3254         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3255         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3256
3257 2012-01-29  Bruno Haible  <bruno@clisp.org>
3258
3259         quotearg: Fix test failure on MacOS X 10.5.
3260         * tests/test-quotearg-simple.c: Include localcharset.h.
3261         (main): If the locale encoding is not ASCII, bypass the tests of
3262         locale_quoting_style and clocale_quoting_style.
3263         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3264
3265 2012-01-29  Jim Meyering  <meyering@redhat.com>
3266
3267         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3268         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3269         detect uses of canonicalize_file_name.
3270
3271 2012-01-28  Bruno Haible  <bruno@clisp.org>
3272
3273         test-framework-sh: Fix test failure with AIX 7.1 diff.
3274         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3275         in column 1, like 'diff -c' does.
3276         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3277         whether 'diff -u' is used. Instead, test whether the output contains
3278         some '@' character.
3279
3280 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3281
3282         strtoimax: eliminate need for stdint.h, inttypes.h checks
3283         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3284         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3285         the prerequisites for a recently-introduced strtoimax test.
3286         I guess this might cause strtoimax to be replaced when not
3287         strictly necessary on older hosts, but this shouldn't introduce
3288         any bugs and it should make Emacs 'configure' faster on typical
3289         modern hosts.  Problem discovered when importing the latest gnulib
3290         to an Emacs test version.
3291         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3292
3293 2012-01-28  Bruno Haible  <bruno@clisp.org>
3294
3295         sys_time: Override 'struct timeval' on some native Windows platforms.
3296         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3297         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3298         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3299         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3300         needs to be overridden.
3301         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3302         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3303         * tests/test-sys_select.c: Check that the tv_sec member has the same
3304         size as a 'time_t'.
3305         * tests/test-sys_time.c: Likewise.
3306         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3307         is set, set also REPLACE_GETTIMEOFDAY.
3308         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3309         convert the resulting 'struct timeval' before returning.
3310         * lib/select.c: Include <sys/time.h>.
3311         (select, timeval): Undefine at the right place.
3312         * modules/select (Depends-on): Add sys_time.
3313         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3314         some Windows platforms.
3315         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3316
3317 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3318
3319         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3320         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3321         an integer.
3322         * lib/fcntl.c (dupfd): Likewise.
3323         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3324
3325 2012-01-28  Bruno Haible  <bruno@clisp.org>
3326
3327         fcntl: Avoid compilation error on native Windows.
3328         * modules/fcntl (Depends-on): Add 'close'.
3329
3330 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3331
3332         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3333         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3334         pointer to an integer.
3335         * lib/poll.c (IsConsoleHandle): Likewise.
3336         * lib/isatty.c (IsConsoleHandle): Likewise.
3337
3338 2012-01-28  Jim Meyering  <meyering@redhat.com>
3339
3340         doc: clarify README-release
3341         * top/README-release: Clarify: you should make a point to have
3342         the latest stable versions of build tools in your PATH, and the
3343         reference to buildreq is solely for its list of tool names, not
3344         for its minimal-functional version numbers.
3345         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3346
3347         maint.mk: use more readable (yet functionally equivalent) quoting
3348         It is common to quote a single quote in a single quoted string like
3349         this:  '...'\''...'.  Unless you know the idiom, that looks like
3350         gibberish, so prefer to double-quote the string when possible.
3351         Then you can use a more readable, lone single quote: "...'..."
3352         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3353         "don't" is more readable than the equivalent 'don'\''t'.
3354         (sc_cast_of_x_alloc_return_value): Likewise.
3355         (sc_cast_of_alloca_return_value): Likewise.
3356         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3357         rather than '\'':'\''.
3358
3359 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3360
3361         stdalign: relax _Alignof and tighten _Alignas test
3362         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3363         as it was too strict: alignof must divide offsetof, but it need
3364         not equal offsetof.  Inspired by Joseph S. Myers's comment
3365         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3366         Conversely, tighten the _Alignas test a bit, as the resulting
3367         alignment must be exactly 8.
3368
3369 2012-01-27  Bruno Haible  <bruno@clisp.org>
3370
3371         stdalign: Document the last change.
3372         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3373
3374 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3375
3376         stdalign: check that alignof and offsetof are consistent
3377         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3378         Problem reported for gnulib by Richard W.M. Jones in
3379         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3380
3381 2012-01-27  Jim Meyering  <meyering@redhat.com>
3382
3383         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3384         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3385         convert a sequence with gaps to the minimal containing range.
3386         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3387         * tests/test-update-copyright.sh: Test for this.
3388         The FSF confirmed it is ok to do this, assuming there is at
3389         least one significant change per year in the affected range:
3390         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3391
3392 2012-01-26  Bruno Haible  <bruno@clisp.org>
3393
3394         pipe2: refine doc about thread-safety
3395         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3396         multithread-safety problem.
3397         * doc/glibc-functions/accept4.texi: Likewise.
3398
3399 2012-01-26  Bruno Haible  <bruno@clisp.org>
3400
3401         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3402         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3403         In the test program, include <fcntl.h>, for O_RDONLY.
3404
3405 2012-01-26  Eric Blake  <eblake@redhat.com>
3406
3407         pipe2: document lack of thread-safety in replacement
3408         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3409         issue in replacement.
3410         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3411         Based on a report by Eric Wong.
3412
3413 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3414             Bruno Haible  <bruno@clisp.org>
3415
3416         malloca: Avoid warnings on x86_64 mingw64.
3417         * lib/malloca.c: Include <stdint.h>.
3418         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3419         * modules/malloca (Depends-on): Add stdint.
3420         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3421
3422 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3423
3424         obstack: remove __STDC__ conditionals
3425         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3426         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3427         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3428         m4/include_next.m4 as the only gnulib-maintained places that still
3429         refer to __STDC__.
3430
3431 2012-01-24  Bruno Haible  <bruno@clisp.org>
3432
3433         havelib: Modern quoting.
3434         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3435         the recent change to the GNU coding standards.
3436
3437 2012-01-24  Bruno Haible  <bruno@clisp.org>
3438
3439         stdint: Improve support for Android.
3440         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3441         Reported by Simon Josefsson <simon@josefsson.org>.
3442
3443 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3444
3445         doc: omit trailing empty lines from INSTALL etc.
3446         * doc/Makefile (INSTALL): Omit trailing empty lines.
3447         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3448         omit trailing empty lines.  This simplifies the build procedure.
3449
3450 2012-01-23  Jim Meyering  <meyering@redhat.com>
3451
3452         tests: avoid spurious warnings about gl_sockets_startup
3453         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3454         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3455         reporting a "statement with no effect".
3456         * tests/test-accept.c (main): Mark as "(void)".
3457         * tests/test-accept4.c (main): Likewise.
3458         * tests/test-bind.c (main): Likewise.
3459         * tests/test-connect.c (main): Likewise.
3460         * tests/test-getpeername.c (main): Likewise.
3461         * tests/test-getsockname.c (main): Likewise.
3462         * tests/test-getsockopt.c (main): Likewise.
3463         * tests/test-listen.c (main): Likewise.
3464         * tests/test-recv.c (main): Likewise.
3465         * tests/test-recvfrom.c (main): Likewise.
3466         * tests/test-send.c (main): Likewise.
3467         * tests/test-sendto.c (main): Likewise.
3468         * tests/test-setsockopt.c (main): Likewise.
3469         * tests/test-shutdown.c (main): Likewise.
3470
3471 2012-01-21  Bruno Haible  <bruno@clisp.org>
3472
3473         locale-fr.m4: Fix for Android.
3474         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3475         failure of the test program on Bionic libc.
3476
3477 2012-01-21  Jim Meyering  <meyering@redhat.com>
3478
3479         bootstrap: fail when bootstrap_post_import_hook fails
3480         Otherwise, it's far too easy to miss diagnostics emitted
3481         between gnulib-tool's output and that of running configure.
3482         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3483
3484 2012-01-17  Jim Meyering  <meyering@redhat.com>
3485
3486         maint: enable sc_trailing_blank
3487         * build-aux/pmccabe.css: Remove trailing blanks.
3488         * doc/acl-cygwin.txt: Likewise.
3489         * doc/gnu-oids.texi: Likewise
3490         * cfg.mk: Enable sc_trailing_blank.
3491         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3492
3493 2012-01-17  Jim Meyering  <meyering@redhat.com>
3494
3495         maint: enable sc_prohibit_openat_without_use
3496         * cfg.mk: Enable sc_prohibit_openat_without_use.
3497         Exempt lib/selinux-at.c.
3498
3499 2012-01-17  Jim Meyering  <meyering@redhat.com>
3500
3501         maint: enable sc_prohibit_cloexec_without_use
3502         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3503         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3504
3505 2012-01-17  Jim Meyering  <meyering@redhat.com>
3506
3507         maint: enable sc_prohibit_intprops_without_use
3508         * cfg.mk: Enable sc_prohibit_intprops_without_use
3509         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3510
3511 2012-01-17  Jim Meyering  <meyering@redhat.com>
3512
3513         maint: enable sc_prohibit_hash_pjw_without_use
3514         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3515         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3516         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3517         following " (".
3518
3519 2012-01-17  Jim Meyering  <meyering@redhat.com>
3520
3521         maint: enable double-word-prohibiting rule
3522         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3523         Exempt three files.
3524
3525 2012-01-17  Jim Meyering  <meyering@redhat.com>
3526
3527         maint: remove empty lines at EOF, but excluding modules/*
3528         Apply syntax rules at home as well as abroad.  Most changes
3529         were induced by running this:
3530           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3531             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3532             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3533         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3534         Exempt modules/* and two binary files.
3535         Also exempt doc/INSTALL*, per request from Bruno Haible.
3536         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3537         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3538         * doc/Copyright/request-assign.future: Likewise.
3539         * doc/Copyright/request-disclaim.changes: Likewise.
3540         * doc/INSTALL: Likewise.
3541         * doc/INSTALL.ISO: Likewise.
3542         * doc/INSTALL.UTF-8: Likewise.
3543         * doc/acl-cygwin.txt: Likewise.
3544         * doc/acl-resources.txt: Likewise.
3545         * doc/fdl-1.2.texi: Likewise.
3546         * doc/fdl-1.3.texi: Likewise.
3547         * doc/fdl.texi: Likewise.
3548         * lib/argp-pin.c: Likewise.
3549         * lib/round.c: Likewise.
3550         * lib/unicase/u16-totitle.c: Likewise.
3551         * lib/unictype/block_test.c: Likewise.
3552         * lib/uninorm/canonical-decomposition.c: Likewise.
3553         * m4/README: Likewise.
3554         * m4/relocatable-lib.m4: Likewise.
3555         * tests/test-isnand-nolibm.c: Likewise.
3556         * tests/test-isnand.c: Likewise.
3557         * tests/uninorm/NormalizationTest.txt: Likewise.
3558
3559 2012-01-17  Jim Meyering  <meyering@redhat.com>
3560
3561         maint: add framework to run syntax-check rules against gnulib sources
3562         * cfg.mk: New file, to disable all currently-failing tests.
3563         We'll enable them one by one, as they are made to pass.
3564         * Makefile (sc_maint): New rule.
3565
3566 2012-01-21  Bruno Haible  <bruno@clisp.org>
3567
3568         stdint: Add support for Android.
3569         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3570         include the system's <stdint.h>.
3571         Reported by Simon Josefsson <simon@josefsson.org>.
3572
3573 2012-01-19  Jim Meyering  <meyering@redhat.com>
3574
3575         bootstrap: add bootstrap_post_import_hook
3576         Bison does still need something like the gnulib_mk_hook whose
3577         invocation I had to remove along with slurp in commit 767ccd40.
3578         Technically, we could get along without it, but doing so would
3579         have required living with a warning and a mandatory post-bootstrap
3580         automake rerun.
3581         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3582         (bootstrap_post_import_hook): New function.
3583         Invoke it after gnulib-tool --import and before autoreconf.
3584
3585 2012-01-18  Jim Meyering  <meyering@redhat.com>
3586
3587         gitlog-to-changelog: don't use "no_"-prefixed variable name
3588         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3589         to enable both --cluster and --no-cluster.  Change variable name,
3590         s/\$no_cluster/$cluster/, and reverse usage to match.
3591
3592         gitlog-to-changelog: use "||", not "or" in expressions
3593         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3594         expressions.
3595
3596 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3597
3598         gitlog-to-changelog: new option --no-cluster
3599         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3600         clustering of adjacent commit messages.
3601
3602 2012-01-17  Jim Meyering  <meyering@redhat.com>
3603
3604         maint: spell file systems with two words, not one
3605         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3606         two words, not one.
3607
3608 2012-01-16  Jim Meyering  <meyering@redhat.com>
3609
3610         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3611         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3612
3613 2012-01-16  Eric Blake  <eblake@redhat.com>
3614
3615         bootstrap: cater to autoconf 2.59
3616         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3617         is not available.
3618
3619         bootstrap: properly check for libtool
3620         * build-aux/bootstrap (libtoolize): Also run libtool when older
3621         usage is detected.
3622
3623 2012-01-15  Bruno Haible  <bruno@clisp.org>
3624
3625         Improve support for MSVC 9.
3626         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3627         clashes on MSVC.
3628         * lib/fcntl.in.h: Likewise.
3629         * lib/stdlib.in.h: Likewise.
3630         * lib/sys_stat.in.h: Likewise.
3631
3632 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3633
3634         gnupload: we hold the master copy of this script now
3635         For motivation and more information, see:
3636         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3637         * build-aux/gnupload: Make it clear in the heading comments that the
3638         master copy of this file is maintained by gnulib.  Since we are at
3639         it, bump its copyright year and ...
3640         ($scriptversion): ... the date in its version.
3641         ($usage): Patches and bug reports should be sent to the gnulib list,
3642         not the automake one.
3643         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3644         anymore.
3645
3646 2012-01-15  Bruno Haible  <bruno@clisp.org>
3647
3648         Fix module 'random'.
3649         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3650         initstate, setstate are declared.
3651
3652 2012-01-14  Bruno Haible  <bruno@clisp.org>
3653
3654         Tests for module 'random'.
3655         * modules/random-tests: New file.
3656         * tests/test-random.c: New file, based on tests/test-random_r.c.
3657
3658         New module 'random'.
3659         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3660         declarations.
3661         * lib/random.c: New file, based on glibc/stdlib/random.c.
3662         * m4/random.m4: New file.
3663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3664         HAVE_RANDOM.
3665         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3666         * modules/random: New file.
3667         * config/srclist.txt: Add an entry for random.c.
3668         * doc/posix-functions/random.texi: Mention the 'random' module.
3669         * doc/posix-functions/initstate.texi: Likewise.
3670         * doc/posix-functions/setstate.texi: Likewise.
3671         * doc/posix-functions/srandom.texi: Likewise.
3672
3673 2012-01-12  Bruno Haible  <bruno@clisp.org>
3674
3675         random_r: Use common idioms.
3676         * lib/random_r.c: Include <stdlib.h> first.
3677
3678         random_r: Override incompatible API on AIX, OSF/1.
3679         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3680         Override the system function if REPLACE_RANDOM_R is 1.
3681         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3682         and OSF/1, set REPLACE_RANDOM_R.
3683         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3684         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3685         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3686         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3687         * doc/glibc-functions/random_r.texi: Likewise.
3688         * doc/glibc-functions/setstate_r.texi: Likewise.
3689
3690         random_r: Support for MSVC 9.
3691         * lib/random_r.c: Include stdint.h, not inttypes.h.
3692
3693 2012-01-12  Eric Blake  <eblake@redhat.com>
3694
3695         inet_ntop: guard extra work by IF_LINT
3696         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3697         better code generation when not checking for warnings.
3698         Suggested by Paul Eggert and Jim Meyering.
3699
3700         strptime: fix regression on mingw
3701         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3702         Fix regression.  Reported by Bruno Haible.
3703
3704 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3705             Bruno Haible  <bruno@clisp.org>
3706
3707         copy-file: add error-code-returning variant.
3708         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3709         (qcopy_file_preserving): New declaration.
3710         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3711         copy_file_preserving. Change return type to 'int'. Don't emit an error
3712         message here.
3713         (copy_file_preserving): New function.
3714         * tests/test-copy-file.c: Include <stdlib.h>.
3715         (main): Test qcopy_file_preserving if the environment variable
3716         NO_STDERR_OUTPUT is set.
3717         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3718         with NO_STDERR_OUTPUT
3719         * tests/test-copy-file-2.sh: Likewise.
3720
3721 2012-01-10  Bruno Haible  <bruno@clisp.org>
3722
3723         copy-file: Use 'quote' module consistently.
3724         * lib/copy-file.c (copy_file_preserving): Use quote().
3725
3726         copy-file: Refactor.
3727         * lib/copy-file.c: Include quote.h.
3728         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3729         message here.
3730         * modules/copy-file (Depends-on): Add quote.
3731
3732         acl: Export qcopy_acl.
3733         * lib/acl.h (qcopy_acl): New declaration.
3734         * lib/copy-acl.c (qcopy_acl): Make non-static.
3735
3736         acl: Rename a local variable.
3737         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3738
3739         acl: Align return values of copy_acl and qcopy_acl.
3740         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3741         maybe < -1.
3742
3743 2012-01-11  Eric Blake  <eblake@redhat.com>
3744
3745         strptime: silence gcc warnings
3746         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3747         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3748         Reported by Daniel P. Berrange.
3749
3750         inet_ntop: silence gcc warning
3751         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3752         Reported by Daniel P. Berrange.
3753
3754 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3755
3756         getloadavg test: skip the test on GNU/Linux without /proc mounted
3757         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3758         file.  When /proc is not mounted, it always fails with ENOENT.
3759         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3760         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3761
3762 2012-01-10  Bruno Haible  <bruno@clisp.org>
3763
3764         regex: Avoid link error on MSVC 9.
3765         * modules/regex (Depends-on): Add wctype.
3766
3767 2012-01-10  Bruno Haible  <bruno@clisp.org>
3768
3769         doc: Mention --with-tests option.
3770         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3771         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3772         --with-tests.
3773         Reported by Reuben Thomas.
3774
3775 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3776
3777         users.txt: order package names lexicographically.
3778         * users.txt: Order package names lexicographically.
3779
3780 2012-01-10  Jim Meyering  <meyering@redhat.com>
3781
3782         maint.mk: fix description in comment
3783         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3784
3785         ignore-value: remove deprecated ignore_ptr function
3786         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3787         * NEWS: Note this.
3788
3789 2012-01-09  Jim Meyering  <meyering@redhat.com>
3790
3791         test-init.sh: avoid a subshell
3792         * tests/test-init.sh: Remove protective subshell.
3793         Suggested by Bernhard Voelker.  While a subshell is normally
3794         required to protect against older shells (Solaris, FreeBSD) that
3795         warn about a missing program before performing redirection, the
3796         shell-selection tests performed by init.sh probably exclude any
3797         offending shell.
3798
3799 2012-01-08  Bruno Haible  <bruno@clisp.org>
3800
3801         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3802         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3803         variable.
3804
3805 2012-01-08  Bruno Haible  <bruno@clisp.org>
3806
3807         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3808         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3809         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3810         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3811         macro.
3812         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3813         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3814         * lib/spawn_faction_addopen.c: Add workaround implementation if
3815         HAVE_WORKING_POSIX_SPAWN.
3816         * modules/spawn (Makefile): Substitute
3817         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3818         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3819         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3820         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3821         (Depends-on): Update conditions.
3822         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3823         the Solaris 11 bug.
3824
3825 2012-01-08  Bruno Haible  <bruno@clisp.org>
3826
3827         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
3828         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3829         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3830         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
3831         macro.
3832         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
3833         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3834         * lib/spawn_faction_adddup2.c: Add workaround implementation if
3835         HAVE_WORKING_POSIX_SPAWN.
3836         * modules/spawn (Makefile): Substitute
3837         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3838         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
3839         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
3840         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3841         (Depends-on): Update conditions.
3842         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
3843         the Solaris 11 bug.
3844
3845 2012-01-08  Bruno Haible  <bruno@clisp.org>
3846
3847         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
3848         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3849         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3850         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
3851         HAVE_WORKING_POSIX_SPAWN.
3852         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
3853         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
3854         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3855         * lib/spawn_faction_addclose.c: Add workaround implementation if
3856         HAVE_WORKING_POSIX_SPAWN.
3857         * modules/spawn (Makefile): Substitute
3858         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3859         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
3860         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
3861         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3862         (Depends-on): Update conditions.
3863         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3864         the Solaris 11 bug.
3865
3866 2012-01-08  Bruno Haible  <bruno@clisp.org>
3867
3868         doc: Update for Solaris 11 2011-11.
3869         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
3870         * m4/printf.m4: Update comments.
3871
3872 2012-01-08  Bruno Haible  <bruno@clisp.org>
3873
3874         mktime: Avoid compilation error on Solaris 11.
3875         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
3876
3877 2012-01-08  Bruno Haible  <bruno@clisp.org>
3878
3879         doc: Small fix.
3880         * doc/posix-headers/nl_types.texi: Correct platforms list.
3881
3882 2012-01-08  Simon Josefsson  <simon@josefsson.org>
3883
3884         Add lgpl-3.0 module.
3885         * MODULES.html.sh (Support for building documentation): Add
3886         lgpl-3.0.
3887         * modules/lgpl-3.0: New file.
3888
3889 2012-01-08  Jim Meyering  <meyering@redhat.com>
3890
3891         select.c: indent with spaces, not TABs
3892         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
3893
3894 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3895
3896         quotearg: do not use grave accent for left quote
3897         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
3898         locale_quoting_style.
3899         (quotearg_buffer_restyled): Fix example.
3900         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
3901
3902 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3903
3904         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
3905         Most programs do not have translation catalogs for English and much
3906         less separate catalogs for British and American English.  Drop the
3907         suggestion to translators about these two, and provide it
3908         automatically for Unicode locales.  Like most programs, even those
3909         using American English, we use single quotation marks.  This conflicts
3910         with the American typographic convention, but works better when you
3911         cite the entire error message within double quotes.  It also tries not
3912         to clash with established practice and with what non-gnulib programs
3913         will usually do.
3914         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
3915         using an UTF-8 or GB-18030 locale.  The list of other locales with
3916         quotes was provided by Bruno Haible.
3917         (quotearg_buffer_restyled): Adjust instructions to translators.
3918         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
3919         text, since this would be wrong when using Unicode.
3920         * modules/quotearg: Depend on c-strcaseeq.
3921
3922 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3923
3924         quotearg: fix Wikipedia link
3925         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
3926
3927 2012-01-07  Simon Josefsson  <simon@josefsson.org>
3928
3929         Fix for mingw with MSVC9.
3930         * m4/ld-version-script.m4: Check that compiler rejects version
3931         scripts with syntax errors.  Reported by Bruno Haible
3932         <bruno@clisp.org>.
3933
3934 2012-01-06  Bruno Haible  <bruno@clisp.org>
3935
3936         Talk about "native Windows API", not "Woe32".
3937         * lib/accept4.c: Update comments to mention native Windows.
3938         * lib/execute.c: Likewise.
3939         * lib/fatal-signal.c: Likewise.
3940         * lib/localcharset.c: Likewise.
3941         * lib/nanosleep.c: Likewise.
3942         * lib/nl_langinfo.c: Likewise.
3943         * lib/pclose.c: Likewise.
3944         * lib/pipe-filter-gi.c: Likewise.
3945         * lib/pipe-filter-ii.c: Likewise.
3946         * lib/pipe.c: Likewise.
3947         * lib/pipe2.c: Likewise.
3948         * lib/popen.c: Likewise.
3949         * lib/progreloc.c: Likewise.
3950         * lib/relocatable.c: Likewise.
3951         * lib/sigaction.c: Likewise.
3952         * lib/sigprocmask.c: Likewise.
3953         * lib/spawn-pipe.h: Likewise.
3954         * lib/spawn-pipe.c: Likewise.
3955         * lib/spawni.c: Likewise.
3956         * lib/stat-time.h: Likewise.
3957         * lib/w32spawn.h: Likewise.
3958         * tests/test-isatty.c: Likewise.
3959         * lib/config.charset: More comments.
3960         * doc/gnulib-intro.texi: Mention native Windows.
3961         * doc/posix-functions/_Exit_C99.texi: Likewise.
3962         * doc/posix-headers/fcntl.texi: Likewise.
3963
3964 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
3965
3966         argp: Avoid crash if translator uses % characters in a translation.
3967         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
3968         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3969
3970 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3971
3972         doc: C11 and C++11 are now official
3973         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
3974         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
3975         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
3976         * modules/stdalign:
3977         Replace references to draft C1X to C11, and to draft C++0X to C++11.
3978
3979 2012-01-06  Bruno Haible  <bruno@clisp.org>
3980
3981         uc-is-grapheme-break tests: Tweak.
3982         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
3983         message.
3984
3985 2012-01-06  Bruno Haible  <bruno@clisp.org>
3986
3987         test-init.sh: correct the test for diff -u
3988         * tests/test-init.sh: Also redirect stdout to /dev/null.
3989
3990 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3991
3992         Use ', not `, for quoting output.
3993         * build-aux/announce-gen (usage, sizes, print_news_deltas)
3994         (print_changelog_deltas, get_tool_versions, main program):
3995         * build-aux/git-version-gen:
3996         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
3997         * build-aux/move-if-change (help):
3998         * build-aux/useless-if-before-free (usage, main program):
3999         * check-module (parse_module_file, usage)
4000         (find_included_lib_files, check_module):
4001         * lib/argmatch.c (main) [TEST]:
4002         * lib/argp-help.c (_help):
4003         * lib/getopt1.c (main) [TEST]:
4004         * lib/git-merge-changelog.c (usage):
4005         * lib/xstrtol-error.c (xstrtol_error):
4006         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4007         * m4/argz.m4 (gl_FUNC_ARGZ):
4008         * m4/bison.m4 (gl_BISON):
4009         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4010         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4011         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4012         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4013         * m4/gc-random.m4 (gl_GC_RANDOM):
4014         * m4/intl.m4 (gt_CHECK_DECL):
4015         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4016         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4017         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4018         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4019         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4020         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4021         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4022         * tests/test-dirname.c (main):
4023         * tests/test-getpass.c (main):
4024         * tests/test-iconvme.c (main):
4025         * tests/test-parse-datetime.c (LOG):
4026         * tests/test-xstrtoimax.sh:
4027         * tests/test-xstrtol.sh:
4028         * tests/test-xstrtoll.sh:
4029         * tests/test-xstrtoumax.sh:
4030         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4031         * top/GNUmakefile (abort-due-to-no-makefile):
4032         Quote 'like this', not `like this', as per the recent change to
4033         the GNU coding standards.
4034
4035 2012-01-05  Bruno Haible  <bruno@clisp.org>
4036
4037         strtoimax: Don't force a replacement on systems where intmax_t is int.
4038         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4039         'intmax_t' is not larger than 'int'.
4040         Reported by Pádraig Brady <P@draigBrady.com>.
4041
4042 2012-01-05  Bruno Haible  <bruno@clisp.org>
4043
4044         doc: Mention NetBSD bugs.
4045         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4046         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4047
4048 2012-01-05  Bruno Haible  <bruno@clisp.org>
4049
4050         strtoumax tests: Enhance tests.
4051         * tests/test-strtoumax.c (main): Add tests for large values.
4052
4053 2012-01-05  Bruno Haible  <bruno@clisp.org>
4054
4055         strtoimax: Work around AIX 5.1 bug.
4056         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4057         definition.
4058         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4059         Set HAVE_STRTOIMAX.
4060         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4061         REPLACE_STRTOIMAX.
4062         * modules/inttypes-incomplete (Makefile.am): Substitute
4063         REPLACE_STRTOIMAX.
4064         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4065         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4066         (Depends-on): Update conditions.
4067         * tests/test-strtoimax.c (main): Add tests for large values.
4068         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4069
4070 2012-01-05  Bruno Haible  <bruno@clisp.org>
4071
4072         inttypes: Modernize.
4073         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4074         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4075         (Makefile.am): Update inttypes.h rule.
4076
4077 2012-01-05  Jim Meyering  <meyering@redhat.com>
4078
4079         init.sh: don't waste a subshell just to redirect stderr
4080         * tests/init.sh: In testing for diff -u and diff -c, use a
4081         stderr-redirecting exec inside `...` rather than a subshell.
4082
4083         test-init.sh: avoid failure on HP-UX 11.00
4084         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4085         resolves to diff -c or cmp.  Reported by Bruno Haible.
4086
4087 2012-01-05  Bruno Haible  <bruno@clisp.org>
4088
4089         Tests for module 'strtoull'.
4090         * modules/strtoull-tests: New file.
4091         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4092
4093 2012-01-05  Bruno Haible  <bruno@clisp.org>
4094
4095         Tests for module 'strtoll'.
4096         * modules/strtoll-tests: New file.
4097         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4098
4099 2012-01-05  Bruno Haible  <bruno@clisp.org>
4100
4101         Tests for module 'strtoul'.
4102         * modules/strtoul-tests: New file.
4103         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4104
4105 2012-01-05  Bruno Haible  <bruno@clisp.org>
4106
4107         Tests for module 'strtol'.
4108         * modules/strtol-tests: New file.
4109         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4110
4111 2012-01-04  Jim Meyering  <meyering@redhat.com>
4112
4113         test-init.sh: accommodate Solaris 5.10's different diff -u output
4114         * tests/test-init.sh: Also exempt @@ lines from the comparison
4115         of diff output, since Solaris 5.10 and GNU diff formats differ.
4116         Reported by Stefano Lattarini.
4117
4118 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4119
4120         test-posixtm: don't assume signed integer wraparound
4121         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4122         after signed integer overflow.  Inspired by (though it may not
4123         fix) Bruno Haible's bug report in
4124         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4125
4126         Spell out "Windows 9x" and "Windows XP".
4127         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4128         "Windows 9x" and "WinXP" with "Windows XP".
4129
4130 2012-01-04  Jim Meyering  <meyering@redhat.com>
4131
4132         test-vc-list-files-cvs.sh: remove obsolete comment
4133         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4134         double exit.  Now that's all encapsulated via skip_ and Exit.
4135
4136 2012-01-04  Bruno Haible  <bruno@clisp.org>
4137
4138         Talk about "native Windows API", not "Win32".
4139         * lib/classpath.c: Update comments to mention native Windows.
4140         * lib/csharpexec.c: Likewise.
4141         * lib/dup2.c: Likewise.
4142         * lib/error.c: Likewise.
4143         * lib/fcntl.c: Likewise.
4144         * lib/filename.h: Likewise.
4145         * lib/findprog.c: Likewise.
4146         * lib/get-rusage-as.c: Likewise.
4147         * lib/get-rusage-data.c: Likewise.
4148         * lib/getpagesize.c: Likewise.
4149         * lib/javaexec.c: Likewise.
4150         * lib/msvc-inval.c: Likewise.
4151         * lib/msvc-nothrow.c: Likewise.
4152         * lib/nanosleep.c: Likewise.
4153         * lib/nonblocking.c: Likewise.
4154         * lib/printf-parse.c: Likewise.
4155         * lib/setlocale.c: Likewise.
4156         * lib/sigaction.c: Likewise.
4157         * lib/strerror_r.c: Likewise.
4158         * lib/tmpdir.c: Likewise.
4159         * lib/vasnprintf.c: Likewise.
4160         * lib/w32spawn.h: Likewise.
4161         * lib/waitpid.c: Likewise.
4162         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4163         * m4/locale-ar.m4: Likewise.
4164         * m4/locale-fr.m4: Likewise.
4165         * m4/locale-ja.m4: Likewise.
4166         * m4/locale-tr.m4: Likewise.
4167         * m4/locale-zh.m4: Likewise.
4168         * m4/printf.m4: Likewise.
4169         * tests/test-cloexec.c: Likewise.
4170         * tests/test-copy-acl.sh: Likewise.
4171         * tests/test-copy-file.sh: Likewise.
4172         * tests/test-file-has-acl.sh: Likewise.
4173         * tests/test-set-mode-acl.sh: Likewise.
4174         * tests/test-dup-safer.c: Likewise.
4175         * tests/test-dup2.c: Likewise.
4176         * tests/test-dup3.c: Likewise.
4177         * tests/test-fcntl.c: Likewise.
4178         * tests/test-nonblocking-pipe.h: Likewise.
4179         * tests/test-nonblocking-socket.h: Likewise.
4180         * tests/test-pipe.c: Likewise.
4181         * tests/test-pipe2.c: Likewise.
4182         * tests/test-spawn-pipe-child.c: Likewise.
4183         * doc/acl-resources.txt: Likewise.
4184         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4185         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4186         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4187         * lib/localcharset.c: Update comments to mention native Windows.
4188         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4189         * lib/localename.c: Likewise.
4190         * lib/progreloc.c: Likewise.
4191         * lib/relocatable.c: Likewise.
4192         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4193         (windows_compute_revents): Renamed from win32_compute_revents.
4194         (windows_compute_revents_socket): Renamed from
4195         win32_compute_revents_socket.
4196         * lib/select.c: Update comments to mention native Windows.
4197         (windows_poll_handle): Renamed from win32_poll_handle.
4198         * m4/threadlib.m4: Update comments to mention native Windows.
4199         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4200         --enable-threads=windows instead of --enable-threads=win32. Set
4201         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4202         * lib/glthread/lock.h: Update comments to mention native Windows.
4203         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4204         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4205         USE_WIN32_THREADS.
4206         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4207         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4208         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4209         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4210         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4211         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4212         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4213         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4214         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4215         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4216         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4217         * tests/test-tls.c: Likewise.
4218         Rationale:
4219         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4220         on both 32-bit and 64-bit Windows systems.
4221         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4222         line of distinction is between "native Windows" on one side and Unix/
4223         POSIX systems on the other side. More details in
4224         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4225         Suggested by Paul Eggert.
4226
4227 2012-01-03  Bruno Haible  <bruno@clisp.org>
4228
4229         isatty: Support for MSVC 9.
4230         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4231         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4232         (_isatty_nothrow): New function.
4233         (isatty): Use it instead of _isatty.
4234         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4235         * lib/poll.c (IsConsoleHandle): Likewise.
4236         * lib/select.c (IsConsoleHandle): Likewise.
4237         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4238         (gl_PREREQ_ISATTY): New macro.
4239         * modules/isatty (Depends-on): Add msvc-inval.
4240         (configure.ac): Invoke gl_PREREQ_ISATTY.
4241
4242 2012-01-03  Jim Meyering  <meyering@redhat.com>
4243
4244         maint.mk: remove temporary transition aid from over 1.5 years ago
4245         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4246         purpose was to aid in the transition (avoiding silent malfunction)
4247         from that old name to the new _sc_search_regexp.  This shim was
4248         added by commit 219c504b.
4249
4250         init.sh: do not try to accommodate compare arguments starting with "-"
4251         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4252         compare arguments that start with "-".  Besides, we do not worry
4253         about this when invoking diff or cmp; why start now with sed?
4254         Using "--" to separate options from argument would trigger sed
4255         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4256         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4257
4258 2012-01-02  Bruno Haible  <bruno@clisp.org>
4259
4260         Enhance tests for module 'isatty'.
4261         * modules/isatty-tests (Depends-on): Add pipe-posix.
4262         * tests/test-isatty.c: Include <fcntl.h>.
4263         (DEV_NULL): New macro.
4264         (main): Test the resut of isatty() also on regular files, pipes, and
4265         /dev/null.
4266
4267         New module 'isatty'.
4268         * lib/unistd.in.h (isatty): New declaration.
4269         * lib/isatty.c: New file, based on an idea of
4270         Bastien Roucariès <roucaries.bastien@gmail.com>.
4271         * m4/isatty.m4: New file.
4272         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4273         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4274         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4275         REPLACE_ISATTY.
4276         * modules/isatty: New file.
4277         * doc/posix-functions/isatty.texi: Mention the new module.
4278         Suggested by Paolo Bonzini.
4279
4280 2012-01-02  Bruno Haible  <bruno@clisp.org>
4281
4282         canonicalize: Tweak 2011-12-29 commit.
4283         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4284         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4285
4286 2012-01-02  Jim Meyering  <meyering@redhat.com>
4287
4288         gitlog-to-changelog: describe input syntax in --help output
4289         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4290
4291         gitlog-to-changelog: fix typo in --help: show backslash before email @
4292         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4293         in sources, but not in actual output.
4294
4295 2011-12-30  Jim Meyering  <meyering@redhat.com>
4296
4297         gitlog-to-changelog: don't malfunction when name contains %-directive
4298         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4299         in a name string cause trouble.  E.g., with a user name of "%s",
4300         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4301
4302 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4303
4304         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4305         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4306         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4307         the "  (tiny change)" notation that is appended to the standard
4308         ChangeLog "date  name  email" header line.
4309
4310 2012-01-01  Jim Meyering  <meyering@redhat.com>
4311
4312         test-framework-sh: init.sh: fix "make dist" failure
4313         When using gnulib-tool's --with-tests option and any module that
4314         depends on test-framework-sh, "make dist" would fail due to the
4315         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4316         in the gltests directory, and not in the gllib/ directory.
4317         One way to work around that is to move the EXTRA_DIST += init.sh
4318         from the primary module to the -tests one:
4319         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4320         * modules/test-framework-sh (Makefile.am): ...not here.
4321         Reported by Tom G. Christensen in
4322         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4323
4324         version-etc: update copyright year reported by --version
4325         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4326
4327 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4328
4329         canonicalize: only stat() if required
4330         * lib/canonicalize.c (canonicalize_filename_mode):
4331         Avoid calling l?stat() when both CAN_MISSING,
4332         and CAN_NOLINKS are set, as we neither need
4333         to resolve symlinks or test component existence.
4334
4335 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4336
4337         doc: cover st_ino issues once; add OpenVMS etc.
4338         * doc/posix-functions/stat.texi (stat):
4339         * doc/posix-functions/lstat.texi (lstat):
4340         * doc/posix-functions/fstatat.texi (fstatat):
4341         * doc/posix-functions/fstat.texi (fstat):
4342         Move general 'struct stat' stuff to sys_stat.texi,
4343         leaving behind a pointer.
4344         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4345         Merge duplicate info about 'struct stat' problems into here.
4346         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4347         and suggest partial workarounds.
4348
4349         same-inode: port to OpenVMS
4350         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4351         three st_ino values.
4352
4353 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4354
4355         canonicalize: fix references to stat() and lstat()
4356         * lib/canonicalize.c (canonicalize_filename_mode):
4357         Ensure references always resolve to a replacement
4358         function if required (even via a macro).
4359
4360 2011-12-30  Jim Meyering  <meyering@redhat.com>
4361
4362         gitlog-to-changelog: remove a little duplication
4363         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4364         rather than twice.
4365
4366 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4367
4368         canonicalize: add support for not resolving symlinks
4369         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4370         indicate we don't want to follow symlinks.  Also
4371         provide CAN_MODE_MASK to aid setting these existing
4372         mutually exclusive values.
4373         * lib/canonicalize.c (canonicalize_filename_mode):
4374         Extract the flags from can_mode parameter, which
4375         are currently just used to select between stat()
4376         and lstat().  Also ensure that mutually exclusive
4377         values are flagged immediately as invalid.
4378         * tests/test-canonicalize.c: Verify symlinks are
4379         not followed, and that invalid flag combinations
4380         are diagnosed.
4381
4382 2011-12-25  Jim Meyering  <meyering@redhat.com>
4383
4384         gitlog-to-changelog: do not clump multi-paragraph entries
4385         Identical header lines (date,name,email+coauthors) are suppressed,
4386         thus putting all entries with those same characteristics under
4387         a single header.  However, when a log entry consists of two or
4388         more paragraphs, it may not be clear where it starts and ends.
4389         This change makes it so that such an entry is always separated
4390         from others by a header line, even when that header would
4391         otherwise be suppressed.
4392         * build-aux/gitlog-to-changelog: Implement the above.
4393         Inspired by a related request from Stefano Lattarini in
4394         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4395
4396 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4397
4398         announce-gen: fix `cmd' typo in diagnostic
4399         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4400         diagnostic: a missing '$' meant that the command was not output.
4401
4402 2011-12-23  Jim Meyering  <meyering@redhat.com>
4403
4404         test-framework-sh: distribute init.sh
4405         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4406         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4407         fail due to the lack of init.sh.
4408
4409         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4410         * modules/atexit-tests: Rather than listing tests/init.sh,
4411         now that there's a module for it, simply depend on that new module.
4412         * modules/closein-tests: Likewise.
4413         * modules/exclude-tests: Likewise.
4414         * modules/getcwd-tests: Likewise.
4415         * modules/perror-tests: Likewise.
4416         * modules/pread-tests: Likewise.
4417         * modules/pwrite-tests: Likewise.
4418         * modules/vc-list-files-tests: Likewise.
4419         * modules/verify-tests: Likewise.
4420         * modules/xalloc-die-tests: Likewise.
4421         * modules/xstrtoimax-tests: Likewise.
4422         * modules/xstrtol-tests: Likewise.
4423         * modules/xstrtoll-tests: Likewise.
4424         * modules/xstrtoumax-tests: Likewise.
4425         * modules/yesno-tests: Likewise.
4426
4427 2011-12-22  Jim Meyering  <meyering@redhat.com>
4428
4429         test-framework-sh: add minimal tests of init.sh's compare function
4430         * modules/test-framework-sh-tests: New file.
4431         * tests/test-init.sh: New file.
4432
4433         test-framework-sh: new module
4434         * modules/test-framework-sh: New file.
4435         * MODULES.html.sh (Support for maintaining and releasing projects):
4436         List it.
4437
4438         init.sh: do not emit simulated diff output to stderr
4439         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4440
4441 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4442
4443         .gitignore: ignore gnulib.dvi and regex.info
4444         * doc/.gitignore:add gnulib.dvi and regex.info
4445
4446 2011-12-22  Jim Meyering  <meyering@redhat.com>
4447
4448         init.sh: correct previous change
4449         * tests/init.sh (compare): My previous change was wrong.
4450         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4451
4452         init.sh: avoid unwarranted test failure when using "set -e"
4453         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4454         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4455         a use like "compare exp out" would get evoke an unconditional failure.
4456
4457 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4458
4459         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4460         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4461         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4462         autoreconf that did not.
4463         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4464         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4465
4466 2011-12-17  Jim Meyering  <meyering@redhat.com>
4467
4468         bootstrap: remove some now-unneeded code
4469         This script arose back when gnulib-tool was young.
4470         Since then, it has seen improvements that render much of this
4471         script unnecessary.  In particular, it can now make symlinks
4472         to the files it uses.  Also, I no longer see as much value in
4473         marking files as read-only via comments.
4474         If you relied on the symlink-creation feature of the preceding
4475         version of this script, you can get most of that functionality
4476         by adding the --symlink option to the definition of
4477         gnulib_tool_option_extras in your bootstrap.conf file.
4478         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4479         Run autopoint and libtoolize *before* gnulib-tool.
4480         After it, run an abbreviated autoreconf, rather than a loop around
4481         all tools.
4482         (slirp, bt_mark_as_generated): Remove functions.
4483
4484 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4485
4486         ftoastr: fix typo
4487         * lib/ftoastr.h: Fix misspelling in comment.
4488
4489 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4490
4491         * top/README-release: fix punctuation.
4492
4493 2011-12-17  Jim Meyering  <meyering@redhat.com>
4494
4495         bootstrap: correct the recent buildreq change
4496         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4497         had no effect.
4498         * build-aux/bootstrap (buildreq): Bracket each search term with
4499         "*...*", so that the shell "case" statement works as intended.
4500         Add comments.
4501
4502 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4503
4504         build: let bootstrap resort to wget when downloading .po files
4505         * build-aux/bootstrap (download_po_files): Fallback to wget when
4506         downloading the .po files via rsync fails.  This is necessary to
4507         bootstrap from behind a strict firewall.
4508
4509 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4510
4511         stdint: don't assume C++11 when compiling with g++
4512         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4514         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4515         work also in C++ before C++11, as that improperly inhibits
4516         generating a substitute stdint.h for that case.
4517
4518 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4519
4520         alloca: protect comment from gnulib-tool
4521         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4522         that gnulib-tool doesn't think it's a license, and munge it to
4523         say "GCC version 3".
4524
4525 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4526
4527         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4528         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4529         $(abs_top_builddir) instead of $(top_builddir).
4530
4531 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4532
4533         strftime-tests: also test nanoseconds
4534         * tests/test-strftime.c (T): Add a test of %N.
4535
4536 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4537
4538         inttypes, stdint: add C++11 support
4539         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4540         when including inttypes.h and stdint.h.  Support this change to
4541         the standard.
4542         * doc/posix-headers/inttypes.texi (inttypes.h):
4543         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4544         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4545         Define if not defined already, for the benefit of pre-C++11 hosts.
4546         Define the standard format macros (e.g., PRId8) always.
4547         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4548         Likewise, if __cpluspus.  Define the standard constant and limit
4549         macros (e.g., INT8_C, INT8_MAX) always.
4550         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4551         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4552         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4553         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4554         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4555         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4556         Likewise.
4557
4558 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4559
4560         nonblocking tests: Fix test failure on Linux/PPC.
4561         Suggested by Prerna Saxena in
4562         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4563         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4564         Set to 1100000.
4565
4566 2011-12-12  Jim Meyering  <meyering@redhat.com>
4567
4568         argmatch: don't hard-code `' when listing valid option arguments
4569         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4570         use the quote function to add quotes.  Use fputs rather than
4571         fprintf for the format string with no format directive.
4572
4573 2011-12-07  Eric Blake  <eblake@redhat.com>
4574
4575         bootstrap: detect tools required by gnulib-tool
4576         * build-aux/bootstrap (buildreq): Provide minimum implicit
4577         dependencies.
4578         * DEPENDENCIES: Mention patch as a prereq.
4579
4580 2011-12-04  Bruno Haible  <bruno@clisp.org>
4581
4582         sethostname: Port to Windows platforms.
4583         * lib/sethostname.c: Provide an alternate implementation for Windows
4584         platforms.
4585         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4586         (main): Skip the test if sethostname() fails with EPERM. On Windows
4587         platforms, don't check the result of gethostname().
4588
4589 2011-12-04  Bruno Haible  <bruno@clisp.org>
4590             Jim Meyering  <meyering@redhat.com>
4591
4592         tests: Avoid spurious error message on platforms without mktemp program.
4593         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4594
4595 2011-12-04  Bruno Haible  <bruno@clisp.org>
4596
4597         sethostname: Fix documentation.
4598         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4599         "not fixed" section.
4600
4601 2011-12-03  Bruno Haible  <bruno@clisp.org>
4602
4603         gnulib-tool: Verify that the License field is present and non-empty.
4604         * gnulib-tool (func_get_license_raw): New function, extracted from
4605         func_get_license.
4606         (func_get_license): Use it. Warn if the module is not a test module and
4607         has no license.
4608         Suggested by Jim Meyering.
4609
4610 2011-12-03  Bruno Haible  <bruno@clisp.org>
4611
4612         sethostname tests: Fix link error on mingw.
4613         * tests/test-sethostname1.c: New file, extracted from
4614         tests/test-sethostname.c.
4615         * tests/test-sethostname2.c: New file, extracted from
4616         tests/test-sethostname.c.
4617         * tests/test-sethostname.c: Remove file.
4618         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4619         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4620         (Depends-on): Add gethostname.
4621         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4622         Link the latter with $(GETHOSTNAME_LIB).
4623
4624         sethostname tests: Fix compilation error on mingw.
4625         * tests/test-sethostname.c: Don't include <sys/types.h>.
4626         (geteuid): Use a dummy value without uid_t.
4627         * modules/sethostname-tests (Depends-on): Remove sys_types.
4628
4629         sethostname tests: Avoid a gcc warning.
4630         * tests/test-sethostname.c (main): Remove an unused variable.
4631
4632         Tweak last commit.
4633         * modules/sethostname-tests (Files): Sort by decreasing importance.
4634         (configure.ac): Check for geteuid.
4635         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4636         the test when there's nothing to test. Drop an unnecessary cast.
4637         Improve an error message. Verify that the final sethostname() call
4638         succeeds.
4639
4640 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4641
4642         Add a test suite for the sethostname module.
4643         * modules/sethostname-tests: New file.  A test program
4644         for the sethostname module.
4645         * tests/test-sethostname.c: Likewise.
4646
4647 2011-12-03  Bruno Haible  <bruno@clisp.org>
4648
4649         Tweak last commit.
4650         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4651         Fix preprocessor directives indentation. Fix typos.
4652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4653         * modules/unistd (Makefile): Likewise.
4654
4655 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4656
4657         Integrate the sethostname module into unistd.
4658         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4659         into the unistd.h header.
4660         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4661         preprocessor directives.
4662         * modules/unistd: Setup the Makefile substitutions of the
4663         SETHOSTNAME preprocessor directives.
4664
4665 2011-12-03  Bruno Haible  <bruno@clisp.org>
4666
4667         Tweak last commit.
4668         * lib/sethostname.c: Don't include <string.h>.
4669         (sethostname): No need to copy the argument string to the stack. Don't
4670         call clearerr. Preserve errno when fprintf failed.
4671         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4672         Don't invoke AC_REPLACE_FUNCS.
4673         * modules/sethostname (Link): Remove empty section.
4674         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4675         failure problem.
4676
4677 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4678
4679         New module 'sethostname'.
4680         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4681         for systems that lack it.
4682         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4683         sethostname declaration and function.
4684         * modules/sethostname: New file.  Define the sethostname module.
4685
4686 2011-12-03  Bruno Haible  <bruno@clisp.org>
4687
4688         Tweak last commit.
4689         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4690
4691 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4692
4693         Split the HOST_NAME_MAX detection into a separate m4 macro.
4694         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4695         macro so it can be used by the pending sethostname module.
4696
4697 2011-12-03  Bruno Haible  <bruno@clisp.org>
4698
4699         Fix module descriptions syntax.
4700         * modules/argv-iter (License): Fix syntax.
4701         * modules/di-set (License): Likewise.
4702         * modules/ino-map (License): Likewise.
4703         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4704
4705 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4706
4707         stdalign: port to Clang 3.0
4708         Problem reported by Simon Josefsson in
4709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4710         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4711         which has <stdalign.h> but which does not define alignof.
4712         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4713
4714 2011-12-01  Eric Blake  <eblake@redhat.com>
4715
4716         mktempd: silence dd usage
4717         * build-aux/mktempd (rand_bytes): Silence dd.
4718
4719 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4720
4721         manywarnings: Don't mention gcc version in docstring.
4722         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4723         Jim Meyering <meyering@redhat.com>.
4724
4725 2011-11-30  Jim Meyering  <meyering@redhat.com>
4726
4727         hash: mark a few floating point constants with "f" suffix
4728         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4729         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4730         floating point constants with "f", since they're destined to be
4731         saved/used as "float"s.
4732
4733 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4734
4735         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4736         * tests/test-float.c (test_long_double): Correct and re-enable the
4737         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4738
4739 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4740
4741         Avoid subtracting two pointers that don't point into the same block.
4742         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4743         only pointers into the same memory block are subtracted. We cannot
4744         assume that sizeof (ptrdiff_t) == sizeof (void *).
4745
4746 2011-11-29  Eric Blake  <eblake@redhat.com>
4747
4748         maint.mk: add syntax check for use of compare from init.sh
4749         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4750         moved here from coreutils.
4751
4752         manywarnings: drop -Wunsuffixed-float-constants
4753         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4754         '1.0D', which is the only way to silence this warning for 'double'.
4755
4756 2011-11-29  Jim Meyering  <meyering@redhat.com>
4757
4758         hash: mark compute_bucket_size with the pure attribute
4759         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4760
4761         quotearg, propername: correct pragma guard expression
4762         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4763         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4764
4765 2011-11-28  Jim Meyering  <meyering@redhat.com>
4766
4767         propername: do not mark proper_name with the const attribute
4768         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4769         since it examines data pointed to by its parameter.
4770         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4771         the suggestion from -Wsuggest-attribute=const.
4772
4773         propername: mark one more function as const
4774         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4775
4776 2011-11-27  Jim Meyering  <meyering@redhat.com>
4777
4778         mark functions with const and pure attributes
4779
4780         Mark functions per suggestions from gcc-4.6 when using these options:
4781         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4782         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4783         Follow these guidelines: when possible, apply the attribute to
4784         an extern declaration, not to its definition.  Apply it to the
4785         definition only when the definition is static.
4786         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4787         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4788         * lib/base64.h (isbase64): Likewise.
4789         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4790         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4791         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4792         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4793         (c_tolower, c_toupper): Likewise.
4794         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4795         * lib/chdir-long.c (find_non_slash): Likewise.
4796         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4797         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4798         * lib/file-type.h (file_type): Likewise.
4799         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4800         * lib/filevercmp.c (verrevcmp): Likewise.
4801         * lib/freadahead.h (freadahead): Likewise.
4802         * lib/fts.c (fts_maxarglen): Likewise.
4803         * lib/hash-pjw.h (hash_pjw): Likewise.
4804         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4805         * lib/hash.c (is_prime, next_prime): Likewise.
4806         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4807         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4808         (hash_table_ok, hash_get_first, hash_string): Likewise.
4809         (compute_bucket_size): Likewise.
4810         * lib/i-ring.h (i_ring_empty): Likewise.
4811         * lib/isnan.c (isnanl): Likewise.
4812         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4813         * lib/memcasecmp.h (memcasecmp): Likewise.
4814         * lib/memchr2.h (memchr2): Likewise.
4815         * lib/memcmp2.h (memcmp2): Likewise.
4816         * lib/parse-datetime.y (lookup_zone): Likewise.
4817         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4818         [!WINDOWS_SOCKETS]: Likewise.
4819         * lib/strnlen1.h (strnlen1): Likewise.
4820         * lib/uniwidth.in.h (uc_width): Likewise.
4821         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4822         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4823         (quoting_options_from_style): Add a comment.
4824         * lib/propername.h (proper_name): Add a comment.
4825
4826 2011-11-27  Bruno Haible  <bruno@clisp.org>
4827
4828         Remove unused macros from !_LIBC code in glibc-borrowed files.
4829         * lib/fnmatch.c (STRCOLL): Remove macro.
4830         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
4831         * lib/glob.c (__stat, __readdir64): Remove macros.
4832         * lib/tempname.c (__open64, __xstat64): Remove macros.
4833         Suggested by Paul Eggert.
4834
4835 2011-11-27  Bruno Haible  <bruno@clisp.org>
4836
4837         getcwd: Fix link error on MSVC 9.
4838         * modules/getcwd (Depends-on): Add readdir, rewinddir.
4839
4840 2011-11-27  Bruno Haible  <bruno@clisp.org>
4841
4842         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
4843         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
4844         HAVE_OPENDIR is 0.
4845         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
4846         HAVE_CLOSEDIR is 0.
4847         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
4848         is 0.
4849         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
4850
4851 2011-11-27  Bruno Haible  <bruno@clisp.org>
4852
4853         getcwd: Fix bug from 2011-08-17.
4854         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
4855         platforms that need it.
4856         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
4857         code of 4 to be a failure, not a success. This ensures that
4858         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
4859
4860 2011-11-27  Bruno Haible  <bruno@clisp.org>
4861
4862         binary-io tests: Avoid test failure on mingw when libtool is used.
4863         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
4864         Don't verify the size of t-bin-out1.tmp here.
4865         * tests/test-binary-io.sh: Verify it here.
4866         Reported by Simon Josefsson.
4867
4868 2011-11-26  Bruno Haible  <bruno@clisp.org>
4869
4870         Fix conflict between two instantiations of module 'unistd'.
4871         * gnulib-tool (func_emit_autoconf_snippet): Substitute
4872         ${include_guard_prefix} also in the autoconf snippet.
4873         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
4874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
4875         GNULIB_UNISTD_H_GETOPT.
4876         * modules/getopt-posix (configure.ac): Set the
4877         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
4878         * modules/getopt-gnu (configure.ac): Likewise.
4879         * modules/unistd (Makefile.am): Change the substitution value of
4880         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
4881         Reported by Simon Josefsson.
4882
4883 2011-11-25  Bruno Haible  <bruno@clisp.org>
4884
4885         pagealign_alloc: Doc and comments.
4886         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
4887         module.
4888         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
4889
4890 2011-11-25  Jim Meyering  <meyering@redhat.com>
4891
4892         test-update-copyright.sh: avoid false-positive failure
4893         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
4894         around false positive failure on Cygwin/Windows.  The latter was
4895         matching erroneously-created files with names like
4896         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
4897
4898 2011-11-25  Simon Josefsson  <simon@josefsson.org>
4899
4900         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
4901         * m4/valgrind-tests.m4: Check that the parameters that will be
4902         used works, not just a subset of them.  Reported by Bruno Haible
4903         <bruno@clisp.org>.
4904
4905 2011-11-24  Jim Meyering  <meyering@redhat.com>
4906
4907         test-stdalign.c: comment out long double tests
4908         * tests/test-stdalign.c: Don't try to reduce alignment of long double
4909         variables.  That provokes errors like this from gcc-4.7.0 20111124:
4910         error: '_Alignas' specifiers cannot reduce alignment of \
4911         'static_longdouble_alignas'.
4912
4913 2011-11-22  Jim Meyering  <meyering@redhat.com>
4914
4915         init.sh: make "compare /dev/null FILE" output more readable
4916         * tests/init.sh (compare_): Document the preferred order of arguments.
4917         (emit_diff_u_header_): New function.
4918         (compare_dev_null_): Emit a simulated diff, rather than just the
4919         contents of the unexpected file.  Suggestion from Bruno Haible.
4920
4921 2011-11-21  Jim Meyering  <meyering@redhat.com>
4922             Eric Blake  <eblake@redhat.com>
4923
4924         init.sh: work around OSF/1 5.1's mishandling of /dev/null
4925         * tests/init.sh: Make our compare function slightly more portable.
4926         Reported by Bruno Haible in
4927         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
4928
4929 2011-11-21  Simon Josefsson  <simon@josefsson.org>
4930
4931         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
4932         before using it, in code that ends up in config.h.
4933
4934 2011-11-20  Bruno Haible  <bruno@clisp.org>
4935
4936         getcwd: Work around getcwd bug on AIX 5..7.
4937         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
4938         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
4939         Use a different value for gl_cv_func_getcwd_path_max. Move the
4940         definition of HAVE_PARTLY_WORKING_GETCWD from here...
4941         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
4942         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
4943         Define HAVE_MINIMALLY_WORKING_GETCWD.
4944         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
4945         where it is not even minimally working, that is, on AIX.
4946         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
4947         m4/getcwd-path-max.m4.
4948         (main): Update exit code computation.
4949         * doc/posix-functions/getcwd.texi: Mention list of platforms where
4950         getcwd does not handle long file names.
4951
4952 2011-11-20  Bruno Haible  <bruno@clisp.org>
4953
4954         getcwd: Fix bug from 2009-09-10.
4955         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
4956         like "no".
4957
4958 2011-11-20  Simon Josefsson  <simon@josefsson.org>
4959
4960         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
4961
4962 2011-11-20  Bruno Haible  <bruno@clisp.org>
4963
4964         fma tests: Avoid shadowing local variables.
4965         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
4966         expected.
4967
4968 2011-11-20  Bruno Haible  <bruno@clisp.org>
4969
4970         copysignf tests: Fix.
4971         * tests/test-copysignf.c: Fix signature check.
4972
4973 2011-11-20  Bruno Haible  <bruno@clisp.org>
4974
4975         fma: Remove unused code.
4976         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
4977         unused macros.
4978
4979 2011-11-20  Bruno Haible  <bruno@clisp.org>
4980
4981         sethostname: Fix doc about AIX.
4982         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
4983         sethostname; it has it.
4984
4985         sethostname: Mention more portability problems.
4986         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
4987         problem.
4988         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
4989
4990 2011-11-19  Bruno Haible  <bruno@clisp.org>
4991
4992         Depend on module fcntl-h when AT_FDCWD is used.
4993         * modules/utimens (Depends-on): Add fcntl-h.
4994         * modules/areadlinkat (Depends-on): Likewise.
4995         * modules/areadlinkat-with-size (Depends-on): Likewise.
4996         * modules/faccessat (Depends-on): Likewise.
4997         * modules/fchmodat (Depends-on): Likewise.
4998         * modules/fchownat (Depends-on): Likewise.
4999         * modules/getcwd (Depends-on): Likewise.
5000         * modules/mkdirat (Depends-on): Likewise.
5001         * modules/mkfifoat (Depends-on): Likewise.
5002         * modules/readlinkat (Depends-on): Likewise.
5003         * modules/symlinkat (Depends-on): Likewise.
5004         * modules/dup2-tests (Depends-on): Likewise.
5005         * modules/fdutimensat-tests (Depends-on): Likewise.
5006         * modules/futimens-tests (Depends-on): Likewise.
5007
5008 2011-11-19  Bruno Haible  <bruno@clisp.org>
5009
5010         euidaccess: Update a comment.
5011         * lib/euidaccess.c: Update comment about platforms with faccessat.
5012
5013 2011-11-19  Bruno Haible  <bruno@clisp.org>
5014
5015         openat: Fix file list.
5016         * modules/openat (Files): Remove lib/at-func.c.
5017
5018 2011-11-19  Bruno Haible  <bruno@clisp.org>
5019
5020         fstatat: Simplify.
5021         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5022         gnulib should define rpl_fstatat, there is a
5023         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5024
5025 2011-11-19  Bruno Haible  <bruno@clisp.org>
5026
5027         Ensure 'inline' can be used in tests/test-utimens-common.h.
5028         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5029         * modules/futimens-tests (configure.ac): Likewise.
5030         * modules/utimens-tests (configure.ac): Likewise.
5031         * modules/utimensat-tests (configure.ac): Likewise.
5032
5033 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5034
5035         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5036         not hash_insert0.
5037         (hash_insert_if_absent): Doc fix.
5038
5039 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5040
5041         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5042
5043 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5044
5045         test-getcwd: disambiguate exit status
5046         * tests/test-getcwd.c (test_long_name): Return 0..7.
5047         (main): Exit with an unambiguous exit status.  The old
5048         code yielded a mysterious mixture of two failure codes.
5049
5050         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5051         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5052         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5053         rpl_fstatat or fstatat.  This should fix the other problem
5054         reported by Kai Habel in
5055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5056         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5058         and I reproduced it on a Solaris 8 host we still have in production.
5059
5060 2011-11-18  Jim Meyering  <meyering@redhat.com>
5061
5062         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5063         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5064         Add a sentence to the comment.
5065         (hash_insert0): New function that simply calls hash_insert_if_absent.
5066         * lib/hash.h (hash_insert_if_absent): Declare it.
5067         (hash_insert0): Add deprecation attribute.
5068         (_GL_ATTRIBUTE_DEPRECATED): Define.
5069         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5070         not hash_insert0.
5071         * NEWS: Mention it, even though it's not really an incompatible change.
5072
5073 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5074
5075         openat: avoid compilation failure due to lack of <errno.h> inclusion
5076         * lib/openat.c: Include <errno.h>.
5077
5078 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5079
5080         * modules/getcwd (Depends-on): Add fdopendir.
5081         This fixes one of the two problems reported by Kai Habel in
5082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5083
5084         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5085         stdalign problem reported by Ian Beckwith in
5086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5087         * modules/crypto/gc-arcfour (Depends-on):
5088         Depend conditionally on crypto/arcfour.
5089         * modules/crypto/gc-arctwo (Depends-on):
5090         Depend conditionally on crypto/arctwo.
5091         * modules/crypto/gc-des (Depends-on):
5092         Depend conditionally on crypto/des.
5093         * modules/crypto/gc-hmac-md5 (Depends-on):
5094         Depend conditionally on crypto/hmac-md5.
5095         * modules/crypto/gc-hmac-sha1 (Depends-on):
5096         Depend conditionally on crypto/hmac-sha1.
5097         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5098         * modules/crypto/gc-md4 (Depends-on):
5099         Depend conditionally on crypto/md4.
5100         * modules/crypto/gc-md5 (Depends-on):
5101         Depend conditionally on crypto/md5.
5102         * modules/crypto/gc-rijndael (Depends-on):
5103         Depend conditionally on crypto/rijndael.
5104         * modules/crypto/gc-sha1 (Depends-on):
5105         Depend conditionally on crypto/sha1.
5106         * modules/crypto/gc-arcfour:
5107         * modules/crypto/gc-arctwo:
5108         * modules/crypto/gc-des:
5109         * modules/crypto/gc-hmac-md5:
5110         * modules/crypto/gc-hmac-sha1:
5111         * modules/crypto/gc-md2:
5112         * modules/crypto/gc-md4:
5113         * modules/crypto/gc-md5:
5114         * modules/crypto/gc-rijndael:
5115         * modules/crypto/gc-sha1:
5116         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5117         now that the conditional dependencies do the work for us.
5118
5119 2011-11-17  Jim Meyering  <meyering@redhat.com>
5120
5121         tests: factor st_ctime-comparison out of two headers
5122         * tests/test-utimens-common.h (ctime_compare): Define.
5123         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5124         * tests/test-lutimens.h (test_lutimens): Likewise.
5125         * tests/test-utimens.h (test_utimens): Likewise.
5126
5127         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5128         Invoke the test program via an init.sh-using wrapper.
5129         * tests/test-getcwd.sh: New file.
5130         * modules/getcwd-tests (Files): Add it.
5131         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5132
5133 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5134
5135         gitlog-to-changelog: support multi-author commits.
5136         The FSF cares about keeping track of all authors of patches to its
5137         projects, but Git doesn't provide obvious support for multi-author
5138         changesets. Consensus seems to be forming around the use of extra
5139         Signed-off-by inspired lines in the log message formatted as
5140         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5141         multi-author commits between version control systems.
5142         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5143         log message and output in standard ChangeLog multi-author format.
5144         Reported by Peter Rosin <peda@lysator.liu.se>
5145
5146 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5147             Bruno Haible  <bruno@clisp.org>
5148
5149         Fix some modules' file list.
5150         * modules/fstatat (Files): Add m4/lstat.m4.
5151         * modules/openat (Files): Likewise.
5152         * modules/unlinkat (Files): Likewise.
5153
5154 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5155
5156         maint.mk: fix tight-scope.mk generation in VPATH builds.
5157         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5158         reference with $(srcdir) so that the file is found correctly even
5159         when running `make syntax-check' in a VPATH build.
5160
5161 2011-11-13  Bruno Haible  <bruno@clisp.org>
5162             Jim Meyering  <meyering@redhat.com>
5163
5164         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5165         * tests/init.sh (compare): Remove "No differences encountered" or
5166         synonymous output from the 'diff' program.
5167
5168 2011-11-13  Bruno Haible  <bruno@clisp.org>
5169
5170         Makefile: Tweak indentation.
5171         * Makefile: Use tab as first character in every line that contains rule
5172         commands.
5173
5174 2011-11-13  Bruno Haible  <bruno@clisp.org>
5175
5176         Syntax check for copyright statements.
5177         * check-copyright: New file.
5178         * Makefile (sc_check_copyright): New rule.
5179
5180 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5181
5182         * build-aux/git-version-gen: Add --prefix to configure the tag
5183         match string.
5184
5185 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5186
5187         * build-aux/git-version-gen: Add --help and --version.
5188
5189 2011-11-12  Jim Meyering  <meyering@redhat.com>
5190
5191         revamp the other test-exclude?.sh scripts to use init.sh, too
5192         * tests/test-exclude1.sh: Use init.sh.
5193         * tests/test-exclude2.sh: Likewise.
5194         * tests/test-exclude3.sh: Likewise.
5195         * tests/test-exclude4.sh: Likewise.
5196         * tests/test-exclude5.sh: Likewise.
5197         * tests/test-exclude6.sh: Likewise.
5198         * tests/test-exclude7.sh: Likewise.
5199         * tests/test-exclude8.sh: Likewise.
5200         * modules/exclude-tests (Files): List init.sh.
5201
5202         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5203         These shell scripts ignored failure of the binary test-exclude,
5204         so making the latter return 77 didn't cause them to be skipped.
5205         * tests/test-exclude5.sh: Exit with test-exclude's error status
5206         when that program fails.  Revamp to use init.sh.
5207         * tests/test-exclude2.sh: Likewise.
5208
5209         test-exclude: fix a typo
5210         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5211
5212 2011-11-11  Bruno Haible  <bruno@clisp.org>
5213
5214         obstack: Fix compilation error on MSVC 9.
5215         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5216
5217 2011-11-11  Jim Meyering  <meyering@redhat.com>
5218
5219         test-exclude: skip tests rather than failing on deficient systems
5220         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5221         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5222         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5223         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5224
5225 2011-11-10  Bruno Haible  <bruno@clisp.org>
5226
5227         ptsname_r test: Avoid gcc warning on glibc systems.
5228         * tests/test-ptsname_r.c (null_ptr): New function.
5229         (test_errors): Use it.
5230
5231 2011-11-10  Bruno Haible  <bruno@clisp.org>
5232
5233         ptsname_r: Avoid compilation error on OSF/1 5.1.
5234         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5235         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5236         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5237         function is not declared or incompatibly declared.
5238         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5239         * modules/ptsname_r (Depends-on, configure.ac): Update.
5240         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5241
5242 2011-11-10  Bruno Haible  <bruno@clisp.org>
5243
5244         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5245         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5246         When cross-compiling, guess yes on all platforms except AIX.
5247         Reported by Ludovic Courtès <ludo@gnu.org>.
5248
5249 2011-11-09  Bruno Haible  <bruno@clisp.org>
5250
5251         ptsname_r tests: Fix bugs.
5252         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5253         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5254
5255 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5256
5257         fstatat: work with cross-compilation
5258         Problem reported by Ludovic Courtès in
5259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5260         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5261         "cross-compiling" and assume the bug is present.  Replace
5262         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5263         an inverted sense, to be more conservative about our assumptions.
5264         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5265
5266 2011-11-09  Bruno Haible  <bruno@clisp.org>
5267
5268         Improve MODULES.html output.
5269         * modules/mkfifoat (Description): Use the word "function".
5270         * modules/readlinkat (Description): Likewise.
5271         * modules/symlinkat (Description): Likewise.
5272
5273 2011-11-09  Eric Blake  <eblake@redhat.com>
5274
5275         ptsname_r-tests: new test module
5276         * modules/ptsname_r-tests: New module.
5277         * tests/test-ptsname_r.c: New file.
5278
5279         ptsname_r: new module
5280         * modules/ptsname_r: New module.
5281         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5282         * lib/ptsname.c (__ptsname_r): Split...
5283         * lib/ptsname_r.c: ...into new file.
5284         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5285         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5286         * modules/stdlib (Makefile.am): Substitute witnesses.
5287         * lib/stdlib.in.h (ptsname_r): Declare it.
5288         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5289         * MODULES.html.sh (Misc): Likewise.
5290         * modules/ptsname (Depends-on): Alter dependency.
5291         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5292
5293 2011-11-09  Jim Meyering  <meyering@redhat.com>
5294
5295         announce-gen: be more concise when there's only one URL+tarball
5296         * build-aux/announce-gen (get_tool_versions): When you distribute
5297         only one type of tarball, combine the first two "Here are..."
5298         sections and make the key-checking grammar independent of
5299         how many tarballs there are.
5300
5301 2011-11-09  Eric Blake  <eblake@redhat.com>
5302
5303         openpty: provide a stub on mingw
5304         * lib/pty.in.h (includes): Provide forward declarations.
5305         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5306
5307         raise: fix mingw handling of SIGPIPE
5308         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5309
5310 2011-11-08  Bruno Haible  <bruno@clisp.org>
5311
5312         More conditional dependencies.
5313         * modules/faccessat (Depends-on): Add conditions.
5314         * modules/fchmodat (Depends-on): Likewise.
5315         * modules/fchownat (Depends-on): Likewise.
5316         * modules/fstatat (Depends-on): Likewise.
5317         * modules/mkfifoat (Depends-on): Likewise.
5318         * modules/readlinkat (Depends-on): Likewise.
5319         * modules/symlinkat (Depends-on): Likewise.
5320         * modules/unlinkat (Depends-on): Likewise.
5321         * modules/utimensat (Depends-on): Likewise.
5322         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5323         * modules/linkat (Depends-on): Refine the conditions.
5324         * modules/renameat (Depends-on): Likewise.
5325
5326 2011-11-08  Bruno Haible  <bruno@clisp.org>
5327
5328         faccessat: Move AC_LIBOBJ invocation to module description.
5329         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5330         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5331         invocation from here...
5332         * modules/faccessat (configure.ac): ... to here. Invoke
5333         gl_PREREQ_FACCESSAT.
5334
5335 2011-11-08  Bruno Haible  <bruno@clisp.org>
5336
5337         faccessat: Simplify autoconf macro.
5338         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5339         gl_FUNC_EUIDACCESS.
5340
5341 2011-11-08  Bruno Haible  <bruno@clisp.org>
5342
5343         renameat: Fix dependencies.
5344         * modules/renameat (Depends-on): Add stdbool.
5345
5346 2011-11-08  Bruno Haible  <bruno@clisp.org>
5347
5348         mkfifoat: Fix module description.
5349         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5350         not gl_UNISTD_MODULE_INDICATOR.
5351
5352 2011-11-08  Bruno Haible  <bruno@clisp.org>
5353
5354         fstatat: Remove unused dependency.
5355         * modules/fstatat (Depends-on): Remove fstat.
5356
5357 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5358
5359         GNUmakefile: behave when Makefile is missing.
5360         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5361
5362 2011-11-08  Bruno Haible  <bruno@clisp.org>
5363
5364         openat: Conditionalize dependencies.
5365         * lib/openat.c: Reduce the scope of some #includes.
5366         * modules/openat (Depends-on): Add conditions.
5367
5368 2011-11-07  Jim Meyering  <meyering@redhat.com>
5369
5370         maint.mk: extract GPG key ID without using a temporary file
5371         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5372         without using a temporary file.  Based on a suggestion from Werner Koch
5373         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5374
5375 2011-11-07  Eric Blake  <eblake@redhat.com>
5376
5377         grantpt: fix typo
5378         * lib/stdlib.in.h (grantpt): Check correct function.
5379
5380         maint.mk: silence new syntax check
5381         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5382
5383 2011-11-06  Bruno Haible  <bruno@clisp.org>
5384
5385         Doc about floating-point and math API.
5386         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5387         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5388
5389 2011-11-06  Bruno Haible  <bruno@clisp.org>
5390
5391         stdalign tests: Skip the test when compiled by Sun C.
5392         * tests/test-stdalign.c (main): Skip the test on Sun C.
5393
5394 2011-11-06  Bruno Haible  <bruno@clisp.org>
5395
5396         ansi-c++-opt: Complete the 2011-06-05 change.
5397         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5398         does not support namespaces, set the variable to "no", not to ":".
5399
5400 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5401
5402         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5403
5404 2011-11-06  Bruno Haible  <bruno@clisp.org>
5405
5406         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5407         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5408         (minus_zerol) [HP-UX]: New macro.
5409         (unary_minus) [HP-UX]: New function.
5410         (copysignl) [HP-UX]: Use unary_minus function.
5411
5412 2011-11-06  Bruno Haible  <bruno@clisp.org>
5413
5414         ldexp, ldexpf, ldexpl: Enhance tests.
5415         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5416         and tests/test-ldexpl.c.
5417         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5418         LDEXP, MIN_EXP, MAX_EXP): New macros.
5419         Include test-ldexp.h.
5420         (main): Just call test_function.
5421         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5422         infinity.h, nan.h.
5423         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5424         MAX_EXP): New macros.
5425         Include test-ldexp.h.
5426         (x, y): Remove variables.
5427         (main): Just call test_function.
5428         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5429         infinity.h, nan.h.
5430         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5431         MAX_EXP): New macros.
5432         Include test-ldexp.h.
5433         (x, y): Remove variables.
5434         (main): Just call test_function.
5435         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5436         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5437         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5438         (Depends-on): Add isnand-nolibm, signbit, float.
5439         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5440         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5441         (Depends-on): Add isnanf-nolibm, signbit, float.
5442
5443 2011-11-06  Bruno Haible  <bruno@clisp.org>
5444
5445         math tests: Cosmetics.
5446         * tests/test-math-c++.cc: Reorder declarations.
5447
5448 2011-11-05  Bruno Haible  <bruno@clisp.org>
5449
5450         fma*: Simplify test.
5451         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5452         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5453
5454         Tests for module 'fmal'.
5455         * modules/fmal-tests: New file.
5456         * tests/test-fmal1.c: New file.
5457         * tests/test-fmal2.c: New file.
5458
5459         New module 'fmal'.
5460         * lib/math.in.h (fmal): New declaration.
5461         * lib/fmal.c: New file.
5462         * m4/fmal.m4: New file.
5463         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5465         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5466         REPLACE_FMAL.
5467         * modules/fmal: New file.
5468         * doc/posix-functions/fmal.texi: Mention the new module and the various
5469         bugs.
5470
5471         Tests for module 'fmaf'.
5472         * modules/fmaf-tests: New file.
5473         * tests/test-fmaf1.c: New file.
5474         * tests/test-fmaf2.c: New file.
5475
5476         New module 'fmaf'.
5477         * lib/math.in.h (fmaf): New declaration.
5478         * lib/fmaf.c: New file.
5479         * m4/fmaf.m4: New file.
5480         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5482         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5483         REPLACE_FMAF.
5484         * modules/fmaf: New file.
5485         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5486         bugs.
5487
5488         Tests for module 'fma'.
5489         * modules/fma-tests: New file.
5490         * tests/test-fma1.c: New file.
5491         * tests/test-fma1.h: New file.
5492         * tests/test-fma2.c: New file.
5493         * tests/test-fma2.h: New file.
5494
5495         New module 'fma'.
5496         * lib/math.in.h (fma): New declaration.
5497         * lib/fma.c: New file.
5498         * m4/fma.m4: New file.
5499         * m4/fegetround.m4: New file.
5500         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5502         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5503         REPLACE_FMA.
5504         * modules/fma: New file.
5505         * doc/posix-functions/fma.texi: Mention the new module and the various
5506         bugs.
5507
5508         Extend gl_MATHFUNC.
5509         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5510         Support 'void' as argument type.
5511         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5512
5513 2011-11-05  Jim Meyering  <meyering@redhat.com>
5514
5515         maint.mk: also prohibit inclusion of dirent.h without use
5516         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5517
5518 2011-11-05  Bruno Haible  <bruno@clisp.org>
5519
5520         ldexpl tests: Avoid test failure on MSVC 9.
5521         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5522         value. Needed in order to enforce the conversion from a value greater
5523         than LDBL_MAX to Infinity.
5524
5525 2011-11-05  Bruno Haible  <bruno@clisp.org>
5526
5527         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5528         * modules/at-internal: New file, extracted from modules/openat.
5529         * modules/openat-h: New file.
5530         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5531         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5532         * modules/openat (Description): Add reference to POSIX function.
5533         (Files): Remove lib/openat.h, lib/openat-proc.c.
5534         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5535         intprops, unistd.
5536         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5537         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5538         gl_FCNTL_MODULE_INDICATOR.
5539         (Include): Remove unistd.h, openat.h.
5540         * modules/areadlinkat (Files): Add lib/at-func.c.
5541         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5542         openat-die, openat-h, save-cwd.
5543         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5544         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5545         openat-die, openat-h, save-cwd, unistd.
5546         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5547         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5548         openat-h, save-cwd. Remove fcntl-h, openat.
5549         * modules/fchmodat (Files): Remove lib/openat.h.
5550         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5551         openat, stdbool, unistd.
5552         * modules/fchownat (Files): Remove lib/openat.h.
5553         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5554         openat, stdbool, sys_stat.
5555         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5556         lib/openat-proc.c.
5557         (Depends-on): Add at-internal.
5558         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5559         * modules/fstatat (Files): Remove lib/openat.h.
5560         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5561         stdbool, unistd.
5562         * modules/fts (Depends-on): Add openat-h.
5563         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5564         openat.
5565         * modules/mkdirat (Files): Remove lib/openat.h.
5566         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5567         openat, stdbool, sys_stat.
5568         * modules/mkfifoat (Files): Add lib/at-func.c.
5569         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5570         openat-h, save-cwd. Remove fcntl-h, openat.
5571         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5572         * modules/readlinkat (Files): Add lib/at-func.c.
5573         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5574         openat-h, save-cwd. Remove fcntl-h, openat.
5575         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5576         openat.
5577         * modules/selinux-at (Files): Add lib/at-func.c.
5578         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5579         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5580         * modules/symlinkat (Files): Add lib/at-func.c.
5581         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5582         openat-h, save-cwd. Remove fcntl-h, openat.
5583         * modules/unlinkat (Files): Remove lib/openat.h.
5584         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5585         stdbool.
5586         * modules/utimensat (Files): Add lib/at-func.c.
5587         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5588         openat-die, openat-h, save-cwd.
5589         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5590         * modules/fdutimensat-tests (Depends-on): Add openat.
5591         * modules/fstatat-tests (Depends-on): Add openat-h.
5592         * modules/readlinkat-tests (Depends-on): Add openat.
5593         * modules/symlinkat-tests (Depends-on): Add openat.
5594
5595 2011-11-05  Bruno Haible  <bruno@clisp.org>
5596
5597         openat: Include <stdbool.h>.
5598         * lib/openat.c: Include <stdbool.h>.
5599
5600 2011-11-04  Bruno Haible  <bruno@clisp.org>
5601
5602         fchownat, renameat, unlinkat: Fix dependencies.
5603         * modules/fchownat (Depends-on): Add fstatat.
5604         * modules/renameat (Depends-on): Likewise.
5605         * modules/unlinkat (Depends-on): Likewise.
5606
5607 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5608
5609         openat: remove direct dependency on dirent
5610         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5611         and hasn't been needed ever since fdopendir was split into its own
5612         module on 2009-08-31.
5613         * modules/openat (Depends-on): Remove dirent.
5614
5615 2011-11-04  Bruno Haible  <bruno@clisp.org>
5616
5617         renameat: Optimize code size.
5618         * modules/renameat (configure.ac): Don't compile at-func2.c if
5619         REPLACE_RENAMEAT is 1.
5620
5621 2011-11-04  Bruno Haible  <bruno@clisp.org>
5622
5623         openat tests: Fix file list.
5624         * modules/openat-tests (Files): Add tests/test-open.h.
5625
5626 2011-11-04  Bruno Haible  <bruno@clisp.org>
5627
5628         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5629         * modules/fchmodat (Depends-on): Add openat-die.
5630         * modules/fchownat (Depends-on): Likewise.
5631         * modules/linkat (Depends-on): Likewise.
5632         * modules/renameat (Depends-on): Likewise.
5633         * modules/openat (Depends-on): Add dirent.
5634
5635 2011-11-04  Jim Meyering  <meyering@redhat.com>
5636
5637         at-func*.c: fix comments
5638         * lib/at-func2.c: Correct/improve first-line comment.
5639         * lib/at-func.c: Correct grammar in first-line comment.
5640
5641 2011-11-04  Bruno Haible  <bruno@clisp.org>
5642
5643         New module 'mkdirat', split off from module 'openat'.
5644         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5645         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5646         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5647         * modules/mkdirat: New file, extracted from modules/openat.
5648         * modules/openat (Files): Remove lib/mkdirat.c.
5649         (Depends-on): Remove mkdir.
5650         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5651         (Include): Remove <sys/stat.h>.
5652         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5653         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5654         tests/test-mkdir.h.
5655         (Depends-on): Remove ignore-value.
5656         (Makefile.am): Remove rules for test-mkdirat.
5657         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5658         of module 'openat'.
5659         * NEWS: Mention the change.
5660
5661 2011-11-04  Bruno Haible  <bruno@clisp.org>
5662
5663         closedir: Avoid warning on mingw.
5664         * lib/closedir.c: Include <unistd.h>.
5665
5666 2011-11-04  Bruno Haible  <bruno@clisp.org>
5667
5668         New module 'fstatat', split off from module 'openat'.
5669         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5670         defined.
5671         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5672         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5673         gl_FUNC_FSTATAT.
5674         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5675         * modules/fstatat: New file, extracted from modules/openat.
5676         * modules/openat (Files): Remove lib/fstatat.c.
5677         (Depends-on): Remove lstat.
5678         (configure.ac): Remove AC_LIBOBJ of fstatat.
5679         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5680         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5681         tests/test-lstat.h, tests/test-stat.h.
5682         (Depends-on): Remove getcwd-lgpl.
5683         (Makefile.am): Remove rules for test-fstatat.
5684         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5685         of module 'openat'.
5686         * NEWS: Mention the change.
5687         * modules/getcwd (Depends-on): Add fstatat.
5688         * modules/linkat (Depends-on): Likewise.
5689         * modules/mkfifoat-tests (Depends-on): Likewise.
5690         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5691
5692 2011-11-03  Bruno Haible  <bruno@clisp.org>
5693
5694         New module 'unlinkat', split off from module 'openat'.
5695         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5696         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5697         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5698         * modules/unlinkat: New file, extracted from modules/openat. Correct
5699         the dependency conditions.
5700         * modules/openat (Files): Remove lib/unlinkat.c.
5701         (Depends-on): Remove rmdir, unlink.
5702         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5703         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5704         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5705         tests/test-rmdir.h, tests/test-unlink.h.
5706         (Depends-on): Remove unlinkdir.
5707         (Makefile.am): Remove rules for test-unlinkat.
5708         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5709         of module 'openat'.
5710         * NEWS: Mention the change.
5711         * modules/linkat-tests (Depends-on): Add unlinkat.
5712         * modules/mkfifoat-tests (Depends-on): Likewise.
5713         * modules/readlinkat-tests (Depends-on): Likewise.
5714
5715 2011-11-02  Bruno Haible  <bruno@clisp.org>
5716
5717         New module 'fchmodat', split off from module 'openat'.
5718         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5719         defined.
5720         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5721         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5722         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5723         * modules/fchmodat: New file, extracted from modules/openat.
5724         * modules/openat (Files): Remove lib/fchmodat.c.
5725         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5726         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5727         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5728         (Makefile.am): Remove rules for test-fchmodat.
5729         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5730         of module 'openat'.
5731         * NEWS: Mention the change.
5732
5733 2011-11-02  Jim Meyering  <meyering@redhat.com>
5734
5735         putenv: indent #definition of "environ" to placate cppi
5736         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5737
5738         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5739         Git logs are often treated as immutable, because editing them
5740         changes the SHA1 checksums of all descendants.  Thus, errors in
5741         git logs tend to stay there forever.  However, when we generate
5742         a ChangeLog file -- typically for distribution -- from that git log,
5743         we can actually make corrections in the generated file.  The key
5744         lies in recording in machine-readable/applicable form the desired
5745         corrections.  See --help for description and an example.
5746         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5747         (usage): Describe it; alphabetize option descriptions.
5748         (main): Honor the new option, carefully.
5749
5750 2011-11-01  Jim Meyering  <meyering@redhat.com>
5751
5752         gitlog-to-changelog: avoid an infloop
5753         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5754         that ends up being empty.
5755
5756 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5757
5758         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5759         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5760         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5761         contains (possibly-quoted) backslashes.  This should avoid
5762         all-too-common shell bugs if COMPLICATED contains backslashes in
5763         the "wrong" places.  Reported by David Evans in
5764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5765         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5766         because we want ASCII ranges.  Is there some reason we don't use
5767         the C locale everywhere in this script?
5768         (func_module, top level): Avoid unwanted pathname expansion when
5769         $repo_url_prefix or $repo_url_suffix_repl contain shell
5770         metacharacters like '?' and '*'.
5771
5772 2011-11-01  Bruno Haible  <bruno@clisp.org>
5773
5774         fchownat: Improve description.
5775         * modules/fchownat (Description): Add link to function.
5776
5777 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5778
5779         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5780         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5781         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5782         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5783
5784 2011-11-01  Bruno Haible  <bruno@clisp.org>
5785
5786         alignof: Avoid collision with stdalign module.
5787         * lib/alignof.h (alignof): Remove macro.
5788         * NEWS: Mention the change.
5789         Reported by Paul Eggert.
5790
5791 2011-11-01  Bruno Haible  <bruno@clisp.org>
5792
5793         New module 'fchownat', split off from module 'openat'.
5794         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5795         defined.
5796         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5797         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5798         invoke gl_FUNC_FCHOWNAT.
5799         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5800         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5801         * modules/fchownat: New file, extracted from modules/openat.
5802         * modules/openat (Files): Remove lib/fchownat.c.
5803         (Depends-on): Remove lchown.
5804         (configure.ac): Remove AC_LIBOBJ of fchownat.
5805         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5806         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5807         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5808         (Depends-on): Remove mgetgroups, usleep, stat-time.
5809         (configure.ac): Remove test for getegid.
5810         (Makefile.am): Remove rules for test-fchownat.
5811         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5812         of module 'openat'.
5813         * NEWS: Mention the change.
5814
5815 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5816
5817         stdalign: port better to MSVC and to Sun C 5.11
5818         This fixes some of the problems reported by Bruno Haible in
5819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5820         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5821         shortcomings of MSVC and of Sun C 5.11.
5822         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5823         around __declspec arg.
5824         * modules/stdalign-tests (Files): Add tests/macros.h.
5825         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
5826         Include macros.h, for ASSERT.
5827         (DECLARE_ALIGNED): Remove.
5828         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
5829         to catch bug), and to 1 if not (simplifies the rest of the code).
5830         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
5831         (CHECK_AUTO): Remove.
5832         (CHECK_ALIGNED): Check only the alignment of the static vars,
5833         since auto var alignment isn't supported by Sun C 5.11.
5834         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
5835         ASSERT failures are easier to diagnose.
5836
5837 2011-10-31  Bruno Haible  <bruno@clisp.org>
5838
5839         doc about some IRIX 5.3 problems.
5840         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
5841         on IRIX 5.3.
5842         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
5843         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
5844         5.3.
5845         * doc/posix-functions/grantpt.texi: Likewise.
5846         * doc/posix-functions/unlockpt.texi: Likewise.
5847         * doc/posix-functions/lgamma.texi: Likewise.
5848         * doc/posix-functions/nextafter.texi: Likewise.
5849         * doc/posix-functions/remainder.texi: Likewise.
5850         * doc/posix-functions/select.texi: Mention misplaced declaration on
5851         IRIX 5.3.
5852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5853
5854 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
5855
5856         gitlog-to-changelog: fix git-log invocation.
5857         git-log mishandles date strings before 1970-01-01 UTC, and there is
5858         no use to specify --since=1970-01-01 by default anyway.
5859         * build-aux/gitlog-to-changelog: By default, when no --since option
5860         was given, do not specify explicit --since option to git-log.
5861
5862 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
5863
5864         gitlog-to-changelog: new option --append-dot.
5865         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
5866         first non-blank line of each commit message terminated with a dot.
5867
5868 2011-10-30  Bruno Haible  <bruno@clisp.org>
5869
5870         ffsl, ffsll: Avoid compilation error due to 'restrict'.
5871         * lib/ffsl.h: Include <config.h>.
5872         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
5873
5874 2011-10-30  Jim Meyering  <meyering@redhat.com>
5875
5876         GNUmakefile: reenable "make syntax-check" for most projects
5877         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
5878         build-aux variable", "syntax-check" would do nothing but succeed with
5879         the "No version control files detected..." diagnostic (unless you
5880         happened to override _build-aux via cfg.mk).
5881         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
5882         to precede inclusion of maint.mk.  Otherwise, these variables would
5883         be used undefined in any project that does not override the default.
5884
5885 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
5886
5887         gitlog-to-changelog: treat a message with only blank lines as empty.
5888         * build-aux/gitlog-to-changelog: Move the code that removes leading and
5889         trailing blank lines before the code that issues a warning about an
5890         empty commit message.
5891
5892 2011-10-30  Jim Meyering  <meyering@redhat.com>
5893
5894         test-parse-datetime.c: avoid new DST-related false positive test failure
5895         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
5896         based on the time/date we'll convert, not the current time.
5897         Otherwise, the moment we cross a DST boundary like today's in
5898         Europe, (CEST to CET), that offset ends up being one hour off.
5899
5900 2011-10-27  Bruno Haible  <bruno@clisp.org>
5901
5902         fstat: Tweak documentation.
5903         * modules/fstat (Description): More precise description.
5904
5905 2011-10-27  Bruno Haible  <bruno@clisp.org>
5906
5907         Update documentation regarding 'largefile' module.
5908         * doc/posix-functions/fstat.texi: Tweak wording.
5909         * doc/posix-functions/opendir.texi: Mention that the module fixes the
5910         problems with huge directories and/or small ino_t types.
5911         * doc/posix-functions/readdir.texi: Likewise.
5912         * doc/posix-functions/rewinddir.texi: Likewise.
5913
5914 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
5915
5916         maint.mk: don't maintain a second build-aux variable.
5917         * maint.mk (build_aux): Removed.  The maintainer-makefile module
5918         depends on GNUmakefile, which already maintains a cfg.mk
5919         overridable $(_build-aux) for projects with a non-standard
5920         build-aux directory location, although without the $(srcdir)
5921         prefix.  Use that variable consistently instead of introducing a
5922         second one.  Adjust all call sites.
5923
5924 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
5925
5926         Add stdalign module and use it in other modules.
5927         This is based on a previous proposal by Bruno Haible
5928         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
5929
5930         stdalign: new module
5931         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5932         * modules/stdalign: New files.
5933         * MODULES.html.sh (c1x_core_properties): Add stdalign.
5934         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
5935
5936         stdalign-tests: new module
5937         * modules/stdalign-tests, tests/test-stdalign.c: New files.
5938
5939         argp: use stdalign
5940         * lib/argp-parse.c: Include <stdalign.h>.
5941         (alignof): Remove.
5942         * modules/argp (Depends-on): Add stdalign.
5943
5944         crypto libraries: use stdalign
5945         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
5946         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
5947         Do not include <stdlib.h> twice, in md4.c.
5948         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
5949         because we are accessing a pointer's bit-pattern, not a size.
5950         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
5951         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
5952         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
5953         * modules/crypto/sha512: Likewise.
5954
5955         sys_socket: use stdalign, not alignof
5956         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
5957         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
5958
5959 2011-10-27  Bruno Haible  <bruno@clisp.org>
5960
5961         raise test: Avoid a test failure on Linux/MIPS.
5962         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
5963         because 99 is a valid signal on Linux/MIPS.
5964
5965 2011-10-27  Bruno Haible  <bruno@clisp.org>
5966
5967         nonblocking tests: Fix test failure on Linux/MIPS.
5968         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
5969         Set to 270000.
5970
5971 2011-10-27  Bruno Haible  <bruno@clisp.org>
5972
5973         utimensat: Work around problem on Linux/hppa.
5974         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
5975         values.
5976         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
5977
5978 2011-10-25  Jim Meyering  <meyering@redhat.com>
5979
5980         maint.mk: fix a bug in sc_prohibit_stddef_without_use
5981         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
5982         after symbols like NULL, size_t, etc.
5983         Reported by Alfred M. Szmidt.
5984
5985         maint.mk: exempt ENODATA from a syntax-check rule
5986         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
5987         from the sc_prohibit_always-defined_macros syntax-check rule.
5988         Add a comment.  See this for more details:
5989         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
5990
5991 2011-10-23  Jim Meyering  <meyering@redhat.com>
5992
5993         fts: close parent dir FD before returning from post-traversal fts_read
5994         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
5995         unlink A, even though an FD open on A remained.  This is suboptimal
5996         (holding a file descriptor open longer than needed), but otherwise not
5997         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
5998         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
5999         that represents a real problem: it causes the removal of A to fail
6000         with e.g., "rm: cannot remove `A': Device or resource busy"
6001
6002         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6003         directory file descriptors.  After completing the final, FTS_DP,
6004         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6005         cache, but then proceeded to add a new FD to it via the subsequent
6006         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6007         final file descriptor would be closed only via fts_close's call to
6008         fd_ring_clear.  Now, it is usually closed earlier, via the final
6009         FTS_DP-returning fts_read call.
6010         * lib/fts.c (restore_initial_cwd): New function, converted from
6011         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6012         Update callers.
6013         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6014         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6015
6016 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6017             Bruno Haible  <bruno@clisp.org>
6018             Jim Meyering  <jim@meyering.net>
6019
6020         readme-release: improve safety of release prep instructions.
6021         * README-release: Don't git pull all branches when only master
6022         is needed for the release process.
6023         Run make maintainer-clean before changing trees and merging.
6024         Don't try to run ./configure right after git pull in case files
6025         that influence the bootstrap process have changed, move the
6026         ./configure step to after running ./bootstrap.
6027         Don't bootstrap "one last time"... it's the first time!
6028
6029 2011-10-22  Bruno Haible  <bruno@clisp.org>
6030
6031         errno, strerror-override: Support for MSVC 10.
6032         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6033         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6034         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6035         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6036         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6037         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6038         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6039         Assign values compatible with MSVC 10.
6040         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6041         New macros.
6042         (GNULIB_defined_EWINSOCK): New macro.
6043         * lib/strerror-override.c (strerror_override): Update accordingly.
6044         * lib/strerror-override.h: Likewise.
6045         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6046         longer equal to the corresponding errno value.
6047         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6048
6049 2011-10-22  Bruno Haible  <bruno@clisp.org>
6050
6051         perror: Recognize when test program crashes.
6052         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6053         strerror, set gl_cv_func_perror_works to no.
6054         Reported by Daniel Richard G. <skunk@iskunk.org>.
6055
6056         perror: Fix indentation.
6057         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6058
6059 2011-10-22  Bruno Haible  <bruno@clisp.org>
6060
6061         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6062         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6063         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6064         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6065         functions, not as a macro.
6066         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6067         macros.
6068         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6069         absence of macro.
6070         Suggested by Eric Blake.
6071         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6072
6073 2011-10-21  Bruno Haible  <bruno@clisp.org>
6074
6075         relocatable-prog-wrapper: Don't leave object files behind.
6076         * build-aux/install-reloc: Re-synchronize list of .o files to be
6077         removed with list of compilation units.
6078
6079 2011-10-20  Bruno Haible  <bruno@clisp.org>
6080
6081         openpty, posix_openpt: Remove code duplication.
6082         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6083         * lib/openpty.c: Include <stdlib.h>.
6084         (openpty): Use posix_openpt on all platforms except IRIX.
6085         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6086
6087 2011-10-20  Bruno Haible  <bruno@clisp.org>
6088
6089         unlockpt: Detect invalid argument.
6090         * lib/unlockpt.c: Include <fcntl.h>.
6091         (unlockpt): Check whether fd is valid, using fcntl().
6092         * modules/unlockpt (Depends-on): Add fcntl-h.
6093
6094 2011-10-20  Bruno Haible  <bruno@clisp.org>
6095
6096         openpty: Avoid compilation error on AIX 6.1.
6097         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6098
6099 2011-10-20  Bruno Haible  <bruno@clisp.org>
6100
6101         posix_openpt: Support for OpenBSD.
6102         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6103         (posix_openpt) [OpenBSD]: New code.
6104         * lib/grantpt.c: Include <fcntl.h>.
6105         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6106         * modules/grantpt (Depends-on): Add fcntl-h.
6107
6108 2011-10-20  Bruno Haible  <bruno@clisp.org>
6109
6110         posix_openpt test: Coding style.
6111         * tests/test-posix_openpt.c: Use GNU coding style.
6112
6113 2011-10-20  Bruno Haible  <bruno@clisp.org>
6114
6115         grantpt: Support --avoid=pt_chown.
6116         * modules/grantpt (Files): Add lib/pty-private.h.
6117
6118 2011-10-20  Bruno Haible  <bruno@clisp.org>
6119
6120         posix_openpt: Fix autoconf macro.
6121         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6122         unneeded check for _getpty.
6123
6124 2011-10-20  Bruno Haible  <bruno@clisp.org>
6125
6126         openpty: Update comments.
6127         * lib/openpty.c: Add comments about Minix.
6128
6129 2011-10-19  Eric Blake  <eblake@redhat.com>
6130
6131         openpty: relax license
6132         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6133
6134         pt_chown: use configmake to simplify build
6135         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6136
6137         ptsname and others: relax license
6138         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6139         * modules/unlockpt (License): Likewise.
6140         * modules/pt_chown (License): Likewise.
6141         * modules/ptsname (License): Likewise.
6142         * modules/ttyname_r (License): Likewise.
6143
6144 2011-10-19  Jim Meyering  <meyering@redhat.com>
6145
6146         posix_openpt: remove spurious #endif
6147         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6148
6149 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6150
6151         maint.mk: Respect $(build_aux) in web-manual rule.
6152         * top/maint.mk (web-manual): Find gen-announce script in user's
6153         $(build_aux) directory instead of hard-coding 'build-aux'.
6154
6155 2011-10-19  Bruno Haible  <bruno@clisp.org>
6156
6157         posix_openpt: Fix compilation error.
6158         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6159         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6160         Mention the openpty module as an alternative.
6161
6162 2011-10-19  Bruno Haible  <bruno@clisp.org>
6163
6164         Support for old NeXTstep 3.3 frexp().
6165         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6166         execution time of the test to 5 seconds.
6167         Reported by Daniel Richard G. <skunk@iskunk.org>.
6168
6169 2011-10-19  Bruno Haible  <bruno@clisp.org>
6170
6171         Support for old NeXTstep 3.3 sed.
6172         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6173         part, use /.../, not \|...|. Escape periods in the header file name.
6174         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6175         Reported by Daniel Richard G. <skunk@iskunk.org>.
6176
6177 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6178
6179         Support for old NeXTstep 3.3 gcc.
6180         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6181         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6182         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6183         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6184         * lib/regex.h (_Restrict_arr_): Likewise.
6185         * lib/regex_internal.h (re_token_t): Likewise.
6186         * lib/regexec.c (check_node_accept_bytes): Likewise.
6187         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6188
6189 2011-10-18  Eric Blake  <eblake@redhat.com>
6190
6191         posix_openpt: new module
6192         * modules/posix_openpt: New module.
6193         * m4/posix_openpt.m4: New file.
6194         * lib/posix_openpt.c: Likewise.
6195         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6196         (gl_STDLIB_H_DEFAULTS): Set defaults.
6197         * modules/stdlib (Makefile.am): Substitute macros.
6198         * lib/stdlib.in.h (posix_openpt): Declare.
6199         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6200         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6201         * modules/posix_openpt-tests: New test module.
6202         * tests/test-posix_openpt.c: New test.
6203
6204 2011-10-15  Bruno Haible  <bruno@clisp.org>
6205
6206         xstrtoll: Fix compilation failure.
6207         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6208         from lib/strtol.c.
6209         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6210         some platforms.
6211         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6212
6213 2011-10-15  Bruno Haible  <bruno@clisp.org>
6214
6215         vasnprintf: Optimize bit search operation.
6216         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6217         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6218         gl_DOUBLE_EXPONENT_LOCATION.
6219         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6220         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6221         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6222         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6223         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6224         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6225         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6226         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6227         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6228
6229 2011-10-15  Bruno Haible  <bruno@clisp.org>
6230
6231         vasnprintf: Fix comments.
6232         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6233
6234 2011-10-14  Bruno Haible  <bruno@clisp.org>
6235
6236         Tests for module 'integer_length_ll'.
6237         * modules/integer_length_ll-tests: New file.
6238         * tests/test-integer_length_ll.c: New file.
6239
6240         New module 'integer_length_ll'.
6241         * lib/integer_length_ll.c: New file.
6242         * modules/integer_length_ll: New file.
6243
6244 2011-10-14  Bruno Haible  <bruno@clisp.org>
6245
6246         Tests for module 'integer_length_l'.
6247         * modules/integer_length_l-tests: New file.
6248         * tests/test-integer_length_l.c: New file.
6249
6250         New module 'integer_length_l'.
6251         * lib/integer_length_l.c: New file.
6252         * modules/integer_length_l: New file.
6253
6254 2011-10-14  Bruno Haible  <bruno@clisp.org>
6255
6256         Tests for module 'integer_length'.
6257         * modules/integer_length-tests: New file.
6258         * tests/test-integer_length.c: New file.
6259
6260         New module 'integer_length'.
6261         * lib/integer_length.h: New file.
6262         * lib/integer_length.c: New file.
6263         * modules/integer_length: New file.
6264
6265 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6266
6267         popen: Fix dependency conditions.
6268         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6269
6270 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6271
6272         perror: Fix autoconf test.
6273         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6274         <stdlib.h> and <string.h>.
6275
6276 2011-10-14  Bruno Haible  <bruno@clisp.org>
6277
6278         ffsl: Optimize on 64-bit platforms.
6279         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6280         unrolling.
6281
6282 2011-10-13  Bruno Haible  <bruno@clisp.org>
6283
6284         ffsl: Optimize on 32-bit platforms.
6285         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6286         use ffs() without a loop.
6287
6288         ffsl, ffsll: Optimize for GCC.
6289         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6290         * lib/ffsl.c (GCC_BUILTIN): New macro.
6291         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6292
6293 2011-10-13  Bruno Haible  <bruno@clisp.org>
6294
6295         ffs, bcopy, memset: Support symbol renaming via config.h.
6296         * lib/ffs.c: Include <config.h>.
6297         * lib/bcopy.c: Likewise.
6298         * lib/memset.c: Likewise.
6299
6300 2011-10-10  Bruno Haible  <bruno@clisp.org>
6301
6302         atanl: Simplify for platforms where 'long double' == 'double'.
6303         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6304         alternative implementation.
6305         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6306         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6307         * modules/atanl (Depends-on): Add atan. Update conditions.
6308
6309 2011-10-10  Bruno Haible  <bruno@clisp.org>
6310
6311         acosl: Simplify for platforms where 'long double' == 'double'.
6312         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6313         alternative implementation.
6314         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6315         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6316         * modules/acosl (Depends-on): Add acos. Update conditions.
6317
6318 2011-10-10  Bruno Haible  <bruno@clisp.org>
6319
6320         asinl: Simplify for platforms where 'long double' == 'double'.
6321         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6322         alternative implementation.
6323         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6324         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6325         * modules/asinl (Depends-on): Add asin. Update conditions.
6326
6327 2011-10-10  Bruno Haible  <bruno@clisp.org>
6328
6329         tanl: Simplify for platforms where 'long double' == 'double'.
6330         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6331         implementation.
6332         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6333         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6334         * modules/tanl (Depends-on): Add tan. Update conditions.
6335         (configure.ac): Don't compile trigl.c if
6336         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6337
6338 2011-10-10  Bruno Haible  <bruno@clisp.org>
6339
6340         cosl: Simplify for platforms where 'long double' == 'double'.
6341         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6342         implementation.
6343         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6344         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6345         * modules/cosl (Depends-on): Add cos. Update conditions.
6346         (configure.ac): Don't compile sincosl.c and trigl.c if
6347         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6348
6349 2011-10-10  Bruno Haible  <bruno@clisp.org>
6350
6351         sinl: Simplify for platforms where 'long double' == 'double'.
6352         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6353         implementation.
6354         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6355         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6356         * modules/sinl (Depends-on): Add sin. Update conditions.
6357         (configure.ac): Don't compile sincosl.c and trigl.c if
6358         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6359
6360 2011-10-10  Bruno Haible  <bruno@clisp.org>
6361
6362         logl: Simplify for platforms where 'long double' == 'double'.
6363         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6364         implementation.
6365         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6366         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6367         * modules/logl (Depends-on): Add log. Update conditions.
6368
6369 2011-10-10  Bruno Haible  <bruno@clisp.org>
6370
6371         expl: Simplify for platforms where 'long double' == 'double'.
6372         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6373         implementation.
6374         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6375         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6376         * modules/expl (Depends-on): Add exp. Update conditions.
6377
6378 2011-10-10  Bruno Haible  <bruno@clisp.org>
6379
6380         sqrtl: Simplify for platforms where 'long double' == 'double'.
6381         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6382         alternative implementation.
6383         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6384         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6385         * modules/sqrtl (Depends-on): Update conditions.
6386
6387 2011-10-10  Bruno Haible  <bruno@clisp.org>
6388
6389         ldexpl: Simplify for platforms where 'long double' == 'double'.
6390         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6391         alternative implementation.
6392         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6393         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6394         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6395
6396 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6397
6398         ffsll: set correct witness
6399         * modules/ffsll (configure.ac): Fix typo.
6400
6401 2011-10-10  Bruno Haible  <bruno@clisp.org>
6402
6403         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6404         * lib/printf-frexpl.c: Include <config.h>.
6405         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6406         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6407         second time.
6408         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6409         gl_LONG_DOUBLE_VS_DOUBLE.
6410         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6411         conditions.
6412
6413 2011-10-10  Bruno Haible  <bruno@clisp.org>
6414
6415         frexpl: Simplify for platforms where 'long double' == 'double'.
6416         * lib/frexpl.c: Include <config.h>.
6417         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6418         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6419         time.
6420         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6421         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6422         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6423         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6424         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6425         conditions.
6426
6427 2011-10-10  Jim Meyering  <meyering@redhat.com>
6428
6429         test-renameat: don't leave behind a temporary file
6430         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6431           ERROR: files left in build directory after distclean:
6432           ./gltests/test-renameat.too
6433           make[1]: *** [distcleancheck] Error 1
6434         Reported by Tom G. Christensen.
6435
6436 2011-10-09  Bruno Haible  <bruno@clisp.org>
6437
6438         rint: Determine RINT_LIBM correctly on AIX 7.
6439         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6440         directly, not only through a function pointer. Also accept an optional
6441         4th argument with extra code.
6442         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6443         rintf() call by gcc when optimizing.
6444
6445         mathfunc.m4: Refactor.
6446         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6447         m4 variable.
6448
6449 2011-10-09  Bruno Haible  <bruno@clisp.org>
6450
6451         rintl: Simplify for platforms where 'long double' == 'double'.
6452         * lib/rintl.c: Include <config.h>.
6453         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6454         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6455         time.
6456         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6457         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6458         * modules/rintl (Depends-on): Add rint. Update conditions.
6459
6460 2011-10-09  Bruno Haible  <bruno@clisp.org>
6461
6462         roundl: Simplify for platforms where 'long double' == 'double'.
6463         * lib/roundl.c: Include <config.h>.
6464         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6465         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6466         time.
6467         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6468         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6469         * modules/roundl (Depends-on): Add round. Update conditions.
6470
6471 2011-10-09  Bruno Haible  <bruno@clisp.org>
6472
6473         truncl: Simplify for platforms where 'long double' == 'double'.
6474         * lib/truncl.c: Include <config.h>.
6475         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6476         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6477         time.
6478         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6479         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6480         * modules/truncl (Depends-on): Add trunc. Update conditions.
6481
6482 2011-10-09  Bruno Haible  <bruno@clisp.org>
6483
6484         ceill: Simplify for platforms where 'long double' == 'double'.
6485         * lib/ceill.c: Include <config.h>.
6486         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6487         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6488         time.
6489         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6490         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6491         * modules/ceill (Depends-on): Add ceil. Update conditions.
6492
6493 2011-10-09  Bruno Haible  <bruno@clisp.org>
6494
6495         floorl: Simplify for platforms where 'long double' == 'double'.
6496         * lib/floorl.c: Include <config.h>.
6497         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6498         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6499         time.
6500         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6501         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6502         * modules/floorl (Depends-on): Add floor. Update conditions.
6503
6504 2011-10-09  Bruno Haible  <bruno@clisp.org>
6505
6506         rint: Fix ordering constraints.
6507         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6508         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6509         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6510
6511 2011-10-09  Bruno Haible  <bruno@clisp.org>
6512
6513         copysignl: Simplify for platforms where 'long double' == 'double'.
6514         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6515         alternative.
6516         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6517         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6518         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6519
6520 2011-10-09  Bruno Haible  <bruno@clisp.org>
6521
6522         Tests for module 'rintl'.
6523         * modules/rintl-tests: New file.
6524         * tests/test-rintl.c: New file.
6525
6526         New module 'rintl'.
6527         * lib/math.in.h (rintl): New declaration.
6528         * lib/rintl.c: New file.
6529         * m4/rintl.m4: New file.
6530         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6531         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6532         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6533         * modules/rintl: New file.
6534         * tests/test-math-c++.cc: Check the declaration of rintl.
6535         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6536         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6537         * doc/posix-functions/rintl.texi: Mention the new module.
6538
6539 2011-10-09  Bruno Haible  <bruno@clisp.org>
6540
6541         Tests for module 'rintf'.
6542         * modules/rintf-tests: New file.
6543         * tests/test-rintf.c: New file.
6544
6545         New module 'rintf'.
6546         * lib/math.in.h (rintf): New declaration.
6547         * lib/rintf.c: New file.
6548         * m4/rintf.m4: New file.
6549         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6550         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6551         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6552         * modules/rintf: New file.
6553         * tests/test-math-c++.cc: Check the declaration of rintf.
6554         * doc/posix-functions/rintf.texi: Mention the new module.
6555
6556 2011-10-09  Bruno Haible  <bruno@clisp.org>
6557
6558         rint: Support for MSVC.
6559         * lib/math.in.h (rint): New declaration.
6560         * lib/rint.c: New file.
6561         * m4/rint.m4: New file.
6562         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6564         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6565         * modules/rint (Description): Fix.
6566         (Files): Add lib/rint.c, m4/rint.m4.
6567         (Depends-on): Add math.
6568         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6569         gl_MATH_MODULE_INDICATOR.
6570         * tests/test-math-c++.cc: Check the declaration of rint.
6571         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6572         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6573         * doc/posix-functions/rint.texi: Mention the replacement provided by
6574         the module.
6575
6576         rint tests: More tests.
6577         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6578         minus-zero.h, infinity.h, nan.h.
6579         (main): Skip the test if the current rounding mode is not standard. Add
6580         tests for negative numbers, minus zero, infinity, NaN.
6581         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6582         tests/nan.h.
6583         (Depends-on): Add isnand-nolibm.
6584
6585 2011-10-09  Bruno Haible  <bruno@clisp.org>
6586
6587         Tests for module 'copysignl'.
6588         * modules/copysignl-tests: New file.
6589         * tests/test-copysignl.c: New file.
6590
6591         New module 'copysignl'.
6592         * lib/math.in.h (copysignl): New declaration.
6593         * lib/copysignl.c: New file.
6594         * m4/copysignl.m4: New file.
6595         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6596         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6597         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6598         HAVE_COPYSIGNL.
6599         * modules/copysignl: New file.
6600         * tests/test-math-c++.cc: Check the declaration of copysignl.
6601         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6602         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6603         * doc/posix-functions/copysignl.texi: Mention the new module.
6604
6605 2011-10-09  Bruno Haible  <bruno@clisp.org>
6606
6607         Tests for module 'copysignf'.
6608         * modules/copysignf-tests: New file.
6609         * tests/test-copysignf.c: New file.
6610
6611         New module 'copysignf'.
6612         * lib/math.in.h (copysignf): New declaration.
6613         * lib/copysignf.c: New file.
6614         * m4/copysignf.m4: New file.
6615         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6617         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6618         HAVE_COPYSIGNF.
6619         * modules/copysignf: New file.
6620         * tests/test-math-c++.cc: Check the declaration of copysignf.
6621         * doc/posix-functions/copysignf.texi: Mention the new module.
6622
6623 2011-10-09  Bruno Haible  <bruno@clisp.org>
6624
6625         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6626         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6627         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6628         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6629         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6630         gl_SIGNAL_H_DEFAULTS.
6631
6632 2011-10-09  Bruno Haible  <bruno@clisp.org>
6633
6634         poll: Make macro safer.
6635         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6636         ac_cv_header_poll_h is not set.
6637
6638 2011-10-09  Bruno Haible  <bruno@clisp.org>
6639
6640         copysign: Provide replacement.
6641         * lib/math.in.h (copysign): New declaration.
6642         * lib/copysign.c: New file.
6643         * m4/copysign.m4: New file.
6644         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6645         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6646         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6647         HAVE_COPYSIGN.
6648         * modules/copysign (Description): Clarify.
6649         (Files): Add lib/copysign.c, m4/copysign.m4.
6650         (Depends-on): Add math, signbit.
6651         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6652         gl_MATH_MODULE_INDICATOR.
6653         * tests/test-math-c++.cc: Check the declaration of copysign.
6654         * doc/posix-functions/copysign.texi: Mention the effects of the module
6655         on Minix and MSVC.
6656
6657 2011-10-09  Bruno Haible  <bruno@clisp.org>
6658
6659         isinf: Ensure macro on AIX 5.1.
6660         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6661         macro.
6662         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6663
6664 2011-10-09  Bruno Haible  <bruno@clisp.org>
6665
6666         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6667         * modules/snprintf-posix-tests (configure.ac): Require
6668         gl_LONG_DOUBLE_VS_DOUBLE.
6669         * modules/sprintf-posix-tests (configure.ac): Likewise.
6670         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6671         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6672         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6673         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6674         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6675         tests on platforms where 'long double' is the same as 'double'.
6676         * tests/test-sprintf-posix.h (test_function): Likewise.
6677         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6678         * tests/test-vasprintf-posix.c (test_function): Likewise.
6679
6680         *printf: Fix for platforms where 'long double' == 'double'.
6681         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6682         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6683         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6684         * modules/fprintf-posix (Files): Likewise.
6685         * modules/obstack-printf-posix (Files): Likewise.
6686         * modules/snprintf-posix (Files): Likewise.
6687         * modules/sprintf-posix (Files): Likewise.
6688         * modules/vasnprintf (Files): Likewise.
6689         * modules/vasnprintf-posix (Files): Likewise.
6690         * modules/vasprintf-posix (Files): Likewise.
6691         * modules/vdprintf-posix (Files): Likewise.
6692         * modules/vfprintf-posix (Files): Likewise.
6693         * modules/vsnprintf-posix (Files): Likewise.
6694         * modules/vsprintf-posix (Files): Likewise.
6695         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6696         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6697         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6698         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6699         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6700         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6701         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6702
6703         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6704         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6705         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6706         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6707         'long double'.
6708         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6709
6710         isinf: Fix for platforms where 'long double' == 'double'.
6711         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6712         Don't blindly assume 80-bit 'long double'.
6713
6714         isfinite: Fix for platforms where 'long double' == 'double'.
6715         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6716         Don't blindly assume 80-bit 'long double'.
6717
6718         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6719         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6720         * modules/isfinite-tests (configure.ac): Require
6721         gl_LONG_DOUBLE_VS_DOUBLE.
6722         * modules/isinf-tests (configure.ac): Likewise.
6723         * modules/isnan-tests (configure.ac): Likewise.
6724         * modules/isnanl-tests (configure.ac): Likewise.
6725         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6726         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6727         tests on platforms where 'long double' is the same as 'double'.
6728         * tests/test-isinf.c (test_isinfl): Likewise.
6729         * tests/test-isnan.c (test_long_double): Likewise.
6730         * tests/test-isnanl.h (main): Likewise.
6731
6732 2011-10-08  Bruno Haible  <bruno@clisp.org>
6733
6734         Tests for module 'tanhf'.
6735         * modules/tanhf-tests: New file.
6736         * tests/test-tanhf.c: New file.
6737
6738         New module 'tanhf'.
6739         * lib/math.in.h (tanhf): New declaration.
6740         * lib/tanhf.c: New file.
6741         * m4/tanhf.m4: New file.
6742         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6744         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6745         * modules/tanhf: New file.
6746         * tests/test-math-c++.cc: Check the declaration of tanhf.
6747         * doc/posix-functions/tanhf.texi: Mention the new module.
6748
6749         tanh: Use a .m4 file.
6750         * m4/tanh.m4: New file.
6751         * modules/tanh (Files): Add it.
6752         (configure.ac): Just invoke gl_FUNC_TANH.
6753
6754 2011-10-08  Bruno Haible  <bruno@clisp.org>
6755
6756         Tests for module 'coshf'.
6757         * modules/coshf-tests: New file.
6758         * tests/test-coshf.c: New file.
6759
6760         New module 'coshf'.
6761         * lib/math.in.h (coshf): New declaration.
6762         * lib/coshf.c: New file.
6763         * m4/coshf.m4: New file.
6764         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6766         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6767         * modules/coshf: New file.
6768         * tests/test-math-c++.cc: Check the declaration of coshf.
6769         * doc/posix-functions/coshf.texi: Mention the new module.
6770
6771         cosh: Use a .m4 file.
6772         * m4/cosh.m4: New file.
6773         * modules/cosh (Files): Add it.
6774         (configure.ac): Just invoke gl_FUNC_COSH.
6775
6776 2011-10-08  Bruno Haible  <bruno@clisp.org>
6777
6778         Tests for module 'sinhf'.
6779         * modules/sinhf-tests: New file.
6780         * tests/test-sinhf.c: New file.
6781
6782         New module 'sinhf'.
6783         * lib/math.in.h (sinhf): New declaration.
6784         * lib/sinhf.c: New file.
6785         * m4/sinhf.m4: New file.
6786         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6787         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6788         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6789         * modules/sinhf: New file.
6790         * tests/test-math-c++.cc: Check the declaration of sinhf.
6791         * doc/posix-functions/sinhf.texi: Mention the new module.
6792
6793         sinh: Use a .m4 file.
6794         * m4/sinh.m4: New file.
6795         * modules/sinh (Files): Add it.
6796         (configure.ac): Just invoke gl_FUNC_SINH.
6797
6798 2011-10-08  Bruno Haible  <bruno@clisp.org>
6799
6800         Tests for module 'atan2f'.
6801         * modules/atan2f-tests: New file.
6802         * tests/test-atan2f.c: New file.
6803
6804         New module 'atan2f'.
6805         * lib/math.in.h (atan2f): New declaration.
6806         * lib/atan2f.c: New file.
6807         * m4/atan2f.m4: New file.
6808         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6809         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6810         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6811         * modules/atan2f: New file.
6812         * tests/test-math-c++.cc: Check the declaration of atan2f.
6813         * doc/posix-functions/atan2f.texi: Mention the new module.
6814
6815         atan2: Use a .m4 file.
6816         * m4/atan2.m4: New file.
6817         * modules/atan2 (Files): Add it.
6818         (configure.ac): Just invoke gl_FUNC_ATAN2.
6819
6820 2011-10-08  Bruno Haible  <bruno@clisp.org>
6821
6822         Tests for module 'atanf'.
6823         * modules/atanf-tests: New file.
6824         * tests/test-atanf.c: New file.
6825
6826         New module 'atanf'.
6827         * lib/math.in.h (atanf): New declaration.
6828         * lib/atanf.c: New file.
6829         * m4/atanf.m4: New file.
6830         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
6831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
6832         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
6833         * modules/atanf: New file.
6834         * tests/test-math-c++.cc: Check the declaration of atanf.
6835         * doc/posix-functions/atanf.texi: Mention the new module.
6836
6837         atan: Use a .m4 file.
6838         * m4/atan.m4: New file.
6839         * modules/atan (Files): Add it.
6840         (configure.ac): Just invoke gl_FUNC_ATAN.
6841
6842 2011-10-08  Bruno Haible  <bruno@clisp.org>
6843
6844         Tests for module 'acosf'.
6845         * modules/acosf-tests: New file.
6846         * tests/test-acosf.c: New file.
6847
6848         New module 'acosf'.
6849         * lib/math.in.h (acosf): New declaration.
6850         * lib/acosf.c: New file.
6851         * m4/acosf.m4: New file.
6852         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
6853         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
6854         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
6855         * modules/acosf: New file.
6856         * tests/test-math-c++.cc: Check the declaration of acosf.
6857         * doc/posix-functions/acosf.texi: Mention the new module.
6858
6859         acos: Use a .m4 file.
6860         * m4/acos.m4: New file.
6861         * modules/acos (Files): Add it.
6862         (configure.ac): Just invoke gl_FUNC_ACOS.
6863
6864 2011-10-08  Bruno Haible  <bruno@clisp.org>
6865
6866         Tests for module 'asinf'.
6867         * modules/asinf-tests: New file.
6868         * tests/test-asinf.c: New file.
6869
6870         New module 'asinf'.
6871         * lib/math.in.h (asinf): New declaration.
6872         * lib/asinf.c: New file.
6873         * m4/asinf.m4: New file.
6874         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
6875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
6876         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
6877         * modules/asinf: New file.
6878         * tests/test-math-c++.cc: Check the declaration of asinf.
6879         * doc/posix-functions/asinf.texi: Mention the new module.
6880
6881         asin: Use a .m4 file.
6882         * m4/asin.m4: New file.
6883         * modules/asin (Files): Add it.
6884         (configure.ac): Just invoke gl_FUNC_ASIN.
6885
6886 2011-10-08  Bruno Haible  <bruno@clisp.org>
6887
6888         Tests for module 'tanf'.
6889         * modules/tanf-tests: New file.
6890         * tests/test-tanf.c: New file.
6891
6892         New module 'tanf'.
6893         * lib/math.in.h (tanf): New declaration.
6894         * lib/tanf.c: New file.
6895         * m4/tanf.m4: New file.
6896         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
6897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
6898         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
6899         * modules/tanf: New file.
6900         * tests/test-math-c++.cc: Check the declaration of tanf.
6901         * doc/posix-functions/tanf.texi: Mention the new module.
6902
6903         tan: Use a .m4 file.
6904         * m4/tan.m4: New file.
6905         * modules/tan (Files): Add it.
6906         (configure.ac): Just invoke gl_FUNC_TAN.
6907
6908 2011-10-08  Bruno Haible  <bruno@clisp.org>
6909
6910         Tests for module 'cosf'.
6911         * modules/cosf-tests: New file.
6912         * tests/test-cosf.c: New file.
6913
6914         New module 'cosf'.
6915         * lib/math.in.h (cosf): New declaration.
6916         * lib/cosf.c: New file.
6917         * m4/cosf.m4: New file.
6918         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
6919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
6920         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
6921         * modules/cosf: New file.
6922         * tests/test-math-c++.cc: Check the declaration of cosf.
6923         * doc/posix-functions/cosf.texi: Mention the new module.
6924
6925         cos: Use a .m4 file.
6926         * m4/cos.m4: New file.
6927         * modules/cos (Files): Add it.
6928         (configure.ac): Just invoke gl_FUNC_COS.
6929
6930 2011-10-08  Bruno Haible  <bruno@clisp.org>
6931
6932         Tests for module 'sinf'.
6933         * modules/sinf-tests: New file.
6934         * tests/test-sinf.c: New file.
6935
6936         New module 'sinf'.
6937         * lib/math.in.h (sinf): New declaration.
6938         * lib/sinf.c: New file.
6939         * m4/sinf.m4: New file.
6940         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
6941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
6942         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
6943         * modules/sinf: New file.
6944         * tests/test-math-c++.cc: Check the declaration of sinf.
6945         * doc/posix-functions/sinf.texi: Mention the new module.
6946
6947         sin: Use a .m4 file.
6948         * m4/sin.m4: New file.
6949         * modules/sin (Files): Add it.
6950         (configure.ac): Just invoke gl_FUNC_SIN.
6951
6952 2011-10-08  Bruno Haible  <bruno@clisp.org>
6953
6954         Tests for module 'powf'.
6955         * modules/powf-tests: New file.
6956         * tests/test-powf.c: New file.
6957
6958         New module 'powf'.
6959         * lib/math.in.h (powf): New declaration.
6960         * lib/powf.c: New file.
6961         * m4/powf.m4: New file.
6962         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
6963         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
6964         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
6965         * modules/powf: New file.
6966         * tests/test-math-c++.cc: Check the declaration of powf.
6967         * doc/posix-functions/powf.texi: Mention the new module.
6968
6969         pow: Use a .m4 file.
6970         * m4/pow.m4: New file.
6971         * modules/pow (Files): Add it.
6972         (configure.ac): Just invoke gl_FUNC_POW.
6973
6974 2011-10-08  Bruno Haible  <bruno@clisp.org>
6975
6976         Tests for module 'log10f'.
6977         * modules/log10f-tests: New file.
6978         * tests/test-log10f.c: New file.
6979
6980         New module 'log10f'.
6981         * lib/math.in.h (log10f): New declaration.
6982         * lib/log10f.c: New file.
6983         * m4/log10f.m4: New file.
6984         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
6985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
6986         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
6987         * modules/log10f: New file.
6988         * tests/test-math-c++.cc: Check the declaration of log10f.
6989         * doc/posix-functions/log10f.texi: Mention the new module.
6990
6991         log10: Use a .m4 file.
6992         * m4/log10.m4: New file.
6993         * modules/log10 (Files): Add it.
6994         (configure.ac): Just invoke gl_FUNC_LOG10.
6995
6996 2011-10-08  Bruno Haible  <bruno@clisp.org>
6997
6998         Tests for module 'logf'.
6999         * modules/logf-tests: New file.
7000         * tests/test-logf.c: New file.
7001
7002         New module 'logf'.
7003         * lib/math.in.h (logf): New declaration.
7004         * lib/logf.c: New file.
7005         * m4/logf.m4: New file.
7006         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7008         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7009         * modules/logf: New file.
7010         * tests/test-math-c++.cc: Check the declaration of logf.
7011         * doc/posix-functions/logf.texi: Mention the new module.
7012
7013         log: Use a .m4 file.
7014         * m4/log.m4: New file.
7015         * modules/log (Files): Add it.
7016         (configure.ac): Just invoke gl_FUNC_LOG.
7017
7018 2011-10-08  Bruno Haible  <bruno@clisp.org>
7019
7020         Tests for module 'expf'.
7021         * modules/expf-tests: New file.
7022         * tests/test-expf.c: New file.
7023
7024         New module 'expf'.
7025         * lib/math.in.h (expf): New declaration.
7026         * lib/expf.c: New file.
7027         * m4/expf.m4: New file.
7028         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7030         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7031         * modules/expf: New file.
7032         * tests/test-math-c++.cc: Check the declaration of expf.
7033         * doc/posix-functions/expf.texi: Mention the new module.
7034
7035         exp: Use a .m4 file.
7036         * m4/exp.m4: New file.
7037         * modules/exp (Files): Add it.
7038         (configure.ac): Just invoke gl_FUNC_EXP.
7039
7040 2011-10-08  Bruno Haible  <bruno@clisp.org>
7041
7042         Tests for module 'sqrtf'.
7043         * modules/sqrtf-tests: New file.
7044         * tests/test-sqrtf.c: New file.
7045
7046         New module 'sqrtf'.
7047         * lib/math.in.h (sqrtf): New declaration.
7048         * lib/sqrtf.c: New file.
7049         * m4/sqrtf.m4: New file.
7050         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7051         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7052         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7053         * modules/sqrtf: New file.
7054         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7055         * doc/posix-functions/sqrtf.texi: Mention the new module.
7056
7057 2011-10-08  Bruno Haible  <bruno@clisp.org>
7058
7059         Tests: Avoid link failures w.r.t. libintl.
7060         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7061         $(LIBINTL).
7062         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7063         $(LIBINTL).
7064         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7065         against $(LIBINTL).
7066         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7067         $(LIBINTL).
7068         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7069         $(LIBINTL).
7070         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7071
7072 2011-10-08  Bruno Haible  <bruno@clisp.org>
7073
7074         pow tests: Defeat compiler optimizations.
7075         * tests/test-pow.c (main): Assign arguments to x and y before use.
7076
7077 2011-10-08  Bruno Haible  <bruno@clisp.org>
7078
7079         gnulib-tool: Improve last commit.
7080         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7081         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7082         ignore dependencies that are not among the modules list.
7083
7084 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7085
7086         gnulib-tool: don't follow dependencies to avoided modules
7087         This fixes a bug that is related to the previous one.
7088         * gnulib-tool (func_modules_transitive_closure)
7089         (func_emit_autoconf_snippets):
7090         Check whether a dependency is acceptable before using it.
7091         (--extract-dependencies): Report an error if --avoid is also used,
7092         since this combination of options is not yet supported.
7093
7094         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7095         Problem reported by Peter Dyballa in
7096         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7097         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7098         when echoing "$condition".
7099
7100 2011-10-07  Bruno Haible  <bruno@clisp.org>
7101
7102         Fix documentation about math functions on MacOS X.
7103         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7104         MacOS X 10.5.
7105         * doc/posix-functions/fdim.texi: Likewise.
7106         * doc/posix-functions/feclearexcept.texi: Likewise.
7107         * doc/posix-functions/fegetenv.texi: Likewise.
7108         * doc/posix-functions/fegetround.texi: Likewise.
7109         * doc/posix-functions/feholdexcept.texi: Likewise.
7110         * doc/posix-functions/feraiseexcept.texi: Likewise.
7111         * doc/posix-functions/fesetenv.texi: Likewise.
7112         * doc/posix-functions/fesetround.texi: Likewise.
7113         * doc/posix-functions/fetestexcept.texi: Likewise.
7114         * doc/posix-functions/feupdateenv.texi: Likewise.
7115         * doc/posix-functions/fmax.texi: Likewise.
7116         * doc/posix-functions/fmin.texi: Likewise.
7117         * doc/posix-functions/log2.texi: Likewise.
7118         * doc/posix-functions/modff.texi: Likewise.
7119         * doc/posix-functions/nan.texi: Likewise.
7120         * doc/posix-functions/nanf.texi: Likewise.
7121         * doc/posix-functions/nextafterf.texi: Likewise.
7122         * doc/posix-functions/remquo.texi: Likewise.
7123
7124 2011-10-07  Bruno Haible  <bruno@clisp.org>
7125
7126         modff: Drop assumption about library that defines modff.
7127         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7128         AC_CHECK_FUNCS.
7129         * modules/modff (Files): Add m4/mathfunc.m4.
7130
7131 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7132
7133         raise tests: Avoid a GCC warning.
7134         * tests/test-raise.c (handler): Use _Noreturn.
7135
7136 2011-10-07  Bruno Haible  <bruno@clisp.org>
7137
7138         Tests for module 'ldexpf'.
7139         * modules/ldexpf-tests: New file.
7140         * tests/test-ldexpf.c: New file.
7141
7142         New module 'ldexpf'.
7143         * lib/math.in.h (ldexpf): New declaration.
7144         * lib/ldexpf.c: New file.
7145         * m4/ldexpf.m4: New file.
7146         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7148         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7149         * modules/ldexpf: New file.
7150         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7151         * doc/posix-functions/ldexpf.texi: Mention the new module.
7152
7153 2011-10-06  Bruno Haible  <bruno@clisp.org>
7154
7155         frexpf: Work around problems on IRIX and mingw.
7156         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7158         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7159         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7160         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7161         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7162         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7163
7164 2011-10-06  Bruno Haible  <bruno@clisp.org>
7165
7166         fabsf: Drop assumption about library that defines fabsf.
7167         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7168         AC_CHECK_FUNCS.
7169         * modules/fabsf (Files): Add m4/mathfunc.m4.
7170
7171 2011-10-06  Bruno Haible  <bruno@clisp.org>
7172
7173         frexpf: Drop assumption about library that defines frexpf.
7174         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7175         'int *', 'float *', 'long double *', 'float', 'long double'.
7176         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7177         AC_CHECK_FUNCS.
7178         * modules/frexpf (Files): Add m4/mathfunc.m4.
7179
7180         Tests for module 'frexpf'.
7181         * modules/frexpf-tests: New file.
7182         * tests/test-frexpf.c: New file.
7183
7184         New module 'frexpf'.
7185         * lib/math.in.h (frexpf): New declaration.
7186         * lib/frexpf.c: New file.
7187         * m4/frexpf.m4: New file.
7188         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7190         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7191         * modules/frexpf: New file.
7192         * tests/test-math-c++.cc: Check the declaration of frexpf.
7193         * doc/posix-functions/frexpf.texi: Mention the new module.
7194
7195 2011-10-06  Bruno Haible  <bruno@clisp.org>
7196
7197         math: Sort function declarations of math.in.h.
7198         * lib/math.in.h (frexp, logb): Move declarations.
7199
7200 2011-10-05  Bruno Haible  <bruno@clisp.org>
7201
7202         Tests for module 'modff'.
7203         * modules/modff-tests: New file.
7204         * tests/test-modff.c: New file.
7205
7206         New module 'modff'.
7207         * lib/math.in.h (modff): New declaration.
7208         * lib/modff.c: New file.
7209         * m4/modff.m4: New file.
7210         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7212         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7213         * modules/modff: New file.
7214         * tests/test-math-c++.cc: Check the declaration of modff.
7215         * doc/posix-functions/modff.texi: Mention the new module.
7216
7217         modf tests: Make test sharper.
7218         * tests/test-modf.c (main): Strengthen upper bound.
7219
7220         modf: Use a .m4 file.
7221         * m4/modf.m4: New file.
7222         * modules/modf (Files): Add it.
7223         (configure.ac): Just invoke gl_FUNC_MODF.
7224
7225 2011-10-05  Bruno Haible  <bruno@clisp.org>
7226
7227         Tests for module 'fmodf'.
7228         * modules/fmodf-tests: New file.
7229         * tests/test-fmodf.c: New file.
7230
7231         New module 'fmodf'.
7232         * lib/math.in.h (fmodf): New declaration.
7233         * lib/fmodf.c: New file.
7234         * m4/fmodf.m4: New file.
7235         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7236         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7237         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7238         * modules/fmodf: New file.
7239         * tests/test-math-c++.cc: Check the declaration of fmodf.
7240         * doc/posix-functions/fmodf.texi: Mention the new module.
7241
7242         fmod: Use a .m4 file.
7243         * m4/fmod.m4: New file.
7244         * modules/fmod (Files): Add it.
7245         (configure.ac): Just invoke gl_FUNC_FMOD.
7246
7247 2011-10-05  Bruno Haible  <bruno@clisp.org>
7248
7249         Tests for module 'fabsf'.
7250         * modules/fabsf-tests: New file.
7251         * tests/test-fabsf.c: New file.
7252
7253         New module 'fabsf'.
7254         * lib/math.in.h (fabsf): New declaration.
7255         * lib/fabsf.c: New file.
7256         * m4/fabsf.m4: New file.
7257         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7259         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7260         * modules/fabsf: New file.
7261         * tests/test-math-c++.cc: Check the declaration of fabsf.
7262         * doc/posix-functions/fabsf.texi: Mention the new module.
7263
7264         fabs: Use a .m4 file.
7265         * m4/fabs.m4: New file.
7266         * modules/fabs (Files): Add it.
7267         (configure.ac): Just invoke gl_FUNC_FABS.
7268
7269 2011-10-05  Jim Meyering  <meyering@redhat.com>
7270
7271         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7272         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7273         ls -lL regression introduced in coreutils-8.12, it does so at the
7274         cost of an additional stat call in the common case.  Besides, now
7275         that the kernel change that prompted commit 95f7c57f has been reverted
7276         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7277         we have no use for commit 95f7c57f, "file-has-acl: use
7278         acl_extended_file_nofollow if available".
7279
7280 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7281
7282         file-has-acl: revert unintended change in behavior of ls -L
7283         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7284         derived from...
7285         (file_has_acl): ...code here.  Call it.
7286         This problem was introduced with 2011-07-22 commit 95f7c57f,
7287         "file-has-acl: use acl_extended_file_nofollow if available".
7288         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7289
7290 2011-10-03  Bruno Haible  <bruno@clisp.org>
7291
7292         poll: Avoid link errors on MSVC.
7293         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7294         * modules/poll (Depends-on): Add sockets.
7295         (Link): New section.
7296         * NEWS: Mention the change.
7297         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7298         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7299         $(LIB_POLL) instead of $(LIBSOCKET).
7300
7301 2011-10-03  Bruno Haible  <bruno@clisp.org>
7302
7303         sys_select tests: Fix link error on MSVC 9.
7304         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7305         with $(LIB_SELECT) instead of $(LIBSOCKET).
7306
7307 2011-10-03  Bruno Haible  <bruno@clisp.org>
7308
7309         sys_select: Fix compilation error on mingw.
7310         * lib/sys_select.in.h: On native Windows, include <io.h>.
7311
7312 2011-10-03  Bruno Haible  <bruno@clisp.org>
7313
7314         wmemset: Support for MSVC.
7315         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7316         whether wmemset() exists.
7317
7318 2011-10-03  Bruno Haible  <bruno@clisp.org>
7319
7320         wmemmove: Support for MSVC.
7321         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7322         whether wmemmove() exists.
7323
7324 2011-10-03  Bruno Haible  <bruno@clisp.org>
7325
7326         wmemcpy: Support for MSVC.
7327         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7328         whether wmemcpy() exists.
7329
7330 2011-10-03  Bruno Haible  <bruno@clisp.org>
7331
7332         wmemcmp: Support for MSVC.
7333         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7334         whether wmemcmp() exists.
7335
7336 2011-10-03  Bruno Haible  <bruno@clisp.org>
7337
7338         wmemchr: Support for MSVC.
7339         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7340         whether wmemchr() exists.
7341
7342 2011-10-03  Bruno Haible  <bruno@clisp.org>
7343
7344         glthread/*, strsignal: Support for MSVC.
7345         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7346         including <winsock.h> on MSVC 9.
7347         * lib/glthread/lock.h: Likewise.
7348         * lib/glthread/thread.h: Likewise.
7349         * lib/glthread/tls.h: Likewise.
7350         * lib/glthread/yield.h: Likewise.
7351         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7352         if HAVE_UNISTD_H is false.
7353         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7354
7355 2011-10-03  Bruno Haible  <bruno@clisp.org>
7356
7357         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7358         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7359         Set to 100000.
7360
7361 2011-10-03  Bruno Haible  <bruno@clisp.org>
7362
7363         acl: Fix specification.
7364         * lib/file-has-acl.c (file_has_acl): Fix specification.
7365
7366 2011-10-03  Bruno Haible  <bruno@clisp.org>
7367
7368         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7369         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7370         (compute_curr_prefix, shared_library_fullname,
7371         find_shared_library_fullname, get_shared_library_fullname, relocate):
7372         Use it together with PIC && INSTALLDIR.
7373         Reported by <jojelino@gmail.com>
7374         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7375
7376 2011-10-01  Jim Meyering  <meyering@redhat.com>
7377
7378         maint.mk: adjust a release-related rule not to require use of gzip
7379         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7380         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7381         projects that build only .tar.xz files.  Also fix an erroneous test.
7382
7383         test-linkat: don't leave behind a temporary file
7384         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7385         Otherwise, coreutils' "make distcheck" would fail with this:
7386           Only in /c/cu/tests/torture/coreutils/test/\
7387             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7388           make[2]: *** [my-distcheck] Error 1
7389
7390         float, math: add omitted file
7391         * lib/itold.c: Add file, required for yesterday's float change.
7392
7393 2011-10-01  Bruno Haible  <bruno@clisp.org>
7394
7395         isinf: Fix for OpenBSD/x86.
7396         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7397         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7398         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7399
7400 2011-10-01  Bruno Haible  <bruno@clisp.org>
7401
7402         isfinite: Fix syntax error in configure test.
7403         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7404
7405         isfinite: Fix typo.
7406         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7407         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7408
7409 2011-10-01  Bruno Haible  <bruno@clisp.org>
7410
7411         nonblocking tests: Fix test failure on Linux/IA-64.
7412         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7413         Set to 270000.
7414
7415 2011-10-01  Bruno Haible  <bruno@clisp.org>
7416
7417         mkfifoat tests: Fix a test failure on mingw.
7418         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7419         with error ENOSYS.
7420
7421 2011-09-30  Bruno Haible  <bruno@clisp.org>
7422
7423         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7424         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7425         'long double'. Set REPLACE_ITOLD.
7426         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7427         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7428         * lib/itold.c: New file.
7429         * modules/float (Files): Add lib/itold.c.
7430         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7431         (Makefile.am): Substitute REPLACE_ITOLD.
7432         * modules/math (Depends-on): Add float.
7433         (Makefile.am): Substitute REPLACE_ITOLD.
7434         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7435         * doc/posix-headers/math.texi: Likewise.
7436         * doc/posix-functions/logl.texi: Likewise.
7437
7438 2011-09-30  Bruno Haible  <bruno@clisp.org>
7439
7440         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7441         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7442         Set to 140000.
7443
7444 2011-09-30  Bruno Haible  <bruno@clisp.org>
7445
7446         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7447         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7448         invocation, say "right after AC_PROG_CC_STDC", not "right after
7449         AC_PROG_CC".
7450         Reported by Gary V. Vaughan <gary@gnu.org>.
7451
7452 2011-09-30  Bruno Haible  <bruno@clisp.org>
7453
7454         Centralize C99 requirement.
7455         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7456         * modules/stdarg (configure.ac-early): Invoke it instead of
7457         AC_PROG_CC_STDC.
7458         Reported by Gary V. Vaughan and Paul Eggert.
7459
7460 2011-09-29  Bruno Haible  <bruno@clisp.org>
7461
7462         float: Fix LDBL_MAX value on Linux/PowerPC.
7463         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7464         on Linux/PowerPC.
7465         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7466         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7467         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7468         platform.
7469         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7470
7471 2011-09-29  Bruno Haible  <bruno@clisp.org>
7472
7473         doc: Improve doc about gl_EARLY.
7474         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7475         AC_PROG_CC_STDC invocation.
7476         Reported by Gary V. Vaughan <gary@gnu.org>.
7477
7478 2011-09-28  Bruno Haible  <bruno@clisp.org>
7479
7480         fgetc, fputc, fread, fwrite tests: Fix link error.
7481         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7482         on non-MSVC platforms.
7483         * tests/test-fputc.c (main): Likewise.
7484         * tests/test-fread.c (main): Likewise.
7485         * tests/test-fwrite.c (main): Likewise.
7486         Reported by Jim Meyering.
7487
7488 2011-09-27  Bruno Haible  <bruno@clisp.org>
7489
7490         fputc, fwrite tests: Avoid test failure on MSVC.
7491         * tests/test-fgetc.c: Include msvc-inval.h.
7492         (main): Invoke gl_msvc_inval_ensure_handler.
7493         * tests/test-fputc.c: Include msvc-inval.h.
7494         (main): Invoke gl_msvc_inval_ensure_handler.
7495         * tests/test-fread.c: Include msvc-inval.h.
7496         (main): Invoke gl_msvc_inval_ensure_handler.
7497         * tests/test-fwrite.c: Include msvc-inval.h.
7498         (main): Invoke gl_msvc_inval_ensure_handler.
7499         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7500         * modules/fputc-tests (Depends-on): Likewise.
7501         * modules/fread-tests (Depends-on): Likewise.
7502         * modules/fwrite-tests (Depends-on): Likewise.
7503
7504 2011-09-27  Bruno Haible  <bruno@clisp.org>
7505
7506         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7507         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7508         (raise): Remove older, duplicated declaration.
7509         (_gl_raise_SIGPIPE): New declaration.
7510         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7511         (rpl_raise): Remove function.
7512         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7513         a gnulib-defined SIGPIPE here.
7514         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7515         'sigprocmask' has detected missing signal-blocking and the module
7516         'sigpipe' is enabled.
7517         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7518
7519 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7520
7521         base64-tests: avoid memory leak
7522         * tests/test-base64.c (main): Plug memory leak.
7523
7524         base32: new module
7525         * modules/base32: New module.
7526         * lib/base32.c: New file.
7527         * lib/base32.h: Likewise.
7528         * m4/base32.m4: Likewise.
7529         * modules/base32-tests: New test.
7530         * tests/test-base32.c: Likewise.
7531         * MODULES.html.sh (Misc): Mention it.
7532
7533 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7534
7535         gnulib: use more-standard license notice wording
7536         * gnulib-tool (func_emit_copyright_notice): When emitting a
7537         license notice into a file, use the standard wording as suggested
7538         by the current information for GNU maintainers, except say "file"
7539         rather than "program".  The new wording gives a license version
7540         number, which addresses an issue raised by Glenn Morris in
7541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7542         * m4/onceonly.m4: Use that same wording here, too.
7543
7544         dup2: minor simplification
7545         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7546         as lib/dup2.c no longer uses 'inline'.
7547
7548 2011-09-25  Bruno Haible  <bruno@clisp.org>
7549
7550         strings: Fix compilation error on MSVC.
7551         * lib/strings.in.h: Include <stddef.h> for size_t.
7552
7553 2011-09-25  Bruno Haible  <bruno@clisp.org>
7554
7555         fflush et al.: Document limitation on MSVC.
7556         * doc/posix-functions/fflush.texi: Document possible crash in handling
7557         mode other than DEFAULT_HANDLING.
7558         * doc/posix-functions/fgetc.texi: Likewise.
7559         * doc/posix-functions/fputc.texi: Likewise.
7560         * doc/posix-functions/fread.texi: Likewise.
7561         * doc/posix-functions/fwrite.texi: Likewise.
7562
7563 2011-09-25  Bruno Haible  <bruno@clisp.org>
7564
7565         msvc-inval: Allow three invalid parameter handling modes.
7566         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7567         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7568         macros.
7569         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7570         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7571         SANE_LIBRARY_HANDLING as a no-op.
7572         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7573         <stdlib.h>.
7574         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7575
7576 2011-09-25  Bruno Haible  <bruno@clisp.org>
7577
7578         msvc-inval: Make handler multithread-safe.
7579         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7580         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7581         declarations.
7582         (gl_msvc_inval_current): New declaration.
7583         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7584         Operate on the structure returned by gl_msvc_inval_current().
7585         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7586         Remove varaiables.
7587         (tls_index, tls_initialized): New variables.
7588         (not_per_thread): New variable.
7589         (gl_msvc_inval_current): New function.
7590         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7591         returned by gl_msvc_inval_current().
7592
7593 2011-09-25  Bruno Haible  <bruno@clisp.org>
7594
7595         msvc-inval: Install handler globally.
7596         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7597         !_MSC_VER.
7598         (gl_msvc_invalid_parameter_handler): Remove declaration.
7599         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7600         declarations.
7601         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7602         Install the handler globally, don't uninstall it.
7603         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7604         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7605         currently valid, call RaiseException instead.
7606         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7607         for !_MSC_VER.
7608
7609 2011-09-25  Bruno Haible  <bruno@clisp.org>
7610
7611         strerror_r-posix: Fix for MSVC 9.
7612         * lib/strerror_r.c (local_snprintf): New function.
7613         (snprintf): Define to local_snprintf, not to _snprintf.
7614
7615 2011-09-25  Bruno Haible  <bruno@clisp.org>
7616
7617         ftruncate: Support for MSVC 9.
7618         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7619         (chsize_nothrow): New function.
7620         (chsize): Redefine as a macro.
7621         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7622         * modules/ftruncate (Depends-on): Add msvc-inval.
7623
7624 2011-09-25  Bruno Haible  <bruno@clisp.org>
7625
7626         New module 'fstat'.
7627         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7628         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7629         * lib/fchdir.c (rpl_fstat): Remove function.
7630         * m4/fstat.m4: New file.
7631         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7632         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7633         declared.
7634         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7635         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7636         * modules/fstat: New file.
7637         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7638         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7639         is set.
7640         * doc/posix-functions/fstat.texi: Mention the new module and the
7641         problem on MSVC.
7642         * NEWS: Mention the change.
7643         * modules/acl (Depends-on): Add fstat.
7644         * modules/chdir-safer (Depends-on): Likewise.
7645         * modules/chown (Depends-on): Likewise.
7646         * modules/copy-file (Depends-on): Likewise.
7647         * modules/fchdir (Depends-on): Likewise.
7648         * modules/fdopendir (Depends-on): Likewise.
7649         * modules/fopen (Depends-on): Likewise.
7650         * modules/fts (Depends-on): Likewise.
7651         * modules/getcwd (Depends-on): Likewise.
7652         * modules/isapipe (Depends-on): Likewise.
7653         * modules/linkat (Depends-on): Likewise.
7654         * modules/lseek (Depends-on): Likewise.
7655         * modules/mkdir-p (Depends-on): Likewise.
7656         * modules/open (Depends-on): Likewise.
7657         * modules/openat (Depends-on): Likewise.
7658         * modules/read-file (Depends-on): Likewise.
7659         * modules/renameat (Depends-on): Likewise.
7660         * modules/utimens (Depends-on): Likewise.
7661
7662 2011-09-25  Bruno Haible  <bruno@clisp.org>
7663
7664         linkat: Fix compilation on MSVC 9.
7665         * lib/linkat.c: Don't include <stdint.h>.
7666
7667 2011-09-25  Bruno Haible  <bruno@clisp.org>
7668
7669         fclose: Support for MSVC 9.
7670         * lib/fclose.c: Include msvc-inval.h.
7671         (fclose_nothrow): New function.
7672         (rpl_fclose): Use it.
7673         * modules/fclose (Depends-on): Add msvc-inval.
7674         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7675
7676 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7677
7678         dup2: minor simplifications
7679         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7680         that it's a performance win.
7681         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7682         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7683
7684 2011-09-24  Jim Meyering  <meyering@redhat.com>
7685
7686         test-futimens: avoid a warning from gcc -Wshadow
7687         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7688         to avoid a shadowing warning.
7689
7690 2011-09-24  Bruno Haible  <bruno@clisp.org>
7691
7692         fdopen: Support for MSVC 9.
7693         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7694         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7695         * lib/fdopen.c: Include msvc-inval.h.
7696         (fdopen_nothrow): New function.
7697         (rpl_fdopen): Use it.
7698         * modules/fdopen (Depends-on): Add msvc-inval.
7699         * modules/fclose-tests (Depends-on): Add fdopen.
7700         * modules/fflush-tests (Depends-on): Likewise.
7701         * modules/fgetc-tests (Depends-on): Likewise.
7702         * modules/fputc-tests (Depends-on): Likewise.
7703         * modules/fread-tests (Depends-on): Likewise.
7704         * modules/freopen-tests (Depends-on): Likewise.
7705         * modules/fseeko-tests (Depends-on): Likewise.
7706         * modules/ftello-tests (Depends-on): Likewise.
7707         * modules/fwrite-tests  (Depends-on): Likewise.
7708         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7709
7710 2011-09-24  Bruno Haible  <bruno@clisp.org>
7711
7712         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7713         * modules/fgetc-tests (Depends-on): Add unistd.
7714         * modules/fputc-tests (Depends-on): Likewise.
7715         * modules/fread-tests (Depends-on): Likewise.
7716         * modules/fwrite-tests (Depends-on): Likewise.
7717
7718 2011-09-24  Bruno Haible  <bruno@clisp.org>
7719
7720         dup: Simplify autoconf test.
7721         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7722         on gl_MSVC_INVAL's result.
7723
7724 2011-09-24  Bruno Haible  <bruno@clisp.org>
7725
7726         Tests for function fwrite().
7727         * modules/fwrite-tests: New file.
7728         * tests/test-fwrite.c: New file.
7729         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7730
7731         Tests for function fread().
7732         * modules/fread-tests: New file.
7733         * tests/test-fread.c: New file.
7734         * modules/stdio-tests (Depends-on): Add fread-tests.
7735
7736         Activate fputc tests.
7737         * modules/stdio-tests (Depends-on): Add fputc-tests.
7738
7739         Enhance fgetc, fputc tests.
7740         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7741         * tests/test-fputc.c (main): Likewise.
7742
7743 2011-09-24  Bruno Haible  <bruno@clisp.org>
7744
7745         write: Support for MSVC 9.
7746         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7747         is not 1.
7748         * lib/write.c (write_nothrow): New function.
7749         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7750         not 1. Use write_nothrow.
7751         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7752         invalid parameter handler.
7753         (gl_PREREQ_WRITE): New macro.
7754         * modules/write (Depends-on): Add msvc-inval.
7755         (configure.ac): Invoke gl_PREREQ_WRITE.
7756         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7757
7758 2011-09-24  Bruno Haible  <bruno@clisp.org>
7759
7760         read: Fix last commit.
7761         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7762
7763 2011-09-24  Bruno Haible  <bruno@clisp.org>
7764
7765         dup2: Fix last commit.
7766         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7767         (rpl_dup2): Disable fcntl workaround on native Windows.
7768
7769         sigprocmask: Make code safer.
7770         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7771         section that changes macro definitions for this compilation unit.
7772
7773 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7774
7775         dup2: clarify by coalescing Windows-specific material
7776         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7777         "msvc-nothrow.h"' to the Windows-specific section, so that the
7778         Emacs source need not contain these include files.
7779         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7780         Windows-specific fixes into this function rather than just the
7781         nothrow fix, as this shortens and clarifies the code.  Always
7782         define as a function, as that's a bit cleaner than having it be
7783         sometimes a function and sometimes a macro.
7784         (rpl_dup2): Move the Windows-specific stuff out of here and into
7785         ms_windows_dup2.  Don't protect the Haiku-related fix with
7786         "#if !defined __linux__", as the same code also works around
7787         a Linux kernel bug, and it doesn't add any system calls on any
7788         platform.  Add comment about FreeBSD 6.1.
7789
7790         sigprocmask: move #include directive
7791         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7792         Windows-specific section, so that the Emacs source need not
7793         contain msvc-inval.h.
7794
7795 2011-09-23  Bruno Haible  <bruno@clisp.org>
7796
7797         read: Support for MSVC 9.
7798         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7799         is not 1.
7800         * lib/read.c (read_nothrow): New function.
7801         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7802         read_nothrow.
7803         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7804         invalid parameter handler.
7805         (gl_PREREQ_READ): New macro.
7806         * modules/read (Depends-on): Add msvc-inval.
7807         (configure.ac): Invoke gl_PREREQ_READ.
7808         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7809
7810 2011-09-23  Bruno Haible  <bruno@clisp.org>
7811
7812         close: Support for MSVC 9.
7813         * lib/close.c: Include <errno.h>, msvc-inval.h.
7814         (close_nothrow): New function.
7815         (rpl_close): Use it.
7816         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7817         invalid parameter handler.
7818         * modules/close (Depends-on): Add msvc-inval.
7819         * modules/dup2-tests (Depends-on): Add close.
7820         * modules/dup3-tests (Depends-on): Likewise.
7821         * modules/fcntl-tests (Depends-on): Likewise.
7822         * modules/spawn-pipe-tests (Depends-on): Likewise.
7823         * modules/unistd-safer-tests (Depends-on): Likewise.
7824         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7825
7826 2011-09-23  Bruno Haible  <bruno@clisp.org>
7827
7828         New module 'dup'.
7829         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
7830         Allow replacement.
7831         * lib/dup.c: New file.
7832         * lib/fchdir.c (rpl_dup): Remove function.
7833         * m4/dup.m4: New file.
7834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
7835         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
7836         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
7837         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
7838         * modules/dup: New file.
7839         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
7840         'dup' module is in use.
7841         * modules/fdopendir (Depends-on): Add dup.
7842         * modules/fdutimensat-tests (Depends-on): Likewise.
7843         * modules/fts (Depends-on): Likewise.
7844         * modules/futimens-tests (Depends-on): Likewise.
7845         * modules/posix_spawnp-tests (Depends-on): Likewise.
7846         * modules/unistd-safer-tests (Depends-on): Likewise.
7847         * modules/utimens-tests (Depends-on): Likewise.
7848         * doc/posix-functions/dup.texi: Mention the new module and the problem
7849         on MSVC.
7850
7851 2011-09-23  Bruno Haible  <bruno@clisp.org>
7852
7853         getdtablesize: Support for MSVC 9.
7854         * lib/getdtablesize.c: Include msvc-inval.h.
7855         (_setmaxstdio_nothrow): New function.
7856         (_setmaxstdio): Redefine it.
7857         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
7858         * modules/getdtablesize (Depends-on): Add msvc-inval.
7859         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
7860
7861 2011-09-23  Bruno Haible  <bruno@clisp.org>
7862
7863         signal-h: Rename from signal.
7864         * modules/signal-h: Renamed from modules/signal.
7865         * modules/pthread_sigmask (Depends-on): Update.
7866         * modules/raise (Depends-on): Likewise.
7867         * modules/sigaction (Depends-on): Likewise.
7868         * modules/sigpipe (Depends-on): Likewise.
7869         * modules/sigprocmask (Depends-on): Likewise.
7870         * modules/sys_select (Depends-on): Likewise.
7871         * modules/signal-h-tests: Renamed from modules/signal-tests.
7872         (Files, Depends-on, Makefile.am): Update.
7873         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
7874         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
7875         (Files, Makefile.am): Update.
7876         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
7877         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
7878         * modules/signal: New placeholder file.
7879         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
7880         * doc/posix-headers/signal.texi: Update.
7881         * NEWS: Mention the change.
7882
7883 2011-09-23  Bruno Haible  <bruno@clisp.org>
7884
7885         sigprocmask: Avoid crashes through signal() on MSVC 9.
7886         * lib/sigprocmask.c: Include msvc-inval.h.
7887         (signal_nothrow): New function.
7888         (signal): Redefine it.
7889         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
7890         * modules/sigprocmask (Depends-on): Add msvc-inval.
7891         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
7892
7893 2011-09-23  Bruno Haible  <bruno@clisp.org>
7894
7895         Tests for module 'raise'.
7896         * modules/raise-tests: New file.
7897         * tests/test-raise.c: New file.
7898
7899         raise: Support for MSVC.
7900         * lib/signal.in.h (raise): New declaration.
7901         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
7902         for native Windows platforms.
7903         * m4/raise.m4: New file.
7904         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
7905         HAVE_RAISE, REPLACE_RAISE.
7906         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
7907         REPLACE_RAISE.
7908         * modules/raise (Status, Notice): Remove fields.
7909         (Files): Add m4/raise.m4.
7910         (Depends-on): Add signal, msvc-inval.
7911         (configure.ac): Use the common idioms.
7912         (Maintainer): Add me.
7913         * tests/test-signal-c++.cc: Check the signature of raise.
7914         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
7915
7916 2011-09-23  Bruno Haible  <bruno@clisp.org>
7917
7918         pipe2: Fix compilation on pre-C99 compilers.
7919         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
7920
7921 2011-09-23  Bruno Haible  <bruno@clisp.org>
7922
7923         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
7924         * lib/msvc-nothrow.h: New file.
7925         * lib/msvc-nothrow.c: New file.
7926         * m4/msvc-nothrow.m4: New file.
7927         * modules/msvc-nothrow: New file.
7928         * lib/dup2.c: Include msvc-nothrow.h.
7929         (rpl_dup2): No need to protect _get_osfhandle call here.
7930         * lib/accept4.c: Include msvc-nothrow.h.
7931         * lib/error.c: Likewise.
7932         * lib/fcntl.c: Likewise.
7933         * lib/lseek.c: Likewise.
7934         * lib/nonblocking.c: Likewise.
7935         * lib/poll.c: Likewise.
7936         * lib/read.c: Likewise.
7937         * lib/select.c: Likewise.
7938         * lib/sockets.h: Likewise.
7939         * lib/sockets.c: Likewise.
7940         * lib/stdio-read.c: Likewise.
7941         * lib/stdio-write.c: Likewise.
7942         * lib/write.c: Likewise.
7943         * lib/w32sock.h: Likewise.
7944         * lib/w32spawn.h: Likewise.
7945         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
7946         * lib/fsync.c: Likewise.
7947         * lib/isapipe.c: Likewise.
7948         * modules/dup2 (Depends-on): Add msvc-nothrow.
7949         * modules/accept4 (Depends-on): Likewise.
7950         * modules/error (Depends-on): Likewise.
7951         * modules/fcntl (Depends-on): Likewise.
7952         * modules/lseek (Depends-on): Likewise.
7953         * modules/nonblocking (Depends-on): Likewise.
7954         * modules/poll (Depends-on): Likewise.
7955         * modules/read (Depends-on): Likewise.
7956         * modules/select (Depends-on): Likewise.
7957         * modules/sockets (Depends-on): Likewise.
7958         * modules/sigpipe (Depends-on): Likewise.
7959         * modules/write (Depends-on): Likewise.
7960         * modules/accept (Depends-on): Likewise.
7961         * modules/bind (Depends-on): Likewise.
7962         * modules/connect (Depends-on): Likewise.
7963         * modules/gethostname (Depends-on): Likewise.
7964         * modules/getpeername (Depends-on): Likewise.
7965         * modules/getsockname (Depends-on): Likewise.
7966         * modules/getsockopt (Depends-on): Likewise.
7967         * modules/ioctl (Depends-on): Likewise.
7968         * modules/listen (Depends-on): Likewise.
7969         * modules/recv (Depends-on): Likewise.
7970         * modules/recvfrom (Depends-on): Likewise.
7971         * modules/send (Depends-on): Likewise.
7972         * modules/sendto (Depends-on): Likewise.
7973         * modules/setsockopt (Depends-on): Likewise.
7974         * modules/shutdown (Depends-on): Likewise.
7975         * modules/socket (Depends-on): Likewise.
7976         * modules/execute (Depends-on): Likewise.
7977         * modules/spawn-pipe (Depends-on): Likewise.
7978         * modules/flock (Depends-on): Likewise.
7979         * modules/fsync (Depends-on): Likewise.
7980         * modules/isapipe (Depends-on): Likewise.
7981         * tests/test-cloexec.c: Include msvc-nothrow.h.
7982         * tests/test-dup-safer.c: Likewise.
7983         * tests/test-dup2.c: Likewise.
7984         * tests/test-dup3.c: Likewise.
7985         * tests/test-fcntl.c: Likewise.
7986         * tests/test-pipe.c: Likewise.
7987         * tests/test-pipe2.c: Likewise.
7988         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
7989         * modules/unistd-safer-tests (Depends-on): Likewise.
7990         * modules/dup2-tests (Depends-on): Likewise.
7991         * modules/dup3-tests (Depends-on): Likewise.
7992         * modules/fcntl-tests (Depends-on): Likewise.
7993         * modules/pipe-posix-tests (Depends-on): Likewise.
7994         * modules/pipe2-tests (Depends-on): Likewise.
7995
7996 2011-09-23  Bruno Haible  <bruno@clisp.org>
7997
7998         dup2: Make code more maintainable.
7999         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8000         (rpl_dup2): Use it.
8001         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8002         * modules/dup2 (configure.ac): Invoke it.
8003         Reported by Paul Eggert.
8004
8005 2011-09-23  Bruno Haible  <bruno@clisp.org>
8006
8007         msvc-inval: Fix compilation error.
8008         * lib/msvc-inval.h: Include <excpt.h>.
8009
8010 2011-09-23  Bruno Haible  <bruno@clisp.org>
8011
8012         mkdir: Tweak for MSVC 9.
8013         * lib/sys_stat.in.h: Update comments.
8014         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8015
8016         Tests for module 'chdir'.
8017         * modules/chdir-tests: New file.
8018         * tests/test-chdir.c: New file.
8019
8020         New module 'chdir'.
8021         * modules/chdir: New file.
8022         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8023         (chdir): New declaration.
8024         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8025         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8026         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8027         * tests/test-unistd-c++.cc: Check signature of chdir.
8028         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8029         * modules/chdir-long (Depends-on): Add chdir.
8030         * modules/fchdir (Depends-on): Likewise.
8031         * modules/rename (Depends-on): Likewise.
8032         * modules/savewd (Depends-on): Likewise.
8033
8034         rmdir: Support for mingw, MSVC 9.
8035         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8036         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8037
8038         getcwd: Tweak for MSVC 9.
8039         * lib/unistd.in.h: Update comments.
8040         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8041
8042 2011-09-22  Bruno Haible  <bruno@clisp.org>
8043
8044         strerror_r-posix: Avoid a link error on MSVC.
8045         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8046         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8047
8048 2011-09-22  Bruno Haible  <bruno@clisp.org>
8049
8050         select: Avoid link errors on MSVC.
8051         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8052         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8053         * modules/pselect (Link): Likewise.
8054         * NEWS: Mention the change.
8055         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8056         test-select-stdin against $(LIB_SELECT).
8057         * modules/pselect-tests (Makefile.am): Link test-pselect against
8058         $(LIB_SELECT).
8059
8060 2011-09-22  Bruno Haible  <bruno@clisp.org>
8061
8062         select: Avoid compilation error on MSVC.
8063         * lib/select.c: Don't include <stdbool.h>.
8064
8065 2011-09-21  Bruno Haible  <bruno@clisp.org>
8066
8067         Consolidate all uses of PATH_MAX in *.m4 files.
8068         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8069         macros.
8070         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8071         and gl_PATHMAX_SNIPPET.
8072         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8073         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8074         * modules/chdir-long (Files): Add m4/pathmax.m4.
8075         * modules/getcwd (Files): Likewise.
8076
8077 2011-09-21  Bruno Haible  <bruno@clisp.org>
8078
8079         ftruncate: Un-deprecate, concentrate on Win32 support.
8080         * modules/ftruncate (Status, Notice): Remove sections.
8081         (Depends-on): Add largefile.
8082         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8083         non-mingw platforms.
8084         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8085         include <io.h>.
8086         * modules/perror-tests (Depends-on): Add ftruncate.
8087         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8088         'ftruncate' module.
8089
8090 2011-09-21  Bruno Haible  <bruno@clisp.org>
8091
8092         Add dependencies to new dirent related modules.
8093         * modules/opendir (Depends-on): Add closedir.
8094         * modules/getcwd (Depends-on): Add opendir, closedir.
8095         * modules/dirent-safer-tests (Depends-on): Likewise.
8096         * modules/fdopendir-tests (Depends-on): Likewise.
8097         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8098         * modules/renameat-tests (Depends-on): Likewise.
8099
8100 2011-09-21  Bruno Haible  <bruno@clisp.org>
8101
8102         opendir: Avoid compilation error on mingw.
8103         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8104         * modules/opendir (Depends-on): Add unistd.
8105
8106 2011-09-21  Bruno Haible  <bruno@clisp.org>
8107
8108         ftruncate tests: Avoid a test failure on mingw.
8109         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8110
8111 2011-09-21  Bruno Haible  <bruno@clisp.org>
8112
8113         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8114         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8115         native Windows.
8116
8117 2011-09-21  Bruno Haible  <bruno@clisp.org>
8118
8119         New module 'fdopen'.
8120         * lib/stdio.in.h (fdopen): New declaration.
8121         * lib/fdopen.c: New file.
8122         * m4/fdopen.m4: New file.
8123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8124         REPLACE_FDOPEN.
8125         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8126         REPLACE_FDOPEN.
8127         * modules/fdopen: New file.
8128         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8129         * tests/test-stdio-c++.cc: Check signature of fdopen.
8130         * doc/posix-functions/fdopen.texi: Mention the new module.
8131
8132 2011-09-21  Bruno Haible  <bruno@clisp.org>
8133
8134         unlockpt tests: Avoid test failure on NetBSD 5.1.
8135         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8136         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8137
8138 2011-09-21  Bruno Haible  <bruno@clisp.org>
8139
8140         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8141         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8142         * tests/test-getlogin_r.c (main): Likewise.
8143
8144 2011-09-20  Bruno Haible  <bruno@clisp.org>
8145
8146         time tests: Don't require pid_t.
8147         * doc/posix-headers/time.texi: Revert last change.
8148         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8149         * tests/test-time.c: Comment out the check for pid_t.
8150
8151 2011-09-20  Bruno Haible  <bruno@clisp.org>
8152
8153         fsync tests: Avoid a test failure on mingw.
8154         * tests/test-fsync.c (main): Allow a failure with EIO.
8155
8156 2011-09-20  Bruno Haible  <bruno@clisp.org>
8157
8158         euidaccess: Update comments.
8159         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8160
8161 2011-09-20  Bruno Haible  <bruno@clisp.org>
8162
8163         Ensure EBADF returns for socket functions on mingw.
8164         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8165         descriptor is invalid.
8166         * lib/bind.c (rpl_bind): Likewise.
8167         * lib/connect.c (rpl_connect): Likewise.
8168         * lib/getpeername.c (rpl_getpeername): Likewise.
8169         * lib/getsockname.c (rpl_getsockname): Likewise.
8170         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8171         * lib/listen.c (rpl_listen): Likewise.
8172         * lib/recv.c (rpl_recv): Likewise.
8173         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8174         * lib/send.c (rpl_send): Likewise.
8175         * lib/sendto.c (rpl_sendto): Likewise.
8176         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8177         * lib/shutdown.c (rpl_shutdown): Likewise.
8178
8179 2011-09-20  Bruno Haible  <bruno@clisp.org>
8180
8181         select tests: EBADF tests.
8182         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8183         test_bad_fd): New functions.
8184         (test_function): Invoke also test_bad_fd.
8185
8186 2011-09-20  Bruno Haible  <bruno@clisp.org>
8187
8188         Tests for module 'posix_spawn_file_actions_addopen.
8189         * modules/posix_spawn_file_actions_addopen-tests: New file.
8190         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8191
8192         Tests for module 'posix_spawn_file_actions_adddup2'.
8193         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8194         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8195
8196         Tests for module 'posix_spawn_file_actions_addclose'.
8197         * modules/posix_spawn_file_actions_addclose-tests: New file.
8198         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8199
8200 2011-09-20  Bruno Haible  <bruno@clisp.org>
8201
8202         Tests for module 'unlockpt'.
8203         * modules/unlockpt-tests: New file.
8204         * tests/test-unlockpt.c: New file.
8205         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8206
8207         Tests for module 'grantpt'.
8208         * modules/grantpt-tests: New file.
8209         * tests/test-grantpt.c: New file.
8210         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8211
8212 2011-09-20  Bruno Haible  <bruno@clisp.org>
8213
8214         freopen tests: EBADF tests.
8215         * tests/test-freopen.c: Include errno.h, unistd.h.
8216         (main): Add tests for EBADF, commented out for the moment.
8217
8218         fclose tests: EBADF tests.
8219         * tests/test-fclose.c (main): Add tests for EBADF.
8220
8221         fflush tests: EBADF tests.
8222         * tests/test-fflush.c: Include errno.h, macros.h.
8223         (main): Add tests for EBADF.
8224
8225         ftello tests: EBADF tests.
8226         * tests/test-ftello4.sh: New file.
8227         * tests/test-ftello4.c: New file.
8228         * modules/ftello-tests (Files): Add them.
8229         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8230
8231         fseeko tests: EBADF tests.
8232         * tests/test-fseeko4.sh: New file.
8233         * tests/test-fseeko4.c: New file.
8234         * modules/fseeko-tests (Files): Add them.
8235         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8236
8237         Tests for function fputc().
8238         * modules/fputc-tests: New file.
8239         * tests/test-fputc.c: New file.
8240         * modules/stdio-tests (Depends-on): Add fputc-tests.
8241
8242         Tests for function fgetc().
8243         * modules/fgetc-tests: New file.
8244         * tests/test-fgetc.c: New file.
8245         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8246
8247         Tests for function fdopen().
8248         * modules/fdopen-tests: New file.
8249         * tests/test-fdopen.c: New file.
8250         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8251
8252         Tests for module 'vdprintf'.
8253         * modules/vdprintf-tests: New file.
8254         * tests/test-vdprintf.c: New file.
8255
8256         Tests for module 'dprintf'.
8257         * modules/dprintf-tests: New file.
8258         * tests/test-dprintf.c: New file.
8259
8260 2011-09-20  Bruno Haible  <bruno@clisp.org>
8261
8262         Tests for module 'ioctl'.
8263         * modules/ioctl-tests: New file.
8264         * tests/test-ioctl.c: New file.
8265
8266 2011-09-20  Bruno Haible  <bruno@clisp.org>
8267
8268         fcntl tests: EBADF tests.
8269         * tests/test-fcntl.c (main): Add more tests for EBADF.
8270
8271 2011-09-20  Bruno Haible  <bruno@clisp.org>
8272
8273         utimensat tests: EBADF tests.
8274         * tests/test-utimensat.c (main): Add tests for EBADF.
8275
8276         renameat tests: EBADF tests.
8277         * tests/test-renameat.c (main): Add tests for EBADF.
8278
8279         mkfifoat tests: EBADF tests.
8280         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8281
8282         readlinkat tests: EBADF tests.
8283         * tests/test-readlinkat.c (main): Add tests for EBADF.
8284
8285         symlinkat tests: EBADF tests.
8286         * tests/test-symlinkat.c (main): Add tests for EBADF.
8287
8288         linkat tests: EBADF tests.
8289         * tests/test-linkat.c (main): Add tests for EBADF.
8290
8291         Tests for module 'faccessat'.
8292         * modules/faccessat-tests: New file.
8293         * tests/test-faccessat.c: New file.
8294
8295         fdopendir tests: EBADF tests.
8296         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8297
8298         openat tests: EBADF tests.
8299         * tests/test-fchownat.c (main): Add tests for EBADF.
8300         * tests/test-fstatat.c (main): Likewise.
8301         * tests/test-mkdirat.c (main): Likewise.
8302         * tests/test-openat.c (main): Likewise.
8303         * tests/test-unlinkat.c (main): Likewise.
8304         * tests/test-fchmodat.c: New file.
8305         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8306         (Makefile.am): Also run 'test-fchmodat'.
8307
8308 2011-09-20  Bruno Haible  <bruno@clisp.org>
8309
8310         utimens, futimens, fdutimensat tests: EBADF tests.
8311         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8312
8313         Tests for function fstat().
8314         * modules/fstat-tests: New file.
8315         * tests/test-fstat.c: New file.
8316         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8317
8318 2011-09-20  Bruno Haible  <bruno@clisp.org>
8319
8320         test-ttyname_r tests: EBADF tests.
8321         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8322
8323         Tests for module 'isatty'.
8324         * modules/isatty-tests: New file.
8325         * tests/test-isatty.c: New file.
8326
8327         Tests for module 'write'.
8328         * modules/write-tests: New file.
8329         * tests/test-write.c: New file.
8330
8331         Tests for module 'read'.
8332         * modules/read-tests: New file.
8333         * tests/test-read.c: New file.
8334
8335         pwrite tests: EBADF tests.
8336         * tests/test-pwrite.c (main): Add tests for EBADF.
8337
8338         pread tests: EBADF tests.
8339         * tests/test-pread.c (main): Add tests for EBADF.
8340
8341         lseek tests: EBADF tests.
8342         * tests/test-lseek.c (main): Add more tests for EBADF.
8343
8344         Tests for module 'ftruncate'.
8345         * modules/ftruncate-tests: New file.
8346         * tests/test-ftruncate.sh: New file.
8347         * tests/test-ftruncate.c: New file.
8348
8349         fsync tests: EBADF tests.
8350         * tests/test-fsync.c (main): Add more tests for EBADF.
8351
8352         fdatasync tests: EBADF tests.
8353         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8354
8355         Tests for module 'fchown'.
8356         * modules/fchown-tests: New file.
8357         * tests/test-fchown.c: New file.
8358
8359         Tests for module 'fchmod'.
8360         * modules/fchmod-tests: New file.
8361         * tests/test-fchmod.c: New file.
8362
8363         fchdir tests: EBADF tests.
8364         * tests/test-fchdir.c (main): Add more tests for EBADF.
8365
8366         dup2 tests: EBADF tests.
8367         * tests/test-dup2.c (main): Add more tests for EBADF.
8368
8369         Tests for module 'dup'.
8370         * modules/dup-tests: New file.
8371         * tests/test-dup.c: New file.
8372
8373         Tests for module 'close'.
8374         * modules/close-tests: New file.
8375         * tests/test-close.c: New file.
8376
8377 2011-09-20  Bruno Haible  <bruno@clisp.org>
8378
8379         Tests for module 'shutdown'.
8380         * modules/shutdown-tests: New file.
8381         * tests/test-shutdown.c: New file.
8382
8383         Tests for module 'setsockopt'.
8384         * modules/setsockopt-tests: New file.
8385         * tests/test-setsockopt.c: New file.
8386
8387         Tests for module 'sendto'.
8388         * modules/sendto-tests: New file.
8389         * tests/test-sendto.c: New file.
8390
8391         Tests for module 'send'.
8392         * modules/send-tests: New file.
8393         * tests/test-send.c: New file.
8394
8395         Tests for module 'recvfrom'.
8396         * modules/recvfrom-tests: New file.
8397         * tests/test-recvfrom.c: New file.
8398
8399         Tests for module 'recv'.
8400         * modules/recv-tests: New file.
8401         * tests/test-recv.c: New file.
8402
8403         Tests for module 'listen'.
8404         * modules/listen-tests: New file.
8405         * tests/test-listen.c: New file.
8406
8407         Tests for module 'getsockopt'.
8408         * modules/getsockopt-tests: New file.
8409         * tests/test-getsockopt.c: New file.
8410
8411         Tests for module 'getsockname'.
8412         * modules/getsockname-tests: New file.
8413         * tests/test-getsockname.c: New file.
8414
8415         Tests for module 'getpeername'.
8416         * modules/getpeername-tests: New file.
8417         * tests/test-getpeername.c: New file.
8418
8419         Tests for module 'connect'.
8420         * modules/connect-tests: New file.
8421         * tests/test-connect.c: New file.
8422
8423         Tests for module 'bind'.
8424         * modules/bind-tests: New file.
8425         * tests/test-bind.c: New file.
8426
8427         accept4 tests: Fix for native Windows.
8428         * tests/test-accept4.c: Include sockets.h.
8429         (main): Invoke gl_sockets_startup.
8430         * modules/accept4-tests (Depends-on): Add sockets.
8431
8432         accept tests: Fix for native Windows.
8433         * tests/test-accept.c: Include sockets.h.
8434         (main): Invoke gl_sockets_startup.
8435         * modules/accept-tests (Depends-on): Add sockets.
8436
8437 2011-09-19  Bruno Haible  <bruno@clisp.org>
8438
8439         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8440         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8441         do...while(0).
8442         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8443         Suggested by Paul Eggert.
8444
8445 2011-09-19  Bruno Haible  <bruno@clisp.org>
8446
8447         sched: Ensure pid_t is defined.
8448         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8449         not define pid_t.
8450         * lib/sched.in.h: Include <sys/types.h>.
8451         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8452         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8453
8454 2011-09-19  Bruno Haible  <bruno@clisp.org>
8455
8456         msvc-inval: Ensure the entire expansion is a single statement.
8457         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8458         of braces.
8459
8460 2011-09-19  Jim Meyering  <meyering@redhat.com>
8461
8462         tests: use printf, not echo in init.sh's warn_ function
8463         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8464         misbehave when given strings containing a backslash or starting
8465         with e.g., -n.  James Youngman suggested setting IFS.
8466
8467 2011-09-19  Eric Blake  <eblake@redhat.com>
8468
8469         futimens: enhance test
8470         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8471         closed non-negative fd.
8472
8473         date: accept 'hence' as opposite of 'ago'
8474         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8475         * tests/test-parse-datetime.c (main): Enhance test.
8476         Suggested by Jesse Wilson.
8477
8478 2011-09-19  Jim Meyering  <meyering@redhat.com>
8479
8480         getcwd: don't fail in a deep directory on a system without openat
8481         Before this change, getcwd would fail when called from a directory
8482         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8483         the non-openat implementation used "..", "../..", "../../..", etc.
8484         to access ancestor directories.  With too many, that string would
8485         be longer than PATH_MAX.
8486         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8487         using gnulib's openat replacement.
8488         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8489         we're using the replacement function.
8490
8491 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8492
8493         maint.mk: avoid warnings from perl about missing files
8494         * top/maint.mk (def_sym_regex): Ignore files listed in
8495         $(gl_other_headers_) that do not exist, say because a project
8496         does not use a corresponding module.
8497
8498 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8499
8500         stat: use pathmax.h only if needed
8501         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8502         This is better for Emacs, which does not have a mingw port and
8503         therefore can avoid the pathmax module.
8504
8505         utimens: remove dependency on dup2
8506         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8507         to work around the Linux kernel bug.
8508         * modules/utimens (Depends-on): Remove dup2.
8509
8510 2011-09-18  Bruno Haible  <bruno@clisp.org>
8511
8512         inet_ntop, inet_pton: Look for it also in libresolv.
8513         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8514         libnsl, search for it in libresolv.
8515         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8516         Needed on Solaris 7.
8517
8518 2011-09-18  Bruno Haible  <bruno@clisp.org>
8519
8520         accept, accept4 tests: Avoid link error on Solaris.
8521         * modules/accept-tests (Makefile.am): Link test-accept against
8522         $(LIBSOCKET).
8523         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8524         $(LIBSOCKET).
8525
8526         accept4: Avoid link error on Solaris.
8527         * modules/accept4 (Link): New section.
8528
8529         socket functions: Avoid link errors on Solaris.
8530         * modules/accept (Depends-on): Add socketlib.
8531         (Link): New section.
8532         * modules/bind (Depends-on): Add socketlib.
8533         (Link): New section.
8534         * modules/connect (Depends-on): Add socketlib.
8535         (Link): New section.
8536         * modules/getpeername (Depends-on): Add socketlib.
8537         (Link): New section.
8538         * modules/getsockname (Depends-on): Add socketlib.
8539         (Link): New section.
8540         * modules/getsockopt (Depends-on): Add socketlib.
8541         (Link): New section.
8542         * modules/listen (Depends-on): Add socketlib.
8543         (Link): New section.
8544         * modules/recv (Depends-on): Add socketlib.
8545         (Link): New section.
8546         * modules/recvfrom (Depends-on): Add socketlib.
8547         (Link): New section.
8548         * modules/send (Depends-on): Add socketlib.
8549         (Link): New section.
8550         * modules/sendto (Depends-on): Add socketlib.
8551         (Link): New section.
8552         * modules/setsockopt (Depends-on): Add socketlib.
8553         (Link): New section.
8554         * modules/shutdown (Depends-on): Add socketlib.
8555         (Link): New section.
8556         * modules/socket (Depends-on): Add socketlib.
8557         (Link): New section.
8558
8559 2011-09-18  Bruno Haible  <bruno@clisp.org>
8560
8561         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8562         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8563         than 5 seconds.
8564         * modules/ptsname-tests (configure.ac): Test for alarm.
8565
8566 2011-09-18  Bruno Haible  <bruno@clisp.org>
8567
8568         posix_spawn_file_actions_add*: Fix module dependencies.
8569         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8570         posix_spawn_file_actions_init.
8571         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8572         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8573
8574 2011-09-18  Bruno Haible  <bruno@clisp.org>
8575
8576         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8577         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8578         * tests/test-renameat.c (main): Likewise.
8579
8580 2011-09-18  Bruno Haible  <bruno@clisp.org>
8581
8582         Tests for module 'accept4'.
8583         * modules/accept4-tests: New file.
8584         * tests/test-accept4.c: New file.
8585
8586 2011-09-18  Bruno Haible  <bruno@clisp.org>
8587
8588         Tests for module 'accept'.
8589         * modules/accept-tests: New file.
8590         * tests/test-accept.c: New file.
8591
8592 2011-09-18  Bruno Haible  <bruno@clisp.org>
8593
8594         dup2: Support for MSVC.
8595         * lib/dup2.c: Include msvc-inval.h.
8596         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8597         _get_osfhandle calls.
8598         * modules/dup2 (Depends-on): Add msvc-inval.
8599         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8600
8601         New module 'msvc-inval'.
8602         * lib/msvc-inval.h: New file.
8603         * lib/msvc-inval.c: New file.
8604         * m4/msvc-inval.m4: New file.
8605         * modules/msvc-inval: New file.
8606
8607 2011-09-17  Bruno Haible  <bruno@clisp.org>
8608
8609         Tests for module 'pclose'.
8610         * modules/pclose-tests: New file.
8611
8612         New module 'pclose'.
8613         * lib/stdio.in.h (pclose): New declaration.
8614         * lib/pclose.c: New file.
8615         * m4/pclose.m4: New file.
8616         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8617         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8618         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8619         * modules/pclose: New file.
8620         * modules/popen-tests (Depends-on): Add pclose.
8621         * modules/popen-safer-tests (Depends-on): Likewise.
8622         * doc/posix-functions/pclose.texi: Mention the new module.
8623
8624 2011-09-17  Bruno Haible  <bruno@clisp.org>
8625
8626         popen: Support for MSVC.
8627         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8628         * lib/popen.c (popen): Provide alternate definition for native Windows.
8629         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8630         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8631         * modules/popen (Depends-on, configure.ac): Update condition.
8632         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8633         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8634         fixed.
8635
8636 2011-09-17  Bruno Haible  <bruno@clisp.org>
8637
8638         isnanl, isnand, isnanf: Work around MSVC bug.
8639         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8640
8641 2011-09-17  Bruno Haible  <bruno@clisp.org>
8642
8643         sys_socket tests: Fix recent mistake.
8644         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8645
8646 2011-09-17  Bruno Haible  <bruno@clisp.org>
8647
8648         putenv: Support for MSVC.
8649         * modules/putenv (Depends-on): Add environ.
8650         * lib/putenv.c (environ): Disable declaration.
8651         * lib/unistd.in.h: Update comment.
8652
8653 2011-09-17  Bruno Haible  <bruno@clisp.org>
8654
8655         math: Avoid macro redefinition warnings on MSVC.
8656         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8657         Undefine before redefining.
8658
8659 2011-09-17  Bruno Haible  <bruno@clisp.org>
8660
8661         doc: Mention functions which are declared as macros.
8662         * doc/posix-functions/*[fl].texi: Mention that some functions are
8663         defined as macros with arguments only.
8664
8665 2011-09-17  Bruno Haible  <bruno@clisp.org>
8666
8667         Add dependencies to new dirent related modules.
8668         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8669         * modules/fts (Depends-on): Likewise.
8670         * modules/glob (Depends-on): Likewise.
8671         * modules/savedir (Depends-on): Likewise.
8672         * modules/scandir (Depends-on): Likewise.
8673         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8674         * modules/fdopendir (Depends-on): Add opendir.
8675
8676 2011-09-17  Bruno Haible  <bruno@clisp.org>
8677
8678         inet_pton: Support for MSVC on Windows Vista or newer.
8679         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8680         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8681         HAVE_DECL_INET_PTON is defined.
8682         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8683         On platforms with <winsock2.h>, test whether inet_pton is declared in
8684         <ws2tcpip.h>. If so, arrange to replace it.
8685         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8686         REPLACE_INET_PTON.
8687         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8688         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8689         (Depends-on, configure.ac): Update condition.
8690         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8691
8692 2011-09-17  Bruno Haible  <bruno@clisp.org>
8693
8694         inet_ntop: Support for MSVC on Windows Vista or newer.
8695         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8696         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8697         HAVE_DECL_INET_NTOP is defined.
8698         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8699         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8700         <ws2tcpip.h>. If so, arrange to replace it.
8701         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8702         REPLACE_INET_NTOP.
8703         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8704         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8705         (Depends-on, configure.ac): Update condition.
8706         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8707
8708 2011-09-16  Eric Blake  <eblake@redhat.com>
8709
8710         test-fsync: yet another enhancement
8711         * tests/test-fsync.c (main): Also test behavior on read-only text
8712         file.
8713
8714 2011-09-16  Bruno Haible  <bruno@clisp.org>
8715
8716         Enhance fsync, fdatasync tests.
8717         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8718         * tests/test-fdatasync.c (main): Likewise.
8719
8720 2011-09-16  Bruno Haible  <bruno@clisp.org>
8721
8722         Support for MSVC compiler: Ensure mode_t gets defined.
8723         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8724         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8725         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8726         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8727         * tests/test-fcntl-h.c: Check that mode_t is defined.
8728         * tests/test-sys_stat.c: Likewise.
8729         * tests/test-sys_types.c: Likewise.
8730         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8731         * doc/posix-headers/sys_stat.texi: Likewise.
8732         * doc/posix-headers/sys_types.texi: Likewise.
8733
8734 2011-09-16  Bruno Haible  <bruno@clisp.org>
8735
8736         sys_stat: Support for MSVC.
8737         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8738         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8739         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8740         MSVC.
8741
8742 2011-09-16  Bruno Haible  <bruno@clisp.org>
8743
8744         Support for MSVC compiler: Ensure off_t gets defined.
8745         * lib/unistd.in.h: Include <sys/types.h>.
8746         * tests/test-fcntl-h.c: Check that off_t is defined.
8747         * tests/test-sys_stat.c: Likewise.
8748         * tests/test-sys_types.c: Likewise.
8749
8750 2011-09-16  Eric Blake  <eblake@redhat.com>
8751
8752         fdatasync: port to Solaris
8753         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8754         * modules/fdatasync (Link): Document it.
8755         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8756
8757         fdatasync: port to MacOS X 10.7
8758         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8759         declared.
8760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8761         * modules/unistd (Makefile.am): Substitute it.
8762         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8763         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8764
8765         fdatasync: minor improvements
8766         * modules/fdatasync (Depends-on): Add condition for fsync.
8767         * lib/fdatasync.c (fdatasync): Add comment.
8768         * tests/test-unistd-c++.cc: Test fdatasync.
8769
8770         unistd: update refs to newer POSIX
8771         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8772         Suggested by Bruno Haible.
8773
8774         fdatasync: new module
8775         * modules/fsync (Description): Document difference to fdatasync.
8776         * modules/fdatasync: New module.
8777         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8778         * lib/fdatasync.c (fdatasync): Likewise.
8779         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8780         defaults.
8781         * modules/unistd (Makefile.am): Set witnesses.
8782         * lib/unistd.in.h (fdatasync): Declare.
8783         * MODULES.html.sh: Document it.
8784         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8785         * modules/fdatasync-tests: New test.
8786         * tests/test-fdatasync.c: Likewise.
8787
8788 2011-09-16  Eric Blake  <eblake@redhat.com>
8789
8790         test-fsync: enhance tests
8791         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8792         * tests/test-fsync.c (main): Enhance test.
8793
8794 2011-09-15  Bruno Haible  <bruno@clisp.org>
8795
8796         Support for MSVC compiler: Ensure ssize_t gets defined.
8797         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8798         * doc/posix-headers/stdio.texi: Likewise.
8799         * modules/stdio (Depends-on): Add ssize_t.
8800         * modules/sys_socket (Depends-on): Likewise.
8801         * modules/sys_types (Depends-on): Likewise.
8802         * modules/sys_uio (Depends-on): Likewise.
8803         * modules/unistd (Depends-on): Likewise.
8804         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8805         * tests/test-sys_types.c: Check that ssize_t is defined.
8806
8807 2011-09-14  Bruno Haible  <bruno@clisp.org>
8808
8809         Avoid using #, the m4 comment starter character, near brackets.
8810         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8811         delimiter character in sed expressions.
8812         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8813         Suggested by Eric Blake.
8814
8815         Properly quote AC_CHECK_DECLS' 4th argument.
8816         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8817         argument.
8818         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8819         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8820         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8821         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8822         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8823         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8824         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8825         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
8826         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
8827         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8828         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
8829         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8830         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8831         * m4/isinf.m4 (gl_ISINF): Likewise.
8832         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8833         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8834         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8835         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8836         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8837         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8838         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8839         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8840         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
8841         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8842         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8843         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
8845         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8847         Reported by Eric Blake.
8848
8849         Properly quote AC_CHECK_DECL's 4th argument.
8850         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
8851         argument.
8852         * m4/argp.m4 (gl_ARGP): Likewise.
8853         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8854         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8855         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8856         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8857         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
8858         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
8859         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
8860         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8861         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8862         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8863         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8864         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8865         Reported by Eric Blake.
8866
8867 2011-09-14  Eric Blake  <eblake@redhat.com>
8868
8869         opendir: avoid compile warning
8870         * lib/opendir.c (includes): Always include errno.h.
8871         Reported by Tatsuro MATSUOKA.
8872
8873 2011-09-14  Jim Meyering  <meyering@redhat.com>
8874
8875         maint.mk: sc_tight_scope: propagate failure from sub-make
8876         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
8877         Reported by Martin von Gagern.
8878
8879 2011-09-13  Bruno Haible  <bruno@clisp.org>
8880
8881         tempname: Support for MSVC.
8882         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
8883         MSVC.
8884         * modules/tempname (Depends-on): Add fcntl-h.
8885
8886 2011-09-13  Bruno Haible  <bruno@clisp.org>
8887
8888         sys_time: Support for MSVC.
8889         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
8890         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
8891         include <winsock2.h>.
8892         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
8893         function declarations that collide with POSIX.
8894         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
8895         (Makefile.am): Substitute HAVE_WINSOCK2_H.
8896
8897 2011-09-13  Bruno Haible  <bruno@clisp.org>
8898
8899         stat: Support for MSVC.
8900         * lib/stat.c: Include pathmax.h.
8901         * modules/stat (Depends-on): Add pathmax.
8902
8903         pathmax: Support for native Windows.
8904         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
8905
8906 2011-09-12  Bruno Haible  <bruno@clisp.org>
8907
8908         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
8909         * lib/dirent.in.h (struct dirent): New type.
8910         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
8911         DT_WHT): New macros.
8912         (DIR): New type.
8913         (opendir, closedir): Declare only if the module 'opendir' is enabled.
8914         (readdir, rewinddir): New declarations.
8915         * lib/dirent-private.h: New file.
8916         * lib/opendir.c: New file.
8917         * lib/readdir.c: New file.
8918         * lib/rewinddir.c: New file.
8919         * lib/closedir.c: New file.
8920         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
8921         * m4/opendir.m4: New file.
8922         * m4/readdir.m4: New file.
8923         * m4/rewinddir.m4: New file.
8924         * m4/closedir.m4: New file.
8925         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
8926         REPLACE_CLOSEDIR here.
8927         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
8928         readdir, rewinddir are declared.
8929         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
8930         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
8931         HAVE_REWINDDIR, HAVE_CLOSEDIR.
8932         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
8933         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
8934         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
8935         * modules/opendir: New file.
8936         * modules/readdir: New file.
8937         * modules/rewinddir: New file.
8938         * modules/closedir: New file.
8939         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
8940         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
8941         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
8942         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
8943         * NEWS: Mention the 'fchdir' change.
8944
8945 2011-09-11  Bruno Haible  <bruno@clisp.org>
8946
8947         asm-underscore.m4: Support for MSVC.
8948         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
8949         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
8950
8951 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
8952
8953         Doc about crypt functions.
8954         * doc/posix-functions/crypt.texi: Expand range of glibc versions
8955         needing for _GNU_SOURCE to get crypt.
8956         * doc/posix-functions/encrypt.texi: Likewise.
8957         * doc/posix-functions/setkey.texi: Likewise.
8958
8959 2011-09-11  Bruno Haible  <bruno@clisp.org>
8960
8961         doc: Update regarding MSVC 9.
8962         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
8963         tested".
8964         * doc/posix-functions/*.texi: Update with info about MSVC 9.
8965         * doc/posix-headers/*.texi: Likewise.
8966         * doc/pastposix-functions/*.texi: Likewise.
8967         * doc/glibc-functions/*.texi: Likewise.
8968         * doc/glibc-headers/*.texi: Likewise.
8969
8970 2011-09-11  Bruno Haible  <bruno@clisp.org>
8971
8972         unistd et al.: Don't assume <unistd.h> exists.
8973         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
8974         does not exist.
8975         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
8976         exist. But include <stdlib.h>.
8977         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
8978         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
8979         symlink() does not exist.
8980         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
8981         include <io.h> instead.
8982         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
8983         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
8984         include <direct.h> instead.
8985         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8986         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8987         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
8988         <io.h> instead.
8989         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
8990         correctly if the system does not have hard links.
8991         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
8992         <direct.h> instead.
8993         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
8994         it when looking for function declarations.
8995         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
8996         <direct.h> and <io.h> instead.
8997         * doc/posix-headers/unistd.texi: More details about MSVC problem.
8998
8999 2011-09-11  Bruno Haible  <bruno@clisp.org>
9000
9001         strcase: Support for MSVC.
9002         * modules/strcase (Status, Notice): Remove obsoletion mark.
9003         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9004         * doc/posix-functions/strncasecmp.texi: Likewise.
9005
9006         strings: Don't assume <strings.h> exists.
9007         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9008         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9009         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9010         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9011
9012 2011-09-11  Bruno Haible  <bruno@clisp.org>
9013
9014         dirent: Don't assume <dirent.h> exists.
9015         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9016         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9017         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9018         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9019
9020 2011-09-11  Bruno Haible  <bruno@clisp.org>
9021
9022         Fix wint_t on MSVC.
9023         * lib/wchar.in.h (wint_t): On MSVC, override it.
9024         * lib/wctype.in.h (wint_t): Likewise.
9025         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9026         MSVC.
9027         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9028         * doc/posix-headers/wctype.texi: Likewise.
9029
9030 2011-09-11  Bruno Haible  <bruno@clisp.org>
9031
9032         sys_types: Fix typo.
9033         * lib/sys_types.in.h: Fix typo in comment.
9034         Reported by Paul Eggert.
9035
9036         Support for MSVC compiler: Ensure size_t gets defined.
9037         * modules/strings (Depends-on): Add 'sys_types'.
9038         * modules/sys_uio (Depends-on): Likewise.
9039         * lib/sys_uio.in.h: Update comment.
9040
9041         C++ tests for module 'sys_types'.
9042         * modules/sys_types-c++-tests: New file.
9043         * tests/test-sys_types-c++.cc: New file.
9044
9045         Tests for module 'sys_types'.
9046         * modules/sys_types-tests: New file.
9047         * tests/test-sys_types.c: New file.
9048
9049         New module 'sys_types'.
9050         * lib/sys_types.in.h: New file.
9051         * m4/sys_types_h.m4: New file.
9052         * modules/sys_types: New file.
9053         * doc/posix-headers/sys_types.texi: Mention the new module and the
9054         size_t problem on MSVC 9.
9055
9056 2011-09-11  Bruno Haible  <bruno@clisp.org>
9057
9058         Support for MSVC compiler: Avoid division by a literal 0.
9059         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9060         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9061         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9062         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9063         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9064         * tests/infinity.h: New file.
9065         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9066         on MSVC.
9067         * tests/test-ceilf1.c: Include infinity.h.
9068         (main): Use Infinityf.
9069         * tests/test-ceil1.c: Include infinity.h.
9070         (main): Use Infinityd.
9071         * tests/test-ceill.c: Include infinity.h.
9072         (main): Use Infinityl.
9073         * tests/test-dprintf-posix.c: Include infinity.h.
9074         (test_function): Use Infinityd.
9075         * tests/test-floorf1.c: Include infinity.h.
9076         (main): Use Infinityf.
9077         * tests/test-floor1.c: Include infinity.h.
9078         (main): Use Infinityd.
9079         * tests/test-floorl.c: Include infinity.h.
9080         (main): Use Infinityl.
9081         * tests/test-fprintf-posix.c: Include infinity.h.
9082         (test_function): Use Infinityd.
9083         * tests/test-frexp.c: Include infinity.h.
9084         (main): Use Infinityd.
9085         * tests/test-frexpl.c: Include infinity.h.
9086         (main): Use Infinityl.
9087         * tests/test-isfinite.c: Include infinity.h.
9088         (test_isfinitef): Use Infinityf.
9089         (test_isfinited): Use Infinityd.
9090         (test_isfinitel): Use Infinityl.
9091         * tests/test-isinf.c: Include infinity.h.
9092         (test_isinff): Use Infinityf.
9093         (test_isinfd): Use Infinityd.
9094         (test_isinfl): Use Infinityl.
9095         * tests/test-isnan.c: Include infinity.h.
9096         (test_float): Use Infinityf.
9097         (test_double): Use Infinityd.
9098         (test_long_double): Use Infinityl.
9099         * tests/test-isnanf.h: Include infinity.h.
9100         (main): Use Infinityf.
9101         * tests/test-isnand.h: Include infinity.h.
9102         (main): Use Infinityd.
9103         * tests/test-isnanl.h: Include infinity.h.
9104         (main): Use Infinityl.
9105         * tests/test-ldexpl.c: Include infinity.h.
9106         (main): Use Infinityl.
9107         * tests/test-printf-posix.h: Include infinity.h.
9108         (test_function): Use Infinityd.
9109         * tests/test-roundf1.c: Include infinity.h.
9110         (main): Use Infinityf.
9111         * tests/test-round1.c: Include infinity.h.
9112         (main): Use Infinityd.
9113         * tests/test-roundl.c: Include infinity.h.
9114         (main): Use Infinityl.
9115         * tests/test-signbit.c: Include infinity.h.
9116         (test_signbitf): Use Infinityf.
9117         (test_signbitd): Use Infinityd.
9118         (test_signbitl): Use Infinityl.
9119         * tests/test-snprintf-posix.h: Include infinity.h.
9120         (test_function): Use Infinityd, Infinityl.
9121         * tests/test-sprintf-posix.h: Include infinity.h.
9122         (test_function): Use Infinityd, Infinityl.
9123         * tests/test-truncf1.c: Include infinity.h.
9124         (main): Use Infinityf.
9125         * tests/test-trunc1.c: Include infinity.h.
9126         (main): Use Infinityd.
9127         * tests/test-truncl.c: Include infinity.h.
9128         (main): Use Infinityl.
9129         * tests/test-vasnprintf-posix.c: Include infinity.h.
9130         (test_function): Use Infinityd, Infinityl.
9131         * tests/test-vasprintf-posix.c: Include infinity.h.
9132         (test_function): Use Infinityd, Infinityl.
9133         * modules/ceilf-tests (Files): Add tests/infinity.h.
9134         * modules/ceil-tests (Files): Likewise.
9135         * modules/ceill-tests (Files): Likewise.
9136         * modules/dprintf-posix-tests (Files): Likewise.
9137         * modules/floorf-tests (Files): Likewise.
9138         * modules/floor-tests (Files): Likewise.
9139         * modules/floorl-tests (Files): Likewise.
9140         * modules/fprintf-posix-tests (Files): Likewise.
9141         * modules/frexp-tests (Files): Likewise.
9142         * modules/frexp-nolibm-tests (Files): Likewise.
9143         * modules/frexpl-tests (Files): Likewise.
9144         * modules/frexpl-nolibm-tests (Files): Likewise.
9145         * modules/isfinite-tests (Files): Likewise.
9146         * modules/isinf-tests (Files): Likewise.
9147         * modules/isnan-tests (Files): Likewise.
9148         * modules/isnanf-tests (Files): Likewise.
9149         * modules/isnanf-nolibm-tests (Files): Likewise.
9150         * modules/isnand-tests (Files): Likewise.
9151         * modules/isnand-nolibm-tests (Files): Likewise.
9152         * modules/isnanl-tests (Files): Likewise.
9153         * modules/isnanl-nolibm-tests (Files): Likewise.
9154         * modules/ldexpl-tests (Files): Likewise.
9155         * modules/printf-posix-tests (Files): Likewise.
9156         * modules/roundf-tests (Files): Likewise.
9157         * modules/round-tests (Files): Likewise.
9158         * modules/roundl-tests (Files): Likewise.
9159         * modules/signbit-tests (Files): Likewise.
9160         * modules/snprintf-posix-tests (Files): Likewise.
9161         * modules/sprintf-posix-tests (Files): Likewise.
9162         * modules/truncf-tests (Files): Likewise.
9163         * modules/trunc-tests (Files): Likewise.
9164         * modules/truncl-tests (Files): Likewise.
9165         * modules/vasnprintf-posix-tests (Files): Likewise.
9166         * modules/vasprintf-posix-tests (Files): Likewise.
9167         * modules/vdprintf-posix-tests (Files): Likewise.
9168         * modules/vfprintf-posix-tests (Files): Likewise.
9169         * modules/vprintf-posix-tests (Files): Likewise.
9170         * modules/vsnprintf-posix-tests (Files): Likewise.
9171         * modules/vsprintf-posix-tests (Files): Likewise.
9172         * modules/xprintf-posix-tests (Files): Likewise.
9173
9174 2011-09-11  Bruno Haible  <bruno@clisp.org>
9175
9176         Ensure pid_t gets defined.
9177         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9178         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9179         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9180         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9181         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9182         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9183         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9184         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9185         * tests/test-fcntl-h.c: Check that pid_t is defined.
9186         * tests/test-sched.c: Likewise.
9187         * tests/test-termios.c: Likewise.
9188         * tests/test-time.c: Likewise.
9189         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9190         * doc/posix-headers/signal.texi: Likewise.
9191         * doc/posix-headers/sys_types.texi: Likewise.
9192         * doc/posix-headers/time.texi: Likewise.
9193
9194 2011-09-11  Bruno Haible  <bruno@clisp.org>
9195
9196         acl: Fix compilation on Solaris 10 (older version).
9197         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9198         of ACE_EVERYONE.
9199         * lib/set-mode-acl.c (qset_acl): Likewise.
9200         Reported by Christian Jullien <eligis@orange.fr>.
9201
9202 2011-09-10  Bruno Haible  <bruno@clisp.org>
9203
9204         iconv, unsetenv: Add support for MSVC compiler.
9205         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9206         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9207
9208 2011-09-10  Bruno Haible  <bruno@clisp.org>
9209
9210         *printf: Add support for MSVC compiler.
9211         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9212         handles the exception caused by the %n directive. When cross-compiling,
9213         guess no on native Windows.
9214         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9215         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9216         emulate it through vsnprintf.
9217         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9218         * doc/posix-functions/dprintf.texi: Update documentation regarding
9219         MSVC 9.
9220         * doc/posix-functions/fprintf.texi: Likewise.
9221         * doc/posix-functions/printf.texi: Likewise.
9222         * doc/posix-functions/snprintf.texi: Likewise.
9223         * doc/posix-functions/sprintf.texi: Likewise.
9224         * doc/posix-functions/swprintf.texi: Likewise.
9225         * doc/posix-functions/vdprintf.texi: Likewise.
9226         * doc/posix-functions/vfprintf.texi: Likewise.
9227         * doc/posix-functions/vprintf.texi: Likewise.
9228         * doc/posix-functions/vsnprintf.texi: Likewise.
9229         * doc/posix-functions/vsprintf.texi: Likewise.
9230         * doc/glibc-functions/asprintf.texi: Likewise.
9231         * doc/glibc-functions/obstack_printf.texi: Likewise.
9232         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9233         * doc/glibc-functions/vasprintf.texi: Likewise.
9234
9235 2011-09-10  Bruno Haible  <bruno@clisp.org>
9236
9237         nocrash: Add support for native Windows.
9238         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9239
9240 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9241             Bruno Haible  <bruno@clisp.org>
9242
9243         absolute-header, include-next: Add support for MSVC compiler.
9244         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9245         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9246         directory separator in #line directives.
9247         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9248         recognize also backslash as directory separator in #line directives.
9249
9250 2011-09-08  Jim Meyering  <meyering@redhat.com>
9251
9252         maint.mk: mark the post-release commit log with "maint: " prefix
9253         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9254         one-line commit-log summary.
9255
9256 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9257             Bruno Haible  <bruno@clisp.org>
9258
9259         Doc about crypt functions.
9260         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9261         systems.
9262         * doc/posix-functions/encrypt.texi: Likewise.
9263         * doc/posix-functions/setkey.texi: Likewise.
9264
9265 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9266
9267         * lib/gc.h: Fix copyright header.
9268
9269 2011-09-07  Bruno Haible  <bruno@clisp.org>
9270
9271         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9272         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9273         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9274
9275 2011-09-07  Bruno Haible  <bruno@clisp.org>
9276
9277         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9278         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9279         * lib/freopen.c: Likewise.
9280         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9281         * lib/lstat.c: Likewise.
9282         * lib/stat.c: Likewise.
9283         * lib/open.c: Use different syntax for include of <fcntl.h>.
9284         * lib/openat.c: Include fcntl.h again, explicitly.
9285
9286 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9287
9288         parse-datetime: document the newly accepted format
9289         * doc/parse-datetime.texi (Combined date and time of day items):
9290         New section.
9291
9292 2011-09-06  Bruno Haible  <bruno@clisp.org>
9293
9294         acl: Fix a test failure on newer Solaris 10 with ZFS.
9295         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9296         ENOSYS as no ACL.
9297         Reported by Jim Meyering.
9298
9299 2011-09-06  Bruno Haible  <bruno@clisp.org>
9300
9301         acl: Update for AIX >= 5.3 with NFS.
9302         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9303         ENOSYS as no ACL.
9304
9305         acl: Fix a test failure on AIX >= 5.3 with NFS.
9306         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9307         as no ACL.
9308
9309 2011-09-06  Bruno Haible  <bruno@clisp.org>
9310
9311         acl: Fix a test failure on IRIX 6.5 with NFS.
9312         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9313         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9314         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9315         * lib/copy-acl.c (qcopy_acl): Likewise.
9316
9317 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9318
9319         openat: port to AIX 7.1 with large files
9320         AIX 7.1 does a "#define openat open64at" if large files are in use,
9321         so we can't simply #undef openat.  Use the orig_openat trick (similar
9322         to orig_open in lib/open.c) to work around the problem.  Problem
9323         reported by Kevin Brott for GNU tar, in the thread containing
9324         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9325         * lib/openat.c (__need_system_fcntl_h): Define first.
9326         Include <fcntl.h> and <sys/types.h> before undefining.
9327         (orig_openat) [HAVE_OPENAT]: New inline function.
9328         (openat) [HAVE_OPENAT]: Do not undef.
9329         (rpl_openat): Use orig_openat, not openat.
9330
9331 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9332             Bruno Haible  <bruno@clisp.org>
9333
9334         acl: Avoid errors on NonStop Kernel.
9335         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9336         ENOTSUP errors.
9337
9338 2011-09-05  Bruno Haible  <bruno@clisp.org>
9339
9340         acl: Clean up Solaris code.
9341         * lib/acl-internal.h: Remove no-op #if.
9342         * lib/file-has-acl.c: Likewise.
9343         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9344         * lib/copy-acl.c (qcopy_acl): Likewise.
9345
9346 2011-09-05  Bruno Haible  <bruno@clisp.org>
9347
9348         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9349         binaries built on the original Solaris 10.
9350         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9351         trivial.
9352
9353 2011-09-05  Bruno Haible  <bruno@clisp.org>
9354
9355         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9356         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9357         10.
9358         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9359         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9360         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9361         instead of acl_get, facl_get, acl_set, facl_set.
9362
9363 2011-09-05  Bruno Haible  <bruno@clisp.org>
9364
9365         copy-file: Try unit tests on more file systems.
9366         * tests/test-copy-file-1.sh: New file.
9367         * tests/test-copy-file-2.sh: New file.
9368         * modules/copy-file-tests (Files): Add them.
9369         (Makefile.am): Add them to TESTS.
9370
9371         acl: Try unit tests on more file systems.
9372         * tests/test-file-has-acl-1.sh: New file.
9373         * tests/test-file-has-acl-2.sh: New file.
9374         * tests/test-set-mode-acl-1.sh: New file.
9375         * tests/test-set-mode-acl-2.sh: New file.
9376         * tests/test-copy-acl-1.sh: New file.
9377         * tests/test-copy-acl-2.sh: New file.
9378         * modules/acl-tests (Files): Add them.
9379         (Makefile.am): Add them to TESTS.
9380
9381 2011-09-04  Bruno Haible  <bruno@clisp.org>
9382
9383         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9384         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9385         10.
9386         (OLD_ALLOW, OLD_DENY): New macros.
9387         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9388         ACE_ACCESS_ALLOWED_ACE_TYPE.
9389         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9390         ACE_ACCESS_DENIED_ACE_TYPE.
9391         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9392         (NEW_ACE_EXECUTE): Fix value.
9393         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9394         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9395         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9396         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9397         NEW_ACE_SYNCHRONIZE): New macros.
9398         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9399         instead of acl_fromtext, acl_set, facl_set.
9400         Fixes a coreutils/tests/cp/perm failure.
9401
9402 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9403
9404         openat: test for fstatat (..., 0) bug
9405         Further testing with tar suggests that fstatat (..., 0)
9406         does not work in general, on AIX 7.1; see
9407         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9408         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9409         replacement fstatat (which is what older AIX releases were using
9410         anyway).
9411         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9412         use is now changed to orig_fstatat.  This was probably the right
9413         thing to do anyway.
9414         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9415         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9416         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9417         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9418         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9419         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9420         if the bug is found.
9421
9422         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9423         This tests for another fstatat bug on AIX 7.1:
9424         fstatat (AT_FDCWD, ..., 0) does not work.  See
9425         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9426         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9427         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9428         (rpl_fstatat): Adjust so that it works around either (or both)
9429         bugs if present.
9430         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9431
9432 2011-09-03  Karl Berry  <karl@gnu.org>
9433
9434         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9435         in index entries.
9436
9437 2011-09-02  Bruno Haible  <bruno@clisp.org>
9438
9439         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9440         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9441         values of AR, ARFLAGS, RANLIB.
9442         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9443
9444 2011-09-02  Bruno Haible  <bruno@clisp.org>
9445
9446         Find 'ar' program that fits with --host argument.
9447         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9448
9449 2011-09-02  Bruno Haible  <bruno@clisp.org>
9450
9451         tests: init.sh: Support any non-GNU diff.
9452         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9453         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9454         Solaris 8.
9455
9456 2011-09-02  Bruno Haible  <bruno@clisp.org>
9457
9458         tests: init.sh: work also with any non-GNU diff that supports -u
9459         * tests/init.sh: Relax check for diff -u support.
9460         Rather than checking for GNU diff via --version, simply check
9461         for support for -u itself.  Useful at least on OpenBSD 4.9,
9462         AIX 7.1, IRIX 6.5, and Solaris 10.
9463
9464 2011-09-01  Bruno Haible  <bruno@clisp.org>
9465
9466         strtoimax, strtoumax: Document problem on HP-UX 11.
9467         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9468         * doc/posix-functions/strtoumax.texi: Likewise.
9469
9470 2011-09-01  Bruno Haible  <bruno@clisp.org>
9471
9472         strtoumax: Avoid link error on OSF/1 with DTK cc.
9473         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9474         defined as a function.
9475         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9476         strtoumax is defined, not whether it is declared.
9477
9478 2011-09-01  Bruno Haible  <bruno@clisp.org>
9479
9480         strtoimax: Avoid link error on OSF/1 with DTK cc.
9481         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9482         defined as a function.
9483         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9484         strtoimax is defined, not whether it is declared.
9485
9486 2011-09-01  Bruno Haible  <bruno@clisp.org>
9487
9488         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9489         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9490         as a function.
9491         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9492         whether it is declared.
9493
9494 2011-09-01  Bruno Haible  <bruno@clisp.org>
9495
9496         imaxabs: Avoid link error on OSF/1 with DTK cc.
9497         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9498         as a function.
9499         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9500         whether it is declared.
9501
9502 2011-09-01  Bruno Haible  <bruno@clisp.org>
9503
9504         Tests for module 'strtoumax'.
9505         * modules/strtoumax-tests: New file.
9506         * tests/test-strtoumax.c: New file.
9507
9508         Tests for module 'strtoimax'.
9509         * modules/strtoimax-tests: New file.
9510         * tests/test-strtoimax.c: New file.
9511
9512         Tests for module 'imaxdiv'.
9513         * modules/imaxdiv-tests: New file.
9514         * tests/test-imaxdiv.c: New file.
9515
9516         Tests for module 'imaxabs'.
9517         * modules/imaxabs-tests: New file.
9518         * tests/test-imaxabs.c: New file.
9519
9520 2011-09-01  Bruno Haible  <bruno@clisp.org>
9521
9522         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9523         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9524         pthread_create.
9525
9526 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9527
9528         openat: work around AIX 7.1 fstatat issue
9529         This should fix the problem that was not properly fixed
9530         in the previous change, dated 2011-08-30.
9531         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9532         __need_system_stat_h defined.
9533         (orig_fstatat) [HAVE_FSTATAT]: New function.
9534         (rpl_fstatat): Go back to the old way of doing things,
9535         except call orig_fstatat instead of fstatat.
9536         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9537         Remove unnecessary check whether fstatat fills in st_size etc.
9538
9539 2011-09-01  Bruno Haible  <bruno@clisp.org>
9540
9541         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9542         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9543         just include the system's header.
9544
9545 2011-08-31  Jim Meyering  <meyering@redhat.com>
9546
9547         tests: avoid spurious assertion failure in test-float.c on ppc64
9548         * tests/test-float.c (test_long_double): Comment out an assertion,
9549         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9550         with gcc-4.4.4.
9551
9552         maint: indent with spaces, not TABs
9553         I need to get in the habit of running gnulib's "make check".
9554         Both of these would have been caught.
9555         * m4/largefile.m4: Indent with spaces, not TABs.
9556         * lib/parse-datetime.y (iso_8601_time): Likewise.
9557         Spotted by Pádraig Brady.
9558
9559         test-parse-datetime.c: accommodate a relatively strict gcc warning
9560         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9561         to avoid a warning from gcc's -Werror=missing-declarations.
9562         Insert a few spaces-before-funcall-parenthesis.
9563
9564 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9565
9566         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9567         The parser now accepts ISO 8601 date-time strings with "T" as the
9568         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9569         with a space between the date and time strings.  Now it also parses
9570         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9571         variants like "2004-02-29T16:21:42.333-07:00"
9572         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9573         of day representation using the 'T' separator character.
9574         * doc/parse-datetime.texi (General date syntax): replace use of
9575         deprecated --iso-8601 option with --rfc-3339 in example of date
9576         command output formats that can be parsed.
9577         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9578         lib/parse-datetime.y.
9579         (gmt_offset): New function.
9580         (main): Add additional test cases to validate ISO8601 extended
9581         date and time of day parsing.
9582
9583 2011-08-31  Bruno Haible  <bruno@clisp.org>
9584
9585         freopen: Documentation.
9586         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9587         name.
9588         Reported by Claudio Bley <claudio.bley@gmail.com>.
9589
9590 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9591
9592         freopen: Don't crash if the filename argument is NULL.
9593         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9594         NULL.
9595
9596 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9597
9598         openat: work around AIX 7.1 fstatat bug
9599         Problem reported by Kevin Brott for GNU tar, in the thread containing
9600         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9601         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9602         FSTATAT_ST_SIZE_ETC_BROKEN.
9603         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9604         rpl_fstatat.
9605         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9606         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9607         AC_CHECK_FUNCS_ONCE for fstatat.
9608         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9609         fchmodat, mkdirat, openat and unlinkat.
9610
9611 2011-08-30  Bruno Haible  <bruno@clisp.org>
9612
9613         Avoid endless recursions if config.h includes some header files.
9614         * lib/fopen.c (__need_FILE): Define already before including config.h.
9615         * lib/freopen.c (__need_FILE): Likewise.
9616         * lib/open.c (__need_system_fcntl_h): Likewise.
9617         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9618         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9619         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9620
9621 2011-08-25  Karl Berry  <karl@gnu.org>
9622
9623         * config/srclist.txt (ylwrap): new try.
9624         * build-aux/ylwrap: new file.
9625
9626 2011-08-23  Bruno Haible  <bruno@clisp.org>
9627
9628         tmpdir: Use a good default directory on native Windows.
9629         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9630         (P_tmpdir): Default to _P_tmpdir on native Windows.
9631         (path_search): On native Windows, try the value returned by GetTempPath
9632         before trying P_tmpdir.
9633         * modules/tmpdir (Depends-on): Add pathmax.
9634         Suggested by John Darrington <john@darrington.wattle.id.au>.
9635
9636 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9637
9638         doc: fix typo in README-release
9639         * top/README-release: Capitalize first word of a sentence.
9640
9641 2011-08-19  Jim Meyering  <meyering@redhat.com>
9642
9643         fts: do not exhaust memory when processing million-entry directories
9644         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9645         directory would require about 256*N bytes of memory.  Thus, it was
9646         easy to construct a directory too large to be processed by any of
9647         those tools.  With this change, fts' maximum memory utilization is
9648         now limited to around 30MB.
9649         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9650         (fts_read): When we've processed the final entry (i.e., when
9651         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9652         using the parent entry to read any remaining entries.  Dispatch
9653         depending on what fts_build returns:
9654         - NULL+stop, aka failure: stop
9655         - NULL otherwise: move up in the dir hierarchy
9656         - non-NULL: handle this new entry
9657         (fts_build): Declare and use new local, continue_readdir.
9658         Prepare to be called from fts_read, when the entries
9659         from a partially-read directory have just been exhausted.
9660         In that case, we'll skip the opendir and instead use the parent's
9661         fts_dirp and derive dir_fd from that.
9662         Finally, in the readdir loop, if we read max_entries entries,
9663         exit the loop ensuring *not* to call closedir.  This is required
9664         so that fts_dirp can be reused on a subsequent call.
9665         Prompted by Ben England's report of memory exhaustion in find
9666         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9667
9668         maint: fts: move decl of `dp' down into while loop; split a long line
9669         * lib/fts.c (fts_build): No semantic change.
9670
9671         fts: add/use new struct member, fts_dirp
9672         We are about to use this to manage any directory with
9673         too many entries to read all of them into memory at once.
9674         To do that, we'll need to save the DIR* pointer in each
9675         affected FTSENT struct.
9676         * lib/fts_.h: Include <dirent.h>.
9677         (struct FTSENT) [fts_dirp]: New member.
9678         * lib/fts.c (closedir_and_clear): Define.
9679         Use it in place of closedir so that we are sure to
9680         clear the new fts_dirp member when done with it.
9681         (fts_alloc): Initialize the new member.
9682         (fts_lfree): Free, if needed.
9683
9684         maint: fts: give __opendir2 a new parameter and rename
9685         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9686         than surreptitiously using sole caller's "dir_fd".
9687         (fts_opendir): Rename from __opendir2.
9688
9689         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9690         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9691
9692         maint: fts.c: correct off-by-one indentation
9693         * lib/fts.c (fts_build): Correct indentation, change style
9694         of a couple of block comments, and bracing style.
9695
9696         maint: fts.c: move __opendir2 #define "up" out of function body
9697         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9698
9699         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9700         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9701         out for a long time and besides was useful only on BSD systems.
9702
9703 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9704
9705         regex: port to Stratus OpenVOS
9706         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9707         define to empty, rather than attempting nonportable optimizations.
9708         Problem reported by Paul Green in:
9709         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9710         and fix suggested by Eric Blake in:
9711         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9712
9713 2011-08-17  Eric Blake  <eblake@redhat.com>
9714
9715         getcwd: fix test failures on mingw
9716         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9717         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9718         test if long directory cannot be created, and allow mingw errno.
9719
9720         getcwd-lgpl: fix m4 to match relaxed test for BSD
9721         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9722         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9723         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9724         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9725         signature problem.
9726
9727         getcwd: fix compilation on mingw64
9728         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9729         getcwd.
9730         Reported by Marc-André Lureau.
9731
9732         pipe2: silence compiler warning
9733         * lib/pipe2.c (pipe2): Hide label if it is not used.
9734
9735 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9736
9737         relocatable-prog: fix link error
9738         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9739         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9740         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9741         into modules/relocatable-lib without noticing that
9742         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9743         also needs to build relocatable.c.
9744
9745 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9746
9747         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9748         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9749         shell code: it contained a 'break' that was not in a loop.
9750         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9751         via a shell-language loop; this may have been true in old Autoconf
9752         versions, but it's not true in Autoconf 2.68.  I found this bug
9753         when testing coreutils git on Solaris 8, whose shell complains
9754         about the syntax error.
9755
9756 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9757
9758         * lib/base64.c: Fix comment to reference RFC 4648.
9759         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9760         <gvtulder@gmail.com>.
9761
9762 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9763
9764         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9765
9766         po/Makefile.in.in: fix make -q problem
9767         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9768         rule, since there's no file named 'check-macro-version' and its
9769         use as a file breaks make -q.
9770         (all): Don't depend on check-macro-version.
9771         (CHECK_MACRO_VERSION): New macro.
9772         (stamp-po): Use it.
9773
9774         configmake: fix make -q problem
9775         * modules/configmake (configmake.h): Update configmake.h's time stamp
9776         even if the file does not change.  Otherwise, 'make -q' fails.
9777         Problem reported by Simon Josefsson in
9778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9779
9780 2011-08-11  Jim Meyering  <meyering@redhat.com>
9781
9782         git-version-gen: correct the advice in a comment
9783         * build-aux/git-version-gen: Correct comment.
9784         Don't recommend to list .tarball-version in .gitignore.
9785
9786 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9787
9788         base64: fix off-by-one buffer size bug
9789         Problem and (trivial) fix reported by Gijs van Tulder in
9790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9791         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9792         * tests/test-base64.c (main): Catch the bug.
9793
9794 2011-08-10  Eric Blake  <eblake@redhat.com>
9795
9796         closein: correct comments
9797         * lib/closein.c (close_stdin): Improve comments.
9798
9799 2011-08-09  Bruno Haible  <bruno@clisp.org>
9800
9801         More tests for 'fseeko'.
9802         * tests/test-fseeko3.c: New file, from Eric Blake.
9803         * tests/test-fseeko3.sh: New file.
9804         * modules/fseeko-tests (Files): Add them.
9805         (TESTS): Add test-fseeko3.sh.
9806         (check_PROGRAMS): Add test-fseeko3.
9807
9808 2011-08-09  Eric Blake  <eblake@redhat.com>
9809
9810         fseeko: remove unneeded hack
9811         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9812
9813         fseeko: fix bug on glibc
9814         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9815         Reported by John W. Eaton.
9816
9817 2011-08-08  Bruno Haible  <bruno@clisp.org>
9818
9819         unictype/base: Fix interoperability with preinstalled libunistring.
9820         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9821         Reported by Simon Josefsson.
9822
9823 2011-08-08  Bruno Haible  <bruno@clisp.org>
9824
9825         iswblank: Detect declaration correctly.
9826         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
9827         AC_CHECK_DECLS invocation.
9828
9829 2011-08-08  Bruno Haible  <bruno@clisp.org>
9830
9831         tcgetsid: Detect declaration correctly.
9832         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
9833         AC_CHECK_DECLS invocation.
9834         Reported by Simon Josefsson.
9835
9836 2011-08-08  Eric Blake  <eblake@redhat.com>
9837
9838         largefile: fix typo that regressed large file support
9839         * modules/largefile (configure.ac-early): Fix section name.
9840
9841 2011-08-06  Karl Berry  <karl@gnu.org>
9842
9843         * MODULES.html.sh (func_all_files): _Noreturn is no longer
9844         a separate module.
9845
9846 2011-08-05  Simon Josefsson  <simon@josefsson.org>
9847
9848         openat: Fix warnings and commens when building unlinkat.c on Hurd.
9849         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
9850         get prototype for free.
9851
9852 2011-08-04  Bruno Haible  <bruno@clisp.org>
9853
9854         Tests for module 'pathmax'.
9855         * modules/pathmax-tests: New file.
9856         * tests/test-pathmax.c: New file.
9857
9858         canonicalize-lgpl: Support larger filenames on the Hurd.
9859         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
9860         Reported by Paul Eggert.
9861
9862         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
9863         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
9864         * lib/chdir-long.h: Include pathmax.h.
9865         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
9866         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
9867         (PATH_MAX): Remove code that is done by pathmax.h.
9868         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
9869         * lib/tmpfile.c: Add a comment.
9870         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
9871         * modules/chdir-long (Depends-on): Add pathmax.
9872         * modules/getcwd (Depends-on): Add pathmax.
9873         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
9874         is not defined.
9875         * doc/posix-headers/limits.texi: Mention the pathmax module.
9876         * NEWS: Mention the change.
9877
9878 2011-08-02  Bruno Haible  <bruno@clisp.org>
9879
9880         pthread_sigmask: Actually use results of gl_THREADLIB.
9881         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
9882         gl_THREADLIB, not gl_[]THREADLIB.
9883         Reported by Eric Blake.
9884
9885 2011-08-02  Jim Meyering  <meyering@redhat.com>
9886
9887         maint.mk: relax the default _gl_TS_function_match regexp
9888         * top/maint.mk (_gl_TS_function_match): Don't require at least one
9889         space between function name and "(" in an "extern" declaration.
9890         That would fail to match a decl with no space there: extern void foo();
9891
9892 2011-07-31  Iain Nicol  <iain@thenicols.net>
9893
9894         git-version-gen: document that EXTRA_DIST must include .version
9895         * build-aux/git-version-gen: In the how-to-use comment, document
9896         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
9897         will fail when run from an unpacked distribution tarball.
9898
9899 2011-08-01  Bruno Haible  <bruno@clisp.org>
9900
9901         wctype-h: Fix last change.
9902         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
9903         REPLACE_TOWLOWER to 0.
9904         Reported by Sam Steingold <sds@gnu.org>.
9905
9906 2011-07-31  Bruno Haible  <bruno@clisp.org>
9907
9908         frexpl: Update autoconf test.
9909         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
9910         according to changes of 2011-06-20.
9911
9912 2011-07-31  Bruno Haible  <bruno@clisp.org>
9913
9914         sys_utsname: Add support for Minix.
9915         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
9916         <sys/utsname.h>.
9917         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9918         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
9919
9920 2011-07-31  Bruno Haible  <bruno@clisp.org>
9921
9922         strings: Add support for Minix.
9923         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
9924         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9925         * doc/posix-headers/strings.texi: Document the Minix problem.
9926
9927 2011-07-31  Bruno Haible  <bruno@clisp.org>
9928
9929         wctype-h: Add support for Minix.
9930         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
9931         REPLACE_TOWLOWER.
9932         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
9933         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
9934         REPLACE_ISWCNTRL.
9935
9936 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
9937
9938         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
9939         This is a performance improvement for 64-bit hosts: it causes the
9940         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
9941
9942 2011-07-31  Bruno Haible  <bruno@clisp.org>
9943
9944         stdioext: Add support for Minix.
9945         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
9946         * lib/fpurge.c (fpurge): Likewise.
9947         * lib/freadahead.c (freadahead): Likewise.
9948         * lib/freadable.c (freadable): Likewise.
9949         * lib/freading.c (freading): Likewise.
9950         * lib/freadptr.c (freadptr): Likewise.
9951         * lib/freadseek.c (freadptrinc): Likewise.
9952         * lib/fseeko.c (rpl_fseeko): Likewise.
9953         * lib/fseterr.c (fseterr): Likewise.
9954         * lib/fwritable.c (fwritable): Likewise.
9955         * lib/fwriting.c (fwriting): Likewise.
9956         * lib/fflush.c (clear_ungetc_buffer): Update comment.
9957         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
9958
9959 2011-07-31  Bruno Haible  <bruno@clisp.org>
9960
9961         errno: Port to Minix.
9962         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
9963         ECONNABORTED are defined.
9964         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
9965         GNULIB_defined_ECONNABORTED): New macros.
9966         * lib/strerror-override.h (strerror_override): Test also
9967         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
9968         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
9969         ECONNABORTED.
9970         * doc/posix-headers/errno.texi: Mention the Minix problem.
9971
9972 2011-07-31  Bruno Haible  <bruno@clisp.org>
9973
9974         Work around declaration collisions on Minix.
9975         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
9976         defined, set REPLACE_MBSINIT.
9977         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
9978         defined, set REPLACE_MBRTOWC.
9979         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
9980         set REPLACE_MBRLEN.
9981         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
9982         defined, set REPLACE_MBSRTOWCS.
9983         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
9984         defined, set REPLACE_WCRTOMB.
9985         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
9986         defined, set REPLACE_WCSRTOMBS.
9987
9988 2011-07-31  Bruno Haible  <bruno@clisp.org>
9989
9990         Add support for Minix with ACK compiler.
9991         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
9992         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
9993         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
9994
9995 2011-07-31  Bruno Haible  <bruno@clisp.org>
9996
9997         Documentation about Minix.
9998         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
9999         * doc/glibc-headers/*.texi: Likewise.
10000         * doc/posix-functions/*.texi: Likewise.
10001         * doc/glibc-functions/*.texi: Likewise.
10002
10003 2011-07-31  Bruno Haible  <bruno@clisp.org>
10004
10005         snippet/warn-on-use: Fix indentation.
10006         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10007
10008 2011-07-25  Jim Meyering  <meyering@redhat.com>
10009
10010         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10011         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10012         commands.
10013
10014 2011-07-27  Jim Meyering  <meyering@redhat.com>
10015
10016         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10017         * top/maint.mk (gl_extract_significant_defines_): Now that
10018         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10019         gnulib/lib/signal.in.h, and now that we recommend to
10020         define-if-undefined those two symbols in application code,
10021         we must filter them out of the "significant" list.
10022         This avoids a "make syntax-check" failure in coreutils.
10023
10024 2011-07-26  Eric Blake  <eblake@redhat.com>
10025
10026         warnings: add comments about previous patch
10027         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10028         * m4/include_next.m4: Likewise.
10029         * m4/warn-on-use.m4: Likewise.
10030         * m4/warnings.m4: Likewise, and simplify use.
10031         Suggested by Stefano Lattarini.
10032
10033         include-next, warnings: support older autoconf
10034         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10035         AS_VAR_PUSHDEF in a way that works with older autoconf.
10036         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10037         Reported by Daniel P. Berrange.
10038
10039 2011-07-25  Bruno Haible  <bruno@clisp.org>
10040
10041         fseek, ftell: Fix doc.
10042         * doc/posix-functions/fseek.texi: Reword statement about
10043         AC_SYS_LARGEFILE.
10044         * doc/posix-functions/ftell.texi: Likewise.
10045
10046 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10047             Bruno Haible  <bruno@clisp.org>
10048
10049         Add dependencies to the 'largefile' module.
10050         * modules/fopen (Depends-on): Add 'largefile'.
10051         * modules/freopen (Depends-on): Likewise.
10052         * modules/fseeko (Depends-on): Likewise.
10053         * modules/ftello (Depends-on): Likewise.
10054         * modules/glob (Depends-on): Likewise.
10055         * modules/lseek (Depends-on): Likewise.
10056         * modules/lstat (Depends-on): Likewise.
10057         * modules/mkostemp (Depends-on): Likewise.
10058         * modules/mkostemps (Depends-on): Likewise.
10059         * modules/mkstemp (Depends-on): Likewise.
10060         * modules/mkstemps (Depends-on): Likewise.
10061         * modules/open (Depends-on): Likewise.
10062         * modules/openat (Depends-on): Likewise.
10063         * modules/pread (Depends-on): Likewise.
10064         * modules/pwrite (Depends-on): Likewise.
10065         * modules/scandir (Depends-on): Likewise.
10066         * modules/stat (Depends-on): Likewise.
10067         * modules/tmpfile (Depends-on): Likewise.
10068         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10069         since the containing module now depends on the largefile module.
10070         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10071         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10072         off_t is fixed by gnulib.
10073         * doc/posix-functions/freopen.texi: Likewise.
10074         * doc/posix-functions/fseeko.texi: Likewise.
10075         * doc/posix-functions/fstatat.texi: Likewise.
10076         * doc/posix-functions/ftello.texi: Likewise.
10077         * doc/posix-functions/glob.texi: Likewise.
10078         * doc/posix-functions/lseek.texi: Likewise.
10079         * doc/posix-functions/lstat.texi: Likewise.
10080         * doc/posix-functions/mkstemp.texi: Likewise.
10081         * doc/posix-functions/open.texi: Likewise.
10082         * doc/posix-functions/openat.texi: Likewise.
10083         * doc/posix-functions/pread.texi: Likewise.
10084         * doc/posix-functions/pwrite.texi: Likewise.
10085         * doc/posix-functions/scandir.texi: Likewise.
10086         * doc/posix-functions/stat.texi: Likewise.
10087         * doc/posix-functions/tmpfile.texi: Likewise.
10088         * doc/glibc-functions/mkostemp.texi: Likewise.
10089         * doc/glibc-functions/mkostemps.texi: Likewise.
10090         * doc/glibc-functions/mkstemps.texi: Likewise.
10091
10092 2011-07-25  Bruno Haible  <bruno@clisp.org>
10093
10094         fcntl: Move AC_LIBOBJ invocation to module description.
10095         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10096         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10097
10098         fcntl: Remove call-in from fchdir.m4.
10099         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10100         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10101
10102         dup3: Remove potential call-in from fchdir.m4.
10103         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10104         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10105
10106         dup2: Move AC_LIBOBJ invocation to module description.
10107         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10108         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10109         Don't invoke AC_LIBOBJ.
10110         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10111
10112         dup2: Remove call-in from fchdir.m4.
10113         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10115
10116         fclose: Move AC_LIBOBJ invocation to module description.
10117         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10118         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10119         to 1.
10120         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10121
10122         fclose: Remove call-in from close.m4.
10123         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10124         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10125
10126         close: Move AC_LIBOBJ invocation to module description.
10127         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10128         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10129         1.
10130         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10131
10132         close: Remove call-in from fchdir.m4.
10133         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10134         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10135
10136         open: Move AC_LIBOBJ invocation to module description.
10137         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10138         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10139         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10140
10141         open: Remove call-in from fchdir.m4.
10142         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10144
10145         fchdir: Start to remove gl_REPLACE_* idiom.
10146         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10147         (gl_FUNC_FCHDIR): Invoke it.
10148
10149 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10150
10151         * lib/ftell.c (ftell): Comment out cast.
10152
10153         close: use gl_REPLACE_FCLOSE only if defined
10154         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10155         is defined.  The close module doesn't depend on the fclose module
10156         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10158         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10159
10160 2011-07-24  Jim Meyering  <meyering@redhat.com>
10161
10162         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10163         * tests/test-select.h (test_function): Declare as "static".
10164
10165 2011-07-24  Bruno Haible  <bruno@clisp.org>
10166
10167         doc: Mention the effects of AC_SYS_LARGEFILE.
10168         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10169         on this function.
10170         * doc/posix-functions/aio_error.texi: Likewise.
10171         * doc/posix-functions/aio_fsync.texi: Likewise.
10172         * doc/posix-functions/aio_read.texi: Likewise.
10173         * doc/posix-functions/aio_return.texi: Likewise.
10174         * doc/posix-functions/aio_suspend.texi: Likewise.
10175         * doc/posix-functions/aio_write.texi: Likewise.
10176         * doc/posix-functions/fgetpos.texi: Likewise.
10177         * doc/posix-functions/fopen.texi: Likewise.
10178         * doc/posix-functions/freopen.texi: Likewise.
10179         * doc/posix-functions/fsetpos.texi: Likewise.
10180         * doc/posix-functions/fstatvfs.texi: Likewise.
10181         * doc/posix-functions/ftruncate.texi: Likewise.
10182         * doc/posix-functions/ftw.texi: Likewise.
10183         * doc/posix-functions/getrlimit.texi: Likewise.
10184         * doc/posix-functions/glob.texi: Likewise.
10185         * doc/posix-functions/lio_listio.texi: Likewise.
10186         * doc/posix-functions/lockf.texi: Likewise.
10187         * doc/posix-functions/mkstemp.texi: Likewise.
10188         * doc/posix-functions/mmap.texi: Likewise.
10189         * doc/posix-functions/nftw.texi: Likewise.
10190         * doc/posix-functions/openat.texi: Likewise.
10191         * doc/posix-functions/opendir.texi: Likewise.
10192         * doc/posix-functions/posix_fadvise.texi: Likewise.
10193         * doc/posix-functions/posix_fallocate.texi: Likewise.
10194         * doc/posix-functions/pread.texi: Likewise.
10195         * doc/posix-functions/pwrite.texi: Likewise.
10196         * doc/posix-functions/readdir.texi: Likewise.
10197         * doc/posix-functions/readdir_r.texi: Likewise.
10198         * doc/posix-functions/rewinddir.texi: Likewise.
10199         * doc/posix-functions/scandir.texi: Likewise.
10200         * doc/posix-functions/seekdir.texi: Likewise.
10201         * doc/posix-functions/setrlimit.texi: Likewise.
10202         * doc/posix-functions/statvfs.texi: Likewise.
10203         * doc/posix-functions/telldir.texi: Likewise.
10204         * doc/posix-functions/tmpfile.texi: Likewise.
10205         * doc/posix-functions/truncate.texi: Likewise.
10206         * doc/glibc-functions/fallocate.texi: Likewise.
10207         * doc/glibc-functions/fstatfs.texi: Likewise.
10208         * doc/glibc-functions/fts_children.texi: Likewise.
10209         * doc/glibc-functions/fts_read.texi: Likewise.
10210         * doc/glibc-functions/getdirentries.texi: Likewise.
10211         * doc/glibc-functions/mkostemp.texi: Likewise.
10212         * doc/glibc-functions/mkostemps.texi: Likewise.
10213         * doc/glibc-functions/mkstemps.texi: Likewise.
10214         * doc/glibc-functions/preadv.texi: Likewise.
10215         * doc/glibc-functions/pwritev.texi: Likewise.
10216         * doc/glibc-functions/sendfile.texi: Likewise.
10217         * doc/glibc-functions/statfs.texi: Likewise.
10218
10219 2011-07-24  Bruno Haible  <bruno@clisp.org>
10220
10221         doc: Fix typo.
10222         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10223
10224 2011-07-24  Bruno Haible  <bruno@clisp.org>
10225
10226         doc: Mention fsusage.
10227         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10228
10229 2011-07-24  Bruno Haible  <bruno@clisp.org>
10230
10231         doc: Mention new glibc headers and functions.
10232         * doc/glibc-headers/gshadow.texi: New file.
10233         * doc/glibc-functions/endsgent.texi: New file.
10234         * doc/glibc-functions/fgetsgent.texi: New file.
10235         * doc/glibc-functions/fgetsgent_r.texi: New file.
10236         * doc/glibc-functions/getsgent.texi: New file.
10237         * doc/glibc-functions/getsgent_r.texi: New file.
10238         * doc/glibc-functions/getsgnam.texi: New file.
10239         * doc/glibc-functions/getsgnam_r.texi: New file.
10240         * doc/glibc-functions/putsgent.texi: New file.
10241         * doc/glibc-functions/setsgent.texi: New file.
10242         * doc/glibc-functions/sgetsgent.texi: New file.
10243         * doc/glibc-functions/sgetsgent_r.texi: New file.
10244         * doc/glibc-functions/malloc_info.texi: New file.
10245         * doc/glibc-functions/preadv.texi: New file.
10246         * doc/glibc-functions/pwritev.texi: New file.
10247         * doc/glibc-functions/register_printf_modifier.texi: New file.
10248         * doc/glibc-functions/register_printf_specifier.texi: New file.
10249         * doc/glibc-functions/register_printf_type.texi: New file.
10250         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10251         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10252         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10253         * doc/glibc-functions/pthread_getname_np.texi: New file.
10254         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10255         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10256         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10257         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10258         * doc/glibc-functions/pthread_setname_np.texi: New file.
10259         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10260         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10261         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10262         * doc/glibc-functions/qsort_r.texi: New file.
10263         * doc/glibc-functions/quick_exit.texi: New file.
10264         * doc/glibc-functions/syncfs.texi: New file.
10265         * doc/gnulib.texi: Include them.
10266         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10267         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10268         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10269         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10270         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10271         * doc/glibc-functions/execvpe.texi: Likewise.
10272
10273 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10274
10275         ftell: don't include <unistd.h>
10276         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10277         guaranteed to define off_t, and the ftell module depends on the
10278         stdio module.
10279
10280         ftell: do not assume wraparound signed arithmetic
10281         * lib/ftell.c: Include <limits.h>.
10282         (ftell): Don't assume wraparound signed arithmetic.
10283
10284 2011-07-24  Bruno Haible  <bruno@clisp.org>
10285
10286         close: No longer depend on module 'fclose'.
10287         * modules/close (Depends-on): Remove fclose.
10288         * NEWS: Mention the change.
10289         Suggested by Sam Steingold <sds@gnu.org>.
10290
10291 2011-07-24  Bruno Haible  <bruno@clisp.org>
10292
10293         fsusage: Enable large volume support on AIX >= 5.2.
10294         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10295         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10296         instead of STAT_STATVFS.
10297         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10298
10299         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10300         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10301         f_blocks field only on MacOS X.
10302
10303         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10304         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10305         * modules/fsusage (Depends-on): Add largefile.
10306
10307 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10308
10309         * README: Modernize discussion of signed integers.
10310         Assuming overflow wraparound is no longer safe.
10311         Mention ones' complement and signed magnitude.
10312
10313 2011-07-22  Bruno Haible  <bruno@clisp.org>
10314
10315         select tests, pselect tests: Refactor.
10316         * tests/test-select.h: New file, extracted from tests/test-select.c.
10317         (select_fn): New type.
10318         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10319         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10320         test_pipe): Add my_select argument.
10321         (test_function): Renamed from main. Add my_select argument.
10322         * tests/test-select.c: Move most code to tests/test-select.h. Include
10323         test-select.h.
10324         * modules/select-tests (Files): Add tests/test-select.h.
10325         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10326         (my_select, main): New functions.
10327         * modules/pselect-tests (Files): Add tests/test-select.h,
10328         tests/macros.h, tests/signature.h.
10329         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10330         (configure.ac): Check for <sys/wait.h>.
10331
10332 2011-07-22  Bruno Haible  <bruno@clisp.org>
10333
10334         sys_select tests: Check the signature of FD_*.
10335         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10336         signature tests from here...
10337         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10338         here.
10339         * modules/sys_select-tests (Files): Add tests/signature.h.
10340
10341 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10342
10343         largefile: new module, replacing large-inode
10344         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10345         * MODULES.html.sh: Add largefile, remove large-inode.
10346         * modules/largefile, m4/largefile.m4: New files.
10347         * modules/large-inode, m4/large-inode.m4: Remove.
10348
10349         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10350         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10351         implementations that use only 32 bits to count blocks.
10352         On typical hosts with 1024-byte blocks, this fails with file
10353         systems as small as 4 TiB.  Problem reported by Herb Wartens
10354         <http://debbugs.gnu.org/9140> and this should also fix a similar
10355         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10356
10357         large-inode: New module
10358         * MODULES.html.sh: Add it.
10359         * modules/large-inode, m4/large-inode.m4: New files.
10360
10361         extensions: Enable extensions on MacOS X 10.5 and later.
10362         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10363
10364 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10365
10366         file-has-acl: use acl_extended_file_nofollow if available
10367         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10368         (acl_extended_file): New macro.
10369         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10370         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10371
10372 2011-07-21  Bruno Haible  <bruno@clisp.org>
10373
10374         Declare system functions in a way that works with C++.
10375         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10376         declare fdopendir as extern "C".
10377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10378         declare frexpl as extern "C".
10379         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10380         declare gai_strerror as extern "C".
10381         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10382         programs, declare gai_strerror as extern "C".
10383         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10384         declare getlogin_r as extern "C".
10385         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10386         as extern "C".
10387         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10388         declare ldexpl as extern "C".
10389         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10390         as extern "C".
10391         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10392         program, declare getmntinfo as extern "C".
10393         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10394         stpncpy as extern "C".
10395         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10396         program, declare __xpg_strerror_r as extern "C".
10397         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10398         strndup as extern "C".
10399         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10400         declare memset and bzero as extern "C".
10401         Reported by Sam Steingold <sds@gnu.org>.
10402
10403 2011-07-12  Jim Meyering  <meyering@redhat.com>
10404
10405         maint.mk: prohibit inclusion of "verify.h" without use
10406         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10407
10408 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10409
10410         timer-time: A new module to check for timer_settime()
10411         * m4/timer_time.m4: Check for the posix function.
10412         * modules/timer-time: Add the new module.
10413         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10414         Mention it.
10415
10416 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10417             Bruno Haible  <bruno@clisp.org>
10418
10419         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10420         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10421         not defined, assume POSIX threads and look for pthread_sigmask in
10422         $LIBS, without changing $CPPFLAGS.
10423
10424 2011-07-19  Bruno Haible  <bruno@clisp.org>
10425
10426         strstr: Update cross-compilation guess.
10427         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10428         CPUs, guess no, in view of glibc
10429         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10430         Suggested by Eric Blake. Reported by Reuben Thomas.
10431
10432 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10433
10434         getopt-gnu: suppress core dumps from detection code
10435         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10436         to suppress core dumps that may well occur on glibc systems.
10437         * modules/getopt-gnu: Depend on nocrash.
10438
10439 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10440
10441         pthread_sigmask: ensure usleep is declared
10442         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10443         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10444
10445 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10446
10447         doc: Document NonStop portability issues.
10448         * doc/posix-functions/sigaction.texi (sigaction):
10449         * doc/posix-headers/signal.texi (signal.h):
10450         Document NonStop.  See Joachim Schmitz in
10451         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10452
10453 2011-07-15  Bruno Haible  <bruno@clisp.org>
10454
10455         ffsl, ffsll: Avoid unportable behaviour.
10456         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10457
10458 2011-07-15  Bruno Haible  <bruno@clisp.org>
10459
10460         ffs: More tests.
10461         * tests/test-ffs.c (NBITS): New macro.
10462         (main): Add more tests.
10463         * tests/test-ffsl.c (NBITS): New macro.
10464         (main): Add more tests.
10465         * tests/test-ffsll.c (NBITS): New macro.
10466         (main): Add more tests.
10467
10468 2011-07-15  Eric Blake  <eblake@redhat.com>
10469
10470         ffsl, ffsll: new modules
10471         * modules/ffsl: New file.
10472         * modules/ffsll: Likewise.
10473         * m4/ffsl.m4: Likewise.
10474         * m4/ffsll.m4: Likewise.
10475         * lib/ffsl.c: Likewise.
10476         * lib/ffsl.h: Likewise.
10477         * lib/ffsll.c: Likewise.
10478         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10479         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10480         * modules/string (Makefile.am): Substitute witnesses.
10481         * lib/strings.in.h (ffsl, ffsll): Declare.
10482         * modules/ffsl-tests: New test file.
10483         * modules/ffsll-tests: Likewise.
10484         * tests/test-ffsl.c: Likewise.
10485         * tests/test-ffsll.c: Likewise.
10486         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10487         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10488         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10489
10490         ffs: fix m4 prerequisite
10491         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10492
10493         ffs: avoid undefined behavior
10494         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10495         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10496         Reported by Bruno Haible.
10497
10498 2011-07-12  Bruno Haible  <bruno@clisp.org>
10499
10500         pthread_sigmask: Rely on module 'threadlib'.
10501         * modules/pthread_sigmask (Depends-on): Add threadlib.
10502         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10503         is defined.
10504
10505 2011-07-12  Bruno Haible  <bruno@clisp.org>
10506
10507         regex: Depend on module 'strcase'.
10508         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10509
10510 2011-07-12  Jim Meyering  <meyering@redhat.com>
10511
10512         warn-on-use: fix typo in file name
10513         * modules/snippet/warn-on-use (Files): Correct file name:
10514         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10515
10516 2011-07-12  Bruno Haible  <bruno@clisp.org>
10517
10518         strings: Document module.
10519         * doc/posix-headers/strings.texi: Mention module 'strings'.
10520
10521 2011-07-12  Bruno Haible  <bruno@clisp.org>
10522
10523         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10524         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10525         (Files, Makefile.am): Update.
10526         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10527         * modules/stdlib (Depends-on): Update.
10528
10529 2011-07-12  Bruno Haible  <bruno@clisp.org>
10530
10531         * NEWS: Mention the changes.
10532
10533         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10534         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10535         (Files, Makefile.am): Update.
10536         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10537         * modules/arpa_inet (Depends-on): Update.
10538         * modules/ctype (Depends-on): Update.
10539         * modules/dirent (Depends-on): Update.
10540         * modules/fcntl-h (Depends-on): Update.
10541         * modules/glob (Depends-on): Update.
10542         * modules/iconv-h (Depends-on): Update.
10543         * modules/inttypes-incomplete (Depends-on): Update.
10544         * modules/langinfo (Depends-on): Update.
10545         * modules/locale (Depends-on): Update.
10546         * modules/math (Depends-on): Update.
10547         * modules/netdb (Depends-on): Update.
10548         * modules/poll-h (Depends-on): Update.
10549         * modules/pty (Depends-on): Update.
10550         * modules/search (Depends-on): Update.
10551         * modules/signal (Depends-on): Update.
10552         * modules/spawn (Depends-on): Update.
10553         * modules/stdio (Depends-on): Update.
10554         * modules/stdlib (Depends-on): Update.
10555         * modules/string (Depends-on): Update.
10556         * modules/strings (Depends-on): Update.
10557         * modules/sys_file (Depends-on): Update.
10558         * modules/sys_ioctl (Depends-on): Update.
10559         * modules/sys_select (Depends-on): Update.
10560         * modules/sys_socket (Depends-on): Update.
10561         * modules/sys_stat (Depends-on): Update.
10562         * modules/sys_time (Depends-on): Update.
10563         * modules/sys_times (Depends-on): Update.
10564         * modules/sys_utsname (Depends-on): Update.
10565         * modules/sys_wait (Depends-on): Update.
10566         * modules/termios (Depends-on): Update.
10567         * modules/time (Depends-on): Update.
10568         * modules/unistd (Depends-on): Update.
10569         * modules/wchar (Depends-on): Update.
10570         * modules/wctype-h (Depends-on): Update.
10571         * MODULES.html.sh (Support for building libraries and executables):
10572         Update.
10573
10574         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10575         * modules/snippet/unused-parameter: Renamed from
10576         modules/unused-parameter.
10577         (Files, Makefile.am): Update.
10578         * build-aux/snippet/unused-parameter.h: Renamed from
10579         build-aux/unused-parameter.h.
10580         * modules/selinux-h (Depends-on): Update.
10581         * modules/unistr/base (Depends-on): Update.
10582         * MODULES.html.sh (Core language properties): Update.
10583
10584         Rename module 'link-warning' to 'snippet/link-warning'.
10585         * modules/snippet/link-warning: Renamed from modules/link-warning.
10586         (Files, Makefile.am): Update.
10587         * build-aux/snippet/link-warning.h: Renamed from
10588         build-aux/link-warning.h.
10589         * MODULES.html.sh (Support for building libraries and executables):
10590         Update.
10591
10592         Rename module 'c++defs' to 'snippet/c++defs'.
10593         * modules/snippet/c++defs: Renamed from modules/c++defs.
10594         (Files, Makefile.am): Update.
10595         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10596         * modules/arpa_inet (Depends-on): Update.
10597         * modules/ctype (Depends-on): Update.
10598         * modules/dirent (Depends-on): Update.
10599         * modules/fcntl-h (Depends-on): Update.
10600         * modules/glob (Depends-on): Update.
10601         * modules/iconv-h (Depends-on): Update.
10602         * modules/langinfo (Depends-on): Update.
10603         * modules/locale (Depends-on): Update.
10604         * modules/math (Depends-on): Update.
10605         * modules/netdb (Depends-on): Update.
10606         * modules/poll-h (Depends-on): Update.
10607         * modules/pty (Depends-on): Update.
10608         * modules/search (Depends-on): Update.
10609         * modules/signal (Depends-on): Update.
10610         * modules/spawn (Depends-on): Update.
10611         * modules/stdio (Depends-on): Update.
10612         * modules/stdlib (Depends-on): Update.
10613         * modules/string (Depends-on): Update.
10614         * modules/strings (Depends-on): Update.
10615         * modules/sys_ioctl (Depends-on): Update.
10616         * modules/sys_select (Depends-on): Update.
10617         * modules/sys_socket (Depends-on): Update.
10618         * modules/sys_stat (Depends-on): Update.
10619         * modules/sys_time (Depends-on): Update.
10620         * modules/sys_wait (Depends-on): Update.
10621         * modules/termios (Depends-on): Update.
10622         * modules/time (Depends-on): Update.
10623         * modules/unistd (Depends-on): Update.
10624         * modules/wchar (Depends-on): Update.
10625         * modules/wctype-h (Depends-on): Update.
10626
10627         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10628         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10629         (Files, Makefile.am): Update.
10630         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10631         * modules/argv-iter (Depends-on): Update.
10632         * modules/arpa_inet (Depends-on): Update.
10633         * modules/dirent (Depends-on): Update.
10634         * modules/fcntl-h (Depends-on): Update.
10635         * modules/fnmatch (Depends-on): Update.
10636         * modules/getopt-posix (Depends-on): Update.
10637         * modules/glob (Depends-on): Update.
10638         * modules/iconv-h (Depends-on): Update.
10639         * modules/inttypes-incomplete (Depends-on): Update.
10640         * modules/locale (Depends-on): Update.
10641         * modules/math (Depends-on): Update.
10642         * modules/netdb (Depends-on): Update.
10643         * modules/search (Depends-on): Update.
10644         * modules/signal (Depends-on): Update.
10645         * modules/spawn (Depends-on): Update.
10646         * modules/stdio (Depends-on): Update.
10647         * modules/stdlib (Depends-on): Update.
10648         * modules/string (Depends-on): Update.
10649         * modules/strings (Depends-on): Update.
10650         * modules/sys_socket (Depends-on): Update.
10651         * modules/sys_stat (Depends-on): Update.
10652         * modules/sys_time (Depends-on): Update.
10653         * modules/sys_times (Depends-on): Update.
10654         * modules/sys_utsname (Depends-on): Update.
10655         * modules/time (Depends-on): Update.
10656         * modules/unistd (Depends-on): Update.
10657         * modules/wchar (Depends-on): Update.
10658         * MODULES.html.sh (Support for building libraries and executables):
10659         Update.
10660
10661 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10662
10663         Improvements on _Noreturn and related modules.
10664
10665         modules/_Exit-tests: test _Noreturn too
10666         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10667         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10668         (main): Use them.
10669
10670         stdnoreturn, stdnoreturn-tests: remove modules
10671         They're not needed here and a bit premature for use elsewhere.  See
10672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10673         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10674         * tests/test-stdnoreturn.c: Remove files.
10675         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10676         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10677         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10678         and using noreturn.
10679         * modules/openat, modules/sigpipe-die, modules/xalloc:
10680         * modules/xmemdup0, modules/xstrtol:
10681         Remove dependency on stdnoreturn.
10682
10683         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10684         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10685         Reparenthesize to avoid GCC warning.
10686         Support Microsoft's syntax.
10687         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10688
10689         _Noreturn-tests: remove module
10690         * modules/_Noreturn-tests: Remove.
10691         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10692         * tests/test-_Noreturn.c: Remove.
10693         * tests/test-stdnoreturn.c: Merge from the old
10694         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10695
10696 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10697
10698         _Noreturn, stdnoreturn, and related modules.
10699
10700         * top/maint.mk: Adjust to new noreturn support.
10701         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10702         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10703
10704         xalloc: use stdnoreturn.h
10705         * lib/xalloc.h: Include <stdnoreturn.h>.
10706         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10707         * modules/xalloc (Depends-on): Add stdnoreturn.
10708
10709         xstrtol: use stdnoreturn.h
10710         * lib/xstrtol.h: Include <stdnoreturn.h>.
10711         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10712         * modules/xstrtol (Depends-on): Add stdnoreturn.
10713
10714         xmemdup0: use stdnoreturn.h
10715         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10716         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10717         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10718
10719         sigpipe-die: use stdnoreturn.h
10720         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10721         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10722         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10723
10724         openat: use stdnoreturn.h
10725         * lib/openat.h: Include <stdnoreturn.h>.
10726         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10727         * modules/openat (Depends-on): Add stdnoreturn.
10728
10729         * lib/openat-die.c (openat_save_fail): Modernize comment.
10730
10731         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10732
10733         * lib/glthread/thread.h: Modernize comment.
10734
10735         obstack: use _Noreturn
10736         * lib/obstack.c (__attribute__): Remove macro.
10737         (print_and_abort): Use _Noreturn.
10738
10739         c-stack: use _Noreturn
10740         * lib/c-stack.c (die, overflow_handler, segv_handler):
10741         Use _Noreturn rather than __attribute__((noreturn)).
10742
10743         argmatch-tests, exclude_tests: use _Noreturn
10744         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10745         Remove.
10746         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10747
10748         stdlib: use _Noreturn
10749         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10750         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10751         * modules/stdlib (Depends-on): Add _Noreturn.
10752         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10753
10754         stdnoreturn-tests: new module
10755         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10756
10757         stdnoreturn: new module
10758         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10759         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10760
10761         _Noreturn-tests: new module
10762         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10763
10764         _Noreturn: new module
10765         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10766         New section, mentioning it.
10767         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10768
10769         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10770
10771 2011-07-11  Eric Blake  <eblake@redhat.com>
10772
10773         ffs: new module
10774         * modules/ffs: New file.
10775         * m4/ffs.m4: Likewise.
10776         * lib/ffs.c: Likewise.
10777         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10778         * modules/strings (Makefile.am): Substitute witness.
10779         (Depends-on): Add c++defs.
10780         * lib/strings.in.h (ffs): Declare.
10781         * modules/ffs-tests: New test file.
10782         * tests/test-ffs.c: Test new module.
10783         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10784         * doc/posix-functions/ffs.texi (ffs): Likewise.
10785
10786         regex: avoid compiler warning
10787         * lib/regex.c (includes): Include <strings.h>, for use of
10788         strcasecmp in regcomp.c.
10789         Reported by Joachim Schmitz.
10790
10791 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10792
10793         stdint: respect system's intmax_t if INTMAX_MAX
10794         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10795         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10796         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10797         long but int64_t is long long, and where we will clash with the
10798         system intmax_t if we override it.  See
10799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10800         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10801         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10802         similarly for UINTMAX_C.
10803
10804 2011-07-08  Bruno Haible  <bruno@clisp.org>
10805
10806         pthread_sigmask tests: Avoid a compiler warning.
10807         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10808         non-zero.
10809
10810         sigprocmask tests: A better way to avoid a compiler warning.
10811         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10812         (main): Complain if system() returns non-zero.
10813         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10814
10815 2011-07-08  Bruno Haible  <bruno@clisp.org>
10816
10817         pthread_sigmask: Work around IRIX bug.
10818         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10819         bug.
10820         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10821         there may be unblocked pending signals.
10822         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10823
10824 2011-07-08  Bruno Haible  <bruno@clisp.org>
10825
10826         pthread_sigmask: Work around Cygwin bug.
10827         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
10828         bug.
10829         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
10830         the system's pthread_sigmask function.
10831         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
10832
10833 2011-07-08  Bruno Haible  <bruno@clisp.org>
10834
10835         pthread_sigmask: Work around bug in single-threaded implementation.
10836         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
10837         FreeBSD, HP-UX, Solaris bug.
10838         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
10839         * lib/pthread_sigmask.c: Include <stddef.h>.
10840         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
10841         the system's pthread_sigmask function.
10842         * modules/pthread_sigmask (configure.ac): Invoke
10843         gl_PREREQ_PTHREAD_SIGMASK.
10844         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
10845         HP-UX, Solaris.
10846
10847 2011-07-08  Eric Blake  <eblake@redhat.com>
10848
10849         test-sigprocmask: avoid compiler warning
10850         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
10851         * tests/test-sigprocmask.c (main): Use it to silence warning.
10852         Reported by Jim Meyering.
10853
10854         test-snprintf: avoid compiler warning
10855         * tests/test-snprintf.c (main): Avoid shadowed declaration.
10856         * tests/test-vsnprintf.c (main): Likewise.
10857         Reported by Jim Meyering.
10858
10859 2011-07-08  Bruno Haible  <bruno@clisp.org>
10860
10861         Tests for module 'pthread_sigmask'.
10862         * modules/pthread_sigmask-tests: New file.
10863         * tests/test-pthread_sigmask1.c: New file, based on
10864         tests/test-sigprocmask.c.
10865         * tests/test-pthread_sigmask2.c: New file.
10866
10867 2011-07-08  Jim Meyering  <meyering@redhat.com>
10868
10869         test-getopt.h: avoid warning about an unused variable
10870         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
10871
10872 2011-07-07  Jim Meyering  <meyering@redhat.com>
10873
10874         maint: reduce list of files exempt from sc_prohibit_leading_TABs
10875         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
10876         now that it no longer contains leading TABs.
10877         Remove unused "url=FIXME" statement.
10878
10879 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10880
10881         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
10882         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10883         When gl_THREADLIB is not in use, assume that the POSIX sematics
10884         are desired.  This is better for Emacs, which uses POSIX semantics
10885         on GNUish and/or POSIXish platforms, and does not use threads at
10886         all otherwise.
10887
10888         pthread_sigmask: fix typo when testing for libraries
10889         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10890         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
10891
10892 2011-07-08  Eric Blake  <eblake@redhat.com>
10893
10894         fts: introduce FTS_NOATIME
10895         * lib/fts_.h (FTS_NOATIME): New bit flag.
10896         (FTS_OPTIONMASK): Adjust.
10897         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
10898         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
10899
10900 2011-07-08  Bruno Haible  <bruno@clisp.org>
10901
10902         Tests for module 'thread'.
10903         * modules/thread-tests: New file.
10904         * tests/test-thread_self.c: New file.
10905         * tests/test-thread_create.cc: New file.
10906
10907 2011-07-08  Bruno Haible  <bruno@clisp.org>
10908
10909         thread: Avoid gcc warnings when using gl_thread_self().
10910         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
10911         'void *'.
10912         (gl_thread_self_pointer): Update.
10913
10914 2011-07-07  Bruno Haible  <bruno@clisp.org>
10915
10916         signal-c++-tests: Check declaration of pthread_sigmask.
10917         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
10918         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
10919         $(LIB_PTHREAD_SIGMASK).
10920
10921 2011-07-07  Bruno Haible  <bruno@clisp.org>
10922
10923         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
10924         * lib/signal.in.h (pthread_sigmask): Override if
10925         REPLACE_PTHREAD_SIGMASK is 1.
10926         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10927         REPLACE_PTHREAD_SIGMASK.
10928         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
10929         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
10930         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
10931         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10932         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
10933
10934 2011-07-07  Bruno Haible  <bruno@clisp.org>
10935
10936         pthread_sigmask: Ensure declaration in <signal.h>.
10937         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
10938         include <pthread.h>.
10939         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
10940         problem.
10941
10942 2011-07-07  Bruno Haible  <bruno@clisp.org>
10943
10944         pthread_sigmask: Document the module.
10945         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
10946
10947 2011-07-07  Bruno Haible  <bruno@clisp.org>
10948
10949         pthread_sigmask: Follow gnulib conventions.
10950         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
10951         gl_PTHREAD_SIGMASK.
10952         * modules/pthread_sigmask (configure.ac): Update.
10953
10954 2011-07-07  Bruno Haible  <bruno@clisp.org>
10955
10956         pthread_sigmask: Make declaration C++ safe.
10957         * lib/signal.in.h: In two special conditions, just do an #include_next.
10958         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10959         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
10960         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10961         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10962         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
10963         not REPLACE_PTHREAD_MASK.
10964         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
10965         not REPLACE_PTHREAD_MASK.
10966         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10967
10968 2011-07-07  Bruno Haible  <bruno@clisp.org>
10969
10970         pthread_sigmask: Fix return value.
10971         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
10972         * lib/pthread_sigmask.c: New file.
10973         * modules/pthread_sigmask (Files): Add it.
10974         (configure.ac): Invoke AC_LIBOBJ.
10975
10976 2011-07-07  Eric Blake  <eblake@redhat.com>
10977
10978         getopt: more portable argv creation
10979         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
10980         const, use char arrays rather than strings.
10981         Suggested by Paul Eggert.
10982
10983 2011-07-07  Bruno Haible  <bruno@clisp.org>
10984
10985         Tests for module 'sigprocmask'.
10986         * modules/sigprocmask-tests: New file.
10987         * tests/test-sigprocmask.c: New file.
10988
10989 2011-07-07  Bruno Haible  <bruno@clisp.org>
10990
10991         float tests: Tweak.
10992         * tests/test-float.c (main): Tweak skip message.
10993
10994 2011-07-07  Eric Blake  <eblake@redhat.com>
10995
10996         getopt: avoid compiler warning during configure
10997         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
10998         assigning string literals to non-const pointer.
10999
11000         getopt-gnu: avoid crash in glibc getopt
11001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11002         * tests/test-getopt.h (test_getopt): Enhance test.
11003         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11004         * doc/posix-functions/getopt.texi (getopt): Document it.
11005         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11006         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11007         Likewise.
11008
11009 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11010
11011         getopt: handle W; without long options in getopt [BZ #12922]
11012         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11013         but no long options are defined, just return 'W'.
11014
11015 2011-07-07  Bruno Haible  <bruno@clisp.org>
11016
11017         Avoid literal tabs.
11018         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11019         variable containing a tab instead of a literal tab.
11020         Reported by Jim Meyering.
11021
11022 2011-07-07  Bruno Haible  <bruno@clisp.org>
11023
11024         Comments.
11025         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11026
11027 2011-07-06  Bruno Haible  <bruno@clisp.org>
11028
11029         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11030         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11031         <winsock2.h>.
11032         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11033         lib/sys_socket.in.h.
11034         (close, gethostname): Hide declarations from <winsock2.h>.
11035         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11036         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11037         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11038         (select): Don't override if gnulib's <sys/select.h> was already
11039         included.
11040         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11041         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11042         setsockopt, shutdown, select): Tweak indentation.
11043
11044 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11045
11046         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11047         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11048         in an application that does not use the sys_select module.
11049
11050 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11051
11052         poll: do not return 0 on timeout=-1
11053         * lib/poll.c: Loop with yield if no events occured
11054
11055 2011-07-06  Eric Blake  <eblake@redhat.com>
11056
11057         pthread_sigmask: always replace when not using pthread
11058         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11059         replacement when using some threading other than pthread.  Fix
11060         logic bug.
11061
11062 2011-07-06  Bruno Haible  <bruno@clisp.org>
11063
11064         Comments.
11065         * m4/printf.m4: Update comments about mingw.
11066
11067 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11068
11069         sys_select: define sigset_t more portably
11070         * lib/sys_select.in.h: Always include <sys/types.h>, since
11071         we now need sigset_t and mingw defines it there.
11072         Include <signal.h> before split inclusion guard, to avoid
11073         mishaps on Solaris, whose <signal.h> eventually includes us.
11074         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11075         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11076         which come from ...
11077         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11078         gl_CHECK_TYPE_SIGSET_T.
11079         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11080         does the real work.
11081         * modules/sys_select (Depends-on): Add 'signal'.
11082
11083         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11084         Suggested by Bruno Haible.
11085
11086         pselect: Use pthread_sigmask, not sigprocmask.
11087         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11088         multithreaded apps better than sigprocmask does.
11089         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11090         sigprocmask directly.
11091
11092 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11093
11094         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11095         Don't #undef,  since we don't need any underlying pselect.
11096         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11097         (Depends-on): Add select.
11098         (Link): Add $(LIBSOCKET).
11099         These changes suggested by Bruno Haible.
11100
11101         pselect: document better
11102         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11103         * doc/posix-functions/pselect.texi (pselect): Document new module.
11104
11105         pthread_sigmask: new module
11106         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11107         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11108         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11109         This is done only as a macro; I don't know how well that'll
11110         work for C++.  Move <sys/types.h> include before the include_next,
11111         to avoid mishap on Solaris.
11112         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11113         * modules/signal (Makefile.am): Substitute the check's results.
11114         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11115
11116         test-pselect: new module
11117         * modules/pselect-tests, tests/test-pselect.c: New files.
11118         * tests/test-select.c, tests/test-sys_select-c++.cc:
11119         If TEST_PSELECT is defined, test pselect instead of testing select.
11120
11121         * tests/test-sys_select.c (sigset_t): Test for it, too.
11122         Suggested by Bruno Haible.
11123
11124 2011-07-05  Eric Blake  <eblake@redhat.com>
11125
11126         snprintf: guarantee %1$d, for libintl
11127         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11128         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11129         * doc/posix-functions/snprintf.texi (snprintf): Update.
11130         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11131         * tests/test-snprintf.c (main): Enhance test.
11132         * tests/test-vsnprintf.c (main): Likewise.
11133
11134 2011-07-05  Jim Meyering  <meyering@redhat.com>
11135
11136         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11137         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11138         per Bruno's request, to accommodate this idiom (no space after "#")
11139         even when the function is inside an #if block:
11140         char *
11141         gets (char *s)
11142         #undef gets
11143         {
11144           ...
11145         }
11146
11147 2011-07-04  Jim Meyering  <meyering@redhat.com>
11148
11149         maint: indent with spaces, not TABs, and add a rule to check this
11150         * tests/test-userspec.c: Indent with spaces, not TABs.
11151         * tests/test-argp.c: Likewise.
11152         * tests/test-c-stack2.sh: Likewise.
11153         * tests/test-parse-duration.sh: Likewise
11154         * m4/strtod.m4: Likewise.
11155         * m4/alloca.m4: Likewise.
11156         * m4/pselect.m4: Likewise.
11157         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11158
11159 2011-07-03  Jim Meyering  <meyering@redhat.com>
11160
11161         maint.mk: correct omissions in prohibit_argmatch_without_use check
11162         This rule would mistakenly report that argmatch.h is included without
11163         use even when both the argmatch and invalid_arg macro were used.
11164         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11165         of argmatch and invalid_arg.
11166
11167 2011-07-03  Bruno Haible  <bruno@clisp.org>
11168
11169         Comments about EINTR.
11170         * lib/safe-read.h: Explain the purpose of this module.
11171         * lib/safe-write.h: Likewise.
11172         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11173         module.
11174         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11175         module.
11176         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11177
11178 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11179
11180         xnanosleep: Rewrite to use new dtotimespec module.
11181         It has the conversion code that used to be in xnanosleep.
11182         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11183         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11184         (TIME_T_MAX): Remove.
11185         (xnanosleep): Rewrite in terms of dtotimespec.
11186         * modules/xnanosleep (Depends-on): Add dtotimespec.
11187         Remove intprops, stdbool.
11188
11189         timespec-add, timespec-sub: new modules
11190         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11191         * lib/timespec-add.c, lib/timespec-sub.c:
11192         * modules/timespec-add, modules/timespec-sub: New files.
11193
11194         dtotimespec: new module
11195         * lib/timespec.h (dtotimespec): New decl.
11196         * lib/dtotimespec.c, modules/dtotimespec: New files.
11197
11198         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11199
11200         pselect: new module
11201         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11202         (pselect): New decls.
11203         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11204         since the standard pselect decl uses 'restrict'.
11205         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11206         HAVE_PSELECT, REPLACE_PSELECT.
11207         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11208         HAVE_PSELECT, REPLACE_PSELECT.
11209         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11210
11211         sys_select: don't depend on sys_socket
11212         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11214         This fix works on GNU and GNU-like platforms, but has not been tested
11215         on native Windows.
11216         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11217         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11218         gl_HEADER_SYS_SOCKET.
11219         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11220         gl_PREREQ_SYS_H_WINSOCK2.
11221
11222 2011-06-29  Eric Blake  <eblake@redhat.com>
11223
11224         pipe2: fix C89 compile problem
11225         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11226         Reported by Bruno Haible.
11227
11228         pipe, pipe2: don't corrupt fd on error
11229         * lib/pipe.c (pipe): Leave fd unchanged on error.
11230         * lib/pipe2.c (pipe2): Likewise.
11231         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11232         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11233
11234 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11235
11236         mmap-anon: do not use regular expressions inadvertently
11237         * m4/mmap-anon.m4: Remove trailing period from strings sought
11238         in the output.
11239
11240 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11241
11242         nanosleep: fix integer overflow problem
11243         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11244         arithmetic wraps around on overflow.
11245
11246         nanosleep: simplify carrying
11247         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11248         first call to the underyling nanosleep, not for the last one.
11249         This doesn't fix any bugs, but it simplifies the computation of
11250         the remaining delay.  Found while auditing integer overflow issues.
11251
11252         dup2: remove test for existence of fcntl
11253         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11254         "#if HAVE_FCNTL", in the configure-time test program.
11255         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11256         and therefore speeds up "configure" a bit.  Found while
11257         adding the dup2 module to Emacs.
11258
11259 2011-06-24  Eric Blake  <eblake@redhat.com>
11260
11261         maint.mk: enhance useless header checks
11262         * top/maint.mk (_sc_header_without_use): Check both include
11263         styles.
11264         (sc_prohibit_assert_without_use)
11265         (sc_prohibit_close_stream_without_use)
11266         (sc_prohibit_getopt_without_use)
11267         (sc_prohibit_quotearg_without_use)
11268         (sc_prohibit_quote_without_use)
11269         (sc_prohibit_long_options_without_use)
11270         (sc_prohibit_inttostr_without_use)
11271         (sc_prohibit_ignore_value_without_use)
11272         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11273         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11274         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11275         (sc_prohibit_hash_pjw_without_use)
11276         (sc_prohibit_safe_read_without_use)
11277         (sc_prohibit_argmatch_without_use)
11278         (sc_prohibit_canonicalize_without_use)
11279         (sc_prohibit_root_dev_ino_without_use)
11280         (sc_prohibit_openat_without_use)
11281         (sc_prohibit_c_ctype_without_use)
11282         (sc_prohibit_signal_without_use)
11283         (sc_prohibit_stdio--_without_use)
11284         (sc_prohibit_stdio-safer_without_use)
11285         (sc_prohibit_strings_without_use)
11286         (sc_prohibit_intprops_without_use)
11287         (sc_prohibit_stddef_without_use)
11288         (sc_prohibit_xfreopen_without_use): Update clients.
11289
11290 2011-06-24  Jim Meyering  <meyering@redhat.com>
11291
11292         syntax-check: keep one maint.mk rule in sync with its header
11293         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11294         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11295         I prefer to avoid temporary files here, so use <(...), but that
11296         is not supported by /bin/sh, so...
11297         (SHELL): Define to /bin/bash.
11298
11299 2011-06-24  Eric Blake  <eblake@redhat.com>
11300
11301         maint.mk: update sc_prohibit_intprops_without_use
11302         * top/maint.mk (_intprops_names): Match recent changes.
11303
11304 2011-06-24  Bruno Haible  <bruno@clisp.org>
11305
11306         strerror-override: No-op tweak.
11307         * lib/strerror-override.h (strerror_override): Reorder conditions,
11308         for consistency with lib/strerror-override.c.
11309
11310 2011-06-23  Eric Blake  <eblake@redhat.com>
11311
11312         maint.mk: test further PATH_MAX issues
11313         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11314         (sc_prohibit_path_max_allocation): ...and also test alloca.
11315         Suggested by Jim Meyering.
11316
11317 2011-06-22  Eric Blake  <eblake@redhat.com>
11318
11319         maint.mk: add syntax-check to avoid char[PATH_MAX]
11320         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11321
11322         stat: be robust to PATH_MAX definition
11323         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11324         * modules/stat (Depends-on): Add verify.
11325
11326         link: work around IRIX bug
11327         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11328         * lib/link.c (rpl_link): Work around it.
11329         * tests/test-link.h (test_link): Enhance test.
11330         * doc/posix-functions/link.texi (link): Document the bug.
11331
11332         getopt: silence clang warning
11333         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11334         dereference.
11335         Reported by Gustavo Martin Domato.
11336
11337 2011-06-22  Jim Meyering  <meyering@redhat.com>
11338
11339         bootstrap: do not insert a blank line into each .gitignore file
11340         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11341
11342 2011-06-21  Eric Blake  <eblake@redhat.com>
11343
11344         perror: test for output mismatch
11345         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11346         perror on IRIX.
11347
11348         strerror_r: fix OpenBSD behavior on out-of-range
11349         * lib/strerror_r.c (strerror_r): Always use maximal string.
11350         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11351
11352         strerror_r: fix OpenBSD behavior on 0
11353         * lib/strerror-override.c (strerror_override): Also override 0
11354         when needed.
11355         * lib/strerror-override.h (strerror_override): Likewise.
11356         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11357         earlier.
11358         * lib/strerror_r.c (strerror_r): Likewise.
11359         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11360         behavior...
11361         (gl_FUNC_STRERROR_0): ...into new macro.
11362         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11363         is overridden.
11364         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11365         * modules/strerror-override (Files): Add strerror.m4.
11366         (configure.ac): Also provide override for 0 when needed.
11367         * doc/posix-functions/strerror.texi (strerror): Document this.
11368         * doc/posix-functions/perror.texi (perror): Likewise.
11369
11370         perror: adjust array size
11371         * modules/perror (Depends-on): Add strerror-override.
11372         * lib/perror.c (perror): Use it to avoid magic number.
11373
11374         strerror-override: reduce size
11375         * lib/strerror-override.c (strerror_override): Use fewer lines.
11376
11377 2011-06-20  Bruno Haible  <bruno@clisp.org>
11378
11379         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11380         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11381
11382 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11383
11384         alloca: port to compilers that can optimize like GCC 4.6.0
11385         * lib/alloca.c (find_stack_direction): New signature, taken from
11386         Autoconf git.  This works with GCC 4.6.0.  This code should never
11387         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11388         be used with other compilers that optimize as well as GCC 4.6.0 does.
11389         (alloca): Adjust to new signature.
11390         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11391         New macro, which patches Autoconf in a similar way.
11392
11393         c-stack: stop worrying about stack direction
11394         * lib/c-stack.c (find_stack_direction): Remove.
11395         (segv_handler): Don't worry about stack direction growth, as it's
11396         too much of a pain to configure this correctly, given how compilers
11397         are optimizing-away our stack-growth detection code.  Instead, assume
11398         that any access to just before or just after the stack is OK.
11399         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11400         Don't require AC_FUNC_ALLOCA; no longer needed.
11401
11402 2011-06-20  Eric Blake  <eblake@redhat.com>
11403
11404         test-stat: don't allocate PATH_MAX bytes
11405         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11406         PATH_MAX-sized buffer.
11407         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11408         * modules/stat-tests (Depends-on): Likewise.
11409         * tests/test-fstatat.c (includes): Drop pathmax.h.
11410         * tests/test-stat.c (includes): Likewise.
11411         Reported by Bruno Haible.
11412
11413 2011-06-20  Bruno Haible  <bruno@clisp.org>
11414
11415         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11416         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11417         * lib/float.c: New file.
11418         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11419         REPLACE_FLOAT_LDBL.
11420         * modules/float (Files): Add lib/float.c.
11421         (configure.ac): Invoke AC_LIBOBJ.
11422         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11423
11424 2011-06-20  Bruno Haible  <bruno@clisp.org>
11425
11426         Tests for module 'float'.
11427         * modules/float-tests: New file.
11428         * tests/test-float.c: New file.
11429
11430 2011-06-19  Bruno Haible  <bruno@clisp.org>
11431
11432         isinf: Coding style.
11433         * lib/isinf.c: Use GNU coding style.
11434
11435 2011-06-19  Bruno Haible  <bruno@clisp.org>
11436
11437         linkat test: Avoid test failure on AIX 7.1.
11438         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11439         * tests/test-link.h (test_link): Likewise.
11440
11441 2011-06-19  Bruno Haible  <bruno@clisp.org>
11442
11443         pread test: Avoid test failure on OpenBSD 4.9.
11444         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11445
11446 2011-06-19  Bruno Haible  <bruno@clisp.org>
11447
11448         sprintf-posix: Fix test failure on AIX 7.1.
11449         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11450         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11451         on AIX.
11452         * doc/posix-functions/fprintf.texi: Likewise.
11453         * doc/posix-functions/printf.texi: Likewise.
11454         * doc/posix-functions/snprintf.texi: Likewise.
11455         * doc/posix-functions/sprintf.texi: Likewise.
11456         * doc/posix-functions/vdprintf.texi: Likewise.
11457         * doc/posix-functions/vfprintf.texi: Likewise.
11458         * doc/posix-functions/vprintf.texi: Likewise.
11459         * doc/posix-functions/vsnprintf.texi: Likewise.
11460         * doc/posix-functions/vsprintf.texi: Likewise.
11461
11462 2011-06-19  Bruno Haible  <bruno@clisp.org>
11463
11464         roundl-ieee: Fix test failure on AIX 7.1.
11465         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11466         * doc/posix-functions/roundl.texi: Mention problem with negative
11467         arguments.
11468
11469 2011-06-19  Bruno Haible  <bruno@clisp.org>
11470
11471         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11472         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11473         * doc/posix-functions/round.texi: Mention problem with negative
11474         arguments.
11475         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11476
11477 2011-06-19  Bruno Haible  <bruno@clisp.org>
11478
11479         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11480         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11481         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11482         * doc/posix-functions/roundf.texi: Mention problem with negative
11483         arguments.
11484         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11485
11486 2011-06-19  Bruno Haible  <bruno@clisp.org>
11487
11488         ceilf-ieee: Work around bug on MacOS X 10.5.
11489         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11490
11491         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11492         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11493         IEEE compliant, avoid compiler optimizations.
11494         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11495         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11496         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11497         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11498         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11499         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11500         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11501         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11502         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11503         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11504
11505 2011-06-19  Bruno Haible  <bruno@clisp.org>
11506
11507         ceilf-ieee: Work around bug on AIX 7.1.
11508         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11509         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11510
11511 2011-06-19  Bruno Haible  <bruno@clisp.org>
11512
11513         ceil-ieee: Work around bug on AIX 7.1.
11514         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11515         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11516
11517 2011-06-18  Bruno Haible  <bruno@clisp.org>
11518
11519         fsync test: Avoid test failure on MacOS X and AIX.
11520         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11521         EINVAL.
11522
11523 2011-06-18  Bruno Haible  <bruno@clisp.org>
11524
11525         openat, fdopendir tests: Fix link errors.
11526         * modules/openat-tests (Depends-on): Add progname.
11527         * modules/fdopendir-tests (Depends-on): Likewise.
11528         * tests/test-fchownat.c: Include progname.h.
11529         (main): Call set_program_name.
11530         * tests/test-fstatat.c: Include progname.h.
11531         (main): Call set_program_name.
11532         * tests/test-mkdirat.c: Include progname.h.
11533         (main): Call set_program_name.
11534         * tests/test-openat.c: Include progname.h.
11535         (main): Call set_program_name.
11536         * tests/test-unlinkat.c: Include progname.h.
11537         (main): Call set_program_name.
11538         * tests/test-fdopendir.c: Include progname.h.
11539         (main): Call set_program_name.
11540
11541 2011-06-18  Bruno Haible  <bruno@clisp.org>
11542
11543         Doc update.
11544         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11545         HP-UX.
11546         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11547
11548 2011-06-18  Bruno Haible  <bruno@clisp.org>
11549
11550         getcwd tests: Avoid compilation error on HP-UX 11.31.
11551         * modules/getcwd-tests (Depends-on): Add pathmax.
11552         * tests/test-getcwd.c: Include pathmax.h.
11553
11554 2011-06-18  Bruno Haible  <bruno@clisp.org>
11555
11556         isfinite, isinf: Fix link error on AIX 6 and 7.
11557         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11558         needed, also test the macro with a 'float' argument.
11559         * m4/isinf.m4 (gl_ISINF): Likewise.
11560
11561 2011-06-18  Bruno Haible  <bruno@clisp.org>
11562
11563         getloadavg: Don't clobber LIBS. Regression from previous commit.
11564         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11565         AC_CHECK_LIB from here...
11566         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11567         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11568         gl_func_getloadavg_done.
11569         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11570
11571 2011-06-18  Bruno Haible  <bruno@clisp.org>
11572
11573         clean-temp: Improve documentation.
11574         * lib/clean-temp.h: Explain better how to use this module.
11575         Reported by John Darrington <john@darrington.wattle.id.au>.
11576
11577 2011-06-17  Bruno Haible  <bruno@clisp.org>
11578
11579         pread, pwrite: Avoid cc warning on AIX.
11580         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11581         (pwrite): Likewise.
11582
11583 2011-06-17  Bruno Haible  <bruno@clisp.org>
11584
11585         spawn-pipe tests: Fix link error.
11586         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11587         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11588
11589 2011-06-17  Bruno Haible  <bruno@clisp.org>
11590
11591         Tests: Remove unnecessary dependency.
11592         * modules/canonicalize-tests (Depends-on): Remove progname.
11593         * modules/chown-tests (Depends-on): Likewise.
11594         * modules/dirname-tests (Depends-on): Likewise.
11595         * modules/fdopendir-tests (Depends-on): Likewise.
11596         * modules/fdutimensat-tests (Depends-on): Likewise.
11597         * modules/hash-tests (Depends-on): Likewise.
11598         * modules/lchown-tests (Depends-on): Likewise.
11599         * modules/linkat-tests (Depends-on): Likewise.
11600         * modules/renameat-tests (Depends-on): Likewise.
11601         * modules/spawn-pipe-tests (Depends-on): Likewise.
11602         * modules/utimensat-tests (Depends-on): Likewise.
11603
11604 2011-06-17  Bruno Haible  <bruno@clisp.org>
11605
11606         spawn-pipe tests: Fix link error.
11607         * tests/test-spawn-pipe-child.c: Undefine fflush.
11608
11609 2011-06-17  Bruno Haible  <bruno@clisp.org>
11610
11611         Fix tests link errors.
11612         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11613         * modules/chown-tests (Makefile.am): Don't link test-chown with
11614         LIBINTL.
11615         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11616         LIBINTL.
11617         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11618         LIBINTL.
11619         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11620         LIBINTL.
11621
11622 2011-06-16  Bruno Haible  <bruno@clisp.org>
11623
11624         crypto/gc-sha1: Fix recent regression.
11625         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11626         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11627
11628         crypto/gc-md5: Fix recent regression.
11629         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11630
11631         crypto/gc-md4: Fix recent regression.
11632         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11633         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11634
11635         crypto/gc-arctwo: Fix recent regression.
11636         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11637         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11638
11639         crypto/gc-rijndael: Fix recent regression.
11640         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11641         (configure.ac): Invoke AC_LIBOBJ here.
11642         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11643         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11644
11645         crypto/gc-hmac-sha1: Fix recent regression.
11646         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11647         (configure.ac): Invoke AC_LIBOBJ here.
11648         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11649         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11650
11651         crypto/gc-hmac-md5: Fix recent regression.
11652         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11653         (configure.ac): Invoke AC_LIBOBJ here.
11654         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11655         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11656
11657         crypto/gc-des: Fix recent regression.
11658         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11659         (configure.ac): Invoke AC_LIBOBJ here.
11660         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11661         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11662
11663         crypto/gc-arcfour: Fix recent regression.
11664         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11665         (configure.ac): Invoke AC_LIBOBJ here.
11666         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11667         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11668
11669 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11670
11671         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11672         After the 2011-05-21 change, this macro requires
11673         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11674         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11675
11676 2011-06-16  Bruno Haible  <bruno@clisp.org>
11677
11678         fprintftime: Move AC_LIBOBJ invocations to module description.
11679         * m4/fprintftime.m4: Remove file.
11680         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11681         (configure.ac): Remove gl_FPRINTFTIME call.
11682         (Makefile.am): Augment lib_SOURCES.
11683         Reported by Jim Meyering.
11684
11685 2011-06-16  Bruno Haible  <bruno@clisp.org>
11686
11687         tmpfile-safer: Finish 2011-05-23 commit.
11688         * m4/stdio-safer.m4: Really remove file.
11689         Reported by Jim Meyering.
11690
11691 2011-06-16  Bruno Haible  <bruno@clisp.org>
11692
11693         syntax-check: Fix typo.
11694         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11695         printf-posix.m4.
11696         Reported by Jim Meyering.
11697
11698 2011-06-13  Jim Meyering  <meyering@redhat.com>
11699
11700         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11701         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11702
11703 2011-05-23  Bruno Haible  <bruno@clisp.org>
11704
11705         yesno: Move AC_LIBOBJ invocations to module description.
11706         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11707         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11708
11709 2011-05-23  Bruno Haible  <bruno@clisp.org>
11710
11711         xstrtol: Move AC_LIBOBJ invocations to module description.
11712         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11713         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11714
11715 2011-05-23  Bruno Haible  <bruno@clisp.org>
11716
11717         xstrtold: Move AC_LIBOBJ invocations to module description.
11718         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11719         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11720
11721 2011-05-23  Bruno Haible  <bruno@clisp.org>
11722
11723         xstrtod: Move AC_LIBOBJ invocations to module description.
11724         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11725         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11726
11727 2011-05-23  Bruno Haible  <bruno@clisp.org>
11728
11729         xnanosleep: Move AC_LIBOBJ invocations to module description.
11730         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11731         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11732
11733 2011-05-23  Bruno Haible  <bruno@clisp.org>
11734
11735         xgetcwd: Move AC_LIBOBJ invocations to module description.
11736         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11737         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11738
11739 2011-05-23  Bruno Haible  <bruno@clisp.org>
11740
11741         xalloc: Move AC_LIBOBJ invocations to module description.
11742         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11743         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11744
11745 2011-05-23  Bruno Haible  <bruno@clisp.org>
11746
11747         write-any-file: Move AC_LIBOBJ invocations to module description.
11748         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11749         invocation.
11750         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11751
11752 2011-05-23  Bruno Haible  <bruno@clisp.org>
11753
11754         utimens: Move AC_LIBOBJ invocations to module description.
11755         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11756         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11757
11758 2011-05-23  Bruno Haible  <bruno@clisp.org>
11759
11760         utimecmp: Move AC_LIBOBJ invocations to module description.
11761         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11762         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11763
11764 2011-05-23  Bruno Haible  <bruno@clisp.org>
11765
11766         userspec: Move AC_LIBOBJ invocations to module description.
11767         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11768         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11769
11770 2011-05-23  Bruno Haible  <bruno@clisp.org>
11771
11772         unlinkdir: Move AC_LIBOBJ invocations to module description.
11773         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11774         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11775
11776 2011-05-23  Bruno Haible  <bruno@clisp.org>
11777
11778         unistd-safer: Move AC_LIBOBJ invocations to module description.
11779         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11780         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11781
11782 2011-05-23  Bruno Haible  <bruno@clisp.org>
11783
11784         tempname: Move AC_LIBOBJ invocations to module description.
11785         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11786         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11787
11788 2011-05-23  Bruno Haible  <bruno@clisp.org>
11789
11790         strftime: Move AC_LIBOBJ invocations to module description.
11791         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11792         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11793
11794 2011-05-23  Bruno Haible  <bruno@clisp.org>
11795
11796         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11797         * m4/stdlib-safer.m4: Remove file.
11798         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11799         (configure.ac): Remove gl_STDLIB_SAFER call.
11800         (Makefile.am): Augment lib_SOURCES.
11801
11802 2011-05-23  Bruno Haible  <bruno@clisp.org>
11803
11804         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11805         * m4/stdio-safer.m4: Remove file.
11806         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11807         (configure.ac): Remove gl_TMPFILE_SAFER call.
11808         (Makefile.am): Augment lib_SOURCES.
11809
11810 2011-05-23  Bruno Haible  <bruno@clisp.org>
11811
11812         popen-safer: Move AC_LIBOBJ invocations to module description.
11813         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11814         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11815         (configure.ac): Remove gl_POPEN_SAFER call.
11816         (Makefile.am): Augment lib_SOURCES.
11817
11818 2011-05-23  Bruno Haible  <bruno@clisp.org>
11819
11820         freopen-safer: Move AC_LIBOBJ invocations to module description.
11821         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11822         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11823         (configure.ac): Remove gl_FREOPEN_SAFER call.
11824         (Makefile.am): Augment lib_SOURCES.
11825
11826 2011-05-23  Bruno Haible  <bruno@clisp.org>
11827
11828         fopen-safer: Move AC_LIBOBJ invocations to module description.
11829         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
11830         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
11831         (configure.ac): Remove gl_FOPEN_SAFER call.
11832         (Makefile.am): Augment lib_SOURCES.
11833
11834 2011-05-23  Bruno Haible  <bruno@clisp.org>
11835
11836         crypto/sha512: Move AC_LIBOBJ invocations to module description.
11837         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
11838         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
11839
11840 2011-05-23  Bruno Haible  <bruno@clisp.org>
11841
11842         crypto/sha256: Move AC_LIBOBJ invocations to module description.
11843         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
11844         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
11845
11846 2011-05-23  Bruno Haible  <bruno@clisp.org>
11847
11848         crypto/sha1: Move AC_LIBOBJ invocations to module description.
11849         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
11850         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
11851
11852 2011-05-23  Bruno Haible  <bruno@clisp.org>
11853
11854         settime: Move AC_LIBOBJ invocations to module description.
11855         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
11856         * modules/settime (Makefile.am): Augment lib_SOURCES.
11857
11858 2011-05-23  Bruno Haible  <bruno@clisp.org>
11859
11860         savedir: Move AC_LIBOBJ invocations to module description.
11861         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
11862         * modules/savedir (Makefile.am): Augment lib_SOURCES.
11863
11864 2011-05-23  Bruno Haible  <bruno@clisp.org>
11865
11866         save-cwd: Move AC_LIBOBJ invocations to module description.
11867         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
11868         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
11869
11870 2011-05-23  Bruno Haible  <bruno@clisp.org>
11871
11872         same: Move AC_LIBOBJ invocations to module description.
11873         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
11874         * modules/same (Makefile.am): Augment lib_SOURCES.
11875
11876 2011-05-23  Bruno Haible  <bruno@clisp.org>
11877
11878         safe-write: Move AC_LIBOBJ invocations to module description.
11879         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
11880         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
11881         instead of gl_SAFE_WRITE.
11882         (Makefile.am): Augment lib_SOURCES.
11883
11884 2011-05-23  Bruno Haible  <bruno@clisp.org>
11885
11886         safe-read: Move AC_LIBOBJ invocations to module description.
11887         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
11888         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
11889         of gl_SAFE_READ.
11890         (Makefile.am): Augment lib_SOURCES.
11891
11892 2011-05-23  Bruno Haible  <bruno@clisp.org>
11893
11894         safe-alloc: Move AC_LIBOBJ invocations to module description.
11895         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
11896         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
11897
11898 2011-05-23  Bruno Haible  <bruno@clisp.org>
11899
11900         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
11901         * m4/rijndael.m4: Remove file.
11902         * modules/crypto/rijndael (Files): Remove it.
11903         (configure.ac): Remove gl_RIJNDAEL call.
11904         (Makefile.am): Augment lib_SOURCES.
11905
11906 2011-05-23  Bruno Haible  <bruno@clisp.org>
11907
11908         readtokens: Move AC_LIBOBJ invocations to module description.
11909         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
11910         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
11911
11912 2011-05-23  Bruno Haible  <bruno@clisp.org>
11913
11914         read-file: Move AC_LIBOBJ invocations to module description.
11915         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
11916         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
11917         of gl_FUNC_READ_FILE.
11918         (Makefile.am): Augment lib_SOURCES.
11919
11920 2011-05-23  Bruno Haible  <bruno@clisp.org>
11921
11922         quotearg: Move AC_LIBOBJ invocations to module description.
11923         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
11924         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
11925
11926 2011-05-23  Bruno Haible  <bruno@clisp.org>
11927
11928         quote: Move AC_LIBOBJ invocations to module description.
11929         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
11930         * modules/quote (Makefile.am): Augment lib_SOURCES.
11931
11932 2011-05-23  Bruno Haible  <bruno@clisp.org>
11933
11934         posixver: Move AC_LIBOBJ invocations to module description.
11935         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
11936         * modules/posixver (Makefile.am): Augment lib_SOURCES.
11937
11938 2011-05-23  Bruno Haible  <bruno@clisp.org>
11939
11940         posixtm: Move AC_LIBOBJ invocations to module description.
11941         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
11942         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
11943
11944 2011-05-23  Bruno Haible  <bruno@clisp.org>
11945
11946         physmem: Move AC_LIBOBJ invocations to module description.
11947         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
11948         * modules/physmem (Makefile.am): Augment lib_SOURCES.
11949
11950 2011-05-23  Bruno Haible  <bruno@clisp.org>
11951
11952         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
11953         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
11954         invocation.
11955         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
11956
11957 2011-05-23  Bruno Haible  <bruno@clisp.org>
11958
11959         mpsort: Move AC_LIBOBJ invocations to module description.
11960         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
11961         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
11962
11963 2011-05-23  Bruno Haible  <bruno@clisp.org>
11964
11965         modechange: Move AC_LIBOBJ invocations to module description.
11966         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
11967         * modules/modechange (Makefile.am): Augment lib_SOURCES.
11968
11969 2011-05-23  Bruno Haible  <bruno@clisp.org>
11970
11971         mkdir-p: Move AC_LIBOBJ invocations to module description.
11972         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
11973         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
11974
11975 2011-05-23  Bruno Haible  <bruno@clisp.org>
11976
11977         mkancesdirs: Move AC_LIBOBJ invocations to module description.
11978         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
11979         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
11980
11981 2011-05-23  Bruno Haible  <bruno@clisp.org>
11982
11983         mgetgroups: Move AC_LIBOBJ invocations to module description.
11984         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
11985         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
11986
11987 2011-05-23  Bruno Haible  <bruno@clisp.org>
11988
11989         memxor: Move AC_LIBOBJ invocations to module description.
11990         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
11991         * modules/memxor (Makefile.am): Augment lib_SOURCES.
11992
11993 2011-05-23  Bruno Haible  <bruno@clisp.org>
11994
11995         memcoll: Move AC_LIBOBJ invocations to module description.
11996         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
11997         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
11998
11999 2011-05-23  Bruno Haible  <bruno@clisp.org>
12000
12001         memcasecmp: Move AC_LIBOBJ invocations to module description.
12002         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12003         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12004
12005 2011-05-23  Bruno Haible  <bruno@clisp.org>
12006
12007         crypto/md5: Move AC_LIBOBJ invocations to module description.
12008         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12009         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12010
12011 2011-05-23  Bruno Haible  <bruno@clisp.org>
12012
12013         crypto/md4: Move AC_LIBOBJ invocations to module description.
12014         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12015         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12016
12017 2011-05-23  Bruno Haible  <bruno@clisp.org>
12018
12019         crypto/md2: Move AC_LIBOBJ invocations to module description.
12020         * m4/md2.m4: Remove file.
12021         * modules/crypto/md2 (Files): Remove it.
12022         (configure.ac): Remove gl_MD2 call.
12023         (Makefile.am): Augment lib_SOURCES.
12024
12025 2011-05-23  Bruno Haible  <bruno@clisp.org>
12026
12027         long-options: Move AC_LIBOBJ invocations to module description.
12028         * m4/long-options.m4: Remove file.
12029         * modules/long-options (Files): Remove it.
12030         (configure.ac): Remove gl_LONG_OPTIONS call.
12031         (Makefile.am): Augment lib_SOURCES.
12032
12033 2011-05-23  Bruno Haible  <bruno@clisp.org>
12034
12035         i-ring: Move AC_LIBOBJ invocations to module description.
12036         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12037         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12038
12039 2011-05-23  Bruno Haible  <bruno@clisp.org>
12040
12041         idcache: Move AC_LIBOBJ invocations to module description.
12042         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12043         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12044
12045 2011-05-23  Bruno Haible  <bruno@clisp.org>
12046
12047         human: Move AC_LIBOBJ invocations to module description.
12048         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12049         * modules/human (Makefile.am): Augment lib_SOURCES.
12050
12051 2011-05-23  Bruno Haible  <bruno@clisp.org>
12052
12053         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12054         * m4/hmac-sha1.m4: Remove file.
12055         * modules/crypto/hmac-sha1 (Files): Remove it.
12056         (configure.ac): Remove gl_HMAC_SHA1 call.
12057         (Makefile.am): Augment lib_SOURCES.
12058
12059 2011-05-23  Bruno Haible  <bruno@clisp.org>
12060
12061         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12062         * m4/hmac-md5.m4: Remove file.
12063         * modules/crypto/hmac-md5 (Files): Remove it.
12064         (configure.ac): Remove gl_HMAC_MD5 call.
12065         (Makefile.am): Augment lib_SOURCES.
12066
12067 2011-05-23  Bruno Haible  <bruno@clisp.org>
12068
12069         hash: Move AC_LIBOBJ invocations to module description.
12070         * m4/hash.m4: Remove file.
12071         * modules/hash (Files): Remove it.
12072         (configure.ac): Remove gl_HASH call.
12073         (Makefile.am): Augment lib_SOURCES.
12074
12075 2011-05-23  Bruno Haible  <bruno@clisp.org>
12076
12077         hard-locale: Move AC_LIBOBJ invocations to module description.
12078         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12079         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12080
12081 2011-05-23  Bruno Haible  <bruno@clisp.org>
12082
12083         getugroups: Move AC_LIBOBJ invocations to module description.
12084         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12085         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12086
12087 2011-05-23  Bruno Haible  <bruno@clisp.org>
12088
12089         gettime: Move AC_LIBOBJ invocations to module description.
12090         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12091         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12092
12093 2011-05-23  Bruno Haible  <bruno@clisp.org>
12094
12095         getndelim2: Move AC_LIBOBJ invocations to module description.
12096         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12097         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12098
12099 2011-05-23  Bruno Haible  <bruno@clisp.org>
12100
12101         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12102         * m4/gc-pbkdf2-sha1.m4: Remove file.
12103         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12104         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12105         (Makefile.am): Augment lib_SOURCES.
12106
12107 2011-05-23  Bruno Haible  <bruno@clisp.org>
12108
12109         fts: Move AC_LIBOBJ invocations to module description.
12110         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12111         * modules/fts (configure.ac): ... to here.
12112
12113 2011-05-23  Bruno Haible  <bruno@clisp.org>
12114
12115         file-type: Move AC_LIBOBJ invocations to module description.
12116         * m4/file-type.m4: Remove file.
12117         * modules/file-type (Files): Remove it.
12118         (configure.ac): Remove gl_FILE_TYPE call.
12119         (Makefile.am): Augment lib_SOURCES.
12120
12121 2011-05-23  Bruno Haible  <bruno@clisp.org>
12122
12123         filenamecat*: Respect rules for use of AC_LIBOBJ.
12124         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12125         Remove AC_LIBOBJ invocation.
12126         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12127         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12128
12129 2011-05-23  Bruno Haible  <bruno@clisp.org>
12130
12131         filemode: Move AC_LIBOBJ invocations to module description.
12132         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12133         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12134
12135 2011-05-23  Bruno Haible  <bruno@clisp.org>
12136
12137         openat-safer: Move AC_LIBOBJ invocations to module description.
12138         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12139         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12140
12141 2011-05-23  Bruno Haible  <bruno@clisp.org>
12142
12143         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12144         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12145         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12146
12147 2011-05-23  Bruno Haible  <bruno@clisp.org>
12148
12149         exclude: Move AC_LIBOBJ invocations to module description.
12150         * m4/exclude.m4: Remove file.
12151         * modules/exclude (Files): Remove it.
12152         (configure.ac): Remove gl_EXCLUDE call.
12153         (Makefile.am): Augment lib_SOURCES.
12154
12155 2011-05-23  Bruno Haible  <bruno@clisp.org>
12156
12157         dirname*: Respect rules for use of AC_LIBOBJ.
12158         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12159         invocations.
12160         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12161         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12162
12163 2011-05-23  Bruno Haible  <bruno@clisp.org>
12164
12165         dirent-safer: Move AC_LIBOBJ invocations to module description.
12166         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12167         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12168
12169 2011-05-23  Bruno Haible  <bruno@clisp.org>
12170
12171         crypto/des: Move AC_LIBOBJ invocations to module description.
12172         * m4/des.m4: Remove file.
12173         * modules/crypto/des (Files): Remove it.
12174         (configure.ac): Remove gl_DES call.
12175         (Makefile.am): Augment lib_SOURCES.
12176
12177 2011-05-23  Bruno Haible  <bruno@clisp.org>
12178
12179         cycle-check: Move AC_LIBOBJ invocations to module description.
12180         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12181         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12182
12183 2011-05-23  Bruno Haible  <bruno@clisp.org>
12184
12185         c-strtold: Move AC_LIBOBJ invocations to module description.
12186         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12187         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12188
12189 2011-05-23  Bruno Haible  <bruno@clisp.org>
12190
12191         c-strtod: Move AC_LIBOBJ invocations to module description.
12192         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12193         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12194
12195 2011-05-23  Bruno Haible  <bruno@clisp.org>
12196
12197         crc: Move AC_LIBOBJ invocations to module description.
12198         * m4/crc.m4: Remove file.
12199         * modules/crc (Files): Remove it.
12200         (configure.ac): Remove gl_CRC call.
12201         (Makefile.am): Augment lib_SOURCES.
12202
12203 2011-05-23  Bruno Haible  <bruno@clisp.org>
12204
12205         close-stream: Move AC_LIBOBJ invocations to module description.
12206         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12207         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12208
12209 2011-05-23  Bruno Haible  <bruno@clisp.org>
12210
12211         closeout: Move AC_LIBOBJ invocations to module description.
12212         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12213         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12214
12215 2011-05-23  Bruno Haible  <bruno@clisp.org>
12216
12217         closein: Move AC_LIBOBJ invocations to module description.
12218         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12219         * modules/closein (Makefile.am): Augment lib_SOURCES.
12220
12221 2011-05-23  Bruno Haible  <bruno@clisp.org>
12222
12223         cloexec: Move AC_LIBOBJ invocations to module description.
12224         * m4/cloexec.m4: Remove file.
12225         * modules/cloexec (Files): Remove it.
12226         (configure.ac): Remove gl_CLOEXEC call.
12227         (Makefile.am): Augment lib_SOURCES.
12228
12229 2011-05-23  Bruno Haible  <bruno@clisp.org>
12230
12231         check-version: Move AC_LIBOBJ invocations to module description.
12232         * m4/check-version.m4: Remove file.
12233         * modules/check-version (Files): Remove it.
12234         (configure.ac): Remove gl_CHECK_VERSION call.
12235         (Makefile.am): Augment lib_SOURCES.
12236
12237 2011-05-23  Bruno Haible  <bruno@clisp.org>
12238
12239         chdir-safer: Move AC_LIBOBJ invocations to module description.
12240         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12241         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12242
12243 2011-05-23  Bruno Haible  <bruno@clisp.org>
12244
12245         canonicalize: Move AC_LIBOBJ invocations to module description.
12246         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12247         AC_LIBOBJ invocation.
12248         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12249
12250 2011-05-23  Bruno Haible  <bruno@clisp.org>
12251
12252         canon-host: Move AC_LIBOBJ invocations to module description.
12253         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12254         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12255         instead of gl_CANON_HOST.
12256         (Makefile.am): Augment lib_SOURCES.
12257
12258 2011-05-23  Bruno Haible  <bruno@clisp.org>
12259
12260         backupfile: Move AC_LIBOBJ invocations to module description.
12261         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12262         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12263
12264 2011-05-23  Bruno Haible  <bruno@clisp.org>
12265
12266         argmatch: Move AC_LIBOBJ invocations to module description.
12267         * m4/argmatch.m4: Remove file.
12268         * modules/argmatch (Files): Remove it.
12269         (configure.ac): Remove gl_ARGMATCH call.
12270         (Makefile.am): Augment lib_SOURCES.
12271
12272 2011-05-23  Bruno Haible  <bruno@clisp.org>
12273
12274         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12275         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12276         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12277
12278 2011-05-23  Bruno Haible  <bruno@clisp.org>
12279
12280         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12281         * m4/arcfour.m4: Remove file.
12282         * modules/crypto/arcfour (Files): Remove it.
12283         (configure.ac): Remove gl_ARCFOUR call.
12284         (Makefile.am): Augment lib_SOURCES.
12285
12286 2011-05-22  Bruno Haible  <bruno@clisp.org>
12287
12288         write: Move AC_LIBOBJ invocations to module description.
12289         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12290         * modules/write (configure.ac): ... to here.
12291
12292 2011-05-22  Bruno Haible  <bruno@clisp.org>
12293
12294         wmemset: Move AC_LIBOBJ invocations to module description.
12295         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12296         here...
12297         * modules/wmemset (configure.ac): ... to here.
12298
12299 2011-05-22  Bruno Haible  <bruno@clisp.org>
12300
12301         wmemmove: Move AC_LIBOBJ invocations to module description.
12302         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12303         here...
12304         * modules/wmemmove (configure.ac): ... to here.
12305
12306 2011-05-22  Bruno Haible  <bruno@clisp.org>
12307
12308         wmemcpy: Move AC_LIBOBJ invocations to module description.
12309         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12310         here...
12311         * modules/wmemcpy (configure.ac): ... to here.
12312
12313 2011-05-22  Bruno Haible  <bruno@clisp.org>
12314
12315         wmemcmp: Move AC_LIBOBJ invocations to module description.
12316         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12317         here...
12318         * modules/wmemcmp (configure.ac): ... to here.
12319
12320 2011-05-22  Bruno Haible  <bruno@clisp.org>
12321
12322         wmemchr: Move AC_LIBOBJ invocations to module description.
12323         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12324         here...
12325         * modules/wmemchr (configure.ac): ... to here.
12326
12327 2011-05-22  Bruno Haible  <bruno@clisp.org>
12328
12329         wcswidth: Move AC_LIBOBJ invocations to module description.
12330         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12331         here...
12332         * modules/wcswidth (configure.ac): ... to here.
12333
12334 2011-05-22  Bruno Haible  <bruno@clisp.org>
12335
12336         wcwidth: Respect rules for use of AC_LIBOBJ.
12337         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12338         invocation from here...
12339         * modules/wcwidth (configure.ac): ... to here.
12340         (Depends-on): Update conditions.
12341
12342 2011-05-22  Bruno Haible  <bruno@clisp.org>
12343
12344         wctype: Move AC_LIBOBJ invocations to module description.
12345         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12346         invocation from here...
12347         * modules/wctype (configure.ac): ... to here.
12348         (Depends-on): Update conditions.
12349
12350 2011-05-22  Bruno Haible  <bruno@clisp.org>
12351
12352         wctrans: Move AC_LIBOBJ invocations to module description.
12353         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12354         invocation from here...
12355         * modules/wctrans (configure.ac): ... to here.
12356
12357 2011-05-22  Bruno Haible  <bruno@clisp.org>
12358
12359         wctomb: Move AC_LIBOBJ invocations to module description.
12360         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12361         invocations from here...
12362         * modules/wctomb (configure.ac): ... to here.
12363
12364 2011-05-22  Bruno Haible  <bruno@clisp.org>
12365
12366         wctob: Move AC_LIBOBJ invocations to module description.
12367         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12368         gl_PREREQ_WCTOB invocations from here...
12369         * modules/wctob (configure.ac): ... to here.
12370         (Depends-on): Update conditions.
12371
12372 2011-05-22  Bruno Haible  <bruno@clisp.org>
12373
12374         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12375         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12376         here...
12377         * modules/wcsxfrm (configure.ac): ... to here.
12378
12379 2011-05-22  Bruno Haible  <bruno@clisp.org>
12380
12381         wcstok: Move AC_LIBOBJ invocations to module description.
12382         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12383         * modules/wcstok (configure.ac): ... to here.
12384
12385 2011-05-22  Bruno Haible  <bruno@clisp.org>
12386
12387         wcsstr: Move AC_LIBOBJ invocations to module description.
12388         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12389         * modules/wcsstr (configure.ac): ... to here.
12390
12391 2011-05-22  Bruno Haible  <bruno@clisp.org>
12392
12393         wcsspn: Move AC_LIBOBJ invocations to module description.
12394         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12395         * modules/wcsspn (configure.ac): ... to here.
12396
12397 2011-05-22  Bruno Haible  <bruno@clisp.org>
12398
12399         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12400         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12401         gl_PREREQ_WCSRTOMBS invocations from here...
12402         * modules/wcsrtombs (configure.ac): ... to here.
12403
12404 2011-05-22  Bruno Haible  <bruno@clisp.org>
12405
12406         wcsrchr: Move AC_LIBOBJ invocations to module description.
12407         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12408         here...
12409         * modules/wcsrchr (configure.ac): ... to here.
12410
12411 2011-05-22  Bruno Haible  <bruno@clisp.org>
12412
12413         wcspbrk: Move AC_LIBOBJ invocations to module description.
12414         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12415         here...
12416         * modules/wcspbrk (configure.ac): ... to here.
12417
12418 2011-05-22  Bruno Haible  <bruno@clisp.org>
12419
12420         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12421         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12422         gl_PREREQ_WCSNRTOMBS invocations from here...
12423         * modules/wcsnrtombs (configure.ac): ... to here.
12424
12425 2011-05-22  Bruno Haible  <bruno@clisp.org>
12426
12427         wcsnlen: Move AC_LIBOBJ invocations to module description.
12428         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12429         here...
12430         * modules/wcsnlen (configure.ac): ... to here.
12431
12432 2011-05-22  Bruno Haible  <bruno@clisp.org>
12433
12434         wcsncpy: Move AC_LIBOBJ invocations to module description.
12435         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12436         here...
12437         * modules/wcsncpy (configure.ac): ... to here.
12438
12439 2011-05-22  Bruno Haible  <bruno@clisp.org>
12440
12441         wcsncmp: Move AC_LIBOBJ invocations to module description.
12442         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12443         here...
12444         * modules/wcsncmp (configure.ac): ... to here.
12445
12446 2011-05-22  Bruno Haible  <bruno@clisp.org>
12447
12448         wcsncat: Move AC_LIBOBJ invocations to module description.
12449         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12450         here...
12451         * modules/wcsncat (configure.ac): ... to here.
12452
12453 2011-05-22  Bruno Haible  <bruno@clisp.org>
12454
12455         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12456         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12457         from here...
12458         * modules/wcsncasecmp (configure.ac): ... to here.
12459
12460 2011-05-22  Bruno Haible  <bruno@clisp.org>
12461
12462         wcslen: Move AC_LIBOBJ invocations to module description.
12463         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12464         * modules/wcslen (configure.ac): ... to here.
12465
12466 2011-05-22  Bruno Haible  <bruno@clisp.org>
12467
12468         wcsdup: Move AC_LIBOBJ invocations to module description.
12469         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12470         * modules/wcsdup (configure.ac): ... to here.
12471
12472 2011-05-22  Bruno Haible  <bruno@clisp.org>
12473
12474         wcscspn: Move AC_LIBOBJ invocations to module description.
12475         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12476         here...
12477         * modules/wcscspn (configure.ac): ... to here.
12478
12479 2011-05-22  Bruno Haible  <bruno@clisp.org>
12480
12481         wcscpy: Move AC_LIBOBJ invocations to module description.
12482         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12483         * modules/wcscpy (configure.ac): ... to here.
12484
12485 2011-05-22  Bruno Haible  <bruno@clisp.org>
12486
12487         wcscoll: Move AC_LIBOBJ invocations to module description.
12488         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12489         here...
12490         * modules/wcscoll (configure.ac): ... to here.
12491
12492 2011-05-22  Bruno Haible  <bruno@clisp.org>
12493
12494         wcscmp: Move AC_LIBOBJ invocations to module description.
12495         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12496         * modules/wcscmp (configure.ac): ... to here.
12497
12498 2011-05-22  Bruno Haible  <bruno@clisp.org>
12499
12500         wcschr: Move AC_LIBOBJ invocations to module description.
12501         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12502         * modules/wcschr (configure.ac): ... to here.
12503
12504 2011-05-22  Bruno Haible  <bruno@clisp.org>
12505
12506         wcscat: Move AC_LIBOBJ invocations to module description.
12507         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12508         * modules/wcscat (configure.ac): ... to here.
12509
12510 2011-05-22  Bruno Haible  <bruno@clisp.org>
12511
12512         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12513         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12514         here...
12515         * modules/wcscasecmp (configure.ac): ... to here.
12516
12517 2011-05-22  Bruno Haible  <bruno@clisp.org>
12518
12519         wcrtomb: Move AC_LIBOBJ invocations to module description.
12520         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12521         invocations from here...
12522         * modules/wcrtomb (configure.ac): ... to here.
12523
12524 2011-05-22  Bruno Haible  <bruno@clisp.org>
12525
12526         wcpncpy: Move AC_LIBOBJ invocations to module description.
12527         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12528         here...
12529         * modules/wcpncpy (configure.ac): ... to here.
12530
12531 2011-05-22  Bruno Haible  <bruno@clisp.org>
12532
12533         wcpcpy: Move AC_LIBOBJ invocations to module description.
12534         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12535         * modules/wcpcpy (configure.ac): ... to here.
12536
12537 2011-05-22  Bruno Haible  <bruno@clisp.org>
12538
12539         waitpid: Move AC_LIBOBJ invocations to module description.
12540         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12541         invocation from here...
12542         * modules/waitpid (configure.ac): ... to here.
12543
12544 2011-05-22  Bruno Haible  <bruno@clisp.org>
12545
12546         utimensat: Move AC_LIBOBJ invocations to module description.
12547         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12548         here...
12549         * modules/utimensat (configure.ac): ... to here.
12550
12551 2011-05-22  Bruno Haible  <bruno@clisp.org>
12552
12553         usleep: Move AC_LIBOBJ invocations to module description.
12554         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12555         here...
12556         * modules/usleep (configure.ac): ... to here.
12557
12558 2011-05-22  Bruno Haible  <bruno@clisp.org>
12559
12560         unlockpt: Move AC_LIBOBJ invocations to module description.
12561         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12562         gl_PREREQ_UNLOCKPT invocations from here...
12563         * modules/unlockpt (configure.ac): ... to here.
12564
12565 2011-05-22  Bruno Haible  <bruno@clisp.org>
12566
12567         unlink: Respect rules for use of AC_LIBOBJ.
12568         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12569         * modules/unlink (configure.ac): ... to here.
12570
12571 2011-05-22  Bruno Haible  <bruno@clisp.org>
12572
12573         uname: Move AC_LIBOBJ invocations to module description.
12574         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12575         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12576         here...
12577         * modules/uname (configure.ac): ... to here.
12578
12579 2011-05-22  Bruno Haible  <bruno@clisp.org>
12580
12581         ttyname_r: Move AC_LIBOBJ invocations to module description.
12582         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12583         gl_PREREQ_TTYNAME_R invocations from here...
12584         * modules/ttyname_r (configure.ac): ... to here.
12585
12586 2011-05-22  Bruno Haible  <bruno@clisp.org>
12587
12588         tsearch: Move AC_LIBOBJ invocations to module description.
12589         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12590         invocations from here...
12591         * modules/tsearch (configure.ac): ... to here.
12592
12593 2011-05-22  Bruno Haible  <bruno@clisp.org>
12594
12595         towctrans: Move AC_LIBOBJ invocations to module description.
12596         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12597         AC_LIBOBJ invocation from here...
12598         * modules/towctrans (configure.ac): ... to here.
12599
12600 2011-05-22  Bruno Haible  <bruno@clisp.org>
12601
12602         tmpfile: Move AC_LIBOBJ invocations to module description.
12603         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12604         invocations from here...
12605         * modules/tmpfile (configure.ac): ... to here.
12606
12607 2011-05-22  Bruno Haible  <bruno@clisp.org>
12608
12609         times: Move AC_LIBOBJ invocations to module description.
12610         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12611         * modules/times (configure.ac): ... to here.
12612
12613 2011-05-22  Bruno Haible  <bruno@clisp.org>
12614
12615         time_r: Move AC_LIBOBJ invocations to module description.
12616         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12617         invocations from here...
12618         * modules/time_r (configure.ac): ... to here.
12619
12620 2011-05-22  Bruno Haible  <bruno@clisp.org>
12621
12622         timegm: Move AC_LIBOBJ invocations to module description.
12623         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12624         invocations from here...
12625         * modules/timegm (configure.ac): ... to here.
12626
12627 2011-05-22  Bruno Haible  <bruno@clisp.org>
12628
12629         tcgetsid: Move AC_LIBOBJ invocations to module description.
12630         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12631         and gl_PREREQ_TCGETSID invocations from here...
12632         * modules/tcgetsid (configure.ac): ... to here.
12633         (Depends-on): Update conditions.
12634
12635 2011-05-22  Bruno Haible  <bruno@clisp.org>
12636
12637         symlinkat: Move AC_LIBOBJ invocations to module description.
12638         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12639         here...
12640         * modules/symlinkat (configure.ac): ... to here.
12641
12642 2011-05-22  Bruno Haible  <bruno@clisp.org>
12643
12644         symlink: Move AC_LIBOBJ invocations to module description.
12645         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12646         here...
12647         * modules/symlink (configure.ac): ... to here.
12648
12649 2011-05-22  Bruno Haible  <bruno@clisp.org>
12650
12651         strverscmp: Move AC_LIBOBJ invocations to module description.
12652         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12653         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12654         from here...
12655         * modules/strverscmp (configure.ac): ... to here.
12656
12657 2011-05-22  Bruno Haible  <bruno@clisp.org>
12658
12659         strtok_r: Move AC_LIBOBJ invocations to module description.
12660         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12661         and gl_PREREQ_STRTOK_R invocations from here...
12662         * modules/strtok_r (configure.ac): ... to here.
12663         (Depends-on): Update conditions.
12664
12665 2011-05-22  Bruno Haible  <bruno@clisp.org>
12666
12667         strtoumax: Move AC_LIBOBJ invocations to module description.
12668         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12669         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12670         from here...
12671         * modules/strtoumax (configure.ac): ... to here.
12672
12673 2011-05-22  Bruno Haible  <bruno@clisp.org>
12674
12675         strtoimax: Move AC_LIBOBJ invocations to module description.
12676         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12677         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12678         from here...
12679         * modules/strtoimax (configure.ac): ... to here.
12680
12681 2011-05-22  Bruno Haible  <bruno@clisp.org>
12682
12683         strtoull: Move AC_LIBOBJ invocations to module description.
12684         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12685         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12686         from here...
12687         * modules/strtoull (configure.ac): ... to here.
12688
12689 2011-05-22  Bruno Haible  <bruno@clisp.org>
12690
12691         strtoll: Move AC_LIBOBJ invocations to module description.
12692         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12693         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12694         here...
12695         * modules/strtoll (configure.ac): ... to here.
12696
12697 2011-05-22  Bruno Haible  <bruno@clisp.org>
12698
12699         strtoul: Move AC_LIBOBJ invocations to module description.
12700         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12701         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12702         * modules/strtoul (configure.ac): ... to here.
12703
12704 2011-05-22  Bruno Haible  <bruno@clisp.org>
12705
12706         strtol: Move AC_LIBOBJ invocations to module description.
12707         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12708         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12709         * modules/strtol (configure.ac): ... to here.
12710
12711 2011-05-22  Bruno Haible  <bruno@clisp.org>
12712
12713         strtod: Move AC_LIBOBJ invocations to module description.
12714         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12715         invocations from here...
12716         * modules/strtod (configure.ac): ... to here.
12717
12718 2011-05-22  Bruno Haible  <bruno@clisp.org>
12719
12720         strstr*: Move AC_LIBOBJ invocations to module description.
12721         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12722         invocations from here...
12723         * modules/strstr-simple (configure.ac): ... to here.
12724         * modules/strstr (configure.ac): ... and here.
12725
12726 2011-05-22  Bruno Haible  <bruno@clisp.org>
12727
12728         strsignal: Move AC_LIBOBJ invocations to module description.
12729         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12730         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12731         * modules/strsignal (configure.ac): ... to here.
12732         (Depends-on): Update conditions.
12733
12734 2011-05-22  Bruno Haible  <bruno@clisp.org>
12735
12736         strsep: Move AC_LIBOBJ invocations to module description.
12737         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12738         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12739         here...
12740         * modules/strsep (configure.ac): ... to here.
12741
12742 2011-05-22  Bruno Haible  <bruno@clisp.org>
12743
12744         strptime: Move AC_LIBOBJ invocations to module description.
12745         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12746         gl_PREREQ_STRPTIME invocations from here...
12747         * modules/strptime (configure.ac): ... to here.
12748
12749 2011-05-22  Bruno Haible  <bruno@clisp.org>
12750
12751         strpbrk: Move AC_LIBOBJ invocations to module description.
12752         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12753         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12754         here...
12755         * modules/strpbrk (configure.ac): ... to here.
12756
12757 2011-05-22  Bruno Haible  <bruno@clisp.org>
12758
12759         strnlen: Move AC_LIBOBJ invocations to module description.
12760         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12761         invocations from here...
12762         * modules/strnlen (configure.ac): ... to here.
12763
12764 2011-05-22  Bruno Haible  <bruno@clisp.org>
12765
12766         strndup: Move AC_LIBOBJ invocations to module description.
12767         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12768         invocations from here...
12769         * modules/strndup (configure.ac): ... to here.
12770         (Depends-on): Update conditions.
12771
12772 2011-05-22  Bruno Haible  <bruno@clisp.org>
12773
12774         strncat: Move AC_LIBOBJ invocations to module description.
12775         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12776         invocations from here...
12777         * modules/strncat (configure.ac): ... to here.
12778
12779 2011-05-22  Bruno Haible  <bruno@clisp.org>
12780
12781         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12782         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12783         invocations from here...
12784         * modules/strdup (configure.ac): ... to here.
12785         * modules/strdup-posix (configure.ac): ... and here.
12786
12787 2011-05-22  Bruno Haible  <bruno@clisp.org>
12788
12789         strcspn: Move AC_LIBOBJ invocations to module description.
12790         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12791         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12792         here...
12793         * modules/strcspn (configure.ac): ... to here.
12794
12795 2011-05-22  Bruno Haible  <bruno@clisp.org>
12796
12797         strchrnul: Move AC_LIBOBJ invocations to module description.
12798         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12799         gl_PREREQ_STRCHRNUL invocations from here...
12800         * modules/strchrnul (configure.ac): ... to here.
12801
12802 2011-05-22  Bruno Haible  <bruno@clisp.org>
12803
12804         strcasestr*: Move AC_LIBOBJ invocations to module description.
12805         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12806         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12807         * modules/strcasestr-simple (configure.ac): ... to here.
12808         * modules/strcasestr (configure.ac): ... and here.
12809
12810 2011-05-22  Bruno Haible  <bruno@clisp.org>
12811
12812         strcase: Move AC_LIBOBJ invocations to module description.
12813         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12814         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12815         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12816         gl_PREREQ_STRNCASECMP invocations from here...
12817         * modules/strcase (configure.ac): ... to here.
12818
12819 2011-05-22  Bruno Haible  <bruno@clisp.org>
12820
12821         stpncpy: Move AC_LIBOBJ invocations to module description.
12822         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12823         here...
12824         * modules/stpncpy (configure.ac): ... to here.
12825
12826 2011-05-22  Bruno Haible  <bruno@clisp.org>
12827
12828         stpcpy: Move AC_LIBOBJ invocations to module description.
12829         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
12830         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
12831         here...
12832         * modules/stpcpy (configure.ac): ... to here.
12833
12834 2011-05-21  Bruno Haible  <bruno@clisp.org>
12835
12836         stat: Move AC_LIBOBJ invocations to module description.
12837         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
12838         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
12839         here...
12840         * modules/stat (configure.ac): ... to here.
12841
12842 2011-05-21  Bruno Haible  <bruno@clisp.org>
12843
12844         sleep: Move AC_LIBOBJ invocations to module description.
12845         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
12846         * modules/sleep (configure.ac): ... to here.
12847
12848 2011-05-21  Bruno Haible  <bruno@clisp.org>
12849
12850         signbit: Move AC_LIBOBJ invocations to module description.
12851         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
12852         * modules/signbit (configure.ac): ... to here.
12853
12854 2011-05-21  Bruno Haible  <bruno@clisp.org>
12855
12856         sigprocmask: Move AC_LIBOBJ invocations to module description.
12857         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
12858         gl_PREREQ_SIGPROMASK invocations from here...
12859         * modules/sigprocmask (configure.ac): ... to here.
12860
12861 2011-05-21  Bruno Haible  <bruno@clisp.org>
12862
12863         sigaction: Move AC_LIBOBJ invocations to module description.
12864         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
12865         gl_PREREQ_SIGACTION invocations from here...
12866         * modules/sigaction (configure.ac): ... to here.
12867
12868 2011-05-21  Bruno Haible  <bruno@clisp.org>
12869
12870         sig2str: Move AC_LIBOBJ invocations to module description.
12871         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
12872         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
12873         here...
12874         * modules/sig2str (configure.ac): ... to here.
12875
12876 2011-05-21  Bruno Haible  <bruno@clisp.org>
12877
12878         setlocale: Move AC_LIBOBJ invocations to module description.
12879         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
12880         gl_PREREQ_SETLOCALE invocations from here...
12881         * modules/setlocale (configure.ac): ... to here.
12882
12883 2011-05-21  Bruno Haible  <bruno@clisp.org>
12884
12885         unsetenv: Move AC_LIBOBJ invocations to module description.
12886         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
12887         and gl_PREREQ_UNSETENV invocations from here...
12888         * modules/unsetenv (configure.ac): ... to here.
12889         (Depends-on): Update.
12890
12891 2011-05-21  Bruno Haible  <bruno@clisp.org>
12892
12893         setenv: Move AC_LIBOBJ invocations to module description.
12894         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
12895         here...
12896         * modules/setenv (configure.ac): ... to here.
12897
12898 2011-05-21  Bruno Haible  <bruno@clisp.org>
12899
12900         selinux-h: Move AC_LIBOBJ invocations to module description.
12901         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
12902         AC_LIBOBJ invocation from here...
12903         * modules/selinux-h (configure.ac): ... to here.
12904
12905 2011-05-21  Bruno Haible  <bruno@clisp.org>
12906
12907         select: Respect rules for use of AC_LIBOBJ.
12908         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
12909         here...
12910         * modules/select (configure.ac): ... to here.
12911
12912 2011-05-21  Bruno Haible  <bruno@clisp.org>
12913
12914         scandir: Move AC_LIBOBJ invocations to module description.
12915         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
12916         invocations from here...
12917         * modules/scandir (configure.ac): ... to here.
12918
12919 2011-05-21  Bruno Haible  <bruno@clisp.org>
12920
12921         rpmatch: Move AC_LIBOBJ invocations to module description.
12922         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
12923         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
12924         here...
12925         * modules/rpmatch (configure.ac): ... to here.
12926
12927 2011-05-21  Bruno Haible  <bruno@clisp.org>
12928
12929         rmdir: Respect rules for use of AC_LIBOBJ.
12930         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
12931         * modules/rmdir (configure.ac): ... to here.
12932
12933 2011-05-21  Bruno Haible  <bruno@clisp.org>
12934
12935         renameat: Move AC_LIBOBJ invocations to module description.
12936         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
12937         here...
12938         * modules/renameat (configure.ac): ... to here.
12939
12940 2011-05-21  Bruno Haible  <bruno@clisp.org>
12941
12942         rename: Respect rules for use of AC_LIBOBJ.
12943         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
12944         here...
12945         * modules/rename (configure.ac): ... to here.
12946
12947 2011-05-21  Bruno Haible  <bruno@clisp.org>
12948
12949         remove: Move AC_LIBOBJ invocations to module description.
12950         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
12951         here...
12952         * modules/remove (configure.ac): ... to here.
12953
12954 2011-05-21  Bruno Haible  <bruno@clisp.org>
12955
12956         relocatable-lib: Move AC_LIBOBJ invocations to module description.
12957         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
12958         macro.
12959         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
12960         * modules/relocatable-lib (configure.ac): ... to here.
12961         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12962         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
12963
12964 2011-05-21  Bruno Haible  <bruno@clisp.org>
12965
12966         relocatable-prog: Move AC_LIBOBJ invocations to module description.
12967         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
12968         here...
12969         * modules/relocatable-prog (configure.ac): ... to here.
12970
12971 2011-05-21  Bruno Haible  <bruno@clisp.org>
12972
12973         regex: Move AC_LIBOBJ invocations to module description.
12974         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
12975         invocations from here...
12976         * modules/regex (configure.ac): ... to here.
12977
12978 2011-05-21  Bruno Haible  <bruno@clisp.org>
12979
12980         realloc-*: Move AC_LIBOBJ invocations to module description.
12981         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
12982         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
12983         AC_LIBOBJ invocations from here...
12984         * modules/realloc-gnu (configure.ac): ... to here.
12985         * modules/realloc-posix (configure.ac): ... and here.
12986
12987 2011-05-21  Bruno Haible  <bruno@clisp.org>
12988
12989         readutmp: Move AC_LIBOBJ invocations to module description.
12990         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
12991         * modules/readutmp (configure.ac): ... to here.
12992
12993 2011-05-21  Bruno Haible  <bruno@clisp.org>
12994
12995         readlinkat: Move AC_LIBOBJ invocations to module description.
12996         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
12997         here...
12998         * modules/readlinkat (configure.ac): ... to here.
12999
13000 2011-05-21  Bruno Haible  <bruno@clisp.org>
13001
13002         readlink: Move AC_LIBOBJ invocations to module description.
13003         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13004         gl_PREREQ_READLINK invocations from here...
13005         * modules/readlink (configure.ac): ... to here.
13006
13007 2011-05-21  Bruno Haible  <bruno@clisp.org>
13008
13009         readline: Move AC_LIBOBJ invocations to module description.
13010         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13011         gl_PREREQ_READLINE invocations from here...
13012         * modules/readline (configure.ac): ... to here.
13013
13014 2011-05-21  Bruno Haible  <bruno@clisp.org>
13015
13016         read: Move AC_LIBOBJ invocations to module description.
13017         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13018         * modules/read (configure.ac): ... to here.
13019
13020 2011-05-21  Bruno Haible  <bruno@clisp.org>
13021
13022         rawmemchr: Move AC_LIBOBJ invocations to module description.
13023         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13024         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13025         from here...
13026         * modules/rawmemchr (configure.ac): ... to here.
13027
13028 2011-05-21  Bruno Haible  <bruno@clisp.org>
13029
13030         random_r: Move AC_LIBOBJ invocations to module description.
13031         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13032         gl_PREREQ_RANDOM_R invocations from here...
13033         * modules/random_r (configure.ac): ... to here.
13034
13035 2011-05-21  Bruno Haible  <bruno@clisp.org>
13036
13037         pwrite: Move AC_LIBOBJ invocations to module description.
13038         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13039         * modules/pwrite (configure.ac): ... to here.
13040
13041 2011-05-21  Bruno Haible  <bruno@clisp.org>
13042
13043         putenv: Move AC_LIBOBJ invocations to module description.
13044         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13045         * modules/putenv (configure.ac): ... to here.
13046
13047 2011-05-21  Bruno Haible  <bruno@clisp.org>
13048
13049         login_tty: Move AC_LIBOBJ invocations to module description.
13050         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13051         * modules/login_tty (configure.ac): ... to here.
13052
13053 2011-05-21  Bruno Haible  <bruno@clisp.org>
13054
13055         openpty: Move AC_LIBOBJ invocations to module description.
13056         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13057         * modules/openpty (configure.ac): ... to here.
13058
13059 2011-05-21  Bruno Haible  <bruno@clisp.org>
13060
13061         forkpty: Move AC_LIBOBJ invocations to module description.
13062         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13063         * modules/forkpty (configure.ac): ... to here.
13064
13065 2011-05-21  Bruno Haible  <bruno@clisp.org>
13066
13067         ptsname: Move AC_LIBOBJ invocations to module description.
13068         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13069         invocations from here...
13070         * modules/ptsname (configure.ac): ... to here.
13071
13072 2011-05-21  Bruno Haible  <bruno@clisp.org>
13073
13074         pread: Move AC_LIBOBJ invocations to module description.
13075         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13076         * modules/pread (configure.ac): ... to here.
13077
13078 2011-05-21  Bruno Haible  <bruno@clisp.org>
13079
13080         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13081         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13082         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13083         * modules/posix_spawn (configure.ac): ... to here.
13084         * modules/posix_spawnp (configure.ac): ... and here.
13085
13086 2011-05-21  Bruno Haible  <bruno@clisp.org>
13087
13088         popen: Move AC_LIBOBJ invocations to module description.
13089         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13090         invocations from here...
13091         * modules/popen (configure.ac): ... to here.
13092
13093 2011-05-21  Bruno Haible  <bruno@clisp.org>
13094
13095         poll: Move AC_LIBOBJ invocations to module description.
13096         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13097         invocations from here...
13098         * modules/poll (configure.ac): ... to here.
13099
13100 2011-05-21  Bruno Haible  <bruno@clisp.org>
13101
13102         pipe-posix: Move AC_LIBOBJ invocations to module description.
13103         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13104         * modules/pipe-posix (configure.ac): ... to here.
13105
13106 2011-05-21  Bruno Haible  <bruno@clisp.org>
13107
13108         openat: Respect rules for use of AC_LIBOBJ.
13109         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13110         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13111         * modules/openat (configure.ac): ... to here.
13112
13113 2011-05-21  Bruno Haible  <bruno@clisp.org>
13114
13115         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13116         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13117         invocation from here...
13118         * modules/obstack-printf (configure.ac): ... to here.
13119         * modules/obstack-printf-posix (configure.ac): ... and here.
13120
13121 2011-05-21  Bruno Haible  <bruno@clisp.org>
13122
13123         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13124         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13125         from here...
13126         * modules/nl_langinfo (configure.ac): ... to here.
13127
13128 2011-05-21  Bruno Haible  <bruno@clisp.org>
13129
13130         nanosleep: Move AC_LIBOBJ invocations to module description.
13131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13132         gl_PREREQ_NANOSLEEP invocations from here...
13133         * modules/nanosleep (configure.ac): ... to here.
13134
13135 2011-05-21  Bruno Haible  <bruno@clisp.org>
13136
13137         mountlist: Move AC_LIBOBJ invocations to module description.
13138         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13139         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13140         * modules/mountlist (configure.ac): ... to here.
13141
13142 2011-05-21  Bruno Haible  <bruno@clisp.org>
13143
13144         mktime: Respect rules for use of AC_LIBOBJ.
13145         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13146         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13147         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13148         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13149         * modules/mktime (configure.ac): ... to here.
13150         * modules/mktime-internal (configure.ac): ... and here.
13151         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13152
13153 2011-05-21  Bruno Haible  <bruno@clisp.org>
13154
13155         mkstemps: Move AC_LIBOBJ invocations to module description.
13156         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13157         here...
13158         * modules/mkstemps (configure.ac): ... to here.
13159
13160 2011-05-21  Bruno Haible  <bruno@clisp.org>
13161
13162         mkstemp: Move AC_LIBOBJ invocations to module description.
13163         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13164         gl_PREREQ_MKSTEMP invocations from here...
13165         * modules/mkstemp (configure.ac): ... to here.
13166
13167 2011-05-21  Bruno Haible  <bruno@clisp.org>
13168
13169         mkostemps: Move AC_LIBOBJ invocations to module description.
13170         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13171         here...
13172         * modules/mkostemps (configure.ac): ... to here.
13173
13174 2011-05-21  Bruno Haible  <bruno@clisp.org>
13175
13176         mkostemp: Move AC_LIBOBJ invocations to module description.
13177         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13178         gl_PREREQ_MKOSTEMP invocations from here...
13179         * modules/mkostemp (configure.ac): ... to here.
13180
13181 2011-05-21  Bruno Haible  <bruno@clisp.org>
13182
13183         mknod: Move AC_LIBOBJ invocations to module description.
13184         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13185         * modules/mknod (configure.ac): ... to here.
13186
13187 2011-05-21  Bruno Haible  <bruno@clisp.org>
13188
13189         mkfifoat: Move AC_LIBOBJ invocations to module description.
13190         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13191         here...
13192         * modules/mkfifoat (configure.ac): ... to here.
13193
13194 2011-05-21  Bruno Haible  <bruno@clisp.org>
13195
13196         mkfifo: Respect rules for use of AC_LIBOBJ.
13197         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13198         here...
13199         * modules/mkfifo (configure.ac): ... to here.
13200
13201 2011-05-21  Bruno Haible  <bruno@clisp.org>
13202
13203         mkdtemp: Move AC_LIBOBJ invocations to module description.
13204         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13205         invocations from here...
13206         * modules/mkdtemp (configure.ac): ... to here.
13207
13208 2011-05-21  Bruno Haible  <bruno@clisp.org>
13209
13210         mkdir: Move AC_LIBOBJ invocations to module description.
13211         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13212         * modules/mkdir (configure.ac): ... to here.
13213
13214 2011-05-21  Bruno Haible  <bruno@clisp.org>
13215
13216         memset: Move AC_LIBOBJ invocations to module description.
13217         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13218         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13219         here...
13220         * modules/memset (configure.ac): ... to here.
13221
13222 2011-05-21  Bruno Haible  <bruno@clisp.org>
13223
13224         memrchr: Move AC_LIBOBJ invocations to module description.
13225         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13226         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13227         here...
13228         * modules/memrchr (configure.ac): ... to here.
13229
13230 2011-05-21  Bruno Haible  <bruno@clisp.org>
13231
13232         mempcpy: Move AC_LIBOBJ invocations to module description.
13233         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13234         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13235         here...
13236         * modules/mempcpy (configure.ac): ... to here.
13237
13238 2011-05-21  Bruno Haible  <bruno@clisp.org>
13239
13240         memmove: Move AC_LIBOBJ invocations to module description.
13241         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13242         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13243         here...
13244         * modules/memmove (configure.ac): ... to here.
13245
13246 2011-05-21  Bruno Haible  <bruno@clisp.org>
13247
13248         memmem*: Move AC_LIBOBJ invocations to module description.
13249         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13250         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13251         here...
13252         (gl_FUNC_MEMMEM): ... and here...
13253         * modules/memmem-simple (configure.ac): ... to here.
13254         * modules/memmem (configure.ac): ... and here.
13255
13256 2011-05-21  Bruno Haible  <bruno@clisp.org>
13257
13258         memcpy: Move AC_LIBOBJ invocations to module description.
13259         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13260         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13261         here...
13262         * modules/memcpy (configure.ac): ... to here.
13263
13264 2011-05-21  Bruno Haible  <bruno@clisp.org>
13265
13266         memcmp: Simplify autoconf macro.
13267         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13268         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13269         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13270
13271 2011-05-21  Bruno Haible  <bruno@clisp.org>
13272
13273         memcmp: Move AC_LIBOBJ invocations to module description.
13274         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13275         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13276         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13277         * modules/memcmp (configure.ac): ... to here.
13278         (Depends-on): Update conditions.
13279
13280 2011-05-21  Bruno Haible  <bruno@clisp.org>
13281
13282         memchr: Respect rules for use of AC_LIBOBJ.
13283         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13284         invocations from here...
13285         * modules/memchr (configure.ac): ... to here.
13286
13287 2011-05-21  Bruno Haible  <bruno@clisp.org>
13288
13289         mbtowc: Move AC_LIBOBJ invocations to module description.
13290         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13291         invocations from here...
13292         * modules/mbtowc (configure.ac): ... to here.
13293
13294 2011-05-21  Bruno Haible  <bruno@clisp.org>
13295
13296         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13297         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13298         gl_PREREQ_MBSRTOWCS invocations from here...
13299         * modules/mbsrtowcs (configure.ac): ... to here.
13300
13301 2011-05-21  Bruno Haible  <bruno@clisp.org>
13302
13303         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13304         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13305         gl_PREREQ_MBSNRTOWCS invocations from here...
13306         * modules/mbsnrtowcs (configure.ac): ... to here.
13307
13308 2011-05-21  Bruno Haible  <bruno@clisp.org>
13309
13310         mbsinit: Move AC_LIBOBJ invocations to module description.
13311         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13312         invocations from here...
13313         * modules/mbsinit (configure.ac): ... to here.
13314
13315 2011-05-21  Bruno Haible  <bruno@clisp.org>
13316
13317         mbrlen: Move AC_LIBOBJ invocations to module description.
13318         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13319         invocations from here...
13320         * modules/mbrlen (configure.ac): ... to here.
13321
13322 2011-05-21  Bruno Haible  <bruno@clisp.org>
13323
13324         mbrtowc: Respect rules for use of AC_LIBOBJ.
13325         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13326         invocations from here...
13327         * modules/mbrtowc (configure.ac): ... to here.
13328
13329 2011-05-21  Bruno Haible  <bruno@clisp.org>
13330
13331         malloc-*: Move AC_LIBOBJ invocations to module description.
13332         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13333         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13334         AC_LIBOBJ invocations from here...
13335         * modules/malloc-gnu (configure.ac): ... to here.
13336         * modules/malloc-posix (configure.ac): ... and here.
13337
13338 2011-05-21  Bruno Haible  <bruno@clisp.org>
13339
13340         lstat, openat: Respect rules for use of AC_LIBOBJ.
13341         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13342         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13343         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13344         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13345         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13346         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13347         here.
13348         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13349
13350 2011-05-21  Bruno Haible  <bruno@clisp.org>
13351
13352         lseek: Move AC_LIBOBJ invocations to module description.
13353         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13354         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13355         * modules/lseek (configure.ac): ... to here.
13356
13357 2011-05-21  Bruno Haible  <bruno@clisp.org>
13358
13359         linkat: Move AC_LIBOBJ invocations to module description.
13360         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13361         here...
13362         * modules/linkat (configure.ac): ... to here.
13363
13364 2011-05-21  Bruno Haible  <bruno@clisp.org>
13365
13366         link: Respect rules for use of AC_LIBOBJ.
13367         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13368         * modules/link (configure.ac): ... to here.
13369
13370 2011-05-21  Bruno Haible  <bruno@clisp.org>
13371
13372         lchown: Move AC_LIBOBJ invocations to module description.
13373         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13374         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13375         * modules/lchown (configure.ac): ... to here.
13376
13377 2011-05-21  Bruno Haible  <bruno@clisp.org>
13378
13379         iswctype: Move AC_LIBOBJ invocations to module description.
13380         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13381         here...
13382         * modules/iswctype (configure.ac): ... to here.
13383
13384 2011-05-21  Bruno Haible  <bruno@clisp.org>
13385
13386         iswblank: Move AC_LIBOBJ invocations to module description.
13387         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13388         here...
13389         * modules/iswblank (configure.ac): ... to here.
13390
13391 2011-05-21  Bruno Haible  <bruno@clisp.org>
13392
13393         atanl: Move AC_LIBOBJ invocations to module description.
13394         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13395         * modules/atanl (configure.ac): ... to here.
13396
13397 2011-05-21  Bruno Haible  <bruno@clisp.org>
13398
13399         acosl: Move AC_LIBOBJ invocations to module description.
13400         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13401         * modules/acosl (configure.ac): ... to here.
13402
13403 2011-05-21  Bruno Haible  <bruno@clisp.org>
13404
13405         asinl: Respect rules for use of AC_LIBOBJ.
13406         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13407         * modules/asinl (configure.ac): ... to here.
13408
13409 2011-05-21  Bruno Haible  <bruno@clisp.org>
13410
13411         tanl: Move AC_LIBOBJ invocations to module description.
13412         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13413         * modules/tanl (configure.ac): ... to here.
13414
13415 2011-05-21  Bruno Haible  <bruno@clisp.org>
13416
13417         cosl: Move AC_LIBOBJ invocations to module description.
13418         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13419         * modules/cosl (configure.ac): ... to here.
13420
13421 2011-05-21  Bruno Haible  <bruno@clisp.org>
13422
13423         sinl: Move AC_LIBOBJ invocations to module description.
13424         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13425         * modules/sinl (configure.ac): ... to here.
13426
13427 2011-05-21  Bruno Haible  <bruno@clisp.org>
13428
13429         logl: Move AC_LIBOBJ invocations to module description.
13430         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13431         * modules/logl (configure.ac): ... to here.
13432
13433 2011-05-21  Bruno Haible  <bruno@clisp.org>
13434
13435         expl: Move AC_LIBOBJ invocations to module description.
13436         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13437         * modules/expl (configure.ac): ... to here.
13438
13439 2011-05-21  Bruno Haible  <bruno@clisp.org>
13440
13441         roundl: Move AC_LIBOBJ invocations to module description.
13442         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13443         * modules/roundl (configure.ac): ... to here.
13444
13445 2011-05-21  Bruno Haible  <bruno@clisp.org>
13446
13447         round: Move AC_LIBOBJ invocations to module description.
13448         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13449         * modules/round (configure.ac): ... to here.
13450
13451 2011-05-21  Bruno Haible  <bruno@clisp.org>
13452
13453         roundf: Move AC_LIBOBJ invocations to module description.
13454         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13455         * modules/roundf (configure.ac): ... to here.
13456
13457 2011-05-21  Bruno Haible  <bruno@clisp.org>
13458
13459         truncl: Move AC_LIBOBJ invocations to module description.
13460         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13461         * modules/truncl (configure.ac): ... to here.
13462
13463 2011-05-21  Bruno Haible  <bruno@clisp.org>
13464
13465         trunc: Move AC_LIBOBJ invocations to module description.
13466         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13467         * modules/trunc (configure.ac): ... to here.
13468
13469 2011-05-21  Bruno Haible  <bruno@clisp.org>
13470
13471         truncf: Move AC_LIBOBJ invocations to module description.
13472         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13473         * modules/truncf (configure.ac): ... to here.
13474
13475 2011-05-21  Bruno Haible  <bruno@clisp.org>
13476
13477         ceill: Move AC_LIBOBJ invocations to module description.
13478         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13479         * modules/ceill (configure.ac): ... to here.
13480
13481 2011-05-21  Bruno Haible  <bruno@clisp.org>
13482
13483         ceil: Move AC_LIBOBJ invocations to module description.
13484         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13485         * modules/ceil (configure.ac): ... to here.
13486
13487 2011-05-21  Bruno Haible  <bruno@clisp.org>
13488
13489         ceilf: Move AC_LIBOBJ invocations to module description.
13490         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13491         * modules/ceilf (configure.ac): ... to here.
13492
13493 2011-05-21  Bruno Haible  <bruno@clisp.org>
13494
13495         floorl: Respect rules for use of AC_LIBOBJ.
13496         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13497         * modules/floorl (configure.ac): ... to here.
13498
13499 2011-05-21  Bruno Haible  <bruno@clisp.org>
13500
13501         floor: Respect rules for use of AC_LIBOBJ.
13502         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13503         * modules/floor (configure.ac): ... to here.
13504
13505 2011-05-21  Bruno Haible  <bruno@clisp.org>
13506
13507         floorf: Move AC_LIBOBJ invocations to module description.
13508         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13509         * modules/floorf (configure.ac): ... to here.
13510
13511 2011-05-20  Bruno Haible  <bruno@clisp.org>
13512
13513         sqrtl: Respect rules for use of AC_LIBOBJ.
13514         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13515         * modules/sqrtl (configure.ac): ... to here.
13516
13517 2011-05-20  Bruno Haible  <bruno@clisp.org>
13518
13519         ldexpl: Respect rules for use of AC_LIBOBJ.
13520         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13521         * modules/ldexpl (configure.ac): ... to here.
13522
13523 2011-05-20  Bruno Haible  <bruno@clisp.org>
13524
13525         frexpl*: Respect rules for use of AC_LIBOBJ.
13526         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13527         invocation from here...
13528         * modules/frexpl (configure.ac): ... to here.
13529         * modules/frexpl-nolibm (configure.ac): ... and here.
13530
13531 2011-05-20  Bruno Haible  <bruno@clisp.org>
13532
13533         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13534         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13535         invocation from here...
13536         * modules/frexp (configure.ac): ... to here.
13537         * modules/frexp-nolibm (configure.ac): ... and here.
13538
13539 2011-05-20  Bruno Haible  <bruno@clisp.org>
13540
13541         isnan: Respect rules for use of AC_LIBOBJ.
13542         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13543         invocations here.
13544         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13545         REPLACE_ISNAN.
13546         * modules/isnand (configure.ac): Likewise.
13547         * modules/isnanl (configure.ac): Likewise.
13548
13549 2011-05-20  Bruno Haible  <bruno@clisp.org>
13550
13551         isnanl*: Respect rules for use of AC_LIBOBJ.
13552         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13553         invocation from here...
13554         * modules/isnanl (configure.ac): ... to here.
13555         * modules/isnanl-nolibm (configure.ac): ... and here.
13556
13557 2011-05-20  Bruno Haible  <bruno@clisp.org>
13558
13559         isnand*: Move AC_LIBOBJ invocations to module description.
13560         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13561         invocation from here...
13562         * modules/isnand (configure.ac): ... to here.
13563         * modules/isnand-nolibm (configure.ac): ... and here.
13564
13565 2011-05-20  Bruno Haible  <bruno@clisp.org>
13566
13567         isnanf*: Move AC_LIBOBJ invocations to module description.
13568         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13569         invocation from here...
13570         * modules/isnanf (configure.ac): ... to here.
13571         * modules/isnanf-nolibm (configure.ac): ... and here.
13572
13573 2011-05-20  Bruno Haible  <bruno@clisp.org>
13574
13575         isnan*: Separate the AC_LIBOBJ invocations.
13576         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13577         AC_LIBOBJ invocation.
13578         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13579         here.
13580         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13581         AC_LIBOBJ invocation.
13582         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13583         here.
13584         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13585         AC_LIBOBJ invocation.
13586         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13587         here.
13588         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13589
13590 2011-05-08  Bruno Haible  <bruno@clisp.org>
13591
13592         isinf: Move AC_LIBOBJ invocations to module description.
13593         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13594         * modules/isinf (configure.ac): ... to here.
13595
13596 2011-05-08  Bruno Haible  <bruno@clisp.org>
13597
13598         isfinite: Move AC_LIBOBJ invocations to module description.
13599         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13600         * modules/isfinite (configure.ac): ... to here.
13601
13602 2011-05-08  Bruno Haible  <bruno@clisp.org>
13603
13604         isblank: Move AC_LIBOBJ invocations to module description.
13605         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13606         here...
13607         * modules/isblank (configure.ac): ... to here.
13608
13609 2011-05-08  Bruno Haible  <bruno@clisp.org>
13610
13611         isapipe: Move AC_LIBOBJ invocations to module description.
13612         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13613         gl_PREREQ_ISAPIPE invocations from here...
13614         * modules/isapipe (configure.ac): ... to here.
13615         (Depends-on): Update condition.
13616
13617 2011-05-08  Bruno Haible  <bruno@clisp.org>
13618
13619         ioctl: Move AC_LIBOBJ invocations to module description.
13620         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13621         invocations from here...
13622         * modules/ioctl (configure.ac): ... to here.
13623         (Depends-on): Update condition.
13624
13625 2011-05-08  Bruno Haible  <bruno@clisp.org>
13626
13627         imaxdiv: Move AC_LIBOBJ invocations to module description.
13628         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13629         invocations from here...
13630         * modules/imaxdiv (configure.ac): ... to here.
13631
13632 2011-05-08  Bruno Haible  <bruno@clisp.org>
13633
13634         imaxabs: Move AC_LIBOBJ invocations to module description.
13635         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13636         invocations from here...
13637         * modules/imaxabs (configure.ac): ... to here.
13638
13639 2011-05-08  Bruno Haible  <bruno@clisp.org>
13640
13641         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13642         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13643         AC_LIBOBJ invocations from here...
13644         * modules/getaddrinfo (configure.ac): ... to here.
13645         (Depends-on): Add conditions.
13646
13647 2011-05-08  Bruno Haible  <bruno@clisp.org>
13648
13649         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13650         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13651         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13652         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13653         (gl_PREREQ_INET_PTON): ... from here.
13654         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13655         gl_PREREQ_INET_PTON here.
13656         (Depends-on): Update condition.
13657
13658 2011-05-08  Bruno Haible  <bruno@clisp.org>
13659
13660         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13661         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13662         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13663         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13664         (gl_PREREQ_INET_NTOP): ... from here.
13665         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13666         gl_PREREQ_INET_NTOP here.
13667         (Depends-on): Update condition.
13668
13669 2011-05-08  Bruno Haible  <bruno@clisp.org>
13670
13671         iconv_open: Move AC_LIBOBJ invocations to module description.
13672         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13673         AC_LIBOBJ invocations from here...
13674         * modules/iconv_open (configure.ac): ... to here.
13675
13676 2011-05-08  Bruno Haible  <bruno@clisp.org>
13677
13678         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13679         If module 'iconv_open' is among the main modules and module
13680         'iconv_open-utf' is among the tests dependencies, then
13681         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13682         return the special iconv_t values. Therefore iconv() and iconv_close()
13683         must support these special iconv_t values, already in lib, not only in
13684         tests.
13685         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13686         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13687         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13688         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13689         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13690         (Depends-on): Add the dependencies of iconv_open-utf.
13691         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13692         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13693         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13694
13695 2011-05-08  Bruno Haible  <bruno@clisp.org>
13696
13697         group-member: Move AC_LIBOBJ invocations to module description.
13698         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13699         gl_PREREQ_GROUP_MEMBER invocations from here...
13700         * modules/group-member (configure.ac): ... to here.
13701
13702 2011-05-08  Bruno Haible  <bruno@clisp.org>
13703
13704         grantpt: Move AC_LIBOBJ invocations to module description.
13705         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13706         invocations from here...
13707         * modules/grantpt (configure.ac): ... to here.
13708
13709 2011-05-08  Bruno Haible  <bruno@clisp.org>
13710
13711         glob: Move AC_LIBOBJ invocations to module description.
13712         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13713         from here...
13714         * modules/glob (configure.ac): ... to here.
13715
13716 2011-05-08  Bruno Haible  <bruno@clisp.org>
13717
13718         getusershell: Move AC_LIBOBJ invocations to module description.
13719         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13720         Move AC_LIBOBJ invocation from here...
13721         * modules/getusershell (configure.ac): ... to here.
13722         (Depends-on): Update condition.
13723
13724 2011-05-08  Bruno Haible  <bruno@clisp.org>
13725
13726         gettimeofday: Move AC_LIBOBJ invocations to module description.
13727         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13728         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13729         gl_PREREQ_GETTIMEOFDAY invocations from here...
13730         * modules/gettimeofday (configure.ac): ... to here.
13731
13732 2011-05-08  Bruno Haible  <bruno@clisp.org>
13733
13734         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13735         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13736         just gl_FUNC_TZSET.
13737         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13738         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13739         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13740         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13741
13742 2011-05-08  Bruno Haible  <bruno@clisp.org>
13743
13744         getsubopt: Move AC_LIBOBJ invocations to module description.
13745         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13746         gl_PREREQ_GETSUBOPT invocations from here...
13747         * modules/getsubopt (configure.ac): ... to here.
13748
13749 2011-05-08  Bruno Haible  <bruno@clisp.org>
13750
13751         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13752         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13753         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13754         * modules/getpass-gnu (configure.ac): ... to here.
13755
13756 2011-05-08  Bruno Haible  <bruno@clisp.org>
13757
13758         getpass: Move AC_LIBOBJ invocations to module description.
13759         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13760         gl_PREREQ_GETPASS invocations from here...
13761         * modules/getpass (configure.ac): ... to here.
13762
13763 2011-05-08  Bruno Haible  <bruno@clisp.org>
13764
13765         getpagesize: Move AC_LIBOBJ invocations to module description.
13766         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13767         from here...
13768         * modules/getpagesize (configure.ac): ... to here.
13769
13770 2011-05-08  Bruno Haible  <bruno@clisp.org>
13771
13772         getopt: Move AC_LIBOBJ invocations to module description.
13773         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13774         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13775         invocations from here...
13776         * modules/getopt-gnu (configure.ac): ... to here.
13777         * modules/getopt-posix (configure.ac): ... and here.
13778         (Depends-on): Update condition.
13779
13780 2011-05-08  Bruno Haible  <bruno@clisp.org>
13781
13782         getopt, argp: Respect rules for use of AC_LIBOBJ.
13783         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13784         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13785         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13786         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13787
13788 2011-05-08  Bruno Haible  <bruno@clisp.org>
13789
13790         getlogin_r: Move AC_LIBOBJ invocations to module description.
13791         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13792         gl_PREREQ_GETLOGIN_R invocations from here...
13793         * modules/getlogin_r (configure.ac): ... to here.
13794
13795 2011-05-08  Bruno Haible  <bruno@clisp.org>
13796
13797         getlogin: Move AC_LIBOBJ invocations to module description.
13798         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13799         here...
13800         * modules/getlogin (configure.ac): ... to here.
13801
13802 2011-05-08  Bruno Haible  <bruno@clisp.org>
13803
13804         getloadavg: Move AC_LIBOBJ invocations to module description.
13805         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13806         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13807         * modules/getloadavg (configure.ac): ... to here.
13808
13809 2011-05-08  Bruno Haible  <bruno@clisp.org>
13810
13811         gethrxtime: Move AC_LIBOBJ invocations to module description.
13812         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13813         LIB_GETHRXTIME from here...
13814         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13815         invocations from here...
13816         * modules/gethrxtime (configure.ac): ... to here.
13817
13818 2011-05-08  Bruno Haible  <bruno@clisp.org>
13819
13820         gethostname: Move AC_LIBOBJ invocations to module description.
13821         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13822         gl_PREREQ_GETHOSTNAME invocations from here...
13823         * modules/gethostname (configure.ac): ... to here.
13824
13825 2011-05-08  Bruno Haible  <bruno@clisp.org>
13826
13827         getgroups: Move AC_LIBOBJ invocations to module description.
13828         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
13829         here...
13830         * modules/getgroups (configure.ac): ... to here.
13831
13832 2011-05-08  Bruno Haible  <bruno@clisp.org>
13833
13834         getdtablesize: Move AC_LIBOBJ invocations to module description.
13835         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
13836         invocation from here...
13837         * modules/getdtablesize (configure.ac): ... to here.
13838
13839 2011-05-08  Bruno Haible  <bruno@clisp.org>
13840
13841         getdomainname: Move AC_LIBOBJ invocations to module description.
13842         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
13843         gl_PREREQ_GETDOMAINNAME invocations from here...
13844         * modules/getdomainname (configure.ac): ... to here.
13845
13846 2011-05-08  Bruno Haible  <bruno@clisp.org>
13847
13848         getline: Move AC_LIBOBJ invocations to module description.
13849         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
13850         invocations from here...
13851         * modules/getline (configure.ac): ... to here.
13852
13853 2011-05-08  Bruno Haible  <bruno@clisp.org>
13854
13855         getline: Simplify.
13856         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
13857         It's already handled through the module dependency.
13858
13859 2011-05-08  Bruno Haible  <bruno@clisp.org>
13860
13861         getdelim: Move AC_LIBOBJ invocations to module description.
13862         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
13863         and gl_PREREQ_GETDELIM invocations from here...
13864         * modules/getdelim (configure.ac): ... to here.
13865         (Depends-on): Fix condition.
13866
13867 2011-05-08  Bruno Haible  <bruno@clisp.org>
13868
13869         getcwd: Move AC_LIBOBJ invocations to module description.
13870         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
13871         invocations from here...
13872         * modules/getcwd (configure.ac): ... to here.
13873
13874 2011-05-08  Bruno Haible  <bruno@clisp.org>
13875
13876         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
13877         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
13878         here...
13879         * modules/getcwd-lgpl (configure.ac): ... to here.
13880
13881 2011-05-07  Bruno Haible  <bruno@clisp.org>
13882
13883         crypto/gc: Move AC_LIBOBJ invocations to module description.
13884         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
13885         * modules/crypto/gc (configure.ac): ... to here.
13886
13887 2011-05-07  Bruno Haible  <bruno@clisp.org>
13888
13889         fwriting: Move AC_LIBOBJ invocations to module description.
13890         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
13891         here...
13892         * modules/fwriting (configure.ac): ... to here.
13893
13894 2011-05-07  Bruno Haible  <bruno@clisp.org>
13895
13896         fwritable: Move AC_LIBOBJ invocations to module description.
13897         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
13898         here...
13899         * modules/fwritable (configure.ac): ... to here.
13900
13901 2011-05-07  Bruno Haible  <bruno@clisp.org>
13902
13903         futimens: Move AC_LIBOBJ invocations to module description.
13904         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
13905         here...
13906         * modules/futimens (configure.ac): ... to here.
13907
13908 2011-05-07  Bruno Haible  <bruno@clisp.org>
13909
13910         ftruncate: Move AC_LIBOBJ invocations to module description.
13911         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
13912         gl_PREREQ_FTRUNCATE invocations from here...
13913         * modules/ftruncate (configure.ac): ... to here.
13914
13915 2011-05-07  Bruno Haible  <bruno@clisp.org>
13916
13917         fsync: Move AC_LIBOBJ invocations to module description.
13918         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
13919         invocations from here...
13920         * modules/fsync (configure.ac): ... to here.
13921
13922 2011-05-07  Bruno Haible  <bruno@clisp.org>
13923
13924         fsusage: Move AC_LIBOBJ invocations to module description.
13925         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
13926         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
13927         * modules/fsusage (configure.ac): ... to here.
13928
13929 2011-05-07  Bruno Haible  <bruno@clisp.org>
13930
13931         freopen: Move AC_LIBOBJ invocations to module description.
13932         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
13933         invocations from here...
13934         * modules/freopen (configure.ac): ... to here.
13935
13936 2011-05-07  Bruno Haible  <bruno@clisp.org>
13937
13938         free: Move AC_LIBOBJ invocations to module description.
13939         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
13940         invocations from here...
13941         * modules/free (configure.ac): ... to here.
13942
13943 2011-05-07  Bruno Haible  <bruno@clisp.org>
13944
13945         freadable: Move AC_LIBOBJ invocations to module description.
13946         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
13947         here...
13948         * modules/freadable (configure.ac): ... to here.
13949
13950 2011-05-07  Bruno Haible  <bruno@clisp.org>
13951
13952         fpurge: Move AC_LIBOBJ invocations to module description.
13953         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
13954         invocations from here...
13955         * modules/fpurge (configure.ac): ... to here.
13956
13957 2011-05-07  Bruno Haible  <bruno@clisp.org>
13958
13959         fpending: Move AC_LIBOBJ invocations to module description.
13960         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
13961         gl_FUNC_FPENDING.
13962         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
13963         invocations from here...
13964         * modules/fpending (configure.ac): ... to here.
13965
13966 2011-05-07  Bruno Haible  <bruno@clisp.org>
13967
13968         fopen: Move AC_LIBOBJ invocations to module description.
13969         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
13970         invocations from here...
13971         * modules/fopen (configure.ac): ... to here.
13972
13973 2011-05-07  Bruno Haible  <bruno@clisp.org>
13974
13975         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
13976         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
13977         gl_FUNC_FNMATCH_POSIX.
13978         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
13979         invocations from here...
13980         * modules/fnmatch (configure.ac): ... to here.
13981         * modules/fnmatch-gnu (configure.ac): ... and here.
13982
13983 2011-05-07  Bruno Haible  <bruno@clisp.org>
13984
13985         flock: Move AC_LIBOBJ invocations to module description.
13986         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
13987         invocations from here...
13988         * modules/flock (configure.ac): ... to here.
13989
13990 2011-05-07  Bruno Haible  <bruno@clisp.org>
13991
13992         fileblocks: Move AC_LIBOBJ invocations to module description.
13993         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
13994         gl_PREREQ_FILEBLOCKS invocations from here...
13995         * modules/fileblocks (configure.ac): ... to here.
13996
13997 2011-05-06  Bruno Haible  <bruno@clisp.org>
13998
13999         fflush: Move AC_LIBOBJ invocations to module description.
14000         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14001         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14002         invocations from here...
14003         * modules/fflush (configure.ac): ... to here.
14004
14005 2011-05-06  Bruno Haible  <bruno@clisp.org>
14006
14007         fdopendir: Move AC_LIBOBJ invocations to module description.
14008         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14009         here...
14010         * modules/fdopendir (configure.ac): ... to here.
14011         (Depends-on): Improve conditions.
14012
14013 2011-05-06  Bruno Haible  <bruno@clisp.org>
14014
14015         _Exit: Move AC_LIBOBJ invocations to module description.
14016         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14017         invocations from here...
14018         * modules/_Exit (configure.ac): ... to here.
14019
14020 2011-05-21  Bruno Haible  <bruno@clisp.org>
14021
14022         euidaccess: Respect rules for use of AC_LIBOBJ.
14023         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14024         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14025         from here...
14026         * modules/euidaccess (configure.ac): ... to here.
14027
14028 2011-05-06  Bruno Haible  <bruno@clisp.org>
14029
14030         error: Move AC_LIBOBJ invocations to module description.
14031         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14032         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14033         invocations from here...
14034         * modules/error (configure.ac): ... to here.
14035
14036 2011-05-06  Bruno Haible  <bruno@clisp.org>
14037
14038         duplocale: Move AC_LIBOBJ invocations to module description.
14039         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14040         gl_PREREQ_DUPLOCALE invocations from here...
14041         * modules/duplocale (configure.ac): ... to here.
14042
14043 2011-05-05  Bruno Haible  <bruno@clisp.org>
14044
14045         dirfd: Move AC_LIBOBJ invocations to module description.
14046         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14047         gl_FUNC_DIRFD.
14048         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14049         here...
14050         * modules/dirfd (configure.ac): ... to here.
14051         (Depends-on): Fix condition.
14052
14053 2011-05-05  Bruno Haible  <bruno@clisp.org>
14054
14055         chown: Respect rules for use of AC_LIBOBJ.
14056         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14057         * modules/chown (configure.ac): ... to here.
14058
14059 2011-05-05  Bruno Haible  <bruno@clisp.org>
14060
14061         chdir-long: Move AC_LIBOBJ invocations to module description.
14062         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14063         gl_PREREQ_CHDIR_LONG invocations from here...
14064         * modules/chdir-long (configure.ac): ... to here.
14065
14066 2011-05-05  Bruno Haible  <bruno@clisp.org>
14067
14068         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14069         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14070         from here...
14071         * modules/canonicalize-lgpl (configure.ac): ... to here.
14072
14073 2011-05-05  Bruno Haible  <bruno@clisp.org>
14074
14075         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14076         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14077         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14078         REPLACE_CALLOC.
14079         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14080         * modules/calloc-gnu (configure.ac): Likewise.
14081
14082 2011-05-05  Bruno Haible  <bruno@clisp.org>
14083
14084         btowc: Move AC_LIBOBJ invocations to module description.
14085         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14086         invocations from here...
14087         * modules/btowc (configure.ac): ... to here.
14088
14089 2011-05-21  Bruno Haible  <bruno@clisp.org>
14090
14091         atexit: Move AC_LIBOBJ invocations to module description.
14092         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14093         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14094         here...
14095         * modules/atexit (configure.ac): ... to here.
14096
14097 2011-05-05  Bruno Haible  <bruno@clisp.org>
14098
14099         atoll: Move AC_LIBOBJ invocations to module description.
14100         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14101         invocations from here...
14102         * modules/atoll (configure.ac): ... to here.
14103
14104 2011-05-05  Bruno Haible  <bruno@clisp.org>
14105
14106         argz: Move AC_LIBOBJ invocations to module description.
14107         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14108         * modules/argz (configure.ac): ... to here.
14109
14110 2011-05-05  Bruno Haible  <bruno@clisp.org>
14111
14112         alphasort: Move AC_LIBOBJ invocations to module description.
14113         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14114         gl_PREREQ_ALPHASORT invocations from here...
14115         * modules/alphasort (configure.ac): ... to here.
14116
14117 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14118
14119         verify: new macro verify_expr; verify_true deprecated
14120         * NEWS: Mention this.
14121         * doc/verify.texi (Compile-time Assertions): Document this.
14122         * lib/verify.h (verify_true): Deprecate.
14123         (verify_expr): New macro.
14124         * tests/test-verify.c (function): Test verify_expr.
14125
14126 2011-06-14  Jim Meyering  <meyering@redhat.com>
14127
14128         init.sh: give more portable redirection-related advice in a comment
14129         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14130         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14131         for lots of discussion.  Stefano Lattarini suggested the solution
14132         of putting "9>&2" after the command.  Reported by Bruno Haible.
14133
14134 2011-06-13  Bruno Haible  <bruno@clisp.org>
14135
14136         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14137         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14138         'none'.
14139
14140 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14141
14142         ftoastr: use strtof only if HAVE_STRTOF
14143         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14145         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14146         * modules/ftoastr (configure.ac): Check for strtof.
14147
14148 2011-06-13  Bruno Haible  <bruno@clisp.org>
14149
14150         gnulib-tool: Addendum to 2011-06-08 commit.
14151         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14152         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14153
14154 2011-06-13  Bruno Haible  <bruno@clisp.org>
14155
14156         fseeko: Provide a non-inline replacement of fseek().
14157         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14158         * modules/fseeko (Depends-on): Add fseek.
14159         * modules/fseek (License): Change to LGPLv2+.
14160
14161 2011-06-13  Bruno Haible  <bruno@clisp.org>
14162
14163         ftello: Provide a non-inline replacement of ftell().
14164         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14165         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14166         not have ftello() (such as on mingw).
14167         * modules/ftello (Depends-on): Add ftell.
14168         * modules/ftell (License): Change to LGPLv2+.
14169
14170 2011-05-07  Bruno Haible  <bruno@clisp.org>
14171
14172         ftell: Move AC_LIBOBJ invocations to module description.
14173         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14174         * modules/ftell (configure.ac): ... to here.
14175
14176 2011-05-07  Bruno Haible  <bruno@clisp.org>
14177
14178         ftello: Respect rules for use of AC_LIBOBJ.
14179         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14180         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14181         here...
14182         * modules/ftello (configure.ac): ... to here.
14183
14184 2011-05-07  Bruno Haible  <bruno@clisp.org>
14185
14186         fseeko: Simplify.
14187         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14188         (gl_FUNC_FSEEKO): Inline it here.
14189
14190 2011-05-07  Bruno Haible  <bruno@clisp.org>
14191
14192         fseek: Move AC_LIBOBJ invocations to module description.
14193         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14194         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14195         * modules/fseek (configure.ac): ... to here.
14196
14197 2011-05-07  Bruno Haible  <bruno@clisp.org>
14198
14199         fseek: Respect rules for use of AC_LIBOBJ.
14200         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14201         here...
14202         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14203
14204 2011-05-07  Bruno Haible  <bruno@clisp.org>
14205
14206         fseeko: Respect rules for use of AC_LIBOBJ.
14207         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14208         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14209         here...
14210         * modules/fseeko (configure.ac): ... to here.
14211
14212 2011-06-13  Bruno Haible  <bruno@clisp.org>
14213
14214         gnulib-tool: Allow comments in the 'Depends-on' section.
14215         * doc/gnulib.texi (Module description): Mention comment syntax in the
14216         Depends-on section.
14217         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14218
14219 2011-06-13  Bruno Haible  <bruno@clisp.org>
14220
14221         file-set.h: guard __attibute__ use, now that it's not always defined
14222         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14223         versions that support it.  This fixes a coreutils build failure with
14224         the vendor cc on HP-UX 11.31.
14225
14226 2011-06-12  Bruno Haible  <bruno@clisp.org>
14227
14228         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14229         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14230         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14231         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14232         (acl, aclsort): New declarations.
14233         (aclv_nontrivial): New declaration.
14234         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14235         (file_has_acl): Read also the second kind of HP-UX ACLs.
14236         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14237         kind of HP-UX ACLs if the first kind fails.
14238         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14239         second kind of HP-UX ACLs.
14240         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14241         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14242         agree.
14243         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14244         hpuxjfs.
14245         Handle hpuxjfs.
14246         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14247         hpuxjfs.
14248         Handle hpuxjfs.
14249         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14250         (func_test_same_acls): Use both lsacl and getacl.
14251         Handle hpuxjfs.
14252         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14253         (func_test_same_acls): Use both lsacl and getacl.
14254         Handle hpuxjfs.
14255
14256 2011-06-12  Bruno Haible  <bruno@clisp.org>
14257
14258         acl: Complete the 2010-08-10 fix.
14259         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14260         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14261         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14262         explicitly.
14263         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14264         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14265
14266 2011-06-12  Bruno Haible  <bruno@clisp.org>
14267
14268         spawn-pipe tests: Comments.
14269         * tests/test-spawn-pipe-child.c (main): Update comment.
14270         Reported by James Youngman <jay@gnu.org>.
14271
14272 2011-06-11  James Youngman  <jay@gnu.org>
14273
14274         New module 'stat-size'.
14275         * modules/stat-size: New module.  Provides macros for accessing
14276         file size information in instances of struct stat.  Depends on the
14277         fileblocks module because it calls st_blocks.
14278         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14279         * doc/gnulib.texi: Include stat-size.texi.
14280         * doc/stat-size.texi: Documentation for this module.
14281         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14282         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14283         AC_STRUCT_ST_BLOCKS.
14284
14285 2011-06-09  Bruno Haible  <bruno@clisp.org>
14286
14287         thread: Support pthreads-win32.
14288         * lib/glthread/thread.h (gl_thread_self): Define differently on
14289         pthreads-win32.
14290         (gl_null_thread): New declaration.
14291         (gl_thread_self_pointer): New macro.
14292         * lib/glthread/thread.c (gl_null_thread): New constant.
14293         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14294         gl_thread_self.
14295         * tests/test-tls.c: Likewise.
14296         Suggested by Paul Eggert. Reported by Eric Blake.
14297
14298 2011-06-09  Bruno Haible  <bruno@clisp.org>
14299
14300         thread: Fix confusion between NULL and 0.
14301         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14302         Reported by Paul Eggert.
14303
14304 2011-06-09  Bruno Haible  <bruno@clisp.org>
14305
14306         spawn-pipe tests: Avoid test failure on HP-UX 11.
14307         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14308         is closed.
14309
14310 2011-06-09  Bruno Haible  <bruno@clisp.org>
14311
14312         acl tests: Fix compilation error on HP-UX 11.
14313         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14314
14315 2011-06-09  Bruno Haible  <bruno@clisp.org>
14316
14317         rmdir: Avoid test failure on HP-UX 10.20.
14318         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14319         EEXIST.
14320
14321 2011-06-08  Eric Blake  <eblake@redhat.com>
14322
14323         perror: fix test on mingw
14324         * modules/perror-tests (Depends-on): Add dup2.
14325
14326         strerror_r-posix: fix on MacOS
14327         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14328         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14329         logic bug.
14330         * lib/strerror_r.c (strerror_r): Fix the bug.
14331         * lib/strerror.c (strerror): Likewise.
14332         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14333         problem.
14334         * doc/posix-functions/strerror.texi (strerror): Likewise.
14335         * doc/posix-functions/perror.texi (perror): Likewise.
14336         * tests/test-strerror.c (main): Enhance test.
14337         * tests/test-strerror_r.c (main): Likewise.
14338
14339 2011-06-08  Bruno Haible  <bruno@clisp.org>
14340
14341         gnulib-tool: Better isolation between different gnulib-tool invocations.
14342         * gnulib-tool: New option --witness-c-macro.
14343         (witness_c_macro): New variable.
14344         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14345         AM_CPPFLAGS define it as a C macro.
14346         (func_emit_tests_Makefile_am): Likewise.
14347         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14348         read it from there.
14349         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14350         m4_define, not AC_DEFUN.
14351         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14352         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14353         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14354         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14355         s|...|...|, to substitute the values of the GNULIB_* module indicator
14356         variables.
14357         * modules/dirent (Makefile.am): Likewise.
14358         * modules/fcntl-h (Makefile.am): Likewise.
14359         * modules/iconv-h (Makefile.am): Likewise.
14360         * modules/langinfo (Makefile.am): Likewise.
14361         * modules/locale (Makefile.am): Likewise.
14362         * modules/math (Makefile.am): Likewise.
14363         * modules/netdb (Makefile.am): Likewise.
14364         * modules/poll-h (Makefile.am): Likewise.
14365         * modules/pty (Makefile.am): Likewise.
14366         * modules/search (Makefile.am): Likewise.
14367         * modules/signal (Makefile.am): Likewise.
14368         * modules/spawn (Makefile.am): Likewise.
14369         * modules/stdio (Makefile.am): Likewise.
14370         * modules/stdlib (Makefile.am): Likewise.
14371         * modules/string (Makefile.am): Likewise.
14372         * modules/sys_ioctl (Makefile.am): Likewise.
14373         * modules/sys_select (Makefile.am): Likewise.
14374         * modules/sys_socket (Makefile.am): Likewise.
14375         * modules/sys_stat (Makefile.am): Likewise.
14376         * modules/sys_times (Makefile.am): Likewise.
14377         * modules/sys_utsname (Makefile.am): Likewise.
14378         * modules/sys_wait (Makefile.am): Likewise.
14379         * modules/termios (Makefile.am): Likewise.
14380         * modules/time (Makefile.am): Likewise.
14381         * modules/unistd (Makefile.am): Likewise.
14382         * modules/wchar (Makefile.am): Likewise.
14383
14384 2011-06-08  Eric Blake  <eblake@redhat.com>
14385
14386         strerror: simplify replacement
14387         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14388         * modules/strerror (configure.ac): No prereqs needed here...
14389         * modules/strerror-override (configure.ac): ...but this needs it.
14390         (Files): Add file for needed prereq macro.
14391
14392 2011-06-08  Bruno Haible  <bruno@clisp.org>
14393
14394         strerror_r-posix: Tweaks.
14395         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14396         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14397         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14398         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14399         (gl_FUNC_STRERROR_R): ... to here.
14400         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14401
14402 2011-06-07  Eric Blake  <eblake@redhat.com>
14403
14404         perror: document fixed bugs
14405         * doc/posix-functions/perror.texi (perror): Document recent
14406         patches.
14407
14408 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14409
14410         stat-time: get_stat_birthtime failure is better-defined
14411         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14412         return a timestamp whose tv_sec and tv_nsec values are both -1.
14413         Previously, the spec said only that the tv_nsec value was negative.
14414         This upward-compatible change simplifies GNU tar a bit.
14415
14416 2011-06-07  Eric Blake  <eblake@redhat.com>
14417
14418         strerror_r-posix: work around cygwin 1.7.9
14419         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14420         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14421         bug without replacing strerror_r.
14422         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14423         strerror_r is buggy, but without requiring strerror_r compilation.
14424         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14425
14426         test-perror: relax test to ignore cygwin bug
14427         * tests/test-perror2.c (main): Relax test on requiring detection
14428         of stream errors, and use unbuffered stream.
14429         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14430         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14431         * doc/posix-functions/fputc.texi (fputc): Likewise.
14432         * doc/posix-functions/fputs.texi (fputs): Likewise.
14433         * doc/posix-functions/fputws.texi (fputws): Likewise.
14434         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14435         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14436         * doc/posix-functions/getopt.texi (getopt): Likewise.
14437         * doc/posix-functions/perror.texi (perror): Likewise.
14438         * doc/posix-functions/printf.texi (printf): Likewise.
14439         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14440         * doc/posix-functions/psignal.texi (psignal): Likewise.
14441         * doc/posix-functions/putc.texi (putc): Likewise.
14442         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14443         Likewise.
14444         * doc/posix-functions/putchar.texi (putchar): Likewise.
14445         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14446         Likewise.
14447         * doc/posix-functions/puts.texi (puts): Likewise.
14448         * doc/posix-functions/putwc.texi (putwc): Likewise.
14449         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14450         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14451         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14452         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14453         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14454         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14455         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14456         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14457
14458 2011-05-22  Bruno Haible  <bruno@clisp.org>
14459
14460         strerror: Move AC_LIBOBJ invocations to module description.
14461         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14462         gl_PREREQ_STRERROR invocations from here...
14463         * modules/strerror (configure.ac): ... to here.
14464
14465 2011-05-21  Bruno Haible  <bruno@clisp.org>
14466
14467         perror: Use common idiom.
14468         * modules/perror (configure.ac): Reorder statements.
14469
14470 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14471
14472         tests: fix usage message in 'mktempd_'
14473         * tests/init.sh (mktempd_): In the usage message, use literal
14474         'mktempd_', not '$ME' (which is even undefined), as the name of
14475         the subroutine.
14476
14477 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14478
14479         tests init: new function 'fatal_', for hard errors
14480         Before this patch, the only way offered by tests/init.sh to
14481         properly signal a hard error was the `framework_failure_'
14482         function.  But the error message issued by that function,
14483         as its name would suggest, refers to a set-up failure in the
14484         testsuite, while hard errors can obviously also be due to
14485         other reasons.  The best way to fix this inconsistency is to
14486         introduce a new function with a more general error message.
14487         * tests/init.sh (fatal_): New function.
14488
14489 2011-06-06  Eric Blake  <eblake@redhat.com>
14490
14491         canonicalize-lgpl: use common idiom
14492         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14493         over newer POSIX -Rf.
14494         Reported by Bruno Haible.
14495
14496         canonicalize-lgpl: work around AIX realpath bug
14497         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14498         * doc/posix-functions/realpath.texi (realpath): Document it.
14499         Reported by Bruno Haible.
14500
14501         strerror: work around FreeBSD bug
14502         * lib/strerror.c (strerror): Special case 0.
14503         Reported by Bruno Haible.
14504
14505         strerror-override: avoid bloating errno module
14506         * modules/errno (Files, configure.ac): Move replacement strings...
14507         * modules/strerror-override: ...to new module.
14508         * modules/strerror (Depends-on): Add strerror-override.
14509         * modules/strerror_r-posix (Depends-on): Likewise.
14510         * MODULES.html.sh: Document new module.
14511         Reported by Bruno Haible.
14512
14513 2011-06-06  Bruno Haible  <bruno@clisp.org>
14514
14515         spawn-pipe tests: Rename program.
14516         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14517         * tests/test-spawn-pipe-child.c: Update comment.
14518         * tests/test-spawn-pipe.sh: Update.
14519         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14520
14521         spawn-pipe tests: Link the child program only against libc.
14522         * tests/test-spawn-pipe-child.c: New file, extracted from
14523         tests/test-spawn-pipe.c.
14524         (main): Expect only one argument.
14525         (is_open): New function, copied from tests/test-pipe.c.
14526         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14527         (child_main): Remove function.
14528         (test_pipe): Pass only one argument to the child program.
14529         (main): Remove child process code. Expect the child program's name as
14530         first argument.
14531         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14532         argument.
14533         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14534         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14535         test-spawn-pipe-child against no libraries.
14536
14537 2011-06-06  Bruno Haible  <bruno@clisp.org>
14538
14539         careadlinkat: Avoid mismatch between ssize_t and int.
14540         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14541         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14542
14543 2011-06-06  Jim Meyering  <meyering@redhat.com>
14544
14545         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14546         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14547         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14548
14549 2011-06-05  Bruno Haible  <bruno@clisp.org>
14550
14551         ansi-c++-opt: Interoperability with libtool.
14552         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14553         set the variable to "no", not to ":".
14554         * NEWS: Mention the change.
14555
14556 2011-06-05  Bruno Haible  <bruno@clisp.org>
14557
14558         acl: Fix test failure on AIX 7.
14559         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14560         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14561
14562 2011-06-05  Bruno Haible  <bruno@clisp.org>
14563
14564         pipe-filter-ii: Fix test failure on AIX and IRIX.
14565         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14566         with EAGAIN, retry with a smaller buffer size.
14567
14568 2011-06-05  Bruno Haible  <bruno@clisp.org>
14569
14570         localename: Fix link dependencies.
14571         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14572         * modules/localename-tests (Makefile.am): Link test-localename with
14573         $(LIBTHREAD).
14574
14575 2011-06-05  Bruno Haible  <bruno@clisp.org>
14576
14577         error: Avoid gcc warning.
14578         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14579
14580 2011-06-05  Bruno Haible  <bruno@clisp.org>
14581
14582         unsetenv: Avoid gcc warning.
14583         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14584
14585 2011-06-05  Bruno Haible  <bruno@clisp.org>
14586
14587         setenv: Avoid gcc warning.
14588         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14589
14590 2011-06-05  Bruno Haible  <bruno@clisp.org>
14591
14592         sys_select: Ensure memset is declared also on AIX 7.
14593         * lib/sys_select.in.h: Include <string.h> also on AIX.
14594         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14595         self-contained also on AIX 7.1.
14596
14597 2011-06-04  Jim Meyering  <meyering@redhat.com>
14598
14599         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14600         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14601         function name, "error".
14602         (_gl_translatable_diag_func_re): New configurable variable.
14603
14604 2011-06-04  Bruno Haible  <bruno@clisp.org>
14605
14606         getopt: Avoid gcc warning.
14607         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14608
14609 2011-06-04  Bruno Haible  <bruno@clisp.org>
14610
14611         strerror_r: Fix comments.
14612         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14613         commit.
14614
14615 2011-06-04  Bruno Haible  <bruno@clisp.org>
14616
14617         perror: Fix compilation error.
14618         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14619         Undefine fprintf, not sprintf.
14620         * modules/perror (Depends-on): Remove intprops, verify.
14621
14622 2011-06-04  Bruno Haible  <bruno@clisp.org>
14623
14624         setlocale: Enable replacement on Cygwin 1.5.
14625         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14626         Cygwin 1.5.x.
14627         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14628         LC_CTYPE category also exists on Cygwin 1.5.x.
14629
14630 2011-06-04  Bruno Haible  <bruno@clisp.org>
14631
14632         strerror-override: Don't disable symbol renamings.
14633         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14634         * lib/strerror-override.c: Include config.h.
14635         (strerror_override): Don't undefine.
14636
14637 2011-06-03  Bruno Haible  <bruno@clisp.org>
14638
14639         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14640         * lib/localename.h: Update copyright header.
14641         * lib/localename.c: Likewise.
14642         * lib/relocatable.h: Likewise.
14643         * lib/relocatable.c: Likewise.
14644
14645 2011-06-02  Bruno Haible  <bruno@clisp.org>
14646
14647         doc: Fix a module name.
14648         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14649
14650 2011-06-02  Bruno Haible  <bruno@clisp.org>
14651
14652         pipe2: Remove dependency on 'nonblocking' module.
14653         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14654         O_NONBLOCK is defined by gnulib.
14655         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14656         is zero.
14657         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14658         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14659         defined by gnulib.
14660         (get_nonblocking_flag): New function.
14661         (main): Test O_NONBLOCK flag only if it is nonzero.
14662         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14663
14664 2011-06-03  Jim Meyering  <meyering@redhat.com>
14665
14666         maint: three new prohibit-header-without-use rules
14667         Prohibit use of cloexec.h, posixver.h, same.h without use.
14668         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14669         (sc_prohibit_posixver_without_use): Likewise.
14670         (sc_prohibit_same_without_use): Likewise.
14671
14672 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14673
14674         allocator: 'die' routine is now given requested size
14675         * lib/allocator.h (struct allocator.die): New size arg.
14676         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14677         If the actual problem is an ssize_t limitation, not a size_t or
14678         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14679
14680 2011-06-01  Eric Blake  <eblake@redhat.com>
14681
14682         strerror: drop strerror_r dependency
14683         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14684         * lib/strerror-override.c (strerror_override): ...to new file.
14685         * lib/strerror-override.h: Add prototype.
14686         * lib/strerror-impl.h: Delete.
14687         * lib/strerror.c (strerror): New implementation.
14688         * modules/errno (Files): Add new files.
14689         (configure.ac): Compile new file as appropriate.
14690         * modules/strerror (Files): Drop unused file.
14691         (Depends-on): Drop strerror_r-posix.
14692         * MODULES.html.sh: Document strerror_r-posix.
14693         Requested by Sam Steingold.
14694
14695         perror: call strerror_r directly
14696         * modules/perror (Files): Drop strerror-impl.h.
14697         * lib/perror.c (perror): Use our own stack buffer, rather than
14698         calling a wrapper that uses static storage.
14699         * doc/posix-functions/perror.texi (perror): Document a limitation
14700         of our replacement.
14701
14702         strerror_r: fix includes for FreeBSD
14703         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14704         since we use abort on some platforms.
14705         Reported by Matthias Bolte.
14706
14707 2011-05-31  Bruno Haible  <bruno@clisp.org>
14708
14709         Fix link errors in tests: openat-die uses gettext-h.
14710         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14711         against $(LIBINTL).
14712         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14713         against $(LIBINTL).
14714         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14715         $(LIBINTL).
14716         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14717         against $(LIBINTL).
14718         * modules/linkat-tests (Makefile.am): Link test-linkat against
14719         $(LIBINTL).
14720         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14721         $(LIBINTL).
14722         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14723         against $(LIBINTL).
14724         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14725         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14726         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14727         $(LIBINTL).
14728         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14729         $(LIBINTL).
14730         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14731         $(LIBINTL).
14732         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14733
14734 2011-05-31  Bruno Haible  <bruno@clisp.org>
14735
14736         Fix link errors in tests: wait-process uses gettext-h.
14737         * modules/nonblocking-pipe-tests (Makefile.am): Set
14738         test_nonblocking_pipe_main_LDADD.
14739         * modules/nonblocking-socket-tests (Makefile.am): Link
14740         test-nonblocking-socket-main against $(LIBINTL).
14741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14742
14743 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14744
14745         assert-h: work around 'verify' incompatibility
14746         * lib/verify.h: Use @...@ directives, not ifdef.
14747         * modules/assert-h (assert.h): Implement the directives.
14748         (assert.h): Substitute the symbol-prefix more consistently.
14749
14750 2011-05-29  Jim Meyering  <meyering@redhat.com>
14751
14752         trim: remove three superfluous assignments
14753         * lib/trim.c (trim2): Remove three superfluous assignments
14754         and correct brace positioning.
14755
14756 2011-05-29  Bruno Haible  <bruno@clisp.org>
14757
14758         wctype-h: Avoid namespace pollution on Solaris 2.6.
14759         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14760         identifiers.
14761         * doc/posix-headers/wctype.texi: Mention the problem.
14762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14763
14764 2011-05-28  Jim Meyering  <meyering@redhat.com>
14765
14766         parse-datetime.y: accommodate -Wstrict-overflow
14767         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14768         placate -Wstrict-overflow.
14769
14770         trim: avoid a warning from -O2 -Wstrict-overflow
14771         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14772
14773 2011-05-29  Bruno Haible  <bruno@clisp.org>
14774
14775         gnulib-tool: Fix bug in yesterday's commit.
14776         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14777         twice.
14778
14779 2011-05-29  Bruno Haible  <bruno@clisp.org>
14780
14781         Allow multiple gnulib generated include files to be combined.
14782         * gnulib-tool (func_compute_include_guard_prefix): New function.
14783         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14784         ${gl_include_guard_prefix} references.
14785         (func_import, func_create_testdir): Invoke
14786         func_compute_include_guard_prefix.
14787         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14788         * lib/ctype.in.h: Likewise.
14789         * lib/dirent.in.h: Likewise.
14790         * lib/errno.in.h: Likewise.
14791         * lib/fcntl.in.h: Likewise.
14792         * lib/float.in.h: Likewise.
14793         * lib/getopt.in.h: Likewise.
14794         * lib/iconv.in.h: Likewise.
14795         * lib/langinfo.in.h: Likewise.
14796         * lib/locale.in.h: Likewise.
14797         * lib/math.in.h: Likewise.
14798         * lib/netdb.in.h: Likewise.
14799         * lib/netinet_in.in.h: Likewise.
14800         * lib/poll.in.h: Likewise.
14801         * lib/pthread.in.h: Likewise.
14802         * lib/pty.in.h: Likewise.
14803         * lib/sched.in.h: Likewise.
14804         * lib/se-selinux.in.h: Likewise.
14805         * lib/search.in.h: Likewise.
14806         * lib/signal.in.h: Likewise.
14807         * lib/spawn.in.h: Likewise.
14808         * lib/stdarg.in.h: Likewise.
14809         * lib/stddef.in.h: Likewise.
14810         * lib/stdint.in.h: Likewise.
14811         * lib/stdio.in.h: Likewise.
14812         * lib/stdlib.in.h: Likewise.
14813         * lib/string.in.h: Likewise.
14814         * lib/strings.in.h: Likewise.
14815         * lib/sys_file.in.h: Likewise.
14816         * lib/sys_ioctl.in.h: Likewise.
14817         * lib/sys_select.in.h: Likewise.
14818         * lib/sys_socket.in.h: Likewise.
14819         * lib/sys_stat.in.h: Likewise.
14820         * lib/sys_time.in.h: Likewise.
14821         * lib/sys_times.in.h: Likewise.
14822         * lib/sys_uio.in.h: Likewise.
14823         * lib/sys_utsname.in.h: Likewise.
14824         * lib/sys_wait.in.h: Likewise.
14825         * lib/sysexits.in.h: Likewise.
14826         * lib/termios.in.h: Likewise.
14827         * lib/time.in.h: Likewise.
14828         * lib/unistd.in.h: Likewise.
14829         * lib/wchar.in.h: Likewise.
14830         * lib/wctype.in.h: Likewise.
14831         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
14832         * modules/ctype (Makefile.am): Likewise.
14833         * modules/dirent (Makefile.am): Likewise.
14834         * modules/errno (Makefile.am): Likewise.
14835         * modules/fcntl-h (Makefile.am): Likewise.
14836         * modules/float (Makefile.am): Likewise.
14837         * modules/getopt-posix (Makefile.am): Likewise.
14838         * modules/iconv-h (Makefile.am): Likewise.
14839         * modules/langinfo (Makefile.am): Likewise.
14840         * modules/locale (Makefile.am): Likewise.
14841         * modules/math (Makefile.am): Likewise.
14842         * modules/netdb (Makefile.am): Likewise.
14843         * modules/netinet_in (Makefile.am): Likewise.
14844         * modules/poll-h (Makefile.am): Likewise.
14845         * modules/pthread (Makefile.am): Likewise.
14846         * modules/pty (Makefile.am): Likewise.
14847         * modules/sched (Makefile.am): Likewise.
14848         * modules/search (Makefile.am): Likewise.
14849         * modules/selinux-h (Makefile.am): Likewise.
14850         * modules/signal (Makefile.am): Likewise.
14851         * modules/spawn (Makefile.am): Likewise.
14852         * modules/stdarg (Makefile.am): Likewise.
14853         * modules/stddef (Makefile.am): Likewise.
14854         * modules/stdint (Makefile.am): Likewise.
14855         * modules/stdio (Makefile.am): Likewise.
14856         * modules/stdlib (Makefile.am): Likewise.
14857         * modules/string (Makefile.am): Likewise.
14858         * modules/strings (Makefile.am): Likewise.
14859         * modules/sys_file (Makefile.am): Likewise.
14860         * modules/sys_ioctl (Makefile.am): Likewise.
14861         * modules/sys_select (Makefile.am): Likewise.
14862         * modules/sys_socket (Makefile.am): Likewise.
14863         * modules/sys_stat (Makefile.am): Likewise.
14864         * modules/sys_time (Makefile.am): Likewise.
14865         * modules/sys_times (Makefile.am): Likewise.
14866         * modules/sys_uio (Makefile.am): Likewise.
14867         * modules/sys_utsname (Makefile.am): Likewise.
14868         * modules/sys_wait (Makefile.am): Likewise.
14869         * modules/sysexits (Makefile.am): Likewise.
14870         * modules/termios (Makefile.am): Likewise.
14871         * modules/time (Makefile.am): Likewise.
14872         * modules/unistd (Makefile.am): Likewise.
14873         * modules/wchar (Makefile.am): Likewise.
14874         * modules/wctype-h (Makefile.am): Likewise.
14875         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
14876
14877 2011-05-29  Bruno Haible  <bruno@clisp.org>
14878
14879         assert-h: Allow multiple gnulib generated replacements to coexist.
14880         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
14881
14882 2011-05-29  Bruno Haible  <bruno@clisp.org>
14883
14884         argp: Allow coexistence with strerror_r-posix module.
14885         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
14886         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
14887         by gnulib's <string.h> replacement), assume it has the POSIX signature,
14888         not the glibc signature.
14889
14890 2011-05-28  Bruno Haible  <bruno@clisp.org>
14891
14892         gnulib-tool: Alternative structure of testdirs, similar to --import.
14893         * gnulib-tool: New option --single-configure.
14894         (func_usage): Document it.
14895         (single_configure): New variable.
14896         (func_modules_transitive_closure_separately,
14897         func_modules_transitive_closure_separately,
14898         func_determine_use_libtests, func_modules_add_dummy_separately,
14899         func_modules_to_filelist_separately): New functions, extracted from
14900         func_import.
14901         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
14902         (func_import): Use the new functions.
14903         (func_create_testdir): Set final_modules. Handle $single_configure =
14904         true case.
14905
14906 2011-05-28  Bruno Haible  <bruno@clisp.org>
14907
14908         getloadavg: Remove an unreliable safety check.
14909         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
14910         getloadavg.c is in place.
14911         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
14912         Reported by Sam Steingold <sds@gnu.org>.
14913
14914 2011-05-28  Bruno Haible  <bruno@clisp.org>
14915
14916         doc: Cleanup yet another file produced by texinfo.tex.
14917         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
14918
14919 2011-05-28  Bruno Haible  <bruno@clisp.org>
14920
14921         Finish the conditional dependencies mechanism.
14922         * gnulib-tool: New option --no-conditional-dependencies.
14923         (func_usage): Document it. Don't mark --conditional-dependencies as
14924         experimental.
14925         (cond_dependencies): The possible values can now be true, false, empty.
14926         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
14927         (func_import): Store setting in gnulib-cache.m4 and read it from there.
14928         * doc/gnulib-tool.texi (Conditional dependencies): New section.
14929
14930 2011-05-28  Bruno Haible  <bruno@clisp.org>
14931
14932         doc: Use a recent texinfo.tex.
14933         * doc/Makefile (tex_opts): New variable.
14934         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
14935
14936 2011-05-28  Jim Meyering  <meyering@redhat.com>
14937
14938         intprops.h: adjust comment to match code change
14939         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
14940         only once, it *may* have side effects.  Also fix an unrelated typo.
14941         (_GL_INT_SIGNED): Likewise.
14942
14943 2011-05-26  Simon Josefsson  <simon@josefsson.org>
14944
14945         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
14946
14947 2011-05-26  Bruno Haible  <bruno@clisp.org>
14948
14949         mbsrchr: Avoid collision with system function on Interix.
14950         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
14951         Reported by Markus Duft <mduft@gentoo.org>.
14952
14953 2011-05-15  James Youngman  <jay@gnu.org>
14954
14955         getopt: for ambiguous options, enumerate the possibilities.
14956         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
14957         the ambiguous options when an ambiguous prefix is given. This was
14958         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
14959         glibc change was
14960         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
14961
14962 2011-05-25  Eric Blake  <eblake@redhat.com>
14963
14964         getcwd: work around mingw bug
14965         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
14966         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14967         Reported by Matthias Bolte.
14968
14969 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14970
14971         test-intprops: disable -Wtype-limits diagnostics
14972         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
14973         diagnostics.  Otherwise, the integer overflow macros generate many
14974         diagnostics.  Reported by Jim Meyering in
14975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14976
14977         intprops: shorten, to pacify gcc -Woverlength-strings
14978         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
14979         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
14980         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
14981         likely to run afoul of C compiler limits for string constant lengths.
14982         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14983
14984 2011-05-24  Eric Blake  <eblake@redhat.com>
14985
14986         docs: document recently fixed glibc printf bug
14987         * doc/posix-functions/fprintf.texi (fprintf): Document it.
14988         * doc/posix-functions/printf.texi (printf): Likewise.
14989         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14990         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14991
14992         closein-tests: convert to init.sh
14993         * modules/closein-tests (Files): Add init.sh
14994         * tests/test-closein.sh Use it.
14995
14996         yesno-tests: convert to init.sh
14997         * modules/yesno-tests (Files): Add init.sh.
14998         * tests/test-yesno.sh: Use it.
14999
15000         atexit-tests: ensure reliable exit status
15001         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15002         Reported by Bruno Haible.
15003
15004 2011-05-24  Bruno Haible  <bruno@clisp.org>
15005
15006         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15007         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15008         gl_PREREQ_STRERROR_R invocations from here...
15009         * modules/strerror_r-posix (configure.ac): ... to here.
15010
15011 2011-05-24  Eric Blake  <eblake@redhat.com>
15012
15013         strerror_r: fix missing header
15014         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15015
15016         strerror_r: fix AIX test failures
15017         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15018         ERANGE failure.
15019
15020         strerror_r: fix Solaris test failures
15021         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15022         failures.
15023         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15024
15025         strerror_r: enforce POSIX recommendations
15026         * lib/strerror_r.c (safe_copy): New helper method.
15027         (strerror_r): Guarantee a non-empty string.
15028         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15029         recent POSIX rulings and to match our strerror guarantees.
15030         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15031
15032 2011-05-24  Jim Meyering  <meyering@redhat.com>
15033
15034         test-perror2.c: avoid warning about unused variable
15035         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15036
15037 2011-05-24  Eric Blake  <eblake@redhat.com>
15038
15039         perror: avoid spurious test failure on HP-UX
15040         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15041
15042         tests: fix logic bug in init.sh
15043         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15044         shell.
15045
15046 2011-05-24  Jim Meyering  <meyering@redhat.com>
15047
15048         utimensat: do not reference an out-of-scope buffer
15049         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15050         declared in an inner scope, yet "times" would be dereferenced outside
15051         the scope in which "ts" was valid.
15052         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15053         of ts[2] "out/up", so that the use of aliased "times" (via
15054         "times = ts;") does not end up referencing an out-of-scope "ts"
15055
15056         opendir-safer.c: don't clobber errno; don't close negative FD
15057         * lib/opendir-safer.c (opendir_safer):
15058         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15059         file descriptor, and more importantly, don't clobber the
15060         offending errno value with EINVAL.  Before, upon failure
15061         of dup_safer, we would pass the negative file descriptor to
15062         fdopendir, which would clobber errno.
15063
15064 2011-05-23  Bruno Haible  <bruno@clisp.org>
15065
15066         idcache: Fix module description.
15067         * modules/idcache (Include): Set to "idcache.h".
15068
15069 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15070
15071         gnulib-tool: fix portability problem with MacOS sed
15072         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15073         before the "}".  Problem reported by Leo in
15074         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15075         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15076         sed_extract_condition1, sed_extract_condition2.
15077
15078 2011-05-23  Bruno Haible  <bruno@clisp.org>
15079
15080         hash: Simplify autoconf macro.
15081         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15082
15083 2011-05-23  Bruno Haible  <bruno@clisp.org>
15084
15085         getugroups: Fix module description.
15086         * modules/getugroups (Include): Set to "getugroups.h".
15087
15088 2011-05-23  Bruno Haible  <bruno@clisp.org>
15089
15090         linkat: Simplify autoconf macro.
15091         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15092
15093 2011-05-23  Bruno Haible  <bruno@clisp.org>
15094             Eric Blake  <eblake@redhat.com>
15095
15096         linkat, renameat: Update dependencies.
15097         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15098         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15099         symlinkat.
15100
15101 2011-05-23  Jim Meyering  <meyering@redhat.com>
15102
15103         maint.mk: more tight_scope improvements
15104         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15105         (_gl_TS_headers): Define only in if-0'd block.
15106         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15107         sometimes we must *not* use it.  Adjust uses accordingly.
15108         (sc_tight_scope): Use much simpler grep-based test to determine
15109         whether we skip this rule.
15110
15111         maint.mk: generalize/improve the tight-scope rule
15112         * top/maint.mk: Emit a warning when the test is skipped.
15113         (_gl_TS_dir): Add $(srcdir)/ prefix.
15114         (_gl_TS_function_match): Simplify, rather than trying
15115         to enumerate common types.  Otherwise, it would fail to match an
15116         "extern unsigned char const *" declaration in idutils.
15117         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15118         a way to support use of that type of macro.
15119         (_gl_TS_var_match): Simplify regexp.
15120         (_gl_TS_obj_files): New configurable variable.
15121         (_gl_TS_headers): Likewise.
15122
15123 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15124
15125         verify: fix bug when gnulib <assert.h> is also included
15126         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15127         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15128         Perhaps there's a better way, but this fixes the immediate problem.
15129         Problem reported by Bruno Haible in
15130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15131
15132 2011-05-22  Bruno Haible  <bruno@clisp.org>
15133
15134         xgetcwd: Simplify autoconf macro.
15135         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15136
15137 2011-05-22  Bruno Haible  <bruno@clisp.org>
15138
15139         New module 'mktime-internal'.
15140         * modules/mktime-internal: New file.
15141         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15142         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15143         mktime_internal as a C macro if libc has __mktime_internal.
15144         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15145         conditions.
15146         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15147
15148 2011-05-22  Bruno Haible  <bruno@clisp.org>
15149
15150         timegm: Correct mktime replacement statements.
15151         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15152         defining mktime as a C macro. This completes a 2009-07-28 commit.
15153
15154 2011-05-22  Bruno Haible  <bruno@clisp.org>
15155
15156         timegm: Simplify autoconf macro.
15157         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15158
15159 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15160
15161         clock-time: change to LGPLv2+.
15162         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15163         BSD-like but we have no mark for that; this is good enough for now.
15164
15165 2011-05-21  Bruno Haible  <bruno@clisp.org>
15166
15167         strerror_r: Fix comments.
15168         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15169
15170 2011-05-21  Bruno Haible  <bruno@clisp.org>
15171
15172         relocatable-prog-wrapper: Fix possible link error.
15173         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15174         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15175         (gl_FUNC_SETENV): ... to here.
15176         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15177         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15178
15179 2011-05-21  Bruno Haible  <bruno@clisp.org>
15180
15181         relocatable-prog-wrapper: Assume strerror() exists.
15182         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15183         m4/strerror.m4.
15184         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15185         * lib/relocwrapper.c: Remove mention of strerror module.
15186         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15187         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15188         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15189         C macro.
15190
15191 2011-05-21  Bruno Haible  <bruno@clisp.org>
15192
15193         select: Simplify replacement idiom.
15194         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15195         Win32 platforms.
15196         * lib/sys_select.in.h (select): Simplify accordingly.
15197         * modules/select (Depends-on): Likewise.
15198
15199 2011-05-21  Bruno Haible  <bruno@clisp.org>
15200
15201         mkdir-p: Simplify autoconf macro.
15202         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15203         gl_FUNC_LCHOWN.
15204
15205 2011-05-21  Eric Blake  <eblake@redhat.com>
15206
15207         strerror_r: avoid clobbering strerror on cygwin
15208         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15209         fall back instead to sys_errlist.
15210         * modules/strerror (configure.ac): Add witness.
15211         * tests/test-strerror_r.c (main): Enhance test.
15212         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15213         * tests/test-perror2.c (main): Free memory before exit.
15214
15215 2011-05-21  Bruno Haible  <bruno@clisp.org>
15216
15217         mkdtemp: Use gnulib naming conventions.
15218         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15219         * modules/mkdtemp (configure.ac): Update.
15220
15221 2011-05-20  Eric Blake  <eblake@redhat.com>
15222
15223         strerror_r: avoid corrupting errno on Solaris
15224         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15225         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15226
15227         strerror_r: avoid compiler warning
15228         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15229
15230         strerror_r: simplify AIX code
15231         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15232
15233         test-perror: avoid spurious failure on FreeBSD
15234         * modules/perror-tests (Depends-on): Add strerror, now that
15235         strerror_r no longer pulls it in.
15236
15237 2011-05-20  Bruno Haible  <bruno@clisp.org>
15238
15239         strerror_r-posix: Remove unused dependencies.
15240         * modules/strerror_r-posix (Depends-on): Remove strerror.
15241         Reported by Eric Blake.
15242
15243 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15244
15245         intprops: remove assumption about A|B representation
15246         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15247         is a valid integer if both A and B are.  Although this is true for
15248         all known practical hosts, the C standard doesn't guarantee it,
15249         and the code need not assume it.  Also, this change may work around
15250         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15252
15253 2011-05-20  Eric Blake  <eblake@redhat.com>
15254
15255         perror: work around FreeBSD bug
15256         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15257         is broken.  Move AC_LIBOBJ...
15258         * modules/perror (configure.ac): Here.
15259         * doc/posix-functions/perror.texi (perror): Document this.
15260         * tests/test-perror2.c (main): Enhance test.
15261
15262         test-perror: check for strerror interactions
15263         * tests/macros.h (STREQ): Add macro.
15264         * modules/perror-tests (Files): Add second test.
15265         * tests/test-perror2.c (main): New file.
15266         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15267
15268         test-perror: rewrite to use init script
15269         * modules/perror-tests (Files): Add init.sh.
15270         * tests/test-perror.sh: Use temporary directory.
15271
15272 2011-05-20  Jim Meyering  <meyering@redhat.com>
15273
15274         maint: replace misused "a" with "an"
15275         * doc/intprops.texi: "a integer"
15276         * doc/regex.texi: "a explanation"
15277         * lib/alignof.h: "a object"
15278         * lib/argmatch.h: "a explanation"
15279         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15280         * lib/stdint.in.h: "a integer"
15281         * lib/userspec.c: "a owner"
15282         * doc/gnulib.texi: Fix "a idea", and reword.
15283
15284 2011-05-19  Jim Meyering  <meyering@redhat.com>
15285
15286         maint: correct misuse of "a" and "an"
15287         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15288         * lib/argp-help.c: "an docum...": s/an/a/
15289         * lib/argp-parse.c: "An vector": s/An/A/
15290         * lib/execute.c: "an native": s/an/a/
15291         * lib/spawn-pipe.c: Likewise.
15292         * lib/gc.h: "an Gc_rc": s/an/a/
15293         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15294         * lib/fts.c: "an stat.st_dev": s/an/a/
15295
15296 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15297
15298         intprops-tests: work around HP-UX 11.23 cc bug with constants
15299         * tests/test-intprops.c (VERIFY): New macro.
15300         (main): Use it, instead of verify, to work around the compiler bug; see
15301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15302
15303         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15304         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15305         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15306         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15307         (_GL_REMAINDER_OVERFLOW): Use it.
15308
15309         intprops-tests: revert unsigned part of previous change
15310         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15311         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15312         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15314
15315 2011-05-19  Bruno Haible  <bruno@clisp.org>
15316
15317         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15318         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15319         strerror_r() returned without filling the buffer.
15320         Reported by Eric Blake.
15321
15322 2011-05-19  Eric Blake  <eblake@redhat.com>
15323
15324         strerror_r: guarantee unchanged errno
15325         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15326         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15327         failure.
15328         * tests/test-strerror_r.c (main): Enhance test.
15329
15330 2011-05-19  Bruno Haible  <bruno@clisp.org>
15331
15332         strerror_r: Reorder #if blocks.
15333         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15334         for consistency with the previous commit.
15335
15336 2011-05-19  Bruno Haible  <bruno@clisp.org>
15337
15338         perror: Avoid clobbering the strerror buffer when possible.
15339         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15340         * lib/strerror.c: Include it.
15341         * modules/strerror (Files): Add lib/strerror-impl.h.
15342         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15343         (my_strerror): New function, defined through lib/strerror-impl.h.
15344         (perror): Use it instead of strerror.
15345         * modules/perror (Files): Add lib/strerror-impl.h.
15346         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15347
15348 2011-05-19  Eric Blake  <eblake@redhat.com>
15349
15350         strerror_r: fix on newer cygwin
15351         * lib/strerror_r.c (strerror_r): Cygwin now has
15352         __xpg_strerror_r, use it.
15353
15354 2011-05-19  Bruno Haible  <bruno@clisp.org>
15355
15356         strerror_r: Avoid clobbering the strerror buffer when possible.
15357         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15358         (sys_nerr, sys_errlist): New declarations.
15359         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15360         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15361         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15362
15363 2011-05-19  Bruno Haible  <bruno@clisp.org>
15364
15365         strerror_r: Fix test failure on mingw.
15366         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15367         EXTEND_STRERROR_R.
15368         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15369         macros from errno.in.h instead.
15370
15371 2011-05-19  Eric Blake  <eblake@redhat.com>
15372
15373         strerror: relax test for Solaris
15374         * tests/test-strerror.c (main): Permit Solaris behavior.
15375         * tests/test-strerror_r.c (main): Likewise.
15376
15377         strerror: enforce POSIX ruling on strerror(0)
15378         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15379         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15380         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15381         * doc/posix-functions/strerror.texi (strerror): Document it.
15382         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15383         * tests/test-strerror.c (main): Strengthen test.
15384         * tests/test-strerror_r.c (main): Likewise.
15385
15386 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15387
15388         intprop-tests: port to older and more-pedantic compilers
15389         * modules/intprops-tests (Files): Add tests/macros.h.
15390         * tests/test-intprops.c: Include macros.h.
15391         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15392         it's no longer documented to expand to an integer constant expression.
15393         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15394         argument is floating point, as it's no longer documented to expand
15395         to an integer constant expression in that case.
15396         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15397         compiler bugs reported by Bruno Haible.  See
15398         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15399         (U0, U1): New constants, to work around the same bugs.  Also,
15400         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15401
15402         intprops: work around C compiler bugs
15403         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15404         bug in Sun C 5.11 2010/08/13 and other compilers; see
15405         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15406
15407         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15408         * doc/intprops.texi (Integer Type Determination): Fix
15409         documentation for TYPE_IS_INTEGER: it returns an constant
15410         expression, not an integer constant expression.  Fix doc for
15411         TYPE_SIGNED: it returns an integer constant expression only if its
15412         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15413         hardly worth documented that way....)
15414
15415 2011-05-18  Bruno Haible  <bruno@clisp.org>
15416
15417         strerror_r: Avoid clobbering the strerror buffer when possible.
15418         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15419         Handle gnulib defined errno values here. When strerror() returns NULL
15420         or an empty string, return EINVAL.
15421         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15422         gnulib defined errno values here.
15423         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15424
15425 2011-05-18  Eric Blake  <eblake@redhat.com>
15426
15427         fnmatch: avoid compiler warning
15428         * lib/fnmatch_loop.c (FCT): Use correct type.
15429         Reported by Matthias Bolte.
15430
15431 2011-05-13  Jim Meyering  <meyering@redhat.com>
15432
15433         maint.mk: three new prohibit_<HDR>_without_use rules
15434         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15435         (sc_prohibit_stdio-safer_without_use): Likewise.
15436         (sc_prohibit_xfreopen_without_use): Likewise.
15437
15438 2011-05-17  Jim Meyering  <meyering@redhat.com>
15439
15440         announce-gen: fail if the NEWS delta is empty
15441         If there's nothing noteworthy in NEWS, then either you forgot
15442         or you shouldn't be releasing.
15443         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15444
15445 2011-05-17  Pádraig Brady <P@draigBrady.com>
15446
15447         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15448         reserved symbols starting with double underscore from the check.
15449
15450 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15451
15452         intprops: add doc
15453         * doc/intprops.texi: New file, documenting intprops.
15454         * doc/gnulib.texi (Particular Modules): Include it.
15455
15456         verify: add doc to gnulib manual and fix example
15457         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15458         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15459         (Compile-time Assertions): Fix example so it can't overflow.
15460
15461 2011-05-17  Jim Meyering  <meyering@redhat.com>
15462
15463         warnings.m4: don't usurp save_CPPFLAGS variable name
15464         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15465
15466         doc: fix typo
15467         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15468
15469 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15470             Bruno Haible  <bruno@clisp.org>
15471
15472         doc: Tweak recent change.
15473         * README (Portability guidelines): Tweak new text.
15474         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15475         Interix 6.1.
15476
15477 2011-05-16  Eric Blake  <eblake@redhat.com>
15478
15479         inttypes: avoid autoconf warning
15480         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15481         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15482
15483 2011-05-16  Sam Steingold <sds@gnu.org>
15484         and Eric Blake  <eblake@redhat.com>
15485
15486         vc-list-files: accept multiple directory operands
15487         * build-aux/vc-list-files: Iterate over all remaining operands.
15488
15489 2011-05-16  Bruno Haible  <bruno@clisp.org>
15490
15491         Fix confusion regarding deprecated modules.
15492         * modules/calloc (Status, Notice): Mark module as deprecated, not
15493         obsolete.
15494         * modules/fnmatch-posix (Status, Notice): Likewise.
15495         * modules/getdate (Status, Notice): Likewise.
15496         * modules/getopt (Status, Notice): Likewise.
15497         * modules/malloc (Status, Notice): Likewise.
15498         * modules/pipe (Status, Notice): Likewise.
15499         * modules/realloc (Status, Notice): Likewise.
15500         * modules/rename-dest-slash (Status, Notice): Likewise.
15501         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15502         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15503         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15504         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15505         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15506
15507 2011-05-16  Bruno Haible  <bruno@clisp.org>
15508
15509         doc: List the target platforms.
15510         * doc/gnulib-intro.texi (Target Platforms): New section.
15511         * doc/gnulib.texi (Introduction): Update menu.
15512         * README (Portability guidelines): Refer to the new section. Update
15513         statement about oldest supported environment. Remove rationale why
15514         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15515         unportable C89 function.
15516         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15517         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15518
15519 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15520
15521         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15522
15523 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15524
15525         intprops-tests: new module
15526         * modules/intprops-tests, tests/test-intprops.c: New files.
15527
15528         intprops: add safe, portable integer overflow checking
15529         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15530         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15531         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15532         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15533         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15534         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15535         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15536         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15537         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15538         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15539         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15540
15541 2011-05-12  James Youngman  <jay@gnu.org>
15542
15543         Add a test for glibc's Bugzilla bug #12378.
15544         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15545         doesn't allow the literal matching of a lone "[" (which is
15546         required by POSIX).
15547         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15548
15549 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15550
15551         Sync glibc change fixing Bugzilla bug #12378.
15552         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15553         beginning and fall back to matching as normal character if the
15554         string ends before the matching ']' is found.  This is what POSIX
15555         requires.
15556
15557 2011-05-13  Eric Blake  <eblake@redhat.com>
15558
15559         getcwd-lgpl: relax test for FreeBSD
15560         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15561         issue.
15562         * tests/test-getcwd-lgpl.c (main): Relax test.
15563         Reported by Matthias Bolte.
15564
15565 2011-05-11  Eric Blake  <eblake@redhat.com>
15566
15567         test-fflush: silence compiler warning
15568         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15569
15570 2011-05-11  Bruno Haible  <bruno@clisp.org>
15571
15572         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15573         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15574         * modules/canonicalize (Depends-on): Add 'nocrash'.
15575         * modules/canonicalize-lgpl (Depends-on): Likewise.
15576         * doc/posix-functions/realpath.texi: Update platforms list.
15577         Reported by Ryan Schmidt <ryandesign@macports.org>.
15578
15579 2011-05-11  Bruno Haible  <bruno@clisp.org>
15580
15581         group-member: Declare function in <unistd.h>.
15582         * lib/unistd.in.h (group_member): New declaration.
15583         * lib/group-member.h: Remove file.
15584         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15585         * tests/test-unistd-c++.cc: Check signature of group_member.
15586         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15587         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15588         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15589         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15590         HAVE_GROUP_MEMBER.
15591         * modules/group-member (Files): Remove lib/group-member.h.
15592         (Depends-on): Add unistd. Specify conditions.
15593         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15594         (Include): Change to <unistd.h>.
15595         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15596         HAVE_GROUP_MEMBER.
15597         * NEWS: Mention the change.
15598         * lib/euidaccess.c: Don't include group-member.h.
15599
15600 2011-05-11  Bruno Haible  <bruno@clisp.org>
15601
15602         group-member: Document module.
15603         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15604         module.
15605
15606 2011-05-11  Bruno Haible  <bruno@clisp.org>
15607
15608         fclose: Fix mistake earlier today.
15609         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15610
15611 2011-05-11  Eric Blake  <eblake@redhat.com>
15612
15613         fclose: preserve fflush errors
15614         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15615         Reported by Jim Meyering.
15616
15617         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15618         * build-aux/bootstrap (check_versions): When no specific version
15619         is required, merely check that the app produces an exit status
15620         that indicates its existence.
15621
15622         maint.mk: drop redundant check
15623         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15624         the same but better.
15625
15626 2011-05-11  Bruno Haible  <bruno@clisp.org>
15627
15628         fclose: Fix possible link error.
15629         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15630         unregister_shadow_fd. Improve comments.
15631         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15632         Eric Blake.
15633
15634 2011-05-11  Jim Meyering  <meyering@redhat.com>
15635
15636         maint.mk: improve "can not" detection and generalize rule name
15637         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15638         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15639         Use the same technique as in sc_prohibit_doubled_word, so that
15640         we recognize "can not" also when the words are separated by a newline.
15641         Suggested by Eric Blake.
15642         (perl_filename_lineno_text_): Define.  Factored out of...
15643         (prohibit_doubled_word_): ...here.  Use the new definition.
15644         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15645         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15646         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15647
15648 2011-05-10  Eric Blake  <eblake@redhat.com>
15649
15650         fclose: avoid double close race when possible
15651         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15652         all but WINDOWS_SOCKETS.
15653
15654 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15655
15656         openat: correct new comment
15657         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15658
15659 2011-05-10  Jim Meyering  <meyering@redhat.com>
15660
15661         openat: add comments
15662         * lib/openat-proc.c (openat_proc_name): Add comments,
15663         mostly from Eric Blake.
15664
15665 2011-05-09  Eric Blake  <eblake@redhat.com>
15666
15667         openat: reduce syscalls in first probe of /proc
15668         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15669         be a directory.  Simplify the probe for .. bugs.
15670         * modules/openat (Depends-on): Drop same-inode.
15671         Reported by Bastien ROUCARIES.
15672
15673 2011-05-09  Jim Meyering  <meyering@redhat.com>
15674
15675         maint.mk: change semantics/name of tight_scope variables
15676         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15677         Rename variables to align with semantics that make them more useful.
15678
15679         maint.mk: tweak new rule's name not to impinge
15680         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15681         (sc_tight_scope): Use new rule name rather than $@-0.
15682
15683         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15684         * top/maint.mk (sc_tight_scope): New rule.
15685         (sc_tight_scope-0): New rule, ifdef'd out.
15686         (_gl_TS_dir): Default.
15687         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15688         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15689
15690 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15691
15692         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15693         Haible <bruno@clisp.org>.
15694
15695 2011-05-08  Bruno Haible  <bruno@clisp.org>
15696
15697         Comments.
15698         * m4/isnanf.m4: Add comment.
15699         * m4/isnanl.m4: Likewise.
15700
15701 2011-05-08  Bruno Haible  <bruno@clisp.org>
15702
15703         glob: Remove obsolete macro.
15704         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15705
15706 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15707
15708         intprops: Sun C 5.11 supports __typeof__
15709         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15710         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15711         which is new.
15712         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15713
15714         intprops: switch to usual gnulib indenting and naming
15715         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15716         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15717
15718         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15719
15720 2011-05-08  Jim Meyering  <meyering@redhat.com>
15721
15722         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15723         * top/maint.mk (release-prep): Use make's --no-print-directory
15724         option when generating the announcement.  This eliminates the
15725         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15726         generated announcement template.
15727
15728 2011-05-08  Bruno Haible  <bruno@clisp.org>
15729
15730         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15731         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15732         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15733
15734 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15735
15736         ignore-value, verify: Omit include files from lib_SOURCES.
15737         * modules/ignore-value, modules/verify (Makefile.am):
15738         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15739         that leads Automake to duplicate use of am__objects_... variables
15740         in Makefile.in.  See
15741         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15742
15743 2011-05-07  Bruno Haible  <bruno@clisp.org>
15744
15745         fclose: Simplify autoconf macro.
15746         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15747         defined.
15748
15749 2011-05-07  Bruno Haible  <bruno@clisp.org>
15750
15751         canonicalize-lgpl: Fix autoconf macro ordering bug.
15752         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15753         gl_STDLIB_H_DEFAULTS.
15754
15755 2011-05-06  Eric Blake  <eblake@redhat.com>
15756
15757         maintainer-makefile: make sc_po_check easier to tune
15758         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15759         to probe for strings, such as an alternate location for gnulib.
15760
15761         fclose: guarantee behavior on seekable stdin
15762         * modules/fclose (Depends-on): Add fflush.
15763         * doc/posix-functions/fclose.texi (fclose): Document this.
15764         * tests/test-fclose.c (main): Make test for this unconditional.
15765
15766 2011-05-06  Bruno Haible  <bruno@clisp.org>
15767
15768         fflush, fpurge: Relicense under LGPLv2+.
15769         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15770         * modules/fpurge (License): Likewise.
15771         With permission from Eric Blake and Jim Meyering.
15772         Suggested by Eric Blake.
15773
15774 2011-05-06  Karl Berry  <karl@gnu.org>
15775
15776         * MODULES.html.sh (func_all_modules): remove exit.
15777
15778 2011-05-06  Jim Meyering  <meyering@redhat.com>
15779
15780         maint.mk: use info-gnu@ as the default only for a stable release
15781         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15782         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15783         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15784         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15785
15786 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15787
15788         assert-h: new module, which supports C1X-style static_assert
15789         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15790         * lib/verify.h: Revamp so that this can be copied into assert.h,
15791         while retaining the ability to use it standalone as before.
15792         Rename private identifiers so as not to encroach on the
15793         standard C namespace, since this is now used by assert.h.
15794         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15795         the old verify_true.
15796         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15797         the old verify_true.  Use _GL_VERIFY_TYPE.
15798         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15799         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15800         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15801         defined when this file is copied into the replacement assert.h.
15802         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15803         and _Static_assert is not built in.
15804         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15805         defined, and use the new macros mentioned above.
15806         * doc/posix-headers/assert.texi: Document this.
15807
15808 2011-05-05  Bruno Haible  <bruno@clisp.org>
15809
15810         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15811         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15812         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15813         gl_REPLACE_FCLOSE here.
15814         * modules/fflush (Depends-on): Remove fclose.
15815         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15816         combination with module 'fclose'.
15817
15818 2011-05-05  Bruno Haible  <bruno@clisp.org>
15819
15820         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15821         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15822         gl_FUNC_FFLUSH.
15823         (gl_FUNC_FFLUSH): Use it.
15824         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15825         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
15826         gl_REPLACE_FSEEKO here.
15827
15828 2011-05-05  Bruno Haible  <bruno@clisp.org>
15829
15830         tzset: Relicense under LGPL.
15831         * modules/tzset (License): Change to LGPL.
15832         No agreement needed; it's a no-op.
15833
15834         strtoimax, strtoumax: Relicense under LGPL.
15835         * modules/strtoimax (License): Change to LGPL.
15836         * modules/strtoumax (License): Likewise.
15837         With permission from Jim Meyering, Paul Eggert:
15838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
15839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
15840
15841         getgroups: Relicense under LGPL.
15842         * modules/getgroups (License): Change to LGPL.
15843         With permission from Jim Meyering, Paul Eggert, Eric Blake:
15844         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15845         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15847
15848         nanosleep: Relicense under LGPL.
15849         * modules/nanosleep (License): Change to LGPL.
15850         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
15851         Haible:
15852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15854         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15855         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15856
15857         futimens: Relicense under LGPL.
15858         * modules/futimens (License): Change to LGPL.
15859         With permission from Eric Blake:
15860         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15861
15862         fflush: Relicense under LGPL.
15863         * modules/fflush (License): Change to LGPL.
15864         With permission from Eric Blake, Bruno Haible, Jim Meyering:
15865         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15866         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15867         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
15868
15869         tmpfile: Relicense under LGPL.
15870         * modules/tmpfile (License): Change to LGPL.
15871         With permission from Ben Pfaff:
15872         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15873
15874         isfinite: Relicense under LGPL.
15875         * modules/isfinite (License): Change to LGPL.
15876         With permission from Ben Pfaff, Bruno Haible:
15877         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
15879
15880         acosl..tanl: Relicense under LGPL.
15881         * modules/acosl (License): Change to LGPL.
15882         * modules/asinl (License): Likewise.
15883         * modules/atanl (License): Likewise.
15884         * modules/cosl (License): Likewise.
15885         * modules/expl (License): Likewise.
15886         * modules/logl (License): Likewise.
15887         * modules/sinl (License): Likewise.
15888         * modules/sqrtl (License): Likewise.
15889         * modules/tanl (License): Likewise.
15890         Source code originally from glibc and Paolo Bonzini. Agreements:
15891         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
15892         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
15893
15894 2011-05-05  Bruno Haible  <bruno@clisp.org>
15895
15896         signal: Define sighandler_t.
15897         * lib/signal.in.h (sighandler_t): New type.
15898         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
15899         whether sighandler_t is defined.
15900         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
15901         * modules/signal (Depends-on): Add extensions.
15902         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
15903         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
15904         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
15905
15906 2011-05-05  Eric Blake  <eblake@redhat.com>
15907
15908         maint: remove useless REPLACE_*_H macros
15909         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
15910         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15911         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15912         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
15913         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15914         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15915         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
15916         * m4/btowc.m4: Update callers.
15917         * m4/dirfd.m4: Likewise.
15918         * m4/duplocale.m4: Likewise.
15919         * m4/fchdir.m4: Likewise.
15920         * m4/fdopendir.m4: Likewise.
15921         * m4/inet_ntop.m4: Likewise.
15922         * m4/inet_pton.m4: Likewise.
15923         * m4/ioctl.m4: Likewise.
15924         * m4/mbrlen.m4: Likewise.
15925         * m4/mbrtowc.m4: Likewise.
15926         * m4/mbsinit.m4: Likewise.
15927         * m4/mbsnrtowcs.m4: Likewise.
15928         * m4/mbsrtowcs.m4: Likewise.
15929         * m4/poll.m4: Likewise.
15930         * m4/setlocale.m4: Likewise.
15931         * m4/wcrtomb.m4: Likewise.
15932         * m4/wcsnrtombs.m4: Likewise.
15933         * m4/wcsrtombs.m4: Likewise.
15934         * m4/wctob.m4: Likewise.
15935         * m4/wcwidth.m4: Likewise.
15936         * modules/posix_spawn: Likewise.
15937         * modules/posix_spawn_file_actions_addclose: Likewise.
15938         * modules/posix_spawn_file_actions_adddup2: Likewise.
15939         * modules/posix_spawn_file_actions_addopen: Likewise.
15940         * modules/posix_spawn_file_actions_destroy: Likewise.
15941         * modules/posix_spawn_file_actions_init: Likewise.
15942         * modules/posix_spawnattr_destroy: Likewise.
15943         * modules/posix_spawnattr_getflags: Likewise.
15944         * modules/posix_spawnattr_getpgroup: Likewise.
15945         * modules/posix_spawnattr_getschedparam: Likewise.
15946         * modules/posix_spawnattr_getschedpolicy: Likewise.
15947         * modules/posix_spawnattr_getsigdefault: Likewise.
15948         * modules/posix_spawnattr_getsigmask: Likewise.
15949         * modules/posix_spawnattr_init: Likewise.
15950         * modules/posix_spawnattr_setflags: Likewise.
15951         * modules/posix_spawnattr_setpgroup: Likewise.
15952         * modules/posix_spawnattr_setschedparam: Likewise.
15953         * modules/posix_spawnattr_setschedpolicy: Likewise.
15954         * modules/posix_spawnattr_setsigdefault: Likewise.
15955         * modules/posix_spawnattr_setsigmask: Likewise.
15956         * modules/posix_spawnp: Likewise.
15957
15958 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
15959
15960         Add option to do-release-commit-and-tag to specify branch.
15961         * build-aux/do-release-commit-and-tag: Add --branch.
15962
15963 2011-05-03  Bruno Haible  <bruno@clisp.org>
15964
15965         Avoid unnecessary compilation units, through conditional dependencies.
15966         * modules/accept (Depends-on): Add conditions to the dependencies.
15967         * modules/acosl (Depends-on): Likewise.
15968         * modules/argz (Depends-on): Likewise.
15969         * modules/asinl (Depends-on): Likewise.
15970         * modules/atanl (Depends-on): Likewise.
15971         * modules/atoll (Depends-on): Likewise.
15972         * modules/bind (Depends-on): Likewise.
15973         * modules/btowc (Depends-on): Likewise.
15974         * modules/canonicalize-lgpl (Depends-on): Likewise.
15975         * modules/ceil (Depends-on): Likewise.
15976         * modules/ceilf (Depends-on): Likewise.
15977         * modules/ceill (Depends-on): Likewise.
15978         * modules/chdir-long (Depends-on): Likewise.
15979         * modules/chown (Depends-on): Likewise.
15980         * modules/close (Depends-on): Likewise.
15981         * modules/connect (Depends-on): Likewise.
15982         * modules/cosl (Depends-on): Likewise.
15983         * modules/dirfd (Depends-on): Likewise.
15984         * modules/dprintf (Depends-on): Likewise.
15985         * modules/dprintf-posix (Depends-on): Likewise.
15986         * modules/error (Depends-on): Likewise.
15987         * modules/euidaccess (Depends-on): Likewise.
15988         * modules/expl (Depends-on): Likewise.
15989         * modules/faccessat (Depends-on): Likewise.
15990         * modules/fchdir (Depends-on): Likewise.
15991         * modules/fclose (Depends-on): Likewise.
15992         * modules/fcntl (Depends-on): Likewise.
15993         * modules/fdopendir (Depends-on): Likewise.
15994         * modules/fflush (Depends-on): Likewise.
15995         * modules/floor (Depends-on): Likewise.
15996         * modules/floorf (Depends-on): Likewise.
15997         * modules/floorl (Depends-on): Likewise.
15998         * modules/fnmatch (Depends-on): Likewise.
15999         * modules/fopen (Depends-on): Likewise.
16000         * modules/fprintf-posix (Depends-on): Likewise.
16001         * modules/frexp (Depends-on): Likewise.
16002         * modules/frexp-nolibm (Depends-on): Likewise.
16003         * modules/frexpl (Depends-on): Likewise.
16004         * modules/frexpl-nolibm (Depends-on): Likewise.
16005         * modules/fseek (Depends-on): Likewise.
16006         * modules/fsusage (Depends-on): Likewise.
16007         * modules/ftell (Depends-on): Likewise.
16008         * modules/ftello (Depends-on): Likewise.
16009         * modules/futimens (Depends-on): Likewise.
16010         * modules/getcwd (Depends-on): Likewise.
16011         * modules/getcwd-lgpl (Depends-on): Likewise.
16012         * modules/getdelim (Depends-on): Likewise.
16013         * modules/getdomainname (Depends-on): Likewise.
16014         * modules/getgroups (Depends-on): Likewise.
16015         * modules/gethostname (Depends-on): Likewise.
16016         * modules/getline (Depends-on): Likewise.
16017         * modules/getlogin_r (Depends-on): Likewise.
16018         * modules/getopt-posix (Depends-on): Likewise.
16019         * modules/getpeername (Depends-on): Likewise.
16020         * modules/getsockname (Depends-on): Likewise.
16021         * modules/getsockopt (Depends-on): Likewise.
16022         * modules/getsubopt (Depends-on): Likewise.
16023         * modules/getusershell (Depends-on): Likewise.
16024         * modules/glob (Depends-on): Likewise.
16025         * modules/grantpt (Depends-on): Likewise.
16026         * modules/iconv_open (Depends-on): Likewise.
16027         * modules/iconv_open-utf (Depends-on): Likewise.
16028         * modules/inet_ntop (Depends-on): Likewise.
16029         * modules/inet_pton (Depends-on): Likewise.
16030         * modules/ioctl (Depends-on): Likewise.
16031         * modules/isapipe (Depends-on): Likewise.
16032         * modules/isfinite (Depends-on): Likewise.
16033         * modules/isinf (Depends-on): Likewise.
16034         * modules/lchown (Depends-on): Likewise.
16035         * modules/ldexpl (Depends-on): Likewise.
16036         * modules/link (Depends-on): Likewise.
16037         * modules/linkat (Depends-on): Likewise.
16038         * modules/listen (Depends-on): Likewise.
16039         * modules/logl (Depends-on): Likewise.
16040         * modules/lstat (Depends-on): Likewise.
16041         * modules/mbrlen (Depends-on): Likewise.
16042         * modules/mbrtowc (Depends-on): Likewise.
16043         * modules/mbsinit (Depends-on): Likewise.
16044         * modules/mbsnrtowcs (Depends-on): Likewise.
16045         * modules/mbsrtowcs (Depends-on): Likewise.
16046         * modules/mbtowc (Depends-on): Likewise.
16047         * modules/memcmp (Depends-on): Likewise.
16048         * modules/mkdir (Depends-on): Likewise.
16049         * modules/mkdtemp (Depends-on): Likewise.
16050         * modules/mkfifo (Depends-on): Likewise.
16051         * modules/mkfifoat (Depends-on): Likewise.
16052         * modules/mknod (Depends-on): Likewise.
16053         * modules/mkostemp (Depends-on): Likewise.
16054         * modules/mkostemps (Depends-on): Likewise.
16055         * modules/mkstemp (Depends-on): Likewise.
16056         * modules/mkstemps (Depends-on): Likewise.
16057         * modules/mktime (Depends-on): Likewise.
16058         * modules/nanosleep (Depends-on): Likewise.
16059         * modules/open (Depends-on): Likewise.
16060         * modules/openat (Depends-on): Likewise.
16061         * modules/perror (Depends-on): Likewise.
16062         * modules/poll (Depends-on): Likewise.
16063         * modules/popen (Depends-on): Likewise.
16064         * modules/posix_spawn (Depends-on): Likewise.
16065         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16066         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16067         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16068         * modules/posix_spawnp (Depends-on): Likewise.
16069         * modules/pread (Depends-on): Likewise.
16070         * modules/printf-posix (Depends-on): Likewise.
16071         * modules/ptsname (Depends-on): Likewise.
16072         * modules/putenv (Depends-on): Likewise.
16073         * modules/pwrite (Depends-on): Likewise.
16074         * modules/readline (Depends-on): Likewise.
16075         * modules/readlink (Depends-on): Likewise.
16076         * modules/readlinkat (Depends-on): Likewise.
16077         * modules/recv (Depends-on): Likewise.
16078         * modules/recvfrom (Depends-on): Likewise.
16079         * modules/regex (Depends-on): Likewise.
16080         * modules/remove (Depends-on): Likewise.
16081         * modules/rename (Depends-on): Likewise.
16082         * modules/renameat (Depends-on): Likewise.
16083         * modules/rmdir (Depends-on): Likewise.
16084         * modules/round (Depends-on): Likewise.
16085         * modules/roundf (Depends-on): Likewise.
16086         * modules/roundl (Depends-on): Likewise.
16087         * modules/rpmatch (Depends-on): Likewise.
16088         * modules/select (Depends-on): Likewise.
16089         * modules/send (Depends-on): Likewise.
16090         * modules/sendto (Depends-on): Likewise.
16091         * modules/setenv (Depends-on): Likewise.
16092         * modules/setlocale (Depends-on): Likewise.
16093         * modules/setsockopt (Depends-on): Likewise.
16094         * modules/shutdown (Depends-on): Likewise.
16095         * modules/sigaction (Depends-on): Likewise.
16096         * modules/signbit (Depends-on): Likewise.
16097         * modules/sigprocmask (Depends-on): Likewise.
16098         * modules/sinl (Depends-on): Likewise.
16099         * modules/sleep (Depends-on): Likewise.
16100         * modules/snprintf (Depends-on): Likewise.
16101         * modules/snprintf-posix (Depends-on): Likewise.
16102         * modules/socket (Depends-on): Likewise.
16103         * modules/sprintf-posix (Depends-on): Likewise.
16104         * modules/sqrtl (Depends-on): Likewise.
16105         * modules/stat (Depends-on): Likewise.
16106         * modules/strchrnul (Depends-on): Likewise.
16107         * modules/strdup-posix (Depends-on): Likewise.
16108         * modules/strerror (Depends-on): Likewise.
16109         * modules/strerror_r-posix (Depends-on): Likewise.
16110         * modules/strndup (Depends-on): Likewise.
16111         * modules/strnlen (Depends-on): Likewise.
16112         * modules/strptime (Depends-on): Likewise.
16113         * modules/strsep (Depends-on): Likewise.
16114         * modules/strsignal (Depends-on): Likewise.
16115         * modules/strstr-simple (Depends-on): Likewise.
16116         * modules/strtod (Depends-on): Likewise.
16117         * modules/strtoimax (Depends-on): Likewise.
16118         * modules/strtok_r (Depends-on): Likewise.
16119         * modules/strtoumax (Depends-on): Likewise.
16120         * modules/symlink (Depends-on): Likewise.
16121         * modules/symlinkat (Depends-on): Likewise.
16122         * modules/tanl (Depends-on): Likewise.
16123         * modules/tcgetsid (Depends-on): Likewise.
16124         * modules/tmpfile (Depends-on): Likewise.
16125         * modules/trunc (Depends-on): Likewise.
16126         * modules/truncf (Depends-on): Likewise.
16127         * modules/truncl (Depends-on): Likewise.
16128         * modules/uname (Depends-on): Likewise.
16129         * modules/unlink (Depends-on): Likewise.
16130         * modules/unlockpt (Depends-on): Likewise.
16131         * modules/unsetenv (Depends-on): Likewise.
16132         * modules/usleep (Depends-on): Likewise.
16133         * modules/utimensat (Depends-on): Likewise.
16134         * modules/vasprintf (Depends-on): Likewise.
16135         * modules/vdprintf (Depends-on): Likewise.
16136         * modules/vdprintf-posix (Depends-on): Likewise.
16137         * modules/vfprintf-posix (Depends-on): Likewise.
16138         * modules/vprintf-posix (Depends-on): Likewise.
16139         * modules/vsnprintf (Depends-on): Likewise.
16140         * modules/vsnprintf-posix (Depends-on): Likewise.
16141         * modules/vsprintf-posix (Depends-on): Likewise.
16142         * modules/wcrtomb (Depends-on): Likewise.
16143         * modules/wcscasecmp (Depends-on): Likewise.
16144         * modules/wcscspn (Depends-on): Likewise.
16145         * modules/wcsdup (Depends-on): Likewise.
16146         * modules/wcsncasecmp (Depends-on): Likewise.
16147         * modules/wcsnrtombs (Depends-on): Likewise.
16148         * modules/wcspbrk (Depends-on): Likewise.
16149         * modules/wcsrtombs (Depends-on): Likewise.
16150         * modules/wcsspn (Depends-on): Likewise.
16151         * modules/wcsstr (Depends-on): Likewise.
16152         * modules/wcstok (Depends-on): Likewise.
16153         * modules/wcswidth (Depends-on): Likewise.
16154         * modules/wctob (Depends-on): Likewise.
16155         * modules/wctomb (Depends-on): Likewise.
16156         * modules/wctype (Depends-on): Likewise.
16157         * modules/wcwidth (Depends-on): Likewise.
16158         * modules/write (Depends-on): Likewise.
16159
16160 2011-05-03  Bruno Haible  <bruno@clisp.org>
16161
16162         Support for conditional dependencies.
16163         * doc/gnulib.texi (Module description): Document the syntax of
16164         conditional dependencies.
16165         * gnulib-tool: New option --conditional-dependencies.
16166         (func_usage): Document it.
16167         (cond_dependencies): New variable.
16168         (func_get_automake_snippet_conditional,
16169         func_get_automake_snippet_unconditional): New functions, extracted from
16170         func_get_automake_snippet.
16171         (func_get_automake_snippet): Use them.
16172         (sed_first_32_chars): New variable.
16173         (func_module_shellfunc_name): New function.
16174         (func_module_shellvar_name): New function.
16175         (func_module_conditional_name): New function.
16176         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16177         func_cond_module_condition): New functions.
16178         (func_modules_transitive_closure): Add support for conditional
16179         dependencies.
16180         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16181         conditional automake snippet in an automake conditional.
16182         (func_emit_autoconf_snippets): Emit shell functions that contain the
16183         code for conditional modules.
16184         (func_import, func_create_testdir): Update specification.
16185
16186 2011-05-03  Eric Blake  <eblake@redhat.com>
16187
16188         test-getaddrinfo: report error information
16189         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16190
16191 2011-05-03  Jim Meyering  <meyering@redhat.com>
16192
16193         bootstrap: avoid build failure when $GZIP is set
16194         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16195         program name.  If defined at all, it is supposed to list gzip options.
16196         Reported by Alan Curry in http://debbugs.gnu.org/8609
16197
16198 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16199
16200         readme-release: new module with release instructions
16201         * modules/readme-release: New module.
16202         * top/README-release: New file, from coreutils, grep, diffutils.
16203         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16204
16205 2011-05-02  Eric Blake  <eblake@redhat.com>
16206
16207         fflush: also replace fclose when fixing fflush
16208         * modules/fflush (Depends-on): Add fclose.
16209         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16210         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16211         memstreams with no backing fd.
16212         * doc/posix-functions/fclose.texi (fclose): Document the use of
16213         fflush module to fix the bug.
16214         * tests/test-fclose.c (main): Relax test when fclose is used in
16215         isolation.
16216
16217         fclose: add some tests
16218         * modules/fclose-tests: New test module.
16219         * tests/test-fclose.c: New file.
16220         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16221
16222         fclose: reduced dependencies
16223         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16224         simpler lseek.
16225         * lib/fclose.c (rpl_fclose): Likewise.
16226         Reported by Simon Josefsson.
16227
16228         exit: drop remaining clients
16229         * modules/argmatch (Depends-on): Replace exit with stdlib.
16230         * modules/copy-file (Depends-on): Likewise.
16231         * modules/execute (Depends-on): Likewise.
16232         * modules/exitfail (Depends-on): Likewise.
16233         * modules/obstack (Depends-on): Likewise.
16234         * modules/pagealign_alloc (Depends-on): Likewise.
16235         * modules/pipe-filter-gi (Depends-on): Likewise.
16236         * modules/pipe-filter-ii (Depends-on): Likewise.
16237         * modules/savewd (Depends-on): Likewise.
16238         * modules/spawn-pipe (Depends-on): Likewise.
16239         * modules/wait-process (Depends-on): Likewise.
16240         * modules/xsetenv (Depends-on): Likewise.
16241         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16242         * modules/git-merge-changelog (Depends-on): Likewise.
16243         * modules/long-options (Depends-on): Likewise.
16244         * modules/pt_chown (Depends-on): Likewise.
16245         * modules/sysexits (Depends-on): Likewise.
16246
16247         freading: relax license from LGPLv3+ to LGPLv2+
16248         * modules/freading (License): Relax LGPL version.
16249
16250 2011-05-02  Bruno Haible  <bruno@clisp.org>
16251
16252         fchdir: Remove unused dependencies.
16253         * modules/fchdir (Depends-on): Remove include_next.
16254
16255 2011-05-02  Bruno Haible  <bruno@clisp.org>
16256
16257         gnulib-tool: Refactor.
16258         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16259         from func_emit_autoconf_snippets.
16260         (func_emit_autoconf_snippets): Use it.
16261
16262 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16263
16264         * NEWS: Document removal of 'exit'.
16265         * modules/exit: Remove file.
16266
16267 2011-05-01  Bruno Haible  <bruno@clisp.org>
16268
16269         Update DEPENDENCIES.
16270         * DEPENDENCIES (gettext): Recommend the newest release.
16271         Reported by Simon Josefsson.
16272
16273 2011-05-01  Bruno Haible  <bruno@clisp.org>
16274
16275         gnulib-tool: Reduce code duplication.
16276         * gnulib-tool (func_emit_autoconf_snippets): New function.
16277         (func_import, func_create_testdir): Use it.
16278
16279 2011-04-30  Eric Blake  <eblake@redhat.com>
16280
16281         fclose: don't fail on non-seekable input stream
16282         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16283         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16284         since fflush is allowed to fail in that case.
16285
16286 2011-04-30  Bruno Haible  <bruno@clisp.org>
16287
16288         dup3: cleanup
16289         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16290
16291 2011-04-30  Bruno Haible  <bruno@clisp.org>
16292
16293         netdb: Make it work in C++ mode.
16294         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16295         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16296         module.
16297         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16298         gl_MODULE_INDICATOR_FOR_TESTS.
16299         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16300         * modules/netdb-c++-tests: New file.
16301         * tests/test-netdb-c++.cc: New file.
16302
16303 2011-04-30  Bruno Haible  <bruno@clisp.org>
16304
16305         New modules 'vfscanf', 'vscanf'.
16306         * modules/vfscanf: New file.
16307         * modules/vscanf: New file.
16308         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16309         here.
16310         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16311         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16312
16313 2011-04-30  Bruno Haible  <bruno@clisp.org>
16314
16315         passfd: Add comments.
16316         * lib/passfd.c: Add comments about platforms.
16317
16318 2011-04-30  Bruno Haible  <bruno@clisp.org>
16319
16320         sys_uio: Make <sys/uio.h> self-contained.
16321         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16322         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16323
16324 2011-04-30  Bruno Haible  <bruno@clisp.org>
16325
16326         sys_socket: Ensure 'struct iovec' definition.
16327         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16328         <sys/socket.h>.
16329         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16330
16331 2011-04-30  Bruno Haible  <bruno@clisp.org>
16332
16333         sys_uio: Protect definition of 'struct iovec'.
16334         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16335         it as a C struct.
16336
16337 2011-04-30  Bruno Haible  <bruno@clisp.org>
16338
16339         manywarnings: fix indentation
16340         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16341
16342 2011-04-30  Pádraig Brady <P@draigBrady.com>
16343
16344         manywarnings: add -Wno-missing-field-initializers if needed.
16345         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16346         option if it's needed to allow initialization with { 0, }
16347
16348 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16349
16350         announce-gen: cosmetic improvement
16351         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16352
16353 2011-04-29  Jim Meyering  <meyering@redhat.com>
16354
16355         vc-list-files: indent with spaces, not TABs
16356         * build-aux/vc-list-files: Convert leading TABs to spaces,
16357         to match the style of most other files in gnulib.
16358
16359         announce-gen: indent with spaces, not TABs
16360         * build-aux/announce-gen: Convert all TABs to spaces, to match
16361         the style of most other files in gnulib.
16362
16363 2011-04-29  Eric Blake  <eblake@redhat.com>
16364
16365         quotearg: avoid uninitialized variable use
16366         * lib/quotearg.c (quoting_options_from_style): Initialize
16367         remaining fields, and ensure that custom styles are only used via
16368         quoting_options rather than quoting_style.
16369
16370 2011-04-29  Jim Meyering  <meyering@redhat.com>
16371
16372         maint.mk: remove unused VC-tag variable
16373         * top/maint.mk (VC-tag): Remove unused variable.
16374
16375 2011-04-29  Bruno Haible  <bruno@clisp.org>
16376
16377         netdb: fix gai_strerror replacements
16378         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16379         * modules/netdb: Substitute it.
16380
16381 2011-04-29  Jim Meyering  <meyering@redhat.com>
16382
16383         test-getcwd.c: avoid new set-but-not-used warning
16384         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16385         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16386         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16387         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16388
16389         test-hash.c: avoid a new shadowing warning
16390         * tests/test-hash.c (main): Don't shadow "dup".
16391
16392 2011-04-28  Eric Blake  <eblake@redhat.com>
16393
16394         getaddrinfo: fix gai_strerror signature
16395         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16396         and work around mingw with UNICODE defined.
16397         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16398         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16399         * modules/netdb (Makefile.am): Substitute it.
16400         * lib/netdb.in.h (gai_strerror): Declare replacement.
16401         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16402         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16403         the fix.
16404
16405         getsockopt: avoid compiler warning
16406         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16407         Reported by Matthias Bolte.
16408
16409         tests: drop unused link dependency
16410         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16411         * modules/dirent-safer-tests (Makefile.am): Likewise.
16412         * modules/fdopendir-tests (Makefile.am): Likewise.
16413         * modules/mkfifoat-tests (Makefile.am): Likewise.
16414         * modules/openat-safer-tests (Makefile.am): Likewise.
16415         * modules/openat-tests (Makefile.am): Likewise.
16416         * modules/readlinkat-tests (Makefile.am): Likewise.
16417         * modules/symlinkat-tests (Makefile.am): Likewise.
16418         * modules/linkat-tests (Makefile.am): Likewise.
16419         (Depends-on): Switch to filenamecat-lgpl.
16420         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16421         LIBINTL.
16422         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16423         * tests/test-linkat.c (main): Don't require xalloc.
16424
16425         hash, mgetgroups: drop xalloc dependency
16426         * lib/hash.c (includes): Adjust includes.
16427         * lib/mgetgroups.c (includes): Likewise.
16428         (xgetgroups): Move...
16429         * lib/xgetgroups.c: ...to new file.
16430         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16431         * modules/xgetgroups: New file, split from...
16432         * modules/mgetgroups: ...here.
16433         (Depends-on): Add xalloc-oversized.
16434         * modules/hash (Depends-on): Likewise.
16435         * modules/hash-tests (Depends-on): Drop xalloc.
16436         (test_hash_LDADD): Drop unused library.
16437         * tests/test-hash.c (main): Break xalloc dependency.
16438         (includes): Drop unused include.
16439
16440         xalloc-oversized: new module
16441         * modules/xalloc-oversized: New module.
16442         * modules/xalloc (Depends-on): Add it.
16443         * lib/xalloc.h (xalloc_oversized): Move...
16444         * lib/xalloc-oversized.h: ...into new file.
16445
16446         utimecmp: drop dependency on xmalloc
16447         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16448         due to memory pressure.
16449         * modules/utimecmp (Depends-on): Drop xalloc.
16450
16451 2011-04-27  Eric Blake  <eblake@redhat.com>
16452
16453         getcwd: fix mingw bugs
16454         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16455         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16456         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16457
16458 2011-04-27  Bruno Haible  <bruno@clisp.org>
16459
16460         mkstemps: Ensure declaration on MacOS X 10.5.
16461         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16462         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16463         MacOS X.
16464
16465 2011-04-27  Bruno Haible  <bruno@clisp.org>
16466
16467         mkstemp: More documentation.
16468         * doc/posix-functions/mkstemp.texi: Document header file problem on
16469         MacOS X.
16470
16471 2011-04-27  Bruno Haible  <bruno@clisp.org>
16472
16473         mkstemp: Tweak configure message when cross-compiling.
16474         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16475         result as a guess.
16476
16477 2011-04-27  Bruno Haible  <bruno@clisp.org>
16478
16479         clean-temp: Clarify what it does.
16480         * lib/clean-temp.h: Add more comments.
16481         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16482         module.
16483         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16484         * doc/glibc-functions/mkstemps.texi: Likewise.
16485         * doc/glibc-functions/mkostemps.texi: Likewise.
16486
16487 2011-04-27  Eric Blake  <eblake@redhat.com>
16488
16489         fchdir: avoid extra chdir and fix test
16490         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16491         getcwd-lgpl.
16492         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16493         have to be canonical.
16494         (canonicalize_file_name): Drop unused macro.
16495         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16496
16497         filenamecat-lgpl: fix licence
16498         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16499         when it was first created.
16500
16501         linkat, renameat: add missing dependency
16502         * modules/linkat (Depends-on): Require getcwd-lgpl.
16503         * modules/renameat (Depends-on): Likewise.
16504
16505         tests: reduce dependencies
16506         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16507         * tests/test-renameat.c (main): Likewise.
16508         * modules/linkat-tests (Depends-on): Relax dependency.
16509         * modules/renameat-tests (Depends-on): Likewise.
16510         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16511         dependency explicit.
16512
16513         save-cwd: reduce default dependency
16514         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16515         * lib/save-cwd.c: Update comments.
16516         * NEWS: Document the semantic change.
16517
16518         getcwd: enhance tests
16519         * tests/test-getcwd-lgpl.c: New file, taken from...
16520         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16521         repeat long path stress tests from m4 probe.
16522         * modules/getcwd-lgpl-tests: New module.
16523         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16524         * m4/getcwd-abort-bug.m4: Update comment.
16525         * m4/getcwd-path-max.m4: Likewise.
16526
16527         getcwd-lgpl: new module
16528         * modules/getcwd-lgpl: New module.
16529         * lib/getcwd-lgpl.c: New file.
16530         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16531         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16532         * modules/getcwd (configure.ac): Set C witness.
16533         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16534
16535         getcwd: tweak comments
16536         * m4/getcwd-abort-bug.m4: Fix comments.
16537         * m4/getcwd-path-max.m4: Likewise.
16538         * m4/getcwd.m4: Likewise.
16539
16540 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16541         and Eric Blake  <eblake@redhat.com>
16542
16543         mkstemp: replace if system version uses wrong permissions
16544         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16545         read/write mode bits set in file created by mkstemp.
16546         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16547
16548 2011-04-27  Eric Blake  <eblake@redhat.com>
16549
16550         passfd: avoid compiler warning
16551         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16552         Reported by Laine Stump.
16553
16554 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16555
16556         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16557         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16558
16559 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16560         and Eric Blake  <eblake@redhat.com>
16561
16562         mkstemp: mention clean-temp module
16563         * lib/mkstemp.c: Add comment.
16564         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16565
16566 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16567
16568         inttypes: also provide default values for 32-bit tests
16569         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16570         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16571
16572 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16573
16574         strtoumax: remove dependency on strtoimax
16575         This is like the strtoull change of yesterday.
16576         * modules/strtoumax (Files): Add lib/strtoimax.c.
16577         (Depends-on): Remove strtoimax and add verify.
16578
16579         inttypes-incomplete: new module
16580         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16581         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16582         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16583         of gl_INTTYPES_H.
16584         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16585         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16586         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16587         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16588         * modules/strtoumax, modules/xstrtol (Depends-on):
16589         Depend on inttypes-incomplete, not inttypes.
16590         * modules/inttypes-incomplete: New module, containing the contents
16591         of the old modules/inttypes module, except that the Files: section
16592         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16593         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16594         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16595         (Depends-on): Depend only on inttypes-incomplete.
16596         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16597
16598         inttypes: omit now-redundant strtoimax and strtoumax work
16599         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16600         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16601
16602         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16603         This supports apps that need pointers to strtoimax and strtoumax,
16604         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16605         nonexistent functions.  See
16606         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16607         et seq.
16608         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16609         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16610         a macro.
16611         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16612
16613 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16614
16615         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16616
16617 2011-04-25  Bruno Haible  <bruno@clisp.org>
16618
16619         strtol, strtoul: Mark modules as obsolete.
16620         * modules/strtol (Status, Notice): New sections.
16621         * modules/strtoul (Status, Notice): New sections.
16622
16623 2011-04-25  Bruno Haible  <bruno@clisp.org>
16624
16625         strtod: Remove check for strtod, unless supporting old platforms.
16626         * modules/strtod-obsolete: New file.
16627         * m4/strtod-obsolete.m4: New file.
16628         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16629         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16630         * modules/strtod (Depends-on): Add strtod-obsolete.
16631         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16632
16633 2011-04-25  Bruno Haible  <bruno@clisp.org>
16634
16635         strcase: Make module obsolete.
16636         * modules/strcase (Status, Notice): New sections.
16637
16638 2011-04-25  Bruno Haible  <bruno@clisp.org>
16639
16640         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16641         * modules/dup2-obsolete: New file.
16642         * m4/dup2-obsolete.m4: New file.
16643         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16644         gl_FUNC_DUP2_OBSOLETE is not also defined.
16645         * modules/dup2 (Depends-on): Add dup2-obsolete.
16646         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16647
16648 2011-04-25  Bruno Haible  <bruno@clisp.org>
16649
16650         strnlen: Avoid memchr related link error on old obsolete platforms.
16651         * modules/memchr-obsolete: New file.
16652         * m4/memchr-obsolete.m4: New file.
16653         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16654         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16655         * modules/memchr (Depends-on): Add memchr-obsolete.
16656         * modules/strnlen (Depends-on): Likewise.
16657         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16658
16659 2011-04-25  Jim Meyering  <meyering@redhat.com>
16660
16661         maint.mk: makefile_at_at_check extend and clean up
16662         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16663         in addition to */Makefile.am.
16664         Exempt legitimate uses of @VAR@ notation, e.g.,
16665         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16666         Remove obsolete coreutils-specific comment.
16667         Prompted by discussion here:
16668         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16669
16670 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16671
16672         strtoul: remove dependency on strtol
16673         This is so that 'configure' need not check for strtol merely because
16674         the application needs strtoul.
16675         * modules/strtoul (Files): Add lib/strtol.c.
16676         (Depends-on): Remove strtol.
16677
16678         strtoull: remove dependency on strtoul
16679         This is like the strtoll change.
16680         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16681         (Depends-on): Remove strtoul.
16682
16683         strtoll: remove dependency on strtol
16684         This is so that 'configure' need not check for strtol merely because
16685         the application needs strtoll.
16686         * modules/strtoll (Files): Add lib/strtol.c.
16687         (Depends-on): Remove strtol.
16688
16689 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16690
16691         inttypes: Move some configure check to module 'imaxdiv'.
16692         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16693         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16694         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16695
16696 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16697
16698         inttypes: Move some configure check to module 'imaxabs'.
16699         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16700         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16701         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16702
16703 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16704
16705         inttypes: Remove configure tests that are not needed since 2009-12-31.
16706         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16707         gl_cv_header_working_inttypes_h.
16708
16709 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16710
16711         * modules/strnlen (Depends-on): Remove memchr.
16712         The strnlen implementation doesn't need the memchr module's fixes; see
16713         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16714
16715         strtol: remove dependency on wchar
16716         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16717         * modules/strtol (Depends-on): Remove wchar.
16718
16719 2011-04-21  Eric Blake  <eblake@redhat.com>
16720
16721         passfd: fix test regression on Linux
16722         * modules/passfd-tests (configure.ac): Correct socketpair check.
16723
16724         passfd: speed up configure and drop unused code
16725         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16726         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16727         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16728         Instead of probing at configure for unix_scm_rights_bsd44_way,
16729         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16730         check to a struct member probe.
16731         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16732         (sendfd, recvfd): Update preprocessor checks.
16733         * modules/passfd (Files): Reflect rename, and drop unused file.
16734         (Depends-on): Drop unused dependency.
16735
16736         passfd: allow compilation on mingw
16737         * modules/sys_socket (Depends-on): Add sys_uio.
16738         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16739         iovec and a minimal struct msghdr.
16740         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16741         * tests/test-sys_socket.c (main): Enhance test.
16742         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16743         guaranteed to provide what we need.
16744         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16745         * modules/passfd-tests (Depends-on): Add sys_wait.
16746         * tests/test-passfd.c (main): Skip test on mingw, for now.
16747         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16748         partial 'struct msghdr' implementation.
16749
16750         sys_uio: new module
16751         * modules/sys_uio: New module.
16752         * modules/sys_uio-tests: Likewise.
16753         * lib/sys_uio.in.h: New file.
16754         * m4/sys_uio_h.m4: Likewise.
16755         * tests/test-sys_uio.c: Likewise.
16756         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16757         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16758
16759 2011-04-20  Jim Meyering  <meyering@redhat.com>
16760
16761         useless-if-before-free: avoid false-positive
16762         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16763         disjunct so that it too requires a terminating ";".  Without that,
16764         this script would identify as useless one statement from gcc that
16765         was not:
16766           if (aligned_ptr)
16767             free (((void **) aligned_ptr) [-1]);
16768
16769 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16770
16771         doc: update users.txt.
16772         * users.txt: Add barcode.
16773
16774 2011-04-19  Bruno Haible  <bruno@clisp.org>
16775
16776         ioctl: Remove link dependency on native Windows.
16777         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16778         (gl_close_fn, gl_ioctl_fn): New types.
16779         (struct fd_hook): Renamed from struct close_hook. Change type of
16780         private_close_fn field. Add private_ioctl_fn field.
16781         (close_hook_fn): Add parameter for primary close method.
16782         (execute_close_hooks, execute_all_close_hooks): Likewise.
16783         (ioctl_hook_fn): New type.
16784         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16785         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16786         argument.
16787         (unregister_fd_hook): Renamed from unregister_close_hook.
16788         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16789         Don't include <unistd.h>.
16790         (close): Remove undef.
16791         (anchor): Update.
16792         (execute_close_hooks): Add argument for primary close method.
16793         (execute_all_close_hooks): Likewise.
16794         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16795         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16796         argument. Allow each argument to be NULL.
16797         (unregister_fd_hook): Renamed from unregister_close_hook.
16798         * lib/close.c (rpl_close): Pass 'close' function pointer to
16799         execute_all_close_hooks.
16800         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16801         (primary_ioctl): New function.
16802         (ioctl): Don't call ioctlsocket here. Instead, call
16803         execute_all_ioctl_hooks.
16804         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16805         close method.
16806         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16807         (fd_sockets_hook): Renamed from close_sockets_hook.
16808         (gl_sockets_startup, gl_sockets_cleanup): Update.
16809         * modules/fd-hook: Renamed from modules/close-hook. Update.
16810         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16811         * modules/sockets (Depends-on): Likewise.
16812         * modules/ioctl (Depends-on): Add fd-hook.
16813         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16814         GNULIB_SOCKET.
16815
16816 2011-04-19  Bruno Haible  <bruno@clisp.org>
16817
16818         Move the support of O_NONBLOCK in open() to the 'open' module.
16819         * modules/nonblocking (Depends-on): Remove 'open'.
16820         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16821         gl_cv_have_open_O_NONBLOCK.
16822         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16823         O_NONBLOCK support.
16824         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16825
16826 2011-04-17  Bruno Haible  <bruno@clisp.org>
16827
16828         pipe2: Simplify code.
16829         * lib/pipe2.c (pipe2): Reduce code duplication.
16830
16831 2011-04-17  Bruno Haible  <bruno@clisp.org>
16832
16833         nonblocking: Add comment.
16834         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
16835
16836 2011-04-17  Bruno Haible  <bruno@clisp.org>
16837
16838         nonblocking: Add tests for sockets.
16839         * tests/test-nonblocking-socket.sh: New file.
16840         * tests/test-nonblocking-socket-main.c: New file.
16841         * tests/test-nonblocking-socket-child.c: New file.
16842         * tests/test-nonblocking-socket.h: New file.
16843         * tests/socket-server.h: New file.
16844         * tests/socket-client.h: New file.
16845         * modules/nonblocking-socket-tests: New file.
16846         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
16847
16848 2011-04-17  Bruno Haible  <bruno@clisp.org>
16849
16850         nonblocking: Add tests for pipes.
16851         * tests/test-nonblocking-pipe.sh: New file.
16852         * tests/test-nonblocking-pipe-main.c: New file.
16853         * tests/test-nonblocking-pipe-child.c: New file.
16854         * tests/test-nonblocking-pipe.h: New file.
16855         * tests/test-nonblocking-writer.h: New file.
16856         * tests/test-nonblocking-reader.h: New file.
16857         * tests/test-nonblocking-misc.h: New file.
16858         * modules/nonblocking-pipe-tests: New file.
16859         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
16860
16861 2011-04-16  Bruno Haible  <bruno@clisp.org>
16862
16863         gettext: Clarify the needed programmer actions.
16864         * modules/gettext (Notice): New field.
16865         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16866
16867 2011-04-16  Bruno Haible  <bruno@clisp.org>
16868
16869         strchrnul: Tweak last commit.
16870         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
16871         bug.
16872         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
16873         as in _GL_FUNCDECL_SYS.
16874         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
16875         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
16876
16877 2011-04-15  Eric Blake  <eblake@redhat.com>
16878
16879         strchrnul: work around cygwin bug
16880         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
16881         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
16882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
16883         * modules/string (Makefile.am): Substitute it.
16884         * lib/string.in.h (strchrnul): Use it.
16885
16886 2011-04-15  Bruno Haible  <bruno@clisp.org>
16887
16888         Don't require lib/stdio-write.c when only module 'stdio' is used.
16889         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
16890         invocation.
16891         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
16892
16893 2011-04-14  Bruno Haible  <bruno@clisp.org>
16894
16895         Support non-blocking pipe I/O in read() on native Windows.
16896         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
16897         (read): New declaration.
16898         * lib/read.c: New file.
16899         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
16900         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
16901         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
16902         vscanf): New declarations.
16903         * lib/stdio-read.c: New file.
16904         * m4/read.m4: New file.
16905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
16906         REPLACE_READ.
16907         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
16908         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16909         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
16910         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
16911         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
16912         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16913         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16914         * modules/read: New file.
16915         * modules/nonblocking (Files): Add lib/stdio-read.c.
16916         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
16917         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
16918         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16919         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16920         * modules/pread (Depends-on): Add read.
16921         * modules/safe-read (Depends-on): Likewise.
16922         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
16923         gets, scanf, vfscanf, vscanf): Verify signatures.
16924         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
16925         problem with non-blocking pipes.
16926         * doc/posix-functions/fgetc.texi: Likewise.
16927         * doc/posix-functions/fgets.texi: Likewise.
16928         * doc/posix-functions/fread.texi: Likewise.
16929         * doc/posix-functions/fscanf.texi: Likewise.
16930         * doc/posix-functions/getc.texi: Likewise.
16931         * doc/posix-functions/getchar.texi: Likewise.
16932         * doc/posix-functions/gets.texi: Likewise.
16933         * doc/posix-functions/scanf.texi: Likewise.
16934         * doc/posix-functions/vfscanf.texi: Likewise.
16935         * doc/posix-functions/vscanf.texi: Likewise.
16936
16937 2011-04-14  Bruno Haible  <bruno@clisp.org>
16938
16939         Support non-blocking pipe I/O in write() on native Windows.
16940         * lib/write.c (rpl_write): Split a write request that failed merely
16941         because the byte count was larger than the pipe buffer's size.
16942         * doc/posix-functions/write.texi: Mention the problem with large byte
16943         counts.
16944
16945 2011-04-14  Bruno Haible  <bruno@clisp.org>
16946
16947         wchar: Ensure that wchar_t gets defined on uClibc.
16948         * lib/wchar.in.h: On uClibc, include <stddef.h>.
16949         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
16950
16951 2011-04-13  Bruno Haible  <bruno@clisp.org>
16952
16953         safe-write, full-read: Avoid unnecessary compilation units.
16954         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
16955         (Depends-on): Remove safe-read. Add ssize_t.
16956         * modules/full-read (Files): Add lib/full-write.c.
16957         (Depends-on): Add full-write.
16958
16959 2011-04-13  Bruno Haible  <bruno@clisp.org>
16960
16961         Support non-blocking pipe I/O and SIGPIPE in pwrite().
16962         * modules/pwrite (Depends-on): Add 'write'.
16963
16964 2011-04-13  Bruno Haible  <bruno@clisp.org>
16965
16966         Support non-blocking pipe I/O in write() on native Windows.
16967         * lib/unistd.in.h (write): Enable replacement also if
16968         GNULIB_UNISTD_H_NONBLOCKING is 1.
16969         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
16970         (rpl_write): When failing to write on a non-blocking pipe, change
16971         errno from ENOSPC to EAGAIN.
16972         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
16973         putchar, puts, vfprintf, vprintf): Enable replacement also if
16974         GNULIB_STDIO_H_NONBLOCKING is 1.
16975         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
16976         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
16977         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
16978         CALL_WITH_SIGPIPE_EMULATION.
16979         (CALL_WITH_SIGPIPE_EMULATION): Use them.
16980         * m4/nonblocking.m4: New file.
16981         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
16982         for non-blocking I/O support.
16983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16984         GNULIB_UNISTD_H_NONBLOCKING.
16985         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
16986         required for non-blocking I/O support.
16987         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
16988         * modules/nonblocking (Files): Add m4/nonblocking.m4,
16989         lib/stdio-write.c, m4/asm-underscore.m4.
16990         (Depends-on): Add stdio, unistd.
16991         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
16992         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
16993         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
16994         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
16995         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
16996         problem with non-blocking pipes.
16997         * doc/posix-functions/fputc.texi: Likewise.
16998         * doc/posix-functions/fputs.texi: Likewise.
16999         * doc/posix-functions/fwrite.texi: Likewise.
17000         * doc/posix-functions/printf.texi: Likewise.
17001         * doc/posix-functions/putc.texi: Likewise.
17002         * doc/posix-functions/putchar.texi: Likewise.
17003         * doc/posix-functions/puts.texi: Likewise.
17004         * doc/posix-functions/vfprintf.texi: Likewise.
17005         * doc/posix-functions/vprintf.texi: Likewise.
17006         * doc/posix-functions/write.texi: Likewise.
17007
17008 2011-04-10  Jim Meyering  <meyering@redhat.com>
17009
17010         maint.mk: prohibit doubled words
17011         Detect them also when they're separated by a newline.
17012         There are 3 ways to customize it:
17013           - disable the test on a per file basis, as usual with rules using
17014             $(VC_LIST_EXCEPT)
17015           - replace the default doubled-word-selecting regexp (affects all files)
17016           - ignore a particular file-vs-doubled-word match
17017         I nearly used that last one to ignore the "is is" match in
17018         coreutils' NEWS file, since the text was "ls -is is ..."
17019         To do that, I would have added this line to cfg.mk:
17020           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17021         but it would have ignored any "is is" match in NEWS.
17022         Low probability, but still...
17023         Instead, I changed the text, slightly:
17024           -  ls -is is now consistent with ls -lis in ignoring values returned
17025           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17026         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17027         (prohibit_doubled_word_): Define.
17028         (sc_prohibit_doubled_word): New rule.
17029         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17030
17031 2011-04-10  Jim Meyering  <meyering@redhat.com>
17032
17033         maint: fix doubled-word typo in comment
17034         * m4/gethostname.m4: s/is is/it is/
17035         * m4/getdomainname.m4: Likewise.
17036
17037 2011-04-10  Jim Meyering  <meyering@redhat.com>
17038
17039         maint: remove doubled word: s/it it/it/
17040         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17041
17042 2011-04-10  Jim Meyering  <meyering@redhat.com>
17043
17044         maint.mk: remove useless semicolon and backslash
17045         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17046         semicolon and backslash.
17047
17048 2011-04-10  Bruno Haible  <bruno@clisp.org>
17049
17050         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17051         * modules/stdint-tests (Depends-on): Add wchar.
17052
17053 2011-04-10  Jim Meyering  <meyering@redhat.com>
17054
17055         maint: remove doubled words in comments, e.g., s/a a/a/
17056         * lib/strptime.c (day_of_the_week): s/the the/the/
17057         * tests/test-chown.h (test_chown): s/a a/a/
17058
17059         test-chown.h: correct a cast
17060         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17061         when the destination is a stat.st_gid.
17062
17063 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17064
17065         getaddrinfo: Fix test for sa_len member.
17066         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17067         include <sys/types.h> before <sys/socket.h>.
17068
17069 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17070
17071         maint: change "can not" to "cannot"
17072         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17073         boundaries.
17074
17075 2011-04-09  Jim Meyering  <meyering@redhat.com>
17076
17077         maint: change "a a" to "a"
17078         * tests/test-lchown.h (test_lchown): s/a a/a/
17079
17080         maint.mk: prohibit \<the the\>
17081         * top/maint.mk (sc_prohibit_the_the): New rule.
17082
17083         maint: fix "the the" in comment
17084         * lib/count-one-bits.h: s/the the/the/
17085
17086         maint: change "can not" to "cannot"
17087         But do not change the occurrences in maintain.texi or in
17088         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17089         * doc/gnulib-tool.texi: s/can not/cannot/
17090         * doc/posix-functions/accept.texi (accept): Likewise.
17091         * doc/posix-functions/socket.texi (socket): Likewise.
17092         * lib/mbrtowc.c: Likewise.
17093
17094         maint.mk: prohibit use of "can not"
17095         * top/maint.mk (sc_prohibit_can_not): New rule.
17096         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17097
17098 2011-04-09  Bruno Haible  <bruno@clisp.org>
17099
17100         careadlinkat: Guard against misuse of careadlinkatcwd.
17101         * lib/careadlinkat.c: Include <stdlib.h>.
17102         (careadlinkatcwd): Check that the fd argument is as expected.
17103
17104 2011-04-09  Bruno Haible  <bruno@clisp.org>
17105
17106         careadlinkat: Use common coding style.
17107         * lib/careadlinkat.c: Move gnulib includes after system includes.
17108
17109 2011-04-09  Bruno Haible  <bruno@clisp.org>
17110
17111         careadlinkat: Clarify specification.
17112         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17113         (careadlinkatcwd): Add comment.
17114         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17115
17116 2011-04-09  Bruno Haible  <bruno@clisp.org>
17117
17118         areadlinkat: Avoid link error on many platforms.
17119         * modules/areadlinkat (Depends-on): Add areadlink.
17120
17121 2011-04-09  Bruno Haible  <bruno@clisp.org>
17122
17123         allocator, careadlinkat: Fix double-inclusion guard.
17124         * lib/allocator.h: Fix double-inclusion guard.
17125         * lib/careadlinkat.h: Likewise.
17126
17127 2011-04-09  Bruno Haible  <bruno@clisp.org>
17128
17129         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17130         * lib/relocwrapper.c: Update dependencies hierarchy.
17131         * build-aux/install-reloc: Update list of files to be compiled.
17132         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17133         lib/allocator.[hc].
17134
17135 2011-04-08  Eric Blake  <eblake@redhat.com>
17136
17137         strftime: silence gnulib-tool warning
17138         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17139
17140 2011-04-08  Bruno Haible  <bruno@clisp.org>
17141
17142         verify: Fix syntax error with GCC 4.6 in C++ mode.
17143         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17144         (HAVE_STATIC_ASSERT): New macro.
17145         (verify_true, verify): Use 'static_assert' if it is supported and
17146         '_Static_assert' is not supported.
17147
17148 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17149
17150         allocator: New module.
17151         * modules/allocator, lib/allocator.c: New files.
17152         * lib/allocator.h (stdlib_allocator): New decl.
17153         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17154         Remove.  Do not include <stdlib.h>.
17155         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17156         * modules/careadlinkat (Files): Remove lib/allocator.h.
17157         (Depends-on): Add allocator.
17158
17159         stdlib: let modules use system malloc, realloc
17160         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17161         if !_GL_USE_STDLIB_ALLOC.
17162         (malloc, realloc): Limit this change to a smaller scope.
17163
17164         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17165         (malloc, realloc): Don't #undef; no longer needed.
17166         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17167         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17168         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17169         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17170         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17171         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17172         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17173         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17174
17175         careadlinkat: rename members to avoid problem
17176         * lib/allocator.h (struct allocator): Rename members from
17177         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17178         and realloc are #define'd.  Reported by Eric Blake in
17179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17180         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17181
17182 2011-04-08  Eric Blake  <eblake@redhat.com>
17183
17184         nonblocking: reduce dependency
17185         * tests/test-nonblocking.c: Only test sockets when in use.
17186         * modules/nonblocking-tests (Depends-on): Drop socket.
17187         (Makefile.am): Link even if sockets are not present.
17188         * modules/pipe2-tests (Makefile.am): Likewise.
17189         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17190
17191         pipe2: fix O_NONBLOCK support on mingw
17192         * modules/pipe2 (Depends-on): Add nonblocking.
17193         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17194         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17195         * tests/test-nonblocking.c (main): Likewise.
17196         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17197
17198         fcntl-h: fix O_ACCMODE on cygwin
17199         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17200         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17201
17202         pipe-filter: drop O_NONBLOCK workarounds
17203         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17204         * modules/pipe-filter-ii (Depends-on): Likewise.
17205         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17206
17207         nonblocking: provide O_NONBLOCK for mingw
17208         * modules/nonblocking (Depends-on): Add open.
17209         (configure.ac): Set new witness macro.
17210         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17211         * modules/fcntl-h (Makefile.am): Substitute it.
17212         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17213         nonblocking module is in use.
17214         * lib/nonblocking.c: Adjust portability test.
17215         * lib/open.c (open): Don't let native open see gnulib flag.
17216         * tests/test-fcntl-h.c (main): Enhance test.
17217         * tests/test-open.h (test_open): Likewise.
17218         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17219
17220         careadlinkat: fix compilation error on mingw
17221         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17222         within struct allocator.
17223
17224 2011-04-06  Eric Blake  <eblake@redhat.com>
17225
17226         binary-io: relicense under LGPLv2+
17227         * modules/binary-io (License): Relax to LGPLv2+.
17228         Requested for libvirt, and required by pipe2.
17229
17230 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17231
17232         verify: use _Static_assert if available
17233         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17234         (verify_true, verify): Use it if available.  This generates better
17235         diagnostics with GCC 4.6.0 and later.
17236
17237 2011-04-05  Bruno Haible  <bruno@clisp.org>
17238
17239         Remove leftover generated .h files after config.status changed.
17240
17241         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17242         GL_GENERATE_ALLOCA_H.
17243         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17244         GL_GENERATE_ALLOCA_H evaluates to false.
17245
17246         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17247         GL_GENERATE_ARGZ_H.
17248         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17249         evaluates to false.
17250
17251         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17252         GL_GENERATE_BYTESWAP_H.
17253         * modules/byteswap (Makefile.am): Remove byteswap.h if
17254         GL_GENERATE_BYTESWAP_H evaluates to false.
17255
17256         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17257         GL_GENERATE_ERRNO_H.
17258         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17259         evaluates to false.
17260
17261         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17262         GL_GENERATE_FLOAT_H.
17263         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17264         evaluates to false.
17265
17266         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17267         GL_GENERATE_FNMATCH_H.
17268         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17269         GL_GENERATE_FNMATCH_H evaluates to false.
17270
17271         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17272         GL_GENERATE_GLOB_H.
17273         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17274         evaluates to false.
17275
17276         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17277         automake conditional GL_GENERATE_ICONV_H.
17278         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17279         evaluates to false.
17280
17281         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17282         GL_GENERATE_NETINET_IN_H.
17283         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17284         GL_GENERATE_NETINET_IN_H evaluates to false.
17285
17286         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17287         conditional GL_GENERATE_PTHREAD_H.
17288         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17289         * modules/pthread (Makefile.am): Remove pthread.h if
17290         GL_GENERATE_PTHREAD_H evaluates to false.
17291
17292         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17293         GL_GENERATE_SCHED_H.
17294         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17295         evaluates to false.
17296
17297         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17298         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17299         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17300         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17301
17302         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17303         GL_GENERATE_STDARG_H.
17304         * modules/stdarg (Makefile.am): Remove stdarg.h if
17305         GL_GENERATE_STDARG_H evaluates to false.
17306
17307         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17308         GL_GENERATE_STDBOOL_H.
17309         * modules/stdbool (Makefile.am): Remove stdbool.h if
17310         GL_GENERATE_STDBOOL_H evaluates to false.
17311
17312         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17313         conditional GL_GENERATE_STDDEF_H.
17314         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17315         * modules/stddef (Makefile.am): Remove stddef.h if
17316         GL_GENERATE_STDDEF_H evaluates to false.
17317
17318         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17319         GL_GENERATE_STDINT_H.
17320         * modules/stdint (Makefile.am): Remove stdint.h if
17321         GL_GENERATE_STDINT_H evaluates to false.
17322
17323         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17324         GL_GENERATE_SYSEXITS_H.
17325         * modules/sysexits (Makefile.am): Remove sysexits.h if
17326         GL_GENERATE_SYSEXITS_H evaluates to false.
17327
17328         Reported by Karl Berry and Ralf Wildenhues.
17329
17330 2011-04-05  Bruno Haible  <bruno@clisp.org>
17331
17332         Ensure to rebuild generated .h files when config.status has changed.
17333         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17334         config.status.
17335         * modules/ctype (Makefile.am): Likewise.
17336         * modules/dirent (Makefile.am): Likewise.
17337         * modules/errno (Makefile.am): Likewise.
17338         * modules/fcntl-h (Makefile.am): Likewise.
17339         * modules/float (Makefile.am): Likewise.
17340         * modules/getopt-posix (Makefile.am): Likewise.
17341         * modules/glob (Makefile.am): Likewise.
17342         * modules/iconv-h (Makefile.am): Likewise.
17343         * modules/inttypes (Makefile.am): Likewise.
17344         * modules/langinfo (Makefile.am): Likewise.
17345         * modules/locale (Makefile.am): Likewise.
17346         * modules/math (Makefile.am): Likewise.
17347         * modules/netdb (Makefile.am): Likewise.
17348         * modules/netinet_in (Makefile.am): Likewise.
17349         * modules/poll-h (Makefile.am): Likewise.
17350         * modules/pthread (Makefile.am): Likewise.
17351         * modules/pty (Makefile.am): Likewise.
17352         * modules/sched (Makefile.am): Likewise.
17353         * modules/search (Makefile.am): Likewise.
17354         * modules/selinux-h (Makefile.am): Likewise.
17355         * modules/signal (Makefile.am): Likewise.
17356         * modules/spawn (Makefile.am): Likewise.
17357         * modules/stdarg (Makefile.am): Likewise.
17358         * modules/stdbool (Makefile.am): Likewise.
17359         * modules/stddef (Makefile.am): Likewise.
17360         * modules/stdint (Makefile.am): Likewise.
17361         * modules/stdio (Makefile.am): Likewise.
17362         * modules/stdlib (Makefile.am): Likewise.
17363         * modules/string (Makefile.am): Likewise.
17364         * modules/strings (Makefile.am): Likewise.
17365         * modules/sys_file (Makefile.am): Likewise.
17366         * modules/sys_ioctl (Makefile.am): Likewise.
17367         * modules/sys_select (Makefile.am): Likewise.
17368         * modules/sys_socket (Makefile.am): Likewise.
17369         * modules/sys_stat (Makefile.am): Likewise.
17370         * modules/sys_time (Makefile.am): Likewise.
17371         * modules/sys_times (Makefile.am): Likewise.
17372         * modules/sys_utsname (Makefile.am): Likewise.
17373         * modules/sys_wait (Makefile.am): Likewise.
17374         * modules/sysexits (Makefile.am): Likewise.
17375         * modules/termios (Makefile.am): Likewise.
17376         * modules/time (Makefile.am): Likewise.
17377         * modules/unistd (Makefile.am): Likewise.
17378         * modules/wchar (Makefile.am): Likewise.
17379         * modules/wctype-h (Makefile.am): Likewise.
17380         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17381
17382 2011-04-05  Bruno Haible  <bruno@clisp.org>
17383
17384         pipe2: Relicense under LGPLv2+.
17385         * modules/pipe2 (License): Change to LGPLv2+.
17386         Requested by Eric Blake, for libvirt.
17387
17388 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17389
17390         bootstrap: compute gnulib_extra_files after updating build_aux
17391         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17392         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17393
17394 2011-04-05  Eric Blake  <eblake@redhat.com>
17395
17396         bootstrap: preserve git whitelist item sorting
17397         * build-aux/bootstrap (sort_patterns): New function.
17398         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17399
17400 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17401
17402         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17403         sc_space_tab check.
17404
17405 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17406
17407         areadlink, areadlinkat: rewrite in terms of careadlinkat
17408         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17409         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17410         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17411         (malloc, realloc): Remove #undefs.
17412         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17413         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17414         readlink, ssize_t, stdint, unistd.
17415         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17416         areadlink, stdint.
17417
17418         careadlinkat: new module
17419         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17420         * modules/careadlinkat: New files, written by me with
17421         a review and feedback from Ben Pfaff in
17422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17423
17424 2011-04-01  Bruno Haible  <bruno@clisp.org>
17425
17426         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17427         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17428         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17429         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17430         Reported by Bruce Korb <bruce.korb@gmail.com>.
17431
17432 2011-04-01  Bruno Haible  <bruno@clisp.org>
17433
17434         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17435         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17436         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17437         * modules/wcpcpy (Depends-on): Add extensions.
17438         * modules/wcpncpy (Depends-on): Likewise.
17439         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17440         systems.
17441         * doc/posix-functions/wcpncpy.texi: Likewise.
17442         * doc/posix-functions/wcwidth.texi: Likewise.
17443
17444 2011-03-31  Eric Blake  <eblake@redhat.com>
17445
17446         nonblocking: fix mingw test failures
17447         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17448         non-blocking flag on regular file.
17449         (get_nonblocking_flag): Set errno on invalid fd.
17450         * tests/test-nonblocking.c (main): Avoid test failure on
17451         directories if fchdir is not active.
17452         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17453
17454 2011-03-31  Bruno Haible  <bruno@clisp.org>
17455
17456         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17457         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17458         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17459         Reported by Simon Josefsson <simon@josefsson.org>.
17460
17461 2011-03-31  Bruno Haible  <bruno@clisp.org>
17462         and Eric Blake  <eblake@redhat.com>
17463
17464         nonblocking: new module
17465         * modules/nonblocking: New module.
17466         * modules/nonblocking-tests: Likewise.
17467         * lib/nonblocking.h: New file.
17468         * lib/nonblocking.c: Likewise.
17469         * tests/test-nonblocking.c: New test.
17470         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17471
17472 2011-03-30  Bruno Haible  <bruno@clisp.org>
17473
17474         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17475         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17476         instead of 'printf' format for GCC >= 4.4.
17477         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17478         (fprintf, printf, vfprintf, vprintf): Declare with
17479         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17480         the system's vfprintf() function.
17481         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17482
17483 2011-03-30  Eric Blake  <eblake@redhat.com>
17484
17485         passfd: fix scoping bug
17486         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17487         before sendmsg/recvmsg.
17488
17489         passfd: standardize coding conventions
17490         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17491         can be learned at compile time.
17492         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17493         ifdefs.
17494         (sendfd, recvfd): Follow gnulib code conventions.
17495
17496         passfd: fix incorrect sendmsg arguments
17497         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17498         incorrect msg_controllen value.
17499         * modules/passfd-tests (Depends-on): Check for alarm.
17500         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17501         Reported by Bastien ROUCARIES.
17502
17503 2011-03-30  Bruno Haible  <bruno@clisp.org>
17504
17505         c-strcasestr: Relicense under LGPLv2+.
17506         * modules/c-strcasestr (License): Change to LGPLv2+.
17507         Requested by Eric Blake, for libvirt.
17508
17509 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17510
17511         * users.txt: Add libidn2.  Fix libtasn1 link.
17512
17513 2011-03-30  Jim Meyering  <meyering@redhat.com>
17514
17515         tests: readlink* ("",... fails with EINVAL on newer kernels
17516         readlink and readlinkat have typically failed with ENOENT for
17517         the invalid, empty file name,  "".  However, with the advent
17518         of linux-2.6.39, they fail with EINVAL.
17519         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17520         when operating on the empty file name.
17521         * tests/test-readlink.h (test_readlink): Likewise.
17522
17523 2011-03-29  Bruno Haible  <bruno@clisp.org>
17524
17525         Relicense some modules under LGPLv2+, for libidn2.
17526         * modules/array-mergesort (License): Change to LGPLv2+.
17527         * modules/c-strcaseeq (License): Likewise.
17528         * modules/striconveh (License): Likewise.
17529         * modules/striconveha (License): Likewise.
17530         * modules/uniconv/base (License): Likewise.
17531         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17532         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17533         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17534         * modules/unictype/base (License): Likewise.
17535         * modules/unictype/bidiclass-of (License): Likewise.
17536         * modules/unictype/category-M (License): Likewise.
17537         * modules/unictype/category-none (License): Likewise.
17538         * modules/unictype/category-of (License): Likewise.
17539         * modules/unictype/category-test (License): Likewise.
17540         * modules/unictype/category-test-withtable (License): Likewise.
17541         * modules/unictype/combining-class (License): Likewise.
17542         * modules/unictype/joiningtype-of (License): Likewise.
17543         * modules/unictype/scripts (License): Likewise.
17544         * modules/uninorm/base (License): Likewise.
17545         * modules/uninorm/canonical-decomposition (License): Likewise.
17546         * modules/uninorm/composition (License): Likewise.
17547         * modules/uninorm/decompose-internal (License): Likewise.
17548         * modules/uninorm/decomposition-table (License): Likewise.
17549         * modules/uninorm/nfc (License): Likewise.
17550         * modules/uninorm/nfd (License): Likewise.
17551         * modules/uninorm/u32-normalize (License): Likewise.
17552         * modules/unistr/base (License): Likewise.
17553         * modules/unistr/u32-cpy (License): Likewise.
17554         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17555         * modules/unistr/u32-to-u8 (License): Likewise.
17556         * modules/unistr/u32-uctomb (License): Likewise.
17557         * modules/unistr/u8-check (License): Likewise.
17558         * modules/unistr/u8-mblen (License): Likewise.
17559         * modules/unistr/u8-mbtouc (License): Likewise.
17560         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17561         * modules/unistr/u8-mbtoucr (License): Likewise.
17562         * modules/unistr/u8-prev (License): Likewise.
17563         * modules/unistr/u8-strlen (License): Likewise.
17564         * modules/unistr/u8-to-u32 (License): Likewise.
17565         * modules/unistr/u8-uctomb (License): Likewise.
17566         * modules/unitypes (License): Likewise.
17567         Requested by Simon Josefsson.
17568
17569 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17570
17571         lib-symbol-visibility: Add a notice.
17572         * modules/lib-symbol-visibility (Notice): New field.
17573
17574 2011-03-29  Bruno Haible  <bruno@clisp.org>
17575
17576         getaddrinfo: Doc fix.
17577         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17578         section "fixed in Gnulib".
17579
17580 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17581
17582         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17583         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17584
17585 2011-03-26  Bruno Haible  <bruno@clisp.org>
17586
17587         unictype/property-byname: Reduce the number of load-time relocations.
17588         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17589         (UC_PROPERTY_INDEX_*): New enumeration values.
17590         (uc_property_byname): Convert an index from the lookup table to an
17591         uc_property_t.
17592         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17593         values.
17594
17595 2011-03-26  Bruno Haible  <bruno@clisp.org>
17596
17597         unictype/property-byname: Allow omitted word separators and aliases.
17598         * lib/unictype/pr_byname.gperf: Add property names without word
17599         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17600         for 'space'.
17601
17602 2011-03-26  Bruno Haible  <bruno@clisp.org>
17603
17604         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17605         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17606         also hyphens to space.
17607         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17608         without spaces.
17609         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17610
17611 2011-03-26  Bruno Haible  <bruno@clisp.org>
17612
17613         unictype/joiningtype-byname: Recognize long names as well.
17614         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17615         a long name.
17616         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17617         unictype/joiningtype_byname.h.
17618         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17619         * lib/unictype/joiningtype_byname.gperf: New file.
17620         * modules/unictype/joiningtype-byname (Files): Add
17621         lib/unictype/joiningtype_byname.gperf.
17622         (Depends-on): Add gperf.
17623         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17624         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17625         long names.
17626
17627         Tests for module 'unictype/joiningtype-longname'.
17628         * modules/unictype/joiningtype-longname-tests: New file.
17629         * tests/unictype/test-joiningtype_longname.c: New file.
17630
17631         New module 'unictype/joiningtype-longname'.
17632         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17633         * lib/unictype/joiningtype_longname.c: New file.
17634         * modules/unictype/joiningtype-longname: New file.
17635         * modules/unictype/joiningtype-all (Depends-on): Add
17636         unictype/joiningtype-longname.
17637
17638 2011-03-26  Bruno Haible  <bruno@clisp.org>
17639
17640         unictype/bidiclass-byname: Recognize long names as well.
17641         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17642         name.
17643         * lib/unictype/bidi_byname.c: Include <string.h>,
17644         unictype/bidi_byname.h.
17645         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17646         * lib/unictype/bidi_byname.gperf: New file.
17647         * modules/unictype/bidiclass-byname (Files): Add
17648         lib/unictype/bidi_byname.gperf.
17649         (Depends-on): Add gperf.
17650         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17651         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17652         long names.
17653
17654         Tests for module 'unictype/bidiclass-longname'.
17655         * modules/unictype/bidiclass-longname-tests: New file.
17656         * tests/unictype/test-bidi_longname.c: New file.
17657
17658         New module 'unictype/bidiclass-longname'.
17659         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17660         * lib/unictype/bidi_longname.c: New file.
17661         * modules/unictype/bidiclass-longname: New file.
17662         * modules/unictype/bidiclass-all (Depends-on): Add
17663         unictype/bidiclass-longname.
17664
17665 2011-03-26  Bruno Haible  <bruno@clisp.org>
17666
17667         unictype/bidi*: Rename modules.
17668         * modules/unictype/bidiclass-all: Renamed from
17669         modules/unictype/bidicategory-all.
17670         * modules/unictype/bidiclass-name: Renamed from
17671         modules/unictype/bidiclass-name.
17672         (Description): Update.
17673         * modules/unictype/bidiclass-name-tests: Renamed from
17674         modules/unictype/bidicategory-name-tests.
17675         * modules/unictype/bidiclass-byname: Renamed from
17676         modules/unictype/bidicategory-byname.
17677         (Description): Update.
17678         * modules/unictype/bidiclass-byname-tests: Renamed from
17679         modules/unictype/bidicategory-byname-tests.
17680         * modules/unictype/bidiclass-of: Renamed from
17681         modules/unictype/bidicategory-of.
17682         (Description): Update.
17683         * modules/unictype/bidiclass-of-tests: Renamed from
17684         modules/unictype/bidicategory-of-tests.
17685         * modules/unictype/bidiclass-test: Renamed from
17686         modules/unictype/bidicategory-test.
17687         (Description): Update.
17688         * modules/unictype/bidiclass-test-tests: Renamed from
17689         modules/unictype/bidicategory-test-tests.
17690         * modules/unictype/bidicategory-all: New file, a simple redirection.
17691         * modules/unictype/bidicategory-name: Likewise.
17692         * modules/unictype/bidicategory-byname: Likewise.
17693         * modules/unictype/bidicategory-of: Likewise.
17694         * modules/unictype/bidicategory-test: Likewise.
17695         * modules/unictype/property-bidi-* (Dependencies): Update.
17696         * lib/unictype/bidi_*.c: Update comment.
17697
17698 2011-03-26  Bruno Haible  <bruno@clisp.org>
17699
17700         unictype/bidi*: Rename functions, part 2.
17701         * modules/unictype/bidicategory-name (configure.ac): Update required
17702         libunistring version.
17703         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17704
17705 2011-03-25  Bruno Haible  <bruno@clisp.org>
17706
17707         New module 'unictype/combining-class-all'.
17708         * modules/unictype/combining-class-all: New file.
17709
17710         Tests for module 'unictype/combining-class-byname'.
17711         * modules/unictype/combining-class-byname-tests: New file.
17712         * tests/unictype/test-combiningclass_byname.c: New file.
17713
17714         New module 'unictype/combining-class-byname'.
17715         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17716         * lib/unictype/combiningclass_byname.c: New file.
17717         * lib/unictype/combiningclass_byname.gperf: New file.
17718         * modules/unictype/combining-class-byname: New file.
17719
17720         Tests for module 'unictype/combining-class-longname'.
17721         * modules/unictype/combining-class-longname-tests: New file.
17722         * tests/unictype/test-combiningclass_longname.c: New file.
17723
17724         New module 'unictype/combining-class-longname'.
17725         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17726         * lib/unictype/combiningclass_longname.c: New file.
17727         * modules/unictype/combining-class-longname: New file.
17728
17729         Tests for module 'unictype/combining-class-name'.
17730         * modules/unictype/combining-class-name-tests: New file.
17731         * tests/unictype/test-combiningclass_name.c: New file.
17732
17733         New module 'unictype/combining-class-name'.
17734         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17735         * lib/unictype/combiningclass_name.c: New file.
17736         * modules/unictype/combining-class-name: New file.
17737
17738 2011-03-25  Bruno Haible  <bruno@clisp.org>
17739
17740         unictype/combining-class: Rename source files.
17741         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17742         of unictype/combining.h.
17743         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17744         Update.
17745         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17746         * modules/unictype/combining-class (Description): Fix.
17747         (Files, Makefile.am): Update.
17748         * tests/unictype/test-combiningclass.c: Renamed from
17749         tests/unictype/test-combining.c.
17750         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17751
17752 2011-03-25  Bruno Haible  <bruno@clisp.org>
17753
17754         unictype: Update list of canonical combining classes.
17755         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17756
17757 2011-03-25  Bruno Haible  <bruno@clisp.org>
17758
17759         unictype/category-byname: Recognize long names as well.
17760         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17761         a long name.
17762         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17763         unictype/categ_byname.h.
17764         (UC_CATEGORY_INDEX_*): New enumeration values.
17765         (uc_general_category_byname): Use uc_general_category_lookup and
17766         convert from index to value.
17767         * lib/unictype/categ_byname.gperf: New file.
17768         * modules/unictype/category-byname (Files): Add
17769         lib/unictype/categ_byname.gperf.
17770         (Depends-on): Add gperf.
17771         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17772         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17773         long names.
17774
17775         Tests for module 'unictype/category-longname'.
17776         * modules/unictype/category-longname-tests: New file.
17777         * tests/unictype/test-categ_longname.c: New file.
17778
17779         New module 'unictype/category-longname'.
17780         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17781         * lib/unictype/categ_longname.c: New file.
17782         * modules/unictype/category-longname: New file.
17783         * modules/unictype/category-all (Depends-on): Add it.
17784
17785 2011-03-25  Bruno Haible  <bruno@clisp.org>
17786
17787         Tests for module 'unictype/category-LC'.
17788         * modules/unictype/category-LC-tests: New file.
17789         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17790
17791         New module 'unictype/category-LC'.
17792         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17793         (UC_CATEGORY_LC): New declaration.
17794         (UC_CASED_LETTER): New macro.
17795         * lib/gen-uni-tables.c (is_category_LC): New function.
17796         (output_categories): Also handle category LC.
17797         (UC_CATEGORY_MASK_LC): New enumeration value.
17798         (general_category_byname): Also handle category LC.
17799         * lib/unictype/categ_LC.c: New file.
17800         * lib/unictype/categ_LC.h: New file, automatically generated.
17801         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17802         category LC.
17803         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17804         * modules/unictype/category-LC: New file.
17805         * modules/unictype/category-byname (Depends-on): Add
17806         unictype/category-LC.
17807         * modules/unictype/category-all (Depends-on): Likewise.
17808
17809 2011-03-25  Eric Blake  <eblake@redhat.com>
17810
17811         xmalloc: revert yesterday's regression
17812         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17813         realloc's underlying behavior (allowing allocation of zero-size
17814         objects, especially if malloc-gnu is also in use).
17815
17816 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17817
17818         maint.mk: add missing version to VC-tag
17819         * top/maint.mk: git tag was missing actual tag name; add it.
17820
17821         valgrind: do leak checking, and exit with code 1 on error (not 0)
17822         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17823         to VALGRIND.
17824
17825 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
17826
17827         posix-modules: say what it does.
17828         * posix-modules: Add a line to the --help output saying what it does.
17829
17830 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17831
17832         xmalloc: Do not leak if underlying realloc is C99 compatible.
17833         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
17834         This avoids a leak on C99-based systems.  See
17835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
17836
17837 2011-03-24  Eric Blake  <eblake@redhat.com>
17838
17839         realloc: document portability problem
17840         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
17841         passing 0 size to realloc.
17842
17843 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
17844
17845         doc: update users.txt
17846         * users.txt: Add cvsps, tmpwatch
17847
17848 2011-03-23  Matt Rice  <ratmice@gmail.com>
17849
17850         doc: update users.txt
17851         * users.txt: Add gdb.
17852
17853 2011-03-23  Jim Meyering  <meyering@redhat.com>
17854
17855         doc: update users.txt
17856         Looking through matches up to the following URL (there are still
17857         several more pages), I found several projects that use gnulib:
17858         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
17859         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
17860         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
17861
17862 2011-03-22  Bruno Haible  <bruno@clisp.org>
17863
17864         unictype/bidi*: Rename functions.
17865         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
17866         uc_bidi_class, uc_is_bidi_class): New declarations.
17867         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
17868         uc_bidi_category_byname.
17869         (uc_bidi_category_byname): New function.
17870         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
17871         u_bidi_category_name.
17872         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
17873         (uc_bidi_category_name): New function.
17874         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
17875         uc_bidi_category.
17876         (uc_bidi_category): New function.
17877         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
17878         uc_is_bidi_category. Invoke uc_bidi_class.
17879         (uc_is_bidi_category): New function.
17880         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
17881         instead of uc_bidi_category_byname.
17882         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
17883         instead of uc_bidi_category_name.
17884         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
17885         uc_bidi_category.
17886         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
17887         instead of uc_is_bidi_category.
17888
17889 2011-03-21  Bruno Haible  <bruno@clisp.org>
17890
17891         New module 'unictype/joininggroup-all'.
17892         * modules/unictype/joininggroup-all: New file.
17893
17894         Tests for module 'unictype/joininggroup-of'.
17895         * modules/unictype/joininggroup-of-tests: New file.
17896         * tests/unictype/test-joininggroup_of.c: New file.
17897         * tests/unictype/test-joininggroup_of.h: New file, automatically
17898         generated by gen-uni-tables.
17899
17900         New module 'unictype/joininggroup-of'.
17901         * modules/unictype/joininggroup-of: New file.
17902         * lib/unictype/joininggroup_of.c: New file.
17903         * lib/unictype/joininggroup_of.h: New file, automatically generated by
17904         gen-uni-tables.
17905
17906         Tests for module 'unictype/joininggroup-byname'.
17907         * modules/unictype/joininggroup-byname-tests: New file.
17908         * tests/unictype/test-joininggroup_byname.c: New file.
17909
17910         New module 'unictype/joininggroup-byname'.
17911         * modules/unictype/joininggroup-byname: New file.
17912         * lib/unictype/joininggroup_byname.c: New file.
17913         * lib/unictype/joininggroup_byname.gperf: New file.
17914
17915         Tests for module 'unictype/joininggroup-name'.
17916         * modules/unictype/joininggroup-name-tests: New file.
17917         * tests/unictype/test-joininggroup_name.c: New file.
17918
17919         New module 'unictype/joininggroup-name'.
17920         * modules/unictype/joininggroup-name: New file.
17921         * lib/unictype/joininggroup_name.c: New file.
17922         * lib/unictype/joininggroup_name.h: New file.
17923
17924         New module 'unictype/joiningtype-all'.
17925         * modules/unictype/joiningtype-all: New file.
17926
17927         Tests for module 'unictype/joiningtype-of'.
17928         * modules/unictype/joiningtype-of-tests: New file.
17929         * tests/unictype/test-joiningtype_of.c: New file.
17930         * tests/unictype/test-joiningtype_of.h: New file, automatically
17931         generated by gen-uni-tables.
17932
17933         New module 'unictype/joiningtype-of'.
17934         * modules/unictype/joiningtype-of: New file.
17935         * lib/unictype/joiningtype_of.c: New file.
17936         * lib/unictype/joiningtype_of.h: New file, automatically generated by
17937         gen-uni-tables.
17938
17939         Tests for module 'unictype/joiningtype-byname'.
17940         * modules/unictype/joiningtype-byname-tests: New file.
17941         * tests/unictype/test-joiningtype_byname.c: New file.
17942
17943         New module 'unictype/joiningtype-byname'.
17944         * modules/unictype/joiningtype-byname: New file.
17945         * lib/unictype/joiningtype_byname.c: New file.
17946
17947         Tests for module 'unictype/joiningtype-name'.
17948         * modules/unictype/joiningtype-name-tests: New file.
17949         * tests/unictype/test-joiningtype_name.c: New file.
17950
17951         New module 'unictype/joiningtype-name'.
17952         * modules/unictype/joiningtype-name: New file.
17953         * lib/unictype/joiningtype_name.c: New file.
17954
17955         unictype: Add support for Arabic shaping properties.
17956         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
17957         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
17958         declarations.
17959         (UC_JOINING_GROUP_*): New enumeration values.
17960         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
17961         declarations.
17962         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
17963         (unicode_joining_type): New variable.
17964         (UC_JOINING_GROUP_*): New enumeration values.
17965         (unicode_joining_group): New variable.
17966         (fill_arabicshaping, joining_type_as_c_identifier,
17967         output_joining_type_test, output_joining_type,
17968         joining_group_as_c_identifier, output_joining_group_test,
17969         output_joining_group): New functions.
17970         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
17971         fill_arabicshaping and output_joining_type_test, output_joining_type,
17972         output_joining_group_test, output_joining_group.
17973         Reported by Simon Josefsson.
17974
17975 2011-03-21  Jim Meyering  <meyering@redhat.com>
17976
17977         strftime: fix a bug in yesterday's change
17978         * lib/strftime.c (add): Accommodate width's initial value of -1.
17979         Otherwise, nstrftime would copy uninitialized data into
17980         the result buffer.
17981
17982 2011-03-21  Jim Meyering  <meyering@redhat.com>
17983
17984         tests: add strftime-tests module
17985         * tests/test-strftime.c: New file.
17986         * modules/strftime-tests: New module.
17987
17988 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17989
17990         strftime: don't assume a byte count fits in 'int'
17991         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
17992         found this problem by static analysis, using gcc -Wstrict-overflow
17993         (GCC 4.5.2, x86-64).  This reported an optimization that depended
17994         on an integer overflow having undefined behavior, but it turns out
17995         that the argument is a size, which might not fit in 'int' anyway,
17996
17997 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17998
17999         stdio: don't require ignore_value around fwrite
18000
18001         This patch works around libc bug 11959
18002         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18003         Without this patch, applications must often write
18004         ignore_value (fwrite (...)) even though the ignore_value is
18005         not helpful here.  It's common to write many objects, using
18006         fwrite/printf/etc., and then use ferror to detect output error.
18007
18008         I considered making this patch optional, but decided against it,
18009         because libc is obviously being inconsistent here: there is no
18010         reason libc should insist that user code must inspect fwrite
18011         return's value without also insisting that it inspect printf's,
18012         putchar's, etc.  If user code wants to have a strict style where
18013         all these functions' values are checked (so that ferror need not
18014         be checked), we could add support for that style in a new gnulib
18015         module, but in the meantime it's better to be consistent and to
18016         support common usage.
18017
18018         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18019         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18020         that we are compiling in checking mode, and if not C++, and
18021         if not already wrapping fwrite for some other reason.
18022         (fwrite): #define to rpl_fwrite if the latter is defined.
18023
18024 2011-03-20  Bruno Haible  <bruno@clisp.org>
18025
18026         verror: Fix compilation error introduced on 2011-02-13.
18027         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18028         instead of __attribute__.
18029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18030
18031 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18032             Bruno Haible  <bruno@clisp.org>
18033
18034         socklen: do not depend on sys_socket
18035         While trying to modify Emacs to use gnulib's socklen module,
18036         I discovered a circular dependency: socklen depends on sys_socket
18037         and vice versa.  Emacs can use socklen, but it does not need
18038         sys_socket because it has its own substitute for sys/socket.h.
18039         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18040         gl_TYPE_SOCKLEN_T.
18041         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18042         gl_PREREQ_SYS_H_SOCKET.
18043         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18044         gl_PREREQ_SYS_H_SOCKET.
18045         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18046         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18047         * modules/socklen (Depends-on): Do not depend on sys_socket.
18048         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18049
18050 2011-03-20  Jim Meyering  <meyering@redhat.com>
18051
18052         maint.mk: sort file names *after* new transformation
18053         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18054         prefix would have led to an unwarranted failure in GNU parted.
18055         Sort after that transformation.
18056
18057 2011-03-19  Jim Meyering  <meyering@redhat.com>
18058
18059         maint.mk: fix po-file syntax-check rule
18060         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18061         Patch by Bruno Haible.
18062
18063 2011-03-19  Bruno Haible  <bruno@clisp.org>
18064
18065         socklen: Update comment.
18066         * m4/socklen.m4: Update comment about platforms.
18067
18068 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18069             Bruno Haible  <bruno@clisp.org>
18070
18071         inet_ntop, inet_pton: Simplify.
18072         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18073         documented to provide socklen_t and we already depend on sys_socket.
18074         * modules/inet_pton (Depends-on): Likewise.
18075         * lib/arpa_inet.in.h: Adjust comment.
18076
18077 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18078             Bruno Haible  <bruno@clisp.org>
18079
18080         netdb: Simplify.
18081         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18082         documented to provide socklen_t and we already depend on sys_socket.
18083         * lib/netdb.in.h: Adjust comment.
18084
18085 2011-03-19  Bruno Haible  <bruno@clisp.org>
18086
18087         sys_socket, netdb: Document problem with socklen_t.
18088         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18089         platforms.
18090         * doc/posix-headers/netdb.texi: Likewise.
18091
18092 2011-03-18  Eric Blake  <eblake@redhat.com>
18093
18094         maint.mk: let po check work in VPATH build
18095         * top/maint.mk (po_file): Allow cfg.mk override.
18096         (sc_po_check): Allow VPATH use.
18097         Reported by Jiri Denemark.
18098
18099 2011-03-16  Jim Meyering  <meyering@redhat.com>
18100
18101         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18102         Before, you would have had to create one .x-sc_ file per rule in order
18103         to exempt offending files.  Now, you may instead use a Make variable --
18104         usually defined in cfg.mk -- whose name identifies the affected rule.
18105         * top/maint.mk (_sc_excl): Define.
18106         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18107         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18108
18109 2011-03-13  Bruno Haible  <bruno@clisp.org>
18110
18111         ignore-value tests: Avoid warnings.
18112         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18113         empty for gcc < 3.4.
18114
18115 2011-03-13  Bruno Haible  <bruno@clisp.org>
18116
18117         passfd: Fix link error on Solaris.
18118         * modules/passfd (Description): Correct.
18119         (Depends-on): Add socketlib.
18120         (Link): New section.
18121         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18122
18123 2011-03-13  Bruno Haible  <bruno@clisp.org>
18124
18125         passfd: Fix link error on AIX 5.2.
18126         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18127
18128 2011-03-13  Bruno Haible  <bruno@clisp.org>
18129
18130         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18131         * lib/sys_socket.in.h: Include <stddef.h>.
18132         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18133         CMSG_FIRSTHDR. Remove unused variable.
18134
18135 2011-03-13  Bruno Haible  <bruno@clisp.org>
18136
18137         passfd: Fix compilation error on OpenBSD.
18138         * lib/passfd.c: Include <sys/uio.h>.
18139
18140 2011-03-13  Bruno Haible  <bruno@clisp.org>
18141
18142         passfd test: Fix warnings.
18143         * tests/test-passfd.c: Include <sys/wait.h>.
18144         (main): Fix typo.
18145
18146 2011-03-13  Bruno Haible  <bruno@clisp.org>
18147
18148         passfd module, part 4, tweaks.
18149         * tests/test-passfd.c: Reorder includes.
18150         (main): Fix perror and printf calls.
18151
18152 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18153
18154         passfd module, part 4.
18155         * modules/passfd-tests: New file.
18156         * tests/test-passfd.c: New file.
18157
18158 2011-03-13  Jim Meyering  <meyering@redhat.com>
18159
18160         Makefile: rely on GNU make; derive syntax-check rule names
18161         Rather than requiring that each sc_ rule be listed as a dependent
18162         of "check", use features of GNU make to derive the list.
18163         * Makefile (syntax-check-rules): Define.
18164         (check): Depend on the new variable, not the hard-coded list.
18165
18166 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18167             Bruno Haible  <bruno@clisp.org>
18168
18169         passfd module, part 3.
18170         * lib/passfd.h (recvfd): Add a flags argument.
18171         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18172         (recvfd): Add a flags argument.
18173         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18174         exists.
18175         * modules/passfd (Depends-on): Add cloexec.
18176         Suggested by Eric Blake.
18177
18178 2011-03-13  Bruno Haible  <bruno@clisp.org>
18179
18180         passfd module, part 2, tweaks.
18181         * modules/passfd (Files): Reorder.
18182         (Depends-on): Remove errno.
18183         (Include): Remove <sys/socket.h>, <sys/un.h>.
18184         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18185         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18186         specification header. Include <sys/socket.h> always. Don't include
18187         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18188         (sendfd): Clarify that it sets errno when it fails.
18189         (recvfd): Fix specification.
18190
18191 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18192
18193         passfd module, part 2.
18194         * modules/passfd: New file.
18195         * lib/passfd.h: New file.
18196         * lib/passfd.c: New file.
18197
18198 2011-03-12  Bruno Haible  <bruno@clisp.org>
18199
18200         wcswidth, mbswidth: Avoid integer overflow.
18201         * lib/wcswidth.c: Include <limits.h>.
18202         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18203         * lib/mbswidth.c: Include <limits.h>.
18204         (mbsnwidth): Avoid 'int' overflow.
18205         Reported by Jim Meyering.
18206
18207 2011-03-12  Bruno Haible  <bruno@clisp.org>
18208
18209         futimens, utimensat: Avoid endless recursion on Solaris 10.
18210         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18211         Solaris.
18212         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18213         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18214
18215 2011-03-11  Jim Meyering  <meyering@redhat.com>
18216
18217         maint.mk: relax a regexp to accommodate other formatting styles
18218         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18219         between "ngettext" and the following "(".
18220
18221 2011-03-11  Pádraig Brady <P@draigBrady.com>
18222
18223         maint.mk: suppress a false positive warning
18224         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18225         diagnostics are marked with ngettext.
18226
18227 2011-03-10  Eric Blake  <eblake@redhat.com>
18228
18229         wchar: add explicit dependencies, for Tru64
18230         * modules/mbmemcasecoll (Depends-on): Add wchar.
18231         * modules/mbtowc (Depends-on): Likewise.
18232         * modules/vasnprintf (Depends-on): Likewise.
18233         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18234         * modules/wctomb (Depends-on): Likewise.
18235         Reported by Peter O'Gorman.
18236
18237 2011-03-08  Bruno Haible  <bruno@clisp.org>
18238
18239         passfd module, part 1, tweaks.
18240         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18241         Improve indentation. Improve AC_MSG_CHECKING messages.
18242         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18243         gl_SOCKET_FAMILIES.
18244
18245 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18246
18247         passfd module, part 1.
18248         * m4/afunix.m4: New file.
18249         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18250         sockets.
18251
18252 2011-03-08  Bruno Haible  <bruno@clisp.org>
18253
18254         regex-quote: New API.
18255         * lib/regex-quote.h: Include <stdbool.h>.
18256         (struct regex_quote_spec): New type.
18257         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18258         New declarations.
18259         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18260         'const struct regex_quote_spec *' argument.
18261         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18262         (pcre_special): New constant.
18263         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18264         New functions.
18265         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18266         'const struct regex_quote_spec *' argument.
18267         * modules/regex-quote (Depends-on): Add stdbool.
18268         * tests/test-regex-quote.c (check): Update for new API. Add test for
18269         anchored results.
18270         * NEWS: Mention the API change.
18271         Reported by Reuben Thomas and Eric Blake.
18272
18273 2011-03-06  Bruno Haible  <bruno@clisp.org>
18274
18275         regex-quote: Fix creation of POSIX extended regular expressions.
18276         * lib/regex-quote.c (ere_special): Add grouping and alternation
18277         operators.
18278
18279 2011-03-05  Bruno Haible  <bruno@clisp.org>
18280
18281         doc: Improve doc regarding autopoint vs. gnulib.
18282         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18283         disable autopoint while running autoreconf.
18284         Suggested by Ralf Wildenhues.
18285
18286 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18287
18288         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18289         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18290
18291 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18292
18293         parse-duration: remove xalloc.h dependency
18294         * lib/parse-duration.c (parse_period): handle NULL return from
18295         strdup instead of calling xstrdup().
18296         * modules/parse-duration: remove "xalloc" dependency
18297
18298 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18299
18300         bootstrap: honor m4_base when running aclocal
18301         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18302
18303 2011-03-02  Jim Meyering  <meyering@redhat.com>
18304
18305         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18306         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18307         on request from Matt Booth.
18308
18309 2011-03-01  Eric Blake  <eblake@redhat.com>
18310
18311         test-link: work on Hurd
18312         * tests/test-link.h (test_link): Hurd rejects linking directories
18313         with EISDIR instead of the POSIX-mandated EPERM.
18314
18315 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18316
18317         stdio: simplify by moving files to printf-posix, sigpipe
18318         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18319         since this symbol is needed only if printf is replaced.
18320         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18321         Require gl_ASM_SYMBOL_PREFIX.
18322         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18323         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18324         (Depends-on): Add 'raise'.
18325         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18326         * modules/stdio (Files): Remove lib/stdio-write.c,
18327         m4/asm-underscore.m4.
18328         (Depends-on): Remove 'raise'.
18329
18330         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18331         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18332         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18333         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18334
18335 2011-02-28  Bruno Haible  <bruno@clisp.org>
18336
18337         localcharset: Assume ANSI C behaviour of free().
18338         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18339         calling free().
18340         Suggested by Simon Josefsson <simon@josefsson.org>.
18341
18342 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18343             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18344             Bruno Haible  <bruno@clisp.org>  (tiny change)
18345
18346         On Cygwin, use /proc file system instead of win32 API.
18347         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18348         Win32 file names.
18349         (DllMain): Simplify by removing Cygwin specific code.
18350         (find_shared_library_fullname): Use Linux specific implementation also
18351         for Cygwin.
18352         (get_shared_library_fullname): Update accordingly.
18353         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18354         Win32 file names.
18355         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18356         Cygwin specific code.
18357
18358 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18359             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18360
18361         Fix OpenMP flag detection for various Fortran compilers.
18362         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18363         OpenMP-conditional compilation construct, to force compile
18364         failure with missing OpenMP flag.
18365         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18366
18367 2011-02-25  Eric Blake  <eblake@redhat.com>
18368
18369         strstr: expand test coverage
18370         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18371         compilation.
18372         * tests/test-memmem.c (main): Duplicate tests.
18373         * tests/test-strcasestr.c (main): Likewise.
18374         * tests/test-c-strcasestr.c (main): Likewise.
18375
18376 2011-02-25  Jim Meyering  <meyering@redhat.com>
18377
18378         maint.mk: detect missing-NL-at-EOF, too
18379         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18380         it also detects when a file lacks a newline at EOF.
18381         (require_exactly_one_NL_at_EOF_): Renamed from
18382         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18383         since people may well have .x-sc_... file names tied to the
18384         existing name.  Suggested by Eric Blake.
18385
18386 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18387
18388         dirname: move m4/dos.m4 functionality into lib/dosname.h
18389
18390         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18391         extracts symbols from it, puts them into config.h; but it's much
18392         easier to use the symbols directly.  filename.h already does this,
18393         but it disagrees with dos.m4 in some respects.  This patch
18394         introduces a different include file dosname.h that packages up
18395         dos.m4, and then later we can work on merging filename.h and
18396         dosname.h.  Applications that need only the easy-to-configure
18397         symbols should consider including dosname.h rather than dirname.h.
18398         * NEWS: Mention incompatible changes.
18399         * m4/dos.m4: Remove.
18400         * lib/dosname.h, modules/dosname: New files.
18401         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18402         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18403         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18404         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18405         Include dosname.h, not dirname.h.
18406         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18407         Include dosname.h, for definitions of symbols like ISSLASH
18408         that used to be in config.h.
18409         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18410         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18411         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18412         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18413         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18414         * modules/rmdir (Files): Likewise.
18415         * modules/stat (Files): Likewise.
18416         * modules/unlink (Files): Likewise.
18417         * modules/dirname-lgpl (Depends-on): Add dosname.
18418         * modules/lstat (Depends-on): Likewise.
18419         * modules/openat (Depends-on): Likewise.
18420         * modules/rmdir (Depends-on): Likewise.
18421         * modules/savewd (Depends-on): Likewise.
18422         * modules/stat (Depends-on): Likewise.
18423         * modules/unlink (Depends-on): Likewise.
18424         * modules/openat (Depends-on): Remove dirname-lgpl.
18425         * modules/savewd (Depends-on): Likewise.
18426         * tests/test-dirname.c: Do not use removed symbols like
18427         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18428         the remaining symbols, e.g., ISSLASH ('\\').
18429
18430 2011-02-25  Eric Blake  <eblake@redhat.com>
18431
18432         strstr: revert patches that introduced bug and pessimization
18433         * lib/str-two-way.h: Add another reference.
18434         (two_way_short_needle, two_way_long_needle): Revert changes from
18435         2011-02-24; they pessimize search speed.
18436         (critical_factorization): Partially revert changes from
18437         2010-06-22; they violate the requirement that the left half of the
18438         needle be smaller than the period of the needle.
18439
18440 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18441
18442         filenamecat: remove unnecessary dependency on dirname-lgpl
18443         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18444         is no direct dependency, just an indirect one via filenamecat-lgpl.
18445
18446         remove: remove unnecessary use of m4/dos.m4
18447         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18448         * modules/remove (FILES): Remove m4/dos.m4.
18449
18450         * lib/openat-proc.c: Don't include dirname.h; not needed.
18451
18452         backupfile: remove unnecessary use of m4/dos.m4
18453         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18454         of its symbols are used by the backupfile code.  backupfile.c does
18455         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18456         for the rare case of programs that want all their backup file
18457         names to live within 8+3 limits, and dos.m4 doesn't address that.
18458         * modules/backupfile (Files): Remove m4/dos.m4.
18459
18460 2011-02-24  Jim Meyering  <meyering@redhat.com>
18461
18462         strstr: fix a bug whereby strstr would mistakenly return NULL
18463         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18464         in period calculation.
18465         (two_way_long_needle): Likewise.
18466         The original problem was reported by Mike Stump in
18467         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18468         Ralf Wildenhues provided the short needle and haystack.
18469         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18470         Add a more involved test to trigger the bug in two_way_long_needle.
18471
18472 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18473
18474         gnulib-tool: remove use of bold display in help screen
18475         * gnulib-tool (func_usage): Do not use bold display anymore in the
18476         help screen.  That was just meant to be a temporary emphasis for a
18477         backward-incompatible change.
18478
18479 2011-02-23  Bruno Haible  <bruno@clisp.org>
18480
18481         Fix misindentation of preprocessor directives.
18482         * lib/argp-namefrob.h: Reindent preprocessor directives.
18483         * lib/getopt_int.h (struct _getopt_data): Likewise.
18484         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18485         * lib/vasnprintf.c (decode_long_double): Likewise.
18486         * tests/test-argmatch.c: Insert blank lines, for clarity.
18487         * tests/test-exclude.c: Likewise.
18488
18489 2011-02-22  Bruno Haible  <bruno@clisp.org>
18490
18491         ioctl: Fix for MacOS X in 64-bit mode.
18492         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18493         value.
18494         Suggested by Eric Blake.
18495         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18496
18497 2011-02-22  Jim Meyering  <meyering@redhat.com>
18498
18499         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18500         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18501         in lib/.
18502
18503 2011-02-22  Eric Blake  <eblake@redhat.com>
18504
18505         maint: avoid any CDPATH issue
18506         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18507
18508         maint: adjust cpp indentation for my modules, as well
18509         * Makefile (sc_cpp_indent_check): Add my name.
18510         * lib/fbufmode.c: Filter through cppi.
18511         * lib/fpurge.c: Likewise.
18512         * lib/freadable.c: Likewise.
18513         * lib/freading.c: Likewise.
18514         * lib/fwritable.c: Likewise.
18515         * lib/fwriting.c: Likewise.
18516         * lib/sigaction.c: Likewise.
18517
18518 2011-02-22  Jim Meyering  <meyering@redhat.com>
18519
18520         maint: adjust cpp indentation to reflect nesting depth
18521         I.e., in a block of code that begins with an unnested "#if",
18522         put one space between the "#" in column 1 and following token.
18523         For example,
18524         -#include <sys/vfs.h>
18525         +# include <sys/vfs.h>
18526         Do this only in .c files that are part of a module I maintain.
18527         * lib/linkat.c: Filter through cppi.
18528         * lib/nanosleep.c: Likewise.
18529         * lib/openat.c: Likewise.
18530         * lib/openat-die.c: Likewise.
18531         * lib/dup3.c: Likewise.
18532         * lib/fchownat.c: Likewise.
18533         * lib/flock.c: Likewise.
18534         * lib/fsync.c: Likewise.
18535         * lib/fts.c: Likewise.
18536         * lib/getpass.c: Likewise.
18537         * lib/gettimeofday.c: Likewise.
18538         * lib/userspec.c: Likewise.
18539         * Makefile (sc_cpp_indent_check): New rule, to check this.
18540
18541 2011-02-22  Bruno Haible  <bruno@clisp.org>
18542
18543         New module 'wctomb'.
18544         * lib/stdlib.in.h (wctomb): New declaration.
18545         * lib/wctomb.c: New file.
18546         * lib/wctomb-impl.h: New file.
18547         * m4/wctomb.m4: New file.
18548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18549         REPLACE_WCTOMB.
18550         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18551         REPLACE_WCTOMB.
18552         * modules/wctomb: New file.
18553         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18554         * doc/posix-functions/wctomb.texi: Mention the new module.
18555         * modules/wctob (Depends-on): Add wctomb.
18556
18557 2011-02-22  Bruno Haible  <bruno@clisp.org>
18558
18559         New module 'mbtowc'.
18560         * lib/stdlib.in.h (mbtowc): New declaration.
18561         * lib/mbtowc.c: New file.
18562         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18563         * m4/mbtowc.m4: New file.
18564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18565         REPLACE_MBTOWC.
18566         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18567         REPLACE_MBTOWC.
18568         * modules/mbtowc: New file.
18569         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18570         * doc/posix-functions/mbtowc.texi: Mention the new module.
18571         * modules/btowc (Depends-on): Add mbtowc.
18572
18573 2011-02-22  Bruno Haible  <bruno@clisp.org>
18574
18575         wcrtomb: Add more tests for native Windows platforms.
18576         * tests/test-wcrtomb-w32-1.sh: New file.
18577         * tests/test-wcrtomb-w32-2.sh: New file.
18578         * tests/test-wcrtomb-w32-3.sh: New file.
18579         * tests/test-wcrtomb-w32-4.sh: New file.
18580         * tests/test-wcrtomb-w32-5.sh: New file.
18581         * tests/test-wcrtomb-w32.c: New file.
18582         * modules/wcrtomb-tests (Files): Add them.
18583         (Makefile.am): Arrange to run these tests.
18584         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18585         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18586
18587 2011-02-20  Bruno Haible  <bruno@clisp.org>
18588
18589         wcrtomb: Enhance test.
18590         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18591
18592 2011-02-20  Bruno Haible  <bruno@clisp.org>
18593
18594         mbrtowc: Tiny optimization.
18595         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18596
18597 2011-02-20  Jim Meyering  <meyering@redhat.com>
18598
18599         test-exclude.c: remove unmatched #endif
18600         * tests/test-exclude.c: Remove stray #endif, left over from
18601         the change of a week ago.
18602
18603 2011-02-19  Jim Meyering  <meyering@redhat.com>
18604
18605         git-version-gen: skip "-dirty" check when appropriate
18606         * build-aux/git-version-gen: Don't run any git commands when the
18607         version string comes from .tarball-version.  Prior to this, we
18608         would run git update-index --refresh even from a just-unpacked
18609         tarball directory, and that could affect a .git/ directory in a
18610         parent of the build directory.  Reported by Mike Frysinger.
18611
18612 2011-02-19  Bruno Haible  <bruno@clisp.org>
18613
18614         unictype/property-byname: Reduce the size of the 'data' segment.
18615         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18616
18617 2011-02-19  Bruno Haible  <bruno@clisp.org>
18618
18619         unictype/scripts: Reduce the size of the 'data' segment.
18620         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18621         '%pic'.
18622         * lib/unictype/scripts_byname.gperf: Regenerated.
18623
18624 2011-02-19  Bruno Haible  <bruno@clisp.org>
18625
18626         stdint: Update documentation.
18627         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18628
18629 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18630
18631         stdint: omit redundant check for wchar.h
18632         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18633         always tests whether wchar.h exists, so remove the now-redundant test.
18634
18635 2011-02-18  Bruno Haible  <bruno@clisp.org>
18636
18637         stdint: Cut dependency to module 'wchar'.
18638         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18639         include the necessary prerequisites.
18640         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18641         * modules/stdint (Depends-on): Remove wchar.
18642         (Makefile.am): Substitute HAVE_WCHAR_H.
18643         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18644
18645 2011-02-18  Eric Blake  <eblake@redhat.com>
18646
18647         longlong: skip, rather than fail, on cross-compilation
18648         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18649         when cross-compiling; regression from 2011-02-16.
18650
18651 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18652
18653         * NEWS: Mention 2011-02-08 change to stdlib.
18654
18655 2011-02-17  Bruno Haible  <bruno@clisp.org>
18656
18657         getloadavg: Add comments about platforms.
18658         * m4/getloadavg.m4: Add comment.
18659         * lib/getloadavg.c: Likewise.
18660
18661 2011-02-17  Bruno Haible  <bruno@clisp.org>
18662
18663         getloadavg: Fix link error on Solaris 2.6.
18664         * modules/getloadavg (Link): New section.
18665         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18666         linking test-getloadavg.
18667         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18668         getloadavg.
18669
18670 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18671
18672         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18673         It was 'int', but this doesn't match the IRIX 6.5 manual.
18674         Suggested by Bruno Haible in
18675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18676
18677 2011-02-17  Bruno Haible  <bruno@clisp.org>
18678
18679         havelib: Fix comments.
18680         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18681         change.
18682
18683 2011-02-17  Bruno Haible  <bruno@clisp.org>
18684
18685         havelib: Update config.rpath.
18686         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18687
18688 2011-02-17  Bruno Haible  <bruno@clisp.org>
18689
18690         getloadavg test: Add some plausibility checks.
18691         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18692         is improbable.
18693
18694 2011-02-16  Eric Blake  <eblake@redhat.com>
18695
18696         maintainer-makefile: make syntax-check a no-op from tarballs
18697         * top/maint.mk (no-vc-detected): New rule.
18698         (local-checks-available): Use it to avoid hanging if someone tries
18699         'make syntax-check' from a tarball.  Also append to any non-syntax
18700         checks already defined in cfg.mk.
18701
18702 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18703
18704         longlong: tune, particularly for common case of c99
18705
18706         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18707         or running anything if c99, or if unsigned long long int does not
18708         work.  In either case, we know the answer without further tests.
18709         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18710         it at most once, and use its results for both long long int and
18711         unsigned long long int.  This is more likely to be efficient in
18712         the common case where the program wants to check for both long
18713         long int and unsigned long long int.
18714         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18715         since the answer is already known.
18716
18717 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18718
18719         getloadavg: set errno
18720         * lib/getloadavg.c: Set errno when returning -1.  If no other
18721         error number looks appropriate, set it to ENOSYS if the getloadavg
18722         looks like it can't possibly ever work, ENOTSUP otherwise.
18723         Suggested by Bruno Haible in
18724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18725
18726         getloadavg: trim unused parts and speed up 'configure'
18727         * NEWS: Document this.
18728         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18729         always compiled if getloadavg is absent.
18730         Move test code to ...
18731         * tests/test-getloadavg.c: New file, containing previous
18732         contents of test from lib/getloadavg.c.  It also contains
18733         suggestions by Bruno Haible in
18734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18735         * modules/getloadavg-tests: New file.
18736         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18737         Do tests in the same order as they're needed for getloadavg.c.
18738         Omit setgid-related tests that generate symbols KMEM_GROUP,
18739         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18740         Do only the tests that are needed to see whether the system has
18741         getloadavg, moving the other tests into ...
18742         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18743         NLIST_NAME_UNION; nobody should be using it.  Do not define
18744         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18745         relevant, as the user of this module shouldn't care how getloadavg
18746         is implemented.
18747
18748         getloadavg: omit unused var
18749         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18750
18751 2011-02-15  Jim Meyering  <meyering@redhat.com>
18752
18753         doc: update users.txt
18754         * users.txt: Update iwhd's URL.
18755
18756 2011-02-13  Bruno Haible  <bruno@clisp.org>
18757
18758         Consistent macro naming for macros that use GCC __attribute__.
18759         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18760         _ATTRIBUTE_NONNULL_.
18761         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18762         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18763         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18764         ATTRIBUTE_DEPRECATED.
18765         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18766         ATTRIBUTE_NORETURN.
18767         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18768         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18769         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18770         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18771         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18772         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18773         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18774         ATTRIBUTE_SENTINEL.
18775         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18776         ATTRIBUTE_RETURN_CHECK.
18777         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18778         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18779         ATTRIBUTE_NORETURN.
18780         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18781         Reported by Paul Eggert.
18782
18783 2011-02-13  Bruno Haible  <bruno@clisp.org>
18784
18785         Don't interfere with a program's definition of __attribute__.
18786         * lib/argp.h (__attribute__): Remove definition.
18787         (_GL_ATTRIBUTE_FORMAT): New macro.
18788         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18789         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18790         (_GL_ATTRIBUTE_FORMAT): New macro.
18791         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18792         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18793         GCC 3 or newer.
18794         * lib/error.h (__attribute__): Remove definition.
18795         (_GL_ATTRIBUTE_FORMAT): New macro.
18796         (error, error_at_line): Use it.
18797         * lib/hash.h (__attribute__): Remove definition.
18798         (ATTRIBUTE_WUR): Update definition. Define always.
18799         * lib/openat.h (__attribute__): Remove definition.
18800         (ATTRIBUTE_NORETURN): Update definition. Define always.
18801         * lib/sigpipe-die.h (__attribute__): Remove definition.
18802         (ATTRIBUTE_NORETURN): Update definition. Define always.
18803         * lib/vasnprintf.h (__attribute__): Remove definition.
18804         (_GL_ATTRIBUTE_FORMAT): New macro.
18805         (asnprintf, vasnprintf): Use it.
18806         * lib/xalloc.h (__attribute__): Remove definition.
18807         (ATTRIBUTE_NORETURN): Update definition. Define always.
18808         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18809         * lib/xmemdup0.h (__attribute__): Remove definition.
18810         (ATTRIBUTE_NORETURN): Update definition. Define always.
18811         * lib/xprintf.h (__attribute__): Remove definition.
18812         (_GL_ATTRIBUTE_FORMAT): New macro.
18813         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18814         * lib/xstrtol.h (__attribute__): Remove definition.
18815         (ATTRIBUTE_NORETURN): Update definition. Define always.
18816         * lib/xvasprintf.h (__attribute__): Remove definition.
18817         (_GL_ATTRIBUTE_FORMAT): New macro.
18818         (xasprintf, xvasprintf): Use it.
18819         * tests/test-argmatch.c (__attribute__): Remove definition.
18820         (ATTRIBUTE_NORETURN): Update definition. Define always.
18821         * tests/test-exclude.c (__attribute__): Remove definition.
18822         (ATTRIBUTE_NORETURN): Update definition. Define always.
18823         Reported by Paul Eggert.
18824
18825 2011-02-13  Bruno Haible  <bruno@clisp.org>
18826
18827         mbrtowc: Add more tests for native Windows platforms.
18828         * tests/test-mbrtowc-w32-1.sh: New file.
18829         * tests/test-mbrtowc-w32-2.sh: New file.
18830         * tests/test-mbrtowc-w32-3.sh: New file.
18831         * tests/test-mbrtowc-w32-4.sh: New file.
18832         * tests/test-mbrtowc-w32-5.sh: New file.
18833         * tests/test-mbrtowc-w32.c: New file.
18834         * modules/mbrtowc-tests (Files): Add them.
18835         (Makefile.am): Arrange to run these tests.
18836         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
18837         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
18838
18839 2011-02-13  Bruno Haible  <bruno@clisp.org>
18840
18841         mbrtowc: Work around native Windows bug.
18842         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
18843         guess when no suitable locale for testing was found.
18844         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
18845
18846 2011-02-13  Bruno Haible  <bruno@clisp.org>
18847
18848         mbsinit: Work around mingw bug.
18849         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
18850         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
18851         Windows.
18852         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
18853
18854 2011-02-13  Bruno Haible  <bruno@clisp.org>
18855
18856         mbsinit: Don't crash for a NULL argument.
18857         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
18858         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
18859
18860 2011-02-13  Bruno Haible  <bruno@clisp.org>
18861
18862         Don't interfere with a program's definition of __attribute__.
18863         * lib/stdio.in.h (__attribute__): Remove definition.
18864         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
18865         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
18866         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
18867         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
18868         * lib/string.in.h (__attribute__): Remove definition.
18869         Reported by Paul Eggert.
18870
18871 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18872
18873         stdlib: don't get in the way of non-GCC __attribute__
18874         See thread starting at
18875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
18876         Revert previous stdlib change, installing the following instead:
18877         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
18878         to get in the way of a non-GCC compiler that supports __attribute__.
18879         (_GL_ATTRIBUTE_RETURN): New macro.
18880         (_Exit): Use it instead of __attribute__.
18881
18882 2011-02-12  Bruno Haible  <bruno@clisp.org>
18883
18884         quotearg test: Avoid test failure on mingw.
18885         * tests/test-quotearg.sh: Convert the locale identifier from native
18886         Windows syntax to Unix syntax.
18887
18888 2011-02-12  Bruno Haible  <bruno@clisp.org>
18889
18890         setlocale: Prefer gnulib's override over libintl's override.
18891         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
18892         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
18893         GNULIB_defined_setlocale is set.
18894
18895 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18896
18897         stdlib: support non-GCC __attribute__
18898
18899         Fix a serious and tricky problem encountered when attempting to
18900         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
18901         5.5, but it crashed due to memory corruption on Solaris 10 with
18902         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
18903         bits that are otherwise zero.  This tagging is optional inside
18904         Emacs but is preferred and is used when __attribute__ ((__aligned
18905         (8))) works, as it does with both recent-enough GCC and with Sun C
18906         5.11.  However, Sun C 5.11 is not GCC and does not #define
18907         __GNUC__ and __GNUC_MINOR__.
18908
18909         When I added the getloadavg module to Emacs, it brought in
18910         stdlib.in.h, which contained this fragment:
18911
18912            #ifndef __attribute__
18913            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
18914            #  define __attribute__(Spec)   /* empty */
18915            # endif
18916            #endif
18917
18918         When files that include <stdlib.h> were compiled with Sun C 5.11,
18919         the above code disabled __attribute__ ((__aligned (8))), which
18920         caused variables to not be properly aligned, which eventually led
18921         to the pointer corruption mentioned above.  (This was a bit hard
18922         to diagnose, unfortunately.)
18923
18924         Several "#define __attribute__(X) /* empty */" code snippets need
18925         to be eradicated from Gnulib to work with non-GCC compilers that
18926         support __attribute__.  The Autoconf way to do this is to test for
18927         each kind of attribute that we want support for, and selectively
18928         enable that in source code.
18929
18930         Fix this problem just for stdlib.h, by adding a test for the
18931         __noreturn__ attribute, and change stdlib.in.h to use that test
18932         when needed.  This technique can be easily generalized to the
18933         other *.in.h files and attributes, and a similar technique can be
18934         used for *.h and *.c files.  This patch is enough to solve the
18935         problem for Emacs + getloadavg, and I thought I'd publish it for
18936         feedback before undertaking further, similar fixes in other
18937         modules.
18938
18939         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
18940         because it's not needed for stdlib.h.  It merely substitutes the
18941         value directly into stdlib.h.  We may well need to #define it, or
18942         similar symbols, for other modules, but it's nice to also have an
18943         option to not #define it for applications like Emacs that do not
18944         need it.
18945
18946         * lib/stdlib.in.h (__attribute__): Do not #define.
18947         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
18948         be defined only if the _Exit module is also used.
18949         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
18950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
18951         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
18952         platforms.
18953         * modules/_Exit (Files): Add m4/attribute.m4.
18954         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
18955         * m4/attribute.m4: New file.
18956
18957 2011-02-12  Bruno Haible  <bruno@clisp.org>
18958
18959         wcsrtombs: Work around bug on native Windows.
18960         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
18961         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
18962         instead of len.
18963         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
18964
18965 2011-02-12  Bruno Haible  <bruno@clisp.org>
18966
18967         mbsrtowcs: Work around bug on native Windows.
18968         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
18969         against mingw bug.
18970         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
18971
18972 2011-02-12  Bruno Haible  <bruno@clisp.org>
18973
18974         Avoid setlocale bugs in tests.
18975         * modules/btowc (Dependencies): Add setlocale.
18976         * modules/c-strcase (Dependencies): Likewise.
18977         * modules/mbmemcasecmp (Dependencies): Likewise.
18978         * modules/mbmemcasecoll (Dependencies): Likewise.
18979         * modules/mbrtowc (Dependencies): Likewise.
18980         * modules/mbscasecmp (Dependencies): Likewise.
18981         * modules/mbscasestr (Dependencies): Likewise.
18982         * modules/mbschr (Dependencies): Likewise.
18983         * modules/mbscspn (Dependencies): Likewise.
18984         * modules/mbsinit (Dependencies): Likewise.
18985         * modules/mbsncasecmp (Dependencies): Likewise.
18986         * modules/mbsnrtowcs (Dependencies): Likewise.
18987         * modules/mbspbrk (Dependencies): Likewise.
18988         * modules/mbspcasecmp (Dependencies): Likewise.
18989         * modules/mbsrchr (Dependencies): Likewise.
18990         * modules/mbsrtowcs (Dependencies): Likewise.
18991         * modules/mbsspn (Dependencies): Likewise.
18992         * modules/mbsstr (Dependencies): Likewise.
18993         * modules/nl_langinfo (Dependencies): Likewise.
18994         * modules/quotearg (Dependencies): Likewise.
18995         * modules/unicase/locale-language (Dependencies): Likewise.
18996         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
18997         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
18998         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
18999         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19000         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19001         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19002         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19003         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19004         * modules/vasnprintf-posix (Dependencies): Likewise.
19005         * modules/wcrtomb (Dependencies): Likewise.
19006         * modules/wcsnrtombs (Dependencies): Likewise.
19007         * modules/wcsrtombs (Dependencies): Likewise.
19008
19009 2011-02-12  Bruno Haible  <bruno@clisp.org>
19010
19011         setlocale: Workaround native Windows bug.
19012         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19013         succeeds but sets LC_CTYPE to "C", report a failure.
19014         * tests/test-setlocale2.sh: New file.
19015         * tests/test-setlocale2.c: New file.
19016         * modules/setlocale-tests (Files): Add the new files.
19017         (Makefile.am): Enable test-setlocale2.sh test.
19018         * doc/posix-functions/setlocale.texi: Mention workaround.
19019
19020 2011-02-11  Bruno Haible  <bruno@clisp.org>
19021
19022         Tests for module 'setlocale'.
19023         * modules/setlocale-tests: New file.
19024         * tests/test-setlocale1.sh: New file.
19025         * tests/test-setlocale1.c: New file.
19026
19027         New module 'setlocale'.
19028         * lib/locale.in.h (setlocale): New declaration.
19029         * lib/setlocale.c: New file, based on
19030         gettext/gettext-runtime/intl/setlocale.c.
19031         * m4/setlocale.m4: New file.
19032         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19033         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19034         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19035         REPLACE_SETLOCALE.
19036         * modules/setlocale: New file.
19037         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19038         * doc/posix-functions/setlocale.texi: Mention the new module.
19039
19040 2011-02-11  Bruno Haible  <bruno@clisp.org>
19041
19042         Prepare for locale dependent tests on mingw.
19043         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19044         because it has the wrong locale encoding.
19045         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19046         French_France.1252 instead of "fr".
19047         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19048         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19049         because it has the wrong locale encoding.
19050         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19051         native Windows, try Turkish_Turkey.65001.
19052         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19053         Chinese_China.54936.
19054
19055         Prepare for locale dependent tests on mingw.
19056         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19057         differently.
19058         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19059         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19060         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19061         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19062
19063 2011-02-11  Eric Blake  <eblake@redhat.com>
19064
19065         strptime: avoid compiler warnings
19066         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19067         compiler warnings about dead code.
19068         Reported by Daniel P. Berrange.
19069
19070 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19071
19072         doc: update users.txt
19073         * users.txt: Add rcs.
19074
19075 2011-02-10  John W. Eaton  <jwe@gnu.org>
19076
19077         doc: update users.txt
19078         * users.txt: Add octave.
19079
19080 2011-02-10  Jim Meyering  <meyering@redhat.com>
19081
19082         doc: update users.txt
19083         * users.txt: Add iwhd.
19084
19085 2011-02-09  Bruno Haible  <bruno@clisp.org>
19086
19087         gnulib-tool: Make copyright notice adjustment more robust.
19088         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19089         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19090         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19091         License".
19092         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19093
19094 2011-02-06  Bruno Haible  <bruno@clisp.org>
19095
19096         New module 'towctrans'.
19097         * modules/towctrans: New file.
19098         * lib/wctype.in.h (towctrans): New declaration.
19099         * lib/towctrans.c: New file.
19100         * lib/towctrans-impl.h: New file.
19101         * m4/towctrans.m4: New file.
19102         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19103         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19104         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19105         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19106         * doc/posix-functions/towctrans.texi: Mention the new module.
19107
19108 2011-02-06  Bruno Haible  <bruno@clisp.org>
19109
19110         New module 'wctrans'.
19111         * modules/wctrans: New file.
19112         * lib/wctype.in.h (wctrans): New declaration.
19113         * lib/wctrans.c: New file.
19114         * lib/wctrans-impl.h: New file.
19115         * m4/wctrans.m4: New file.
19116         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19117         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19118         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19119         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19120         * doc/posix-functions/wctrans.texi: Mention the new module.
19121
19122 2011-02-06  Bruno Haible  <bruno@clisp.org>
19123
19124         New module 'iswctype'.
19125         * modules/iswctype: New file.
19126         * lib/wctype.in.h (iswctype): New declaration.
19127         * lib/iswctype.c: New file.
19128         * lib/iswctype-impl.h: New file.
19129         * m4/iswctype.m4: New file.
19130         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19131         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19132         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19133         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19134         * doc/posix-functions/iswctype.texi: Mention the new module and the
19135         HP-UX 11.00 problem.
19136
19137 2011-02-06  Bruno Haible  <bruno@clisp.org>
19138
19139         New module 'wctype'.
19140         * modules/wctype: Change to represent the wctype() substitute.
19141         * lib/wctype.in.h (wctype): New declaration.
19142         * lib/wctype.c: New file.
19143         * lib/wctype-impl.h: New file.
19144         * m4/wctype.m4: New file.
19145         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19146         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19147         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19148         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19149         * doc/posix-functions/wctype.texi: Mention the new module and the
19150         HP-UX 11.00 problem.
19151
19152 2011-02-06  Bruno Haible  <bruno@clisp.org>
19153
19154         wctype-h: Ensure wctype_t and wctrans_t are defined.
19155         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19156         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19157         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19158         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19159         HAVE_WCTRANS_T.
19160         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19161
19162 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19163
19164         flock: fix license typo
19165
19166         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19167         omitted.
19168
19169 2011-02-08  Bruno Haible  <bruno@clisp.org>
19170
19171         Split large sed scripts, for HP-UX sed.
19172         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19173         to avoid HP-UX limit of 99 commands, in the near future.
19174         * modules/stdlib (Makefile.am): Likewise.
19175         * modules/unistd (Makefile.am): Likewise.
19176         * modules/wchar (Makefile.am): Likewise.
19177         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19178         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19180
19181 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19182             Bruno Haible  <bruno@clisp.org>
19183
19184         stdlib: improve random_r modularization
19185         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19186         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19187         you also need the random_r module to get this material right.
19188         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19189         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19190         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19191
19192 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19193
19194         stdlib: don't depend on stdint
19195         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19196         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19197         be independent of whether stdint.h is needed.
19198         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19199         here, instead of ...
19200         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19201         struct random_data should be using the random_r module, not just
19202         the stdlib module (which wouldn't make sense: what package needs
19203         just struct random_data without also needing random_r?).
19204         * modules/stdlib (Depends-on): Remove stdint.
19205
19206         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19207         See the thread rooted at
19208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19209         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19210         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19211         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19212         __VMS)); previously it was always included (via fcntl--.h).
19213         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19214         hand; this is good enough for load averages.  Also, do not use
19215         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19216         flags directly if available and don't bother otherwise.  (Packages
19217         that need the extra reliability should use the modules that define
19218         these flags on older platforms that lack them.)
19219         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19220         fcntl-safer.
19221
19222 2011-02-08  Jim Meyering  <meyering@redhat.com>
19223
19224         di-set.h, ino-map.h: add multiple-inclusion guard
19225         Technically, the guard is required only for ino-map.h, due to its
19226         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19227         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19228         * lib/ino-map.h: Likewise.
19229
19230 2011-02-06  Bruno Haible  <bruno@clisp.org>
19231
19232         iswblank: Ensure declaration on glibc systems.
19233         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19234         * modules/iswblank (Dependencies): Add 'extensions'.
19235         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19236
19237 2011-02-06  Bruno Haible  <bruno@clisp.org>
19238
19239         New module 'iswblank'.
19240         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19241         * modules/iswblank: New file.
19242         * modules/wctype-h (Files): Remove lib/iswblank.c.
19243         (Makefile.am): Substitute GNULIB_ISWBLANK.
19244         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19245         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19246         (gl_WCTYPE_H_DEFAULTS): New macro.
19247         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19248         * modules/iswblank-tests: New file.
19249         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19250         * tests/test-wctype-h.c (main): Remove iswblank tests.
19251         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19252         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19253         of 'wctype-h'.
19254         * NEWS: Mention the change.
19255         * modules/mbchar (Depends-on): Add iswblank.
19256
19257 2011-02-08  Bruno Haible  <bruno@clisp.org>
19258
19259         di-set tests: Refactor.
19260         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19261         unnecessary includes.
19262         (ASSERT): Remove macro.
19263         (main): Make C90 compliant by avoiding variable declaration after
19264         statement.
19265         * modules/di-set-tests (Files): Add tests/macros.h.
19266
19267 2011-02-08  Bruno Haible  <bruno@clisp.org>
19268
19269         ino-map tests: Refactor.
19270         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19271         unnecessary includes.
19272         (ASSERT): Remove macro.
19273         (main): Make C90 compliant by avoiding variable declaration after
19274         statement.
19275         * modules/ino-map-tests (Files): Add tests/macros.h.
19276
19277 2011-02-08  Jim Meyering  <meyering@redhat.com>
19278
19279         di-set: add "const" to a cast
19280         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19281         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19282
19283 2011-02-06  Bruno Haible  <bruno@clisp.org>
19284
19285         Rename module 'wctype' to 'wctype-h'.
19286         * modules/wctype-h: Renamed from modules/wctype.
19287         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19288         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19289         (Files, Depends-on, Makefile.am): Update.
19290         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19291         (Files, Makefile.am): Update.
19292         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19293         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19294         * doc/posix-headers/wctype.texi: Update.
19295         * doc/posix-functions/iswalnum.texi: Update.
19296         * doc/posix-functions/iswalpha.texi: Update.
19297         * doc/posix-functions/iswblank.texi: Update.
19298         * doc/posix-functions/iswcntrl.texi: Update.
19299         * doc/posix-functions/iswdigit.texi: Update.
19300         * doc/posix-functions/iswgraph.texi: Update.
19301         * doc/posix-functions/iswlower.texi: Update.
19302         * doc/posix-functions/iswprint.texi: Update.
19303         * doc/posix-functions/iswpunct.texi: Update.
19304         * doc/posix-functions/iswspace.texi: Update.
19305         * doc/posix-functions/iswupper.texi: Update.
19306         * doc/posix-functions/iswxdigit.texi: Update.
19307         * doc/posix-functions/towlower.texi: Update.
19308         * doc/posix-functions/towupper.texi: Update.
19309         * NEWS: Mention the change.
19310         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19311         * modules/mbchar (Dependencies): Likewise.
19312         * modules/mbswidth (Dependencies): Likewise.
19313         * modules/quotearg (Dependencies): Likewise.
19314         * modules/regex (Dependencies): Likewise.
19315         * modules/wcscasecmp (Dependencies): Likewise.
19316         * modules/wcsncasecmp (Dependencies): Likewise.
19317         * modules/wcwidth (Dependencies): Likewise.
19318
19319 2011-02-06  Bruno Haible  <bruno@clisp.org>
19320
19321         New module 'wcswidth'.
19322         * modules/wcswidth: New file.
19323         * lib/wchar.in.h (wcswidth): New declaration.
19324         * lib/wcswidth.c: New file.
19325         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19326         * m4/wcswidth.m4: New file.
19327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19329         REPLACE_WCSWIDTH.
19330         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19331         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19332         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19333         * doc/posix-functions/wcswidth.texi: Mention the new module.
19334
19335 2011-02-06  Bruno Haible  <bruno@clisp.org>
19336
19337         New module 'wcstok'.
19338         * modules/wcstok: New file.
19339         * lib/wchar.in.h (wcstok): New declaration.
19340         * lib/wcstok.c: New file.
19341         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19342         * m4/wcstok.m4: New file.
19343         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19344         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19345         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19346         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19347         * doc/posix-functions/wcstok.texi: Mention the new module.
19348
19349 2011-02-06  Bruno Haible  <bruno@clisp.org>
19350
19351         New module 'wcsstr'.
19352         * modules/wcsstr: New file.
19353         * lib/wchar.in.h (wcsstr): New declaration.
19354         * lib/wcsstr.c: New file.
19355         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19356         * m4/wcsstr.m4: New file.
19357         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19358         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19359         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19360         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19361         * doc/posix-functions/wcsstr.texi: Mention the new module.
19362
19363 2011-02-06  Bruno Haible  <bruno@clisp.org>
19364
19365         New module 'wcspbrk'.
19366         * modules/wcspbrk: New file.
19367         * lib/wchar.in.h (wcspbrk): New declaration.
19368         * lib/wcspbrk.c: New file.
19369         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19370         * m4/wcspbrk.m4: New file.
19371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19374         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19375         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19376
19377 2011-02-06  Bruno Haible  <bruno@clisp.org>
19378
19379         New module 'wcsspn'.
19380         * modules/wcsspn: New file.
19381         * lib/wchar.in.h (wcsspn): New declaration.
19382         * lib/wcsspn.c: New file.
19383         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19384         * m4/wcsspn.m4: New file.
19385         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19386         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19388         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19389         * doc/posix-functions/wcsspn.texi: Mention the new module.
19390
19391 2011-02-06  Bruno Haible  <bruno@clisp.org>
19392
19393         New module 'wcscspn'.
19394         * modules/wcscspn: New file.
19395         * lib/wchar.in.h (wcscspn): New declaration.
19396         * lib/wcscspn.c: New file.
19397         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19398         * m4/wcscspn.m4: New file.
19399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19402         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19403         * doc/posix-functions/wcscspn.texi: Mention the new module.
19404
19405 2011-02-06  Bruno Haible  <bruno@clisp.org>
19406
19407         New module 'wcsrchr'.
19408         * modules/wcsrchr: New file.
19409         * lib/wchar.in.h (wcsrchr): New declaration.
19410         * lib/wcsrchr.c: New file.
19411         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19412         * m4/wcsrchr.m4: New file.
19413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19416         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19417         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19418
19419 2011-02-06  Bruno Haible  <bruno@clisp.org>
19420
19421         New module 'wcschr'.
19422         * modules/wcschr: New file.
19423         * lib/wchar.in.h (wcschr): New declaration.
19424         * lib/wcschr.c: New file.
19425         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19426         * m4/wcschr.m4: New file.
19427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19430         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19431         * doc/posix-functions/wcschr.texi: Mention the new module.
19432
19433 2011-02-06  Bruno Haible  <bruno@clisp.org>
19434
19435         New module 'wcsdup'.
19436         * modules/wcsdup: New file.
19437         * lib/wchar.in.h (wcsdup): New declaration.
19438         * lib/wcsdup.c: New file.
19439         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19440         * m4/wcsdup.m4: New file.
19441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19444         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19445         * doc/posix-functions/wcsdup.texi: Mention the new module.
19446
19447 2011-02-06  Bruno Haible  <bruno@clisp.org>
19448
19449         New module 'wcsxfrm'.
19450         * modules/wcsxfrm: New file.
19451         * lib/wchar.in.h (wcsxfrm): New declaration.
19452         * lib/wcsxfrm.c: New file.
19453         * lib/wcsxfrm-impl.h: New file.
19454         * m4/wcsxfrm.m4: New file.
19455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19458         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19459         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19460
19461 2011-02-06  Bruno Haible  <bruno@clisp.org>
19462
19463         New module 'wcscoll'.
19464         * modules/wcscoll: New file.
19465         * lib/wchar.in.h (wcscoll): New declaration.
19466         * lib/wcscoll.c: New file.
19467         * lib/wcscoll-impl.h: New file.
19468         * m4/wcscoll.m4: New file.
19469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19472         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19473         * doc/posix-functions/wcscoll.texi: Mention the new module.
19474
19475 2011-02-06  Bruno Haible  <bruno@clisp.org>
19476
19477         New module 'wcsncasecmp'.
19478         * modules/wcsncasecmp: New file.
19479         * lib/wchar.in.h (wcsncasecmp): New declaration.
19480         * lib/wcsncasecmp.c: New file.
19481         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19482         * m4/wcsncasecmp.m4: New file.
19483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19486         HAVE_WCSNCASECMP.
19487         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19488         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19489
19490 2011-02-06  Bruno Haible  <bruno@clisp.org>
19491
19492         New module 'wcscasecmp'.
19493         * modules/wcscasecmp: New file.
19494         * lib/wchar.in.h (wcscasecmp): New declaration.
19495         * lib/wcscasecmp.c: New file.
19496         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19497         * m4/wcscasecmp.m4: New file.
19498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19501         HAVE_WCSCASECMP.
19502         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19503         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19504
19505 2011-02-05  Bruno Haible  <bruno@clisp.org>
19506
19507         New module 'wcsncmp'.
19508         * modules/wcsncmp: New file.
19509         * lib/wchar.in.h (wcsncmp): New declaration.
19510         * lib/wcsncmp.c: New file.
19511         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19512         * m4/wcsncmp.m4: New file.
19513         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19514         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19515         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19516         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19517         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19518
19519 2011-02-05  Bruno Haible  <bruno@clisp.org>
19520
19521         New module 'wcscmp'.
19522         * modules/wcscmp: New file.
19523         * lib/wchar.in.h (wcscmp): New declaration.
19524         * lib/wcscmp.c: New file.
19525         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19526         * m4/wcscmp.m4: New file.
19527         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19528         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19530         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19531         * doc/posix-functions/wcscmp.texi: Mention the new module.
19532
19533 2011-02-05  Bruno Haible  <bruno@clisp.org>
19534
19535         New module 'wcsncat'.
19536         * modules/wcsncat: New file.
19537         * lib/wchar.in.h (wcsncat): New declaration.
19538         * lib/wcsncat.c: New file.
19539         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19540         * m4/wcsncat.m4: New file.
19541         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19542         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19543         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19544         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19545         * doc/posix-functions/wcsncat.texi: Mention the new module.
19546
19547 2011-02-05  Bruno Haible  <bruno@clisp.org>
19548
19549         New module 'wcscat'.
19550         * modules/wcscat: New file.
19551         * lib/wchar.in.h (wcscat): New declaration.
19552         * lib/wcscat.c: New file.
19553         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19554         * m4/wcscat.m4: New file.
19555         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19556         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19557         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19558         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19559         * doc/posix-functions/wcscat.texi: Mention the new module.
19560
19561 2011-02-05  Bruno Haible  <bruno@clisp.org>
19562
19563         New module 'wcpncpy'.
19564         * modules/wcpncpy: New file.
19565         * lib/wchar.in.h (wcpncpy): New declaration.
19566         * lib/wcpncpy.c: New file.
19567         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19568         * m4/wcpncpy.m4: New file.
19569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19571         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19572         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19573         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19574
19575 2011-02-05  Bruno Haible  <bruno@clisp.org>
19576
19577         New module 'wcsncpy'.
19578         * modules/wcsncpy: New file.
19579         * lib/wchar.in.h (wcsncpy): New declaration.
19580         * lib/wcsncpy.c: New file.
19581         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19582         * m4/wcsncpy.m4: New file.
19583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19586         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19587         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19588
19589 2011-02-05  Bruno Haible  <bruno@clisp.org>
19590
19591         New module 'wcpcpy'.
19592         * modules/wcpcpy: New file.
19593         * lib/wchar.in.h (wcpcpy): New declaration.
19594         * lib/wcpcpy.c: New file.
19595         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19596         * m4/wcpcpy.m4: New file.
19597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19599         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19600         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19601         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19602
19603 2011-02-05  Bruno Haible  <bruno@clisp.org>
19604
19605         New module 'wcscpy'.
19606         * modules/wcscpy: New file.
19607         * lib/wchar.in.h (wcscpy): New declaration.
19608         * lib/wcscpy.c: New file.
19609         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19610         * m4/wcscpy.m4: New file.
19611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19614         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19615         * doc/posix-functions/wcscpy.texi: Mention the new module.
19616
19617 2011-02-05  Bruno Haible  <bruno@clisp.org>
19618
19619         New module 'wcsnlen'.
19620         * modules/wcsnlen: New file.
19621         * lib/wchar.in.h (wcsnlen): New declaration.
19622         * lib/wcsnlen.c: New file.
19623         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19624         * m4/wcsnlen.m4: New file.
19625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19627         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19628         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19629         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19630
19631 2011-02-05  Bruno Haible  <bruno@clisp.org>
19632
19633         New module 'wcslen'.
19634         * modules/wcslen: New file.
19635         * lib/wchar.in.h (wcslen): New declaration.
19636         * lib/wcslen.c: New file.
19637         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19638         * m4/wcslen.m4: New file.
19639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19642         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19643         * doc/posix-functions/wcslen.texi: Mention the new module.
19644
19645 2011-02-05  Bruno Haible  <bruno@clisp.org>
19646
19647         New module 'wmemset'.
19648         * modules/wmemset: New file.
19649         * lib/wchar.in.h (wmemset): New declaration.
19650         * lib/wmemset.c: New file.
19651         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19652         * m4/wmemset.m4: New file.
19653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19655         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19656         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19657         * doc/posix-functions/wmemset.texi: Mention the new module.
19658
19659 2011-02-05  Bruno Haible  <bruno@clisp.org>
19660
19661         New module 'wmemmove'.
19662         * modules/wmemmove: New file.
19663         * lib/wchar.in.h (wmemmove): New declaration.
19664         * lib/wmemmove.c: New file.
19665         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19666         * m4/wmemmove.m4: New file.
19667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19669         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19670         HAVE_WMEMMOVE.
19671         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19672         * doc/posix-functions/wmemmove.texi: Mention the new module.
19673
19674 2011-02-05  Bruno Haible  <bruno@clisp.org>
19675
19676         New module 'wmemcpy'.
19677         * modules/wmemcpy: New file.
19678         * lib/wchar.in.h (wmemcpy): New declaration.
19679         * lib/wmemcpy.c: New file.
19680         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19681         * m4/wmemcpy.m4: New file.
19682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19684         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19685         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19686         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19687
19688 2011-02-05  Bruno Haible  <bruno@clisp.org>
19689
19690         New module 'wmemcmp'.
19691         * modules/wmemcmp: New file.
19692         * lib/wchar.in.h (wmemcmp): New declaration.
19693         * lib/wmemcmp.c: New file.
19694         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19695         * m4/wmemcmp.m4: New file.
19696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19698         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19699         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19700         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19701
19702 2011-02-07  Jim Meyering  <meyering@redhat.com>
19703
19704         di-set, ino-map: new modules, from coreutils
19705         * lib/di-set.c: New file.
19706         * lib/di-set.h: Likewise.
19707         * lib/ino-map.c: Likewise.
19708         * lib/ino-map.h: Likewise.
19709         * modules/di-set: Likewise.
19710         * modules/di-set-tests: Likewise.
19711         * modules/ino-map: Likewise.
19712         * modules/ino-map-tests: Likewise.
19713         * tests/test-di-set.c: Likewise.
19714         * tests/test-ino-map.c: Likewise.
19715
19716 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19717
19718         getloadavg: merge minor changes from Emacs
19719
19720         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19721         (getloadavg): Use memset, not bzero.
19722
19723         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19724         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19725         clash (bug#86).
19726
19727 2010-11-14  Bruno Haible  <bruno@clisp.org>
19728
19729         Allow multiple gnulib generated replacements to coexist.
19730         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19731         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19732         * lib/langinfo.in.h (nl_item): Likewise.
19733         * lib/math.in.h (_NaN, NAN): Likewise.
19734         * lib/netdb.in.h (struct addrinfo): Likewise.
19735         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19736         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19737         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19738         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19739         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19740         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19741         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19742         pthread_mutexattr_init, pthread_mutexattr_settype,
19743         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19744         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19745         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19746         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19747         * lib/sched.in.h (struct sched_param): Likewise.
19748         * lib/se-selinux.in.h (security_class_t, security_context_t,
19749         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19750         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19751         lsetfilecon, fsetfilecon, security_check_context,
19752         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19753         Likewise.
19754         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19755         Likewise.
19756         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19757         _gl_function_taking_int_returning_void_t, union sigval,
19758         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19759         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19760         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19761         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19762         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19763         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19764         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19765         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19766         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19767         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19768         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19769         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19770         socklen_t, rpl_fd_isset): Likewise.
19771         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19772         * lib/sys_time.in.h (struct timeval): Likewise.
19773         * lib/sys_times.in.h (struct tms): Likewise.
19774         * lib/sys_utsname.in.h (struct utsname):
19775         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19776         * lib/unistd.in.h (getpagesize): Likewise.
19777         * lib/wchar.in.h (mbstate_t): Likewise.
19778         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19779         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19780         towlower, towupper): Likewise.
19781         Reported by Sam Steingold <sds@gnu.org>.
19782
19783 2011-02-05  Eric Blake  <eblake@redhat.com>
19784
19785         unsetenv: work around Haiku issues
19786         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19787         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19788
19789 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19790
19791         libposix: avoid calling error() within libposix
19792         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19793         is defined.
19794
19795 2011-02-05  Eric Blake  <eblake@redhat.com>
19796
19797         strerror_r-posix: port to cygwin
19798         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19799         implementation.
19800         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19801         * tests/test-strerror_r.c (main): Fix test.
19802         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19803         issue.
19804
19805 2011-02-05  Bruno Haible  <bruno@clisp.org>
19806
19807         New module 'wmemchr'.
19808         * modules/wmemchr: New file.
19809         * lib/wchar.in.h (wmemchr): New declaration.
19810         * lib/wmemchr.c: New file.
19811         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19812         * m4/wmemchr.m4: New file.
19813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19815         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19816         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19817         * doc/posix-functions/wmemchr.texi: Mention the new module.
19818
19819 2011-02-04  Eric Blake  <eblake@redhat.com>
19820
19821         fdopendir: detect FreeBSD bug
19822         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19823         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19824
19825 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19826
19827         stdbool: do not define HAVE_STDBOOL_H
19828         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
19829         AC_HEADER_STDBOOL.  All uses changed.  Do not define
19830         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
19831         imported from the latest Autoconf git.  It was motivated by Emacs,
19832         which uses gnulib but does not need HAVE_STDBOOL_H.
19833
19834 2011-02-04  Bruno Haible  <bruno@clisp.org>
19835
19836         wcsnrtombs: Prepare for new module wwcsnrtombs.
19837         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
19838         * lib/wcsnrtombs.c: Include it.
19839         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
19840
19841         wcsrtombs: Prepare for new module wwcsrtombs.
19842         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
19843         * lib/wcsrtombs.c: Include it.
19844         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
19845
19846         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
19847         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
19848         * lib/mbsnrtowcs.c: Include it.
19849         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
19850
19851         mbsrtowcs: Prepare for new module mbsrtowwcs.
19852         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
19853         * lib/mbsrtowcs.c: Include it.
19854         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
19855
19856 2011-02-04  Bruno Haible  <bruno@clisp.org>
19857
19858         vasnprintf: Reduce use of malloc for small format strings.
19859         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
19860         (arguments): Add room for the first 7 arguments.
19861         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
19862         (char_directives, u8_directives, u16_directives, u32_directives): Add
19863         room for the first 7 directives.
19864         * lib/printf-parse.c: Include <string.h>.
19865         (PRINTF_PARSE): Change memory handling code so that it uses the first
19866         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
19867         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
19868         Reported by Pádraig Brady <P@draigbrady.com>.
19869
19870 2011-01-31  Eric Blake  <eblake@redhat.com>
19871
19872         dup2: work around Haiku bug
19873         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
19874         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
19875         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19876         * tests/test-dup2.c (main): Enhance test.
19877
19878 2011-01-31  Simon Josefsson  <simon@josefsson.org>
19879
19880         doc: off_t is not available in eglibc 2.11.2 stdio.h.
19881         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
19882         declared by eglibc 2.11.2.
19883         * lib/stdio.in.h: Likewise.
19884
19885 2011-01-31  Eric Blake  <eblake@redhat.com>
19886
19887         ignore-value: add missing test dependency
19888         * tests/test-ignore-value.c: Revert previous change; stdio.h
19889         provides off_t.
19890         * modules/ignore-value-tests (Depends-on): Add missing dependency.
19891
19892 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19893
19894         mktime: clarify long_int width checking
19895         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
19896         the top level, to make it clearer that the assumption about
19897         long_int width is being checked.  See
19898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
19899
19900 2011-01-30  Simon Josefsson  <simon@josefsson.org>
19901
19902         ignore-value: Fix self-test.
19903         * tests/test-ignore-value.c: Include sys/types.h for off_t.
19904
19905 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19906
19907         TYPE_MAXIMUM: avoid theoretically undefined behavior
19908         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
19909         negative number, which the C Standard says has undefined behavior.
19910         In practice this is not a problem, but might as well do it by the book.
19911         Reported by Rich Felker and Eric Blake; see
19912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
19913         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
19914         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19916         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
19917         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19918         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
19919
19920         mktime: #undef mktime before #defining it
19921         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
19922
19923         mktime: systematically normalize tm_isdst comparisons
19924         * lib/mktime.c (isdst_differ): New function.
19925         (__mktime_internal): Use it systematically for all isdst comparisons.
19926         This completes the fix for libc BZ #6723, and removes the need for
19927         normalizing tm_isdst.  See
19928         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
19929         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
19930
19931         mktime: fix some integer overflow issues and sidestep the rest
19932
19933         This was prompted by a bug report by Benjamin Lindner for MinGW
19934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
19935         His bug is due to signed integer overflow (0 - INT_MIN), and I
19936         I scanned through mktime.c looking for other integer overflow
19937         problems, fixing all the bugs I found.
19938
19939         Although the C Standard says the resulting code is still not safe
19940         in the presence of integer overflow, in practice it should be good
19941         enough for all real-world two's-complement implementations, except
19942         for debugging environments that deliberately trap on integer
19943         overflow (e.g., gcc -ftrapv).
19944
19945         * lib/mktime.c (WRAPV): New macro.
19946         (SHR): Also check that long_int and time_t shift right in the
19947         usual way, before using the fast-but-unportable method.
19948         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
19949         used.  The code already assumed two's complement, so there's
19950         no need to test for alternatives.  All uses removed.
19951         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
19952         the C standard.  Problem reported by Rich Felker in
19953         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
19954         (twos_complement_arithmetic): Also check long_int and time_t.
19955         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
19956         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
19957         (__mktime_internal): Avoid integer overflow with unary subtraction
19958         in two instances where -1 - X is an adequate replacement for -X,
19959         since the calculations are approximate.
19960
19961 2011-01-29  Eric Blake  <eblake@redhat.com>
19962
19963         mktime: avoid infinite loop
19964         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
19965         type; behavior is still undefined but portable to all known targets.
19966         Reported by Rich Felker.
19967
19968 2011-01-29  Simon Josefsson  <simon@josefsson.org>
19969
19970         rename, unlink, same-inode: Relicense.
19971         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
19972         * modules/unlink (License): Likewise.
19973         * modules/same-inode (License): Likewise.
19974
19975 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19976
19977         mktime: avoid problems on NetBSD 5 / i386
19978         * lib/mktime.c (long_int): New type.  This works around a problem
19979         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
19980         but time_t is 64 bits, and where I expect the existing code is
19981         wrong in some cases.
19982         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
19983         (ydhms_diff): Bring back the compile-time check for wide-enough
19984         year and yday.
19985
19986         mktime: fix misspelling in comment
19987         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
19988         This merges all recent glibc changes of importance.
19989
19990 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19991
19992         move-if-change: cope with concurrent mv of identical file.
19993         * build-aux/move-if-change (CMPPROG): Accept environment
19994         variable as an override for `cmp'.
19995         (usage): Document CMPPROG.
19996         Adjust comparison to drop stdout.  Cope with failure of mv if
19997         the target file exists and is identical to the source, for
19998         parallel builds.
19999         Report from H.J. Lu against binutils in PR binutils/12283.
20000
20001 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20002
20003         * users.txt: Mention sharutils.
20004
20005 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20006
20007         * users.txt: Mention OATH Toolkit.
20008
20009 2011-01-27  Bruno Haible  <bruno@clisp.org>
20010
20011         Prepare for supporting FreeBSD 10.
20012         * build-aux/config.libpath: Remove handling of freebsd1*.
20013
20014 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20015
20016         Prepare for supporting FreeBSD 10.
20017         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20018         match FreeBSD 10.0.
20019
20020 2011-01-27  Bruno Haible  <bruno@clisp.org>
20021
20022         vma-iter, get-rusage-as: Add OpenBSD support.
20023         * modules/vma-iter (configure.ac): Test for mquery.
20024         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20025         * lib/vma-iter.c: Include <sys/mman.h>.
20026         (vma_iterate): Add an implementation based on mquery().
20027         * lib/resource-ext.h (get_rusage_as): Update comments.
20028         * lib/get-rusage-as.c: Likewise.
20029         * lib/get-rusage-data.c: Likewise.
20030
20031 2011-01-26  Karl Berry  <karl@gnu.org>
20032
20033         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20034         variables to make it easier to override the makeinfo program used.
20035
20036 2011-01-26  Eric Blake  <eblake@redhat.com>
20037
20038         fcntl: work around Haiku F_DUPFD bugs
20039         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20040         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20041         cloexec bit on duplication.
20042         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20043
20044 2011-01-26  Bruno Haible  <bruno@clisp.org>
20045
20046         Enable memory leak tests on AIX.
20047         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20048         * tests/test-fprintf-posix3.c (main): Likewise.
20049
20050 2011-01-26  Bruno Haible  <bruno@clisp.org>
20051
20052         Tests for module 'get-rusage-data'.
20053         * modules/get-rusage-data-tests: New file.
20054         * tests/test-get-rusage-data.c: New file.
20055
20056         New module 'get-rusage-data'.
20057         * lib/resource-ext.h (get_rusage_data): New declaration.
20058         * lib/get-rusage-data.c: New file.
20059         * modules/get-rusage-data: New file.
20060
20061 2011-01-25  Bruno Haible  <bruno@clisp.org>
20062
20063         get-rusage-as: Allow for easier testing.
20064         * lib/resource-ext.h (get_rusage_as): Add comment.
20065         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20066         (main): New function for interactive testing.
20067
20068 2011-01-25  Bruno Haible  <bruno@clisp.org>
20069
20070         vma-iter: Treat Haiku like BeOS.
20071         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20072         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20073
20074 2011-01-25  Eric Blake  <eblake@redhat.com>
20075
20076         c-stack: fix regression on cygwin when libsigsegv is present
20077         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20078
20079 2011-01-24  Bruno Haible  <bruno@clisp.org>
20080
20081         vma-iter: Avoid empty intervals.
20082         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20083         on an empty interval.
20084
20085 2011-01-24  Jim Meyering  <meyering@redhat.com>
20086
20087         u64: remove unnecessary #include
20088         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20089
20090 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20091
20092         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20093         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20094
20095 2011-01-23  Bruno Haible  <bruno@clisp.org>
20096
20097         New module 'vma-iter'.
20098         * lib/vma-iter.h: New file.
20099         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20100         * modules/vma-iter: New file.
20101         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20102         for get_rusage_as_via_iterator.
20103         (vma_iterate_callback): New function.
20104         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20105         * modules/get-rusage-as (Depends-on): Add vma-iter.
20106
20107 2011-01-23  Bruno Haible  <bruno@clisp.org>
20108
20109         uninorm: Tweak includes.
20110         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20111         Reported by Jim Meyering.
20112
20113 2011-01-23  Bruno Haible  <bruno@clisp.org>
20114
20115         get-rusage-as: Improve on NetBSD.
20116         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20117         /proc, like on FreeBSD.
20118
20119 2011-01-23  Jim Meyering  <meyering@redhat.com>
20120
20121         xreadlink.h: remove unnecessary #include
20122         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20123
20124         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20125         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20126
20127 2011-01-23  Bruno Haible  <bruno@clisp.org>
20128
20129         get-rusage-as: Fix bug.
20130         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20131         original limit when aborting the first loop.
20132
20133 2011-01-23  Bruno Haible  <bruno@clisp.org>
20134
20135         wctype: Ensure valid C syntax.
20136         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20137         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20138
20139 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20140
20141         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20142         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20143         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20144         as they are needed only for configure's test case.
20145         This removes two unnecessary symbols from config.h.
20146
20147         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20148         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20149         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20150         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20151         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20152         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20153         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20154         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20155         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20156         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20157         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20158         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20159         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20160         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20161         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20162         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20163         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20164         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20165
20166 2011-01-21  Eric Blake  <eblake@redhat.com>
20167
20168         maintainer-makefile: work with older git for submodule check
20169         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20170         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20171         Reported by Matthias Bolte.
20172
20173         bootstrap: minor portability fixes
20174         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20175         (usage): Omit leading capital and trailing . on help phrases, per
20176         GNU Coding Standards.
20177         (check_versions, top level): Prefix messages with script name.
20178
20179 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20180
20181         bootstrap: support --no-git option
20182         * build-aux/bootstrap: Add --no-git option, to be used when
20183         --gnulib-srcdir points to the exact desired checkout.
20184
20185 2011-01-21  Eric Blake  <eblake@redhat.com>
20186
20187         strerror_r-posix: work with glibc 2.13
20188         * lib/strerror_r.c (strerror_r): Fix return type.
20189
20190 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20191             Bruno Haible  <bruno@clisp.org>
20192
20193         uN_strstr: New unit tests.
20194         * modules/unistr/u8-strstr-tests: New file.
20195         * modules/unistr/u16-strstr-tests: New file.
20196         * modules/unistr/u32-strstr-tests: New file.
20197         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20198         * tests/unistr/test-u8-strstr.c: New file.
20199         * tests/unistr/test-u16-strstr.c: New file.
20200         * tests/unistr/test-u32-strstr.c: New file.
20201
20202 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20203             Bruno Haible  <bruno@clisp.org>
20204
20205         Make uN_strstr functions O(n) worst-case.
20206         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20207         16-bit and 32-bit unit cases, use the unibyte algorithm from
20208         lib/mbsstr.c.
20209         * lib/unistr/u8-strstr.c: Include <string.h>.
20210         (UNIT_IS_UINT8_T): New macro.
20211         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20212         (U_STRLEN, U_STRNLEN): New macros.
20213         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20214         (U_STRLEN, U_STRNLEN): New macros.
20215         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20216         (configure.ac): Update required libunistring version.
20217         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20218         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20219         malloca.
20220         (configure.ac): Update required libunistring version.
20221         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20222         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20223         malloca.
20224         (configure.ac): Update required libunistring version.
20225
20226 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20227             Bruno Haible  <bruno@clisp.org>
20228
20229         Prepare for faster uN_strstr functions.
20230         * lib/str-kmp.h: Support definable UNITs.
20231         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20232         needle_len argument.
20233         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20234         * lib/mbscasestr.c (mbscasestr): Likewise.
20235
20236 2011-01-21  Pádraig Brady <P@draigBrady.com>
20237
20238         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20239         * tests/test-malloca.c (main): Unset the environment variable
20240         to greatly speed up the test.
20241         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20242         * modules/malloca-tests: Depend on unsetenv.
20243
20244 2011-01-21  Pádraig Brady <P@draigBrady.com>
20245
20246         ignore-value: remove stdint dependency
20247         * lib/ignore-value.h: Remove <stdint.h>
20248         * modules/ignore-value: Remove stdint dependency.
20249
20250 2011-01-21  Jim Meyering  <meyering@redhat.com>
20251
20252         maint.mk: adjust variable name to be consistent with other gl_ vars
20253         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20254         to be lower case.
20255
20256 2011-01-20  Jim Meyering  <meyering@redhat.com>
20257
20258         maint.mk: make "check" depend on public-submodule-commit by default
20259         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20260
20261 2011-01-20  Bruno Haible  <bruno@clisp.org>
20262
20263         mbfile, mbiter: Complete change from 2008-12-21.
20264         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20265         * m4/mbiter.m4 (gl_MBITER): Likewise.
20266
20267 2011-01-20  Jim Meyering  <meyering@redhat.com>
20268
20269         init.sh: insert space between each function name and "()"
20270         * tests/init.sh: Make it a little easier to see that a function's
20271         name is "warn_", and not "warn" when looking at the first part of
20272         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20273
20274 2011-01-20  Jim Meyering  <meyering@redhat.com>
20275
20276         mountlist: clean up code formatting
20277         * lib/mountlist.c (read_file_system_list): Split a long line,
20278         correct bracing style, use NULL in place of "(struct statfs *)0",
20279         don't parenthesize return value, add spaces around "=" and after
20280         ";-in-for-stmt".
20281
20282 2011-01-14  Markus Duft <mduft@gentoo.org>
20283
20284         mountlist: add support for Interix
20285         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20286         Apply statvfs to all entries of /dev/fs.
20287         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20288         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20289
20290 2011-01-20  Jim Meyering  <meyering@redhat.com>
20291
20292         maint.mk: improve the public-submodule-commit rule
20293         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20294         to suppress printing of its commands... unless V=1.
20295         Add git submodule's --quiet option to suppress printing of e.g.,
20296         "Entering gnulib" output.
20297         "cd" into $(srcdir) before running git submodule.
20298
20299 2011-01-20  Bruno Haible  <bruno@clisp.org>
20300
20301         include_next: Fix bug introduced on 2011-01-18.
20302         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20303         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20304         ac_cv_header_... variable if the second argument is not 'check'.
20305         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20306         gl_NEXT_HEADERS_INTERNAL.
20307
20308 2011-01-20  Bruno Haible  <bruno@clisp.org>
20309
20310         Allow the user to avoid the GNULIB_TEST_* macros.
20311         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20312         Suggested by Paul Eggert.
20313
20314 2011-01-14  Jim Meyering  <meyering@redhat.com>
20315
20316         bootstrap: avoid failure when there is no .gitmodules file
20317         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20318         has been assigned to, even when its value is the empty string.
20319         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20320         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20321         Reported by John W. Eaton <jwe@gnu.org>.
20322
20323 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20324
20325         assume <ctype.h>, ..., <time.h> exist
20326         For years gnulib has been assuming the existence of the headers
20327         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20328         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20329         them, since they don't appear to be needed.
20330         * README (Portability guidelines): Document this.
20331         * lib/flock.c: Assume <fcntl.h> exists.
20332         * lib/regex_internal.h: Assume <locale.h> exists.
20333         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20334         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20335         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20336         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20337         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20338         * m4/regex.m4 (gl_REGEX): Likewise.
20339         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20340         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20341         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20342         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20343         * tests/test-argp.c: Likewise.
20344         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20345
20346         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20347         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20348         AA_APPLE_UNIVERSAL_BUILD.  See
20349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20350         * NEWS: Document this.
20351
20352 2011-01-19  Eric Blake  <eblake@redhat.com>
20353
20354         c-stack: assume stack overflow if SA_SIGINFO unsupported
20355         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20356         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20357         sigaction will work.
20358         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20359         behavior match Linux.
20360         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20361
20362         stdbool-tests: accomodate Haiku
20363         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20364
20365         binary-io: fix O_TEXT on Haiku
20366         * modules/binary-io (Depends-on): Add fcntl-h.
20367         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20368         than blindly undefining O_TEXT.
20369         Reported by Scott McCreary.
20370
20371 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20372
20373         include_next: do not check for standard headers like stddef.h
20374
20375         I found this problem when modifying Emacs to use gnulib.
20376         I noticed that it added HAVE_STDDEF_H to config.h, even though
20377         gnulib always assumes <stddef.h> exists as per README and this
20378         symbol is unnecessary.
20379         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20380         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20381         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20382         faster for headers like stddef.h that are known to exist.
20383         (gl_CHECK_NEXT_HEADERS): Use it.
20384         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20385         rather than gl_CHECK_NEXT_HEADERS.
20386         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20387         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20388
20389 2011-01-18  Eric Blake  <eblake@redhat.com>
20390
20391         ansi-c++-opt: skip C++ dependency style if C++ is unused
20392         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20393         tests when we know C++ compilation is not desired.
20394         Reported by Scott McCreary.
20395
20396 2011-01-18  Bruno Haible  <bruno@clisp.org>
20397
20398         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20399         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20400         (main): Perform test also when getrlimit and setrlimit don't exist or
20401         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20402         limiting the address space size using setrlimit, compare the address
20403         space size before and after the the test.
20404         * tests/test-dprintf-posix2.c: Likewise.
20405         * tests/test-fprintf-posix3.sh: Update skip messages.
20406         * tests/test-dprintf-posix2.sh: Likewise.
20407         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20408         * modules/dprintf-posix-tests (Depends-on): Likewise.
20409         Reported by Bruce Korb <bkorb@gnu.org> and
20410         Gary V. Vaughan <gary@gnu.org>.
20411
20412 2011-01-18  Bruno Haible  <bruno@clisp.org>
20413
20414         get-rusage-as: Improvement for Cygwin.
20415         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20416         areas that are merely reserved.
20417
20418 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20419
20420         strftime: remove dependencies on multibyte modules
20421
20422         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20423         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20424         only if __osf__ is defined, and I suspect OSF doesn't need these
20425         other modules.  If my guess is wrong, we'll need to come up with a
20426         variant of strftime that doesn't need the multibyte modules.
20427
20428         I discovered this problem when attempting modify Emacs to use the
20429         strftime module.  With the previous gnulib, this caused Emacs to
20430         need 31 new files, ranging from lib/config.charset to
20431         m4/wint_t.m4.  This was overkill and I expect would be offputting
20432         to the Emacs maintainers.  After this change, only 6 new files are
20433         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20434         stdbool.m4, and tm_gmtoff.m4.
20435
20436         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20437         Suggested by Bruno Haible in
20438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20439         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20440         and do not check for wchar.h.
20441         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20442         (Depends-on): Remove mbrlen, mbsinit, wchar.
20443
20444 2011-01-18  Bruno Haible  <bruno@clisp.org>
20445
20446         Tests for module 'get-rusage-as'.
20447         * modules/get-rusage-as-tests: New file.
20448         * tests/test-get-rusage-as.c: New file.
20449
20450         New module 'get-rusage-as'.
20451         * modules/get-rusage-as: New file.
20452         * lib/resource-ext.h: New file.
20453         * lib/get-rusage-as.c: New file.
20454
20455 2011-01-17  Eric Blake  <eblake@redhat.com>
20456
20457         sigaction: relax license from LGPLv3+ to LGPLv2+
20458         * modules/sigaction (License): Relax to LGPLv2+.
20459
20460 2011-01-14  Bruno Haible  <bruno@clisp.org>
20461
20462         filemode: Make function declarations usable in C++ mode.
20463         * lib/filemode.h: Enclose function declarations in extern "C" block.
20464         Reported by John W. Eaton <jwe@gnu.org>.
20465
20466 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20467
20468         save-cwd: no longer include "xgetcwd.h"
20469         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20470         This avoids a compilation failure in projects that use save-cwd
20471         without also using the xgetcwd module.
20472
20473 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20474
20475         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20476         This is so that a program like Emacs, which needs only dtoastr,
20477         does not have to bother with distributing and compiling ftoastr
20478         and ldtoastr.
20479         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20480         * modules/dtoastr, modules/ldtoastr: New files.
20481         * modules/ftoastr: Now works just for 'float'.
20482         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20483         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20484         dtoastr.c, ldtoastr.c.
20485
20486 2011-01-11  Jim Meyering  <meyering@redhat.com>
20487
20488         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20489         There is no need to work around the lack of the fchdir function,
20490         since gnulib can now provide a replacement when required.
20491         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20492         * modules/save-cwd (Depends-on): Add fchdir.
20493
20494 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20495
20496         openat, save-cwd: avoid xmalloc
20497
20498         This removes a direct (but undocumented) dependency of openat on
20499         xalloc, along with an indirect dependency via save-cwd.  It also
20500         removes a dependency of save-cwd on xgetcwd, and thereby
20501         indirectly on xalloc.  This change causes the openat substitute
20502         to fall back on save_cwd when memory is tight, and for save_cwd to
20503         fail instead of dying when memory is tight, but that's good enough.
20504         Problem and initial idea for fix reported by Bastien Roucaries in
20505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20506
20507         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20508         xalloc.h (for xmalloc).
20509         (openat_proc_name): Use malloc, not xmalloc.
20510         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20511         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20512
20513         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20514         This avoids heap allocation for file names whose lengths are in
20515         the range 512..1023, with the upper bound increasing to at most
20516         4031 depending on the platform's PATH_MAX.  (We do not want
20517         pathmax.h here as it might supply a non-constant PATH_MAX.)
20518         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20519         Perhaps they should be moved to malloca.h?
20520         (OPENAT_BUFFER_SIZE): Use them.
20521
20522 2011-01-10  Bruno Haible  <bruno@clisp.org>
20523
20524         doc: Update users.txt.
20525         * users.txt: Add recutils.
20526
20527 2011-01-09  Karl Berry  <karl@gnu.org>
20528
20529         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20530
20531         * doc/configmake.texi: New file.
20532         * doc/gnulib.texi: Include it.
20533         * modules/configmake: Move documentation from here.
20534
20535 2011-01-09  Bruno Haible  <bruno@clisp.org>
20536
20537         Update to Unicode 6.0.0.
20538         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20539         (get_lbp): Update for Unicode 6.0.0.
20540         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20541         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20542         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20543         U+11001, U+11038..U+11046. Remove U+06DE.
20544         (uc_width): Fix bounds of planes.
20545         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20546         lib/uniwidth/width.c.
20547         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20548         trailing whitespace removed.
20549         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20550         without comments, but with the original copyright notice.
20551         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20552         * lib/unicase/ignorable.h: Likewise.
20553         * lib/unicase/tocasefold.h: Likewise.
20554         * lib/unicase/tolower.h: Likewise.
20555         * lib/unicase/totitle.h: Likewise.
20556         * lib/unicase/toupper.h: Likewise.
20557         * lib/unictype/bidi_of.h: Likewise.
20558         * lib/unictype/blocks.h: Likewise.
20559         * lib/unictype/categ_C.h: Likewise.
20560         * lib/unictype/categ_Cn.h: Likewise.
20561         * lib/unictype/categ_L.h: Likewise.
20562         * lib/unictype/categ_Ll.h: Likewise.
20563         * lib/unictype/categ_Lm.h: Likewise.
20564         * lib/unictype/categ_Lo.h: Likewise.
20565         * lib/unictype/categ_Lu.h: Likewise.
20566         * lib/unictype/categ_M.h: Likewise.
20567         * lib/unictype/categ_Mc.h: Likewise.
20568         * lib/unictype/categ_Me.h: Likewise.
20569         * lib/unictype/categ_Mn.h: Likewise.
20570         * lib/unictype/categ_N.h: Likewise.
20571         * lib/unictype/categ_Nd.h: Likewise.
20572         * lib/unictype/categ_No.h: Likewise.
20573         * lib/unictype/categ_P.h: Likewise.
20574         * lib/unictype/categ_Po.h: Likewise.
20575         * lib/unictype/categ_S.h: Likewise.
20576         * lib/unictype/categ_Sc.h: Likewise.
20577         * lib/unictype/categ_Sk.h: Likewise.
20578         * lib/unictype/categ_Sm.h: Likewise.
20579         * lib/unictype/categ_So.h: Likewise.
20580         * lib/unictype/categ_of.h: Likewise.
20581         * lib/unictype/combining.h: Likewise.
20582         * lib/unictype/ctype_alnum.h: Likewise.
20583         * lib/unictype/ctype_alpha.h: Likewise.
20584         * lib/unictype/ctype_graph.h: Likewise.
20585         * lib/unictype/ctype_lower.h: Likewise.
20586         * lib/unictype/ctype_print.h: Likewise.
20587         * lib/unictype/ctype_punct.h: Likewise.
20588         * lib/unictype/ctype_upper.h: Likewise.
20589         * lib/unictype/decdigit.h: Likewise.
20590         * lib/unictype/digit.h: Likewise.
20591         * lib/unictype/numeric.h: Likewise.
20592         * lib/unictype/pr_alphabetic.h: Likewise.
20593         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20594         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20595         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20596         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20597         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20598         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20599         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20600         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20601         * lib/unictype/pr_case_ignorable.h: Likewise.
20602         * lib/unictype/pr_cased.h: Likewise.
20603         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20604         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20605         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20606         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20607         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20608         * lib/unictype/pr_combining.h: Likewise.
20609         * lib/unictype/pr_composite.h: Likewise.
20610         * lib/unictype/pr_currency_symbol.h: Likewise.
20611         * lib/unictype/pr_decimal_digit.h: Likewise.
20612         * lib/unictype/pr_deprecated.h: Likewise.
20613         * lib/unictype/pr_format_control.h: Likewise.
20614         * lib/unictype/pr_grapheme_base.h: Likewise.
20615         * lib/unictype/pr_grapheme_extend.h: Likewise.
20616         * lib/unictype/pr_grapheme_link.h: Likewise.
20617         * lib/unictype/pr_id_continue.h: Likewise.
20618         * lib/unictype/pr_id_start.h: Likewise.
20619         * lib/unictype/pr_ideographic.h: Likewise.
20620         * lib/unictype/pr_lowercase.h: Likewise.
20621         * lib/unictype/pr_math.h: Likewise.
20622         * lib/unictype/pr_numeric.h: Likewise.
20623         * lib/unictype/pr_other_alphabetic.h: Likewise.
20624         * lib/unictype/pr_other_id_continue.h: Likewise.
20625         * lib/unictype/pr_other_math.h: Likewise.
20626         * lib/unictype/pr_punctuation.h: Likewise.
20627         * lib/unictype/pr_sentence_terminal.h: Likewise.
20628         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20629         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20630         * lib/unictype/pr_unified_ideograph.h: Likewise.
20631         * lib/unictype/pr_uppercase.h: Likewise.
20632         * lib/unictype/pr_xid_continue.h: Likewise.
20633         * lib/unictype/pr_xid_start.h: Likewise.
20634         * lib/unictype/scripts.h: Likewise.
20635         * lib/unictype/scripts_byname.gperf: Likewise.
20636         * lib/unictype/sy_java_ident.h: Likewise.
20637         * lib/unigbrk/gbrkprop.h: Likewise.
20638         * lib/unilbrk/lbrkprop1.h: Likewise.
20639         * lib/unilbrk/lbrkprop2.h: Likewise.
20640         * lib/uninorm/decomposition-table2.h: Likewise.
20641         * lib/uniwbrk/wbrkprop.h: Likewise.
20642         * tests/unicase/test-cased.c: Likewise.
20643         * tests/unicase/test-ignorable.c: Likewise.
20644         * tests/unicase/test-uc_tolower.c: Likewise.
20645         * tests/unicase/test-uc_totitle.c: Likewise.
20646         * tests/unicase/test-uc_toupper.c: Likewise.
20647         * tests/unictype/test-categ_C.c: Likewise.
20648         * tests/unictype/test-categ_Cn.c: Likewise.
20649         * tests/unictype/test-categ_L.c: Likewise.
20650         * tests/unictype/test-categ_Ll.c: Likewise.
20651         * tests/unictype/test-categ_Lm.c: Likewise.
20652         * tests/unictype/test-categ_Lo.c: Likewise.
20653         * tests/unictype/test-categ_Lu.c: Likewise.
20654         * tests/unictype/test-categ_M.c: Likewise.
20655         * tests/unictype/test-categ_Mc.c: Likewise.
20656         * tests/unictype/test-categ_Me.c: Likewise.
20657         * tests/unictype/test-categ_Mn.c: Likewise.
20658         * tests/unictype/test-categ_N.c: Likewise.
20659         * tests/unictype/test-categ_Nd.c: Likewise.
20660         * tests/unictype/test-categ_No.c: Likewise.
20661         * tests/unictype/test-categ_P.c: Likewise.
20662         * tests/unictype/test-categ_Po.c: Likewise.
20663         * tests/unictype/test-categ_S.c: Likewise.
20664         * tests/unictype/test-categ_Sc.c: Likewise.
20665         * tests/unictype/test-categ_Sk.c: Likewise.
20666         * tests/unictype/test-categ_Sm.c: Likewise.
20667         * tests/unictype/test-categ_So.c: Likewise.
20668         * tests/unictype/test-ctype_alnum.c: Likewise.
20669         * tests/unictype/test-ctype_alpha.c: Likewise.
20670         * tests/unictype/test-ctype_graph.c: Likewise.
20671         * tests/unictype/test-ctype_lower.c: Likewise.
20672         * tests/unictype/test-ctype_print.c: Likewise.
20673         * tests/unictype/test-ctype_punct.c: Likewise.
20674         * tests/unictype/test-ctype_upper.c: Likewise.
20675         * tests/unictype/test-decdigit.h: Likewise.
20676         * tests/unictype/test-digit.h: Likewise.
20677         * tests/unictype/test-numeric.h: Likewise.
20678         * tests/unictype/test-pr_alphabetic.c: Likewise.
20679         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20680         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20681         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20682         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20683         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20684         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20685         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20686         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20687         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20688         * tests/unictype/test-pr_cased.c: Likewise.
20689         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20690         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20691         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20692         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20693         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20694         * tests/unictype/test-pr_combining.c: Likewise.
20695         * tests/unictype/test-pr_composite.c: Likewise.
20696         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20697         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20698         * tests/unictype/test-pr_deprecated.c: Likewise.
20699         * tests/unictype/test-pr_format_control.c: Likewise.
20700         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20701         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20702         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20703         * tests/unictype/test-pr_id_continue.c: Likewise.
20704         * tests/unictype/test-pr_id_start.c: Likewise.
20705         * tests/unictype/test-pr_ideographic.c: Likewise.
20706         * tests/unictype/test-pr_lowercase.c: Likewise.
20707         * tests/unictype/test-pr_math.c: Likewise.
20708         * tests/unictype/test-pr_numeric.c: Likewise.
20709         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20710         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20711         * tests/unictype/test-pr_other_math.c: Likewise.
20712         * tests/unictype/test-pr_punctuation.c: Likewise.
20713         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20714         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20715         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20716         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20717         * tests/unictype/test-pr_uppercase.c: Likewise.
20718         * tests/unictype/test-pr_xid_continue.c: Likewise.
20719         * tests/unictype/test-pr_xid_start.c: Likewise.
20720         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20721         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20722         changes.
20723         * lib/unictype/categ_Cc.h: Likewise.
20724         * lib/unictype/categ_Cf.h: Likewise.
20725         * lib/unictype/categ_Co.h: Likewise.
20726         * lib/unictype/categ_Cs.h: Likewise.
20727         * lib/unictype/categ_Lt.h: Likewise.
20728         * lib/unictype/categ_Nl.h: Likewise.
20729         * lib/unictype/categ_Pc.h: Likewise.
20730         * lib/unictype/categ_Pd.h: Likewise.
20731         * lib/unictype/categ_Pe.h: Likewise.
20732         * lib/unictype/categ_Pf.h: Likewise.
20733         * lib/unictype/categ_Pi.h: Likewise.
20734         * lib/unictype/categ_Ps.h: Likewise.
20735         * lib/unictype/categ_Z.h: Likewise.
20736         * lib/unictype/categ_Zl.h: Likewise.
20737         * lib/unictype/categ_Zp.h: Likewise.
20738         * lib/unictype/categ_Zs.h: Likewise.
20739         * lib/unictype/ctype_blank.h: Likewise.
20740         * lib/unictype/ctype_cntrl.h: Likewise.
20741         * lib/unictype/ctype_digit.h: Likewise.
20742         * lib/unictype/ctype_space.h: Likewise.
20743         * lib/unictype/ctype_xdigit.h: Likewise.
20744         * lib/unictype/mirror.h: Likewise.
20745         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20746         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20747         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20748         * lib/unictype/pr_bidi_control.h: Likewise.
20749         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20750         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20751         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20752         * lib/unictype/pr_bidi_pdf.h: Likewise.
20753         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20754         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20755         * lib/unictype/pr_dash.h: Likewise.
20756         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20757         * lib/unictype/pr_diacritic.h: Likewise.
20758         * lib/unictype/pr_extender.h: Likewise.
20759         * lib/unictype/pr_hex_digit.h: Likewise.
20760         * lib/unictype/pr_hyphen.h: Likewise.
20761         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20762         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20763         * lib/unictype/pr_ignorable_control.h: Likewise.
20764         * lib/unictype/pr_iso_control.h: Likewise.
20765         * lib/unictype/pr_join_control.h: Likewise.
20766         * lib/unictype/pr_left_of_pair.h: Likewise.
20767         * lib/unictype/pr_line_separator.h: Likewise.
20768         * lib/unictype/pr_logical_order_exception.h: Likewise.
20769         * lib/unictype/pr_non_break.h: Likewise.
20770         * lib/unictype/pr_not_a_character.h: Likewise.
20771         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20772         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20773         * lib/unictype/pr_other_id_start.h: Likewise.
20774         * lib/unictype/pr_other_lowercase.h: Likewise.
20775         * lib/unictype/pr_other_uppercase.h: Likewise.
20776         * lib/unictype/pr_paired_punctuation.h: Likewise.
20777         * lib/unictype/pr_paragraph_separator.h: Likewise.
20778         * lib/unictype/pr_pattern_syntax.h: Likewise.
20779         * lib/unictype/pr_pattern_white_space.h: Likewise.
20780         * lib/unictype/pr_private_use.h: Likewise.
20781         * lib/unictype/pr_quotation_mark.h: Likewise.
20782         * lib/unictype/pr_radical.h: Likewise.
20783         * lib/unictype/pr_soft_dotted.h: Likewise.
20784         * lib/unictype/pr_space.h: Likewise.
20785         * lib/unictype/pr_titlecase.h: Likewise.
20786         * lib/unictype/pr_variation_selector.h: Likewise.
20787         * lib/unictype/pr_white_space.h: Likewise.
20788         * lib/unictype/pr_zero_width.h: Likewise.
20789         * lib/unictype/sy_c_ident.h: Likewise.
20790         * lib/unictype/sy_c_whitespace.h: Likewise.
20791         * lib/unictype/sy_java_whitespace.h: Likewise.
20792         * lib/uninorm/composition-table.gperf: Likewise.
20793         * lib/uninorm/decomposition-table1.h: Likewise.
20794         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20795         LB8.
20796         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20797         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20798         * modules/unictype/*: Bump version number of expected libunistring
20799         version.
20800
20801 2011-01-09  Bruno Haible  <bruno@clisp.org>
20802
20803         Update to Unicode 5.2.0.
20804         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20805         trailing whitespace removed.
20806
20807 2011-01-09  Bruno Haible  <bruno@clisp.org>
20808
20809         New Unicode character properties, from Unicode 5.2.0.
20810         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20811         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20812         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20813         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20814         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20815         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20816         uc_is_property_cased, uc_is_property_case_ignorable,
20817         uc_is_property_changes_when_lowercased,
20818         uc_is_property_changes_when_uppercased,
20819         uc_is_property_changes_when_titlecased,
20820         uc_is_property_changes_when_casefolded,
20821         uc_is_property_changes_when_casemapped): New declarations.
20822         * lib/unictype/pr_byname.gperf: Add the new properties.
20823         * modules/unictype/property-byname (Depends-on): Depend on the new
20824         properties modules.
20825         * modules/unictype/property-all (Depends-on): Likewise.
20826         * MODULES.html.sh (Unicode string functions): Add
20827         unictype/property-case-ignorable, unictype/property-cased,
20828         unictype/property-changes-when-casefolded,
20829         unictype/property-changes-when-casemapped,
20830         unictype/property-changes-when-lowercased,
20831         unictype/property-changes-when-titlecased,
20832         unictype/property-changes-when-uppercased.
20833
20834         New module 'unictype/property-changes-when-casemapped'.
20835         * modules/unictype/property-changes-when-casemapped: New file.
20836         * lib/unictype/pr_changes_when_casemapped.c: New file.
20837         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
20838         generated by gen-uni-tables.
20839         * modules/unictype/property-changes-when-casemapped-tests: New file.
20840         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
20841         automatically generated by gen-uni-tables.
20842
20843         New module 'unictype/property-changes-when-casefolded'.
20844         * modules/unictype/property-changes-when-casefolded: New file.
20845         * lib/unictype/pr_changes_when_casefolded.c: New file.
20846         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
20847         generated by gen-uni-tables.
20848         * modules/unictype/property-changes-when-casefolded-tests: New file.
20849         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
20850         automatically generated by gen-uni-tables.
20851
20852         New module 'unictype/property-changes-when-titlecased'.
20853         * modules/unictype/property-changes-when-titlecased: New file.
20854         * lib/unictype/pr_changes_when_titlecased.c: New file.
20855         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
20856         generated by gen-uni-tables.
20857         * modules/unictype/property-changes-when-titlecased-tests: New file.
20858         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
20859         automatically generated by gen-uni-tables.
20860
20861         New module 'unictype/property-changes-when-uppercased'.
20862         * modules/unictype/property-changes-when-uppercased: New file.
20863         * lib/unictype/pr_changes_when_uppercased.c: New file.
20864         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
20865         generated by gen-uni-tables.
20866         * modules/unictype/property-changes-when-uppercased-tests: New file.
20867         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
20868         automatically generated by gen-uni-tables.
20869
20870         New module 'unictype/property-changes-when-lowercased'.
20871         * modules/unictype/property-changes-when-lowercased: New file.
20872         * lib/unictype/pr_changes_when_lowercased.c: New file.
20873         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
20874         generated by gen-uni-tables.
20875         * modules/unictype/property-changes-when-lowercased-tests: New file.
20876         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
20877         automatically generated by gen-uni-tables.
20878
20879         New module 'unictype/property-case-ignorable'.
20880         * modules/unictype/property-case-ignorable: New file.
20881         * lib/unictype/pr_case_ignorable.c: New file.
20882         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
20883         by gen-uni-tables.
20884         * modules/unictype/property-case-ignorable-tests: New file.
20885         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
20886         generated by gen-uni-tables.
20887
20888         New module 'unictype/property-cased'.
20889         * modules/unictype/property-cased: New file.
20890         * lib/unictype/pr_cased.c: New file.
20891         * lib/unictype/pr_cased.h: New file, automatically generated by
20892         gen-uni-tables.
20893         * modules/unictype/property-cased-tests: New file.
20894         * tests/unictype/test-pr_cased.c: New file, automatically generated by
20895         gen-uni-tables.
20896
20897 2011-01-09  Bruno Haible  <bruno@clisp.org>
20898
20899         Update to Unicode 5.2.0.
20900         * lib/gen-uni-tables.c (output_predicate, output_category,
20901         output_combclass, output_bidi_category, output_decimal_digit_test,
20902         output_decimal_digit, output_digit_test, output_digit,
20903         output_numeric_test, output_numeric, output_mirror, output_scripts,
20904         output_scripts_byname, output_blocks, output_ident_category): Fix
20905         comment header.
20906         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
20907         get_wbp.
20908         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
20909         items.
20910         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
20911         Changes_When_Lowercased, Changes_When_Uppercased,
20912         Changes_When_Titlecased, Changes_When_Casefolded,
20913         Changes_When_Casemapped.
20914         (is_property_alphabetic, is_property_default_ignorable_code_point):
20915         Update for Unicode 5.2.0.
20916         (is_property_cased, is_property_case_ignorable,
20917         is_property_changes_when_lowercased,
20918         is_property_changes_when_uppercased,
20919         is_property_changes_when_titlecased,
20920         is_property_changes_when_casefolded,
20921         is_property_changes_when_casemapped): New functions.
20922         (output_properties): Output also the properties cased, case_ignorable,
20923         changes_when_lowercased, changes_when_uppercased,
20924         changes_when_titlecased, changes_when_casefolded,
20925         changes_when_casemapped.
20926         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
20927         Unicode TR#11 revision 17 -> 19.
20928         (LBP_CP): New enumeration value.
20929         (LBP_*): Adjust values accordingly.
20930         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20931         TR#14 revision 22 -> 24.
20932         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
20933         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
20934         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20935         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
20936         is_WBP_MIDLETTER.
20937         (output_composition_tables): Allow for 24 bits instead of 16 bits in
20938         the code1 and code2 of each composition rule.
20939         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
20940         * lib/unicase/ignorable.h: Likewise.
20941         * lib/unicase/tocasefold.h: Likewise.
20942         * lib/unicase/tolower.h: Likewise.
20943         * lib/unicase/totitle.h: Likewise.
20944         * lib/unicase/toupper.h: Likewise.
20945         * lib/unictype/bidi_of.h: Likewise.
20946         * lib/unictype/blocks.h: Likewise.
20947         * lib/unictype/categ_C.h: Likewise.
20948         * lib/unictype/categ_Cf.h: Likewise.
20949         * lib/unictype/categ_Cn.h: Likewise.
20950         * lib/unictype/categ_L.h: Likewise.
20951         * lib/unictype/categ_Ll.h: Likewise.
20952         * lib/unictype/categ_Lm.h: Likewise.
20953         * lib/unictype/categ_Lo.h: Likewise.
20954         * lib/unictype/categ_Lu.h: Likewise.
20955         * lib/unictype/categ_M.h: Likewise.
20956         * lib/unictype/categ_Mc.h: Likewise.
20957         * lib/unictype/categ_Mn.h: Likewise.
20958         * lib/unictype/categ_N.h: Likewise.
20959         * lib/unictype/categ_Nd.h: Likewise.
20960         * lib/unictype/categ_Nl.h: Likewise.
20961         * lib/unictype/categ_No.h: Likewise.
20962         * lib/unictype/categ_P.h: Likewise.
20963         * lib/unictype/categ_Pd.h: Likewise.
20964         * lib/unictype/categ_Po.h: Likewise.
20965         * lib/unictype/categ_S.h: Likewise.
20966         * lib/unictype/categ_Sc.h: Likewise.
20967         * lib/unictype/categ_So.h: Likewise.
20968         * lib/unictype/categ_of.h: Likewise.
20969         * lib/unictype/combining.h: Likewise.
20970         * lib/unictype/ctype_alnum.h: Likewise.
20971         * lib/unictype/ctype_alpha.h: Likewise.
20972         * lib/unictype/ctype_graph.h: Likewise.
20973         * lib/unictype/ctype_lower.h: Likewise.
20974         * lib/unictype/ctype_print.h: Likewise.
20975         * lib/unictype/ctype_punct.h: Likewise.
20976         * lib/unictype/ctype_upper.h: Likewise.
20977         * lib/unictype/decdigit.h: Likewise.
20978         * lib/unictype/digit.h: Likewise.
20979         * lib/unictype/numeric.h: Likewise.
20980         * lib/unictype/pr_alphabetic.h: Likewise.
20981         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20982         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20983         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20984         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20985         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20986         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20987         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20988         * lib/unictype/pr_combining.h: Likewise.
20989         * lib/unictype/pr_composite.h: Likewise.
20990         * lib/unictype/pr_currency_symbol.h: Likewise.
20991         * lib/unictype/pr_dash.h: Likewise.
20992         * lib/unictype/pr_decimal_digit.h: Likewise.
20993         * lib/unictype/pr_deprecated.h: Likewise.
20994         * lib/unictype/pr_diacritic.h: Likewise.
20995         * lib/unictype/pr_extender.h: Likewise.
20996         * lib/unictype/pr_grapheme_base.h: Likewise.
20997         * lib/unictype/pr_grapheme_extend.h: Likewise.
20998         * lib/unictype/pr_grapheme_link.h: Likewise.
20999         * lib/unictype/pr_id_continue.h: Likewise.
21000         * lib/unictype/pr_id_start.h: Likewise.
21001         * lib/unictype/pr_ideographic.h: Likewise.
21002         * lib/unictype/pr_ignorable_control.h: Likewise.
21003         * lib/unictype/pr_logical_order_exception.h: Likewise.
21004         * lib/unictype/pr_lowercase.h: Likewise.
21005         * lib/unictype/pr_numeric.h: Likewise.
21006         * lib/unictype/pr_other_alphabetic.h: Likewise.
21007         * lib/unictype/pr_punctuation.h: Likewise.
21008         * lib/unictype/pr_sentence_terminal.h: Likewise.
21009         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21010         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21011         * lib/unictype/pr_unified_ideograph.h: Likewise.
21012         * lib/unictype/pr_uppercase.h: Likewise.
21013         * lib/unictype/pr_xid_continue.h: Likewise.
21014         * lib/unictype/pr_xid_start.h: Likewise.
21015         * lib/unictype/pr_zero_width.h: Likewise.
21016         * lib/unictype/scripts.h: Likewise.
21017         * lib/unictype/scripts_byname.gperf: Likewise.
21018         * lib/unictype/sy_java_ident.h: Likewise.
21019         * lib/unigbrk/gbrkprop.h: Likewise.
21020         * lib/unilbrk/lbrkprop1.h: Likewise.
21021         * lib/unilbrk/lbrkprop2.h: Likewise.
21022         * lib/unilbrk/lbrktables.h: Likewise.
21023         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21024         LBP_CP. Implement rule LB30.
21025         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21026         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21027         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21028         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21029         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21030         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21031         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21032         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21033         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21034         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21035         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21036         bits instead of 16 bits in the code1 and code2 of each composition
21037         rule.
21038         (uc_composition): Update for Unicode 5.2.0.
21039         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21040         * lib/uninorm/decomposition-table2.h: Likewise.
21041         * lib/uniwbrk/wbrkprop.h: Likewise.
21042         * tests/unicase/test-cased.c: Likewise.
21043         * tests/unicase/test-ignorable.c: Likewise.
21044         * tests/unicase/test-uc_tolower.c: Likewise.
21045         * tests/unicase/test-uc_totitle.c: Likewise.
21046         * tests/unicase/test-uc_toupper.c: Likewise.
21047         * tests/unictype/test-categ_C.c: Likewise.
21048         * tests/unictype/test-categ_Cf.c: Likewise.
21049         * tests/unictype/test-categ_Cn.c: Likewise.
21050         * tests/unictype/test-categ_L.c: Likewise.
21051         * tests/unictype/test-categ_Ll.c: Likewise.
21052         * tests/unictype/test-categ_Lm.c: Likewise.
21053         * tests/unictype/test-categ_Lo.c: Likewise.
21054         * tests/unictype/test-categ_Lu.c: Likewise.
21055         * tests/unictype/test-categ_M.c: Likewise.
21056         * tests/unictype/test-categ_Mc.c: Likewise.
21057         * tests/unictype/test-categ_Mn.c: Likewise.
21058         * tests/unictype/test-categ_N.c: Likewise.
21059         * tests/unictype/test-categ_Nd.c: Likewise.
21060         * tests/unictype/test-categ_Nl.c: Likewise.
21061         * tests/unictype/test-categ_No.c: Likewise.
21062         * tests/unictype/test-categ_P.c: Likewise.
21063         * tests/unictype/test-categ_Pd.c: Likewise.
21064         * tests/unictype/test-categ_Po.c: Likewise.
21065         * tests/unictype/test-categ_S.c: Likewise.
21066         * tests/unictype/test-categ_Sc.c: Likewise.
21067         * tests/unictype/test-categ_So.c: Likewise.
21068         * tests/unictype/test-ctype_alnum.c: Likewise.
21069         * tests/unictype/test-ctype_alpha.c: Likewise.
21070         * tests/unictype/test-ctype_graph.c: Likewise.
21071         * tests/unictype/test-ctype_lower.c: Likewise.
21072         * tests/unictype/test-ctype_print.c: Likewise.
21073         * tests/unictype/test-ctype_punct.c: Likewise.
21074         * tests/unictype/test-ctype_upper.c: Likewise.
21075         * tests/unictype/test-decdigit.h: Likewise.
21076         * tests/unictype/test-digit.h: Likewise.
21077         * tests/unictype/test-numeric.h: Likewise.
21078         * tests/unictype/test-pr_alphabetic.c: Likewise.
21079         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21080         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21081         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21082         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21083         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21084         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21085         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21086         * tests/unictype/test-pr_combining.c: Likewise.
21087         * tests/unictype/test-pr_composite.c: Likewise.
21088         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21089         * tests/unictype/test-pr_dash.c: Likewise.
21090         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21091         * tests/unictype/test-pr_deprecated.c: Likewise.
21092         * tests/unictype/test-pr_diacritic.c: Likewise.
21093         * tests/unictype/test-pr_extender.c: Likewise.
21094         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21095         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21096         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21097         * tests/unictype/test-pr_id_continue.c: Likewise.
21098         * tests/unictype/test-pr_id_start.c: Likewise.
21099         * tests/unictype/test-pr_ideographic.c: Likewise.
21100         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21101         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21102         * tests/unictype/test-pr_lowercase.c: Likewise.
21103         * tests/unictype/test-pr_numeric.c: Likewise.
21104         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21105         * tests/unictype/test-pr_punctuation.c: Likewise.
21106         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21107         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21108         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21109         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21110         * tests/unictype/test-pr_uppercase.c: Likewise.
21111         * tests/unictype/test-pr_xid_continue.c: Likewise.
21112         * tests/unictype/test-pr_xid_start.c: Likewise.
21113         * tests/unictype/test-pr_zero_width.c: Likewise.
21114         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21115         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21116         changed behaviour: line breaking is now disallowed between a letter
21117         or '=' and '('.
21118         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21119         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21120         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21121         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21122         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21123         lib/uniwidth/width.c.
21124         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21125         without comments, but with the original copyright notice.
21126         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21127         changes.
21128         * lib/unictype/categ_Cc.h: Likewise.
21129         * lib/unictype/categ_Co.h: Likewise.
21130         * lib/unictype/categ_Cs.h: Likewise.
21131         * lib/unictype/categ_Lt.h: Likewise.
21132         * lib/unictype/categ_Me.h: Likewise.
21133         * lib/unictype/categ_Pc.h: Likewise.
21134         * lib/unictype/categ_Pe.h: Likewise.
21135         * lib/unictype/categ_Pf.h: Likewise.
21136         * lib/unictype/categ_Pi.h: Likewise.
21137         * lib/unictype/categ_Ps.h: Likewise.
21138         * lib/unictype/categ_Sk.h: Likewise.
21139         * lib/unictype/categ_Sm.h: Likewise.
21140         * lib/unictype/categ_Z.h: Likewise.
21141         * lib/unictype/categ_Zl.h: Likewise.
21142         * lib/unictype/categ_Zp.h: Likewise.
21143         * lib/unictype/categ_Zs.h: Likewise.
21144         * lib/unictype/ctype_blank.h: Likewise.
21145         * lib/unictype/ctype_cntrl.h: Likewise.
21146         * lib/unictype/ctype_digit.h: Likewise.
21147         * lib/unictype/ctype_space.h: Likewise.
21148         * lib/unictype/ctype_xdigit.h: Likewise.
21149         * lib/unictype/mirror.h: Likewise.
21150         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21151         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21152         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21153         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21154         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21155         * lib/unictype/pr_bidi_control.h: Likewise.
21156         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21157         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21158         * lib/unictype/pr_bidi_pdf.h: Likewise.
21159         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21160         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21161         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21162         * lib/unictype/pr_format_control.h: Likewise.
21163         * lib/unictype/pr_hex_digit.h: Likewise.
21164         * lib/unictype/pr_hyphen.h: Likewise.
21165         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21166         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21167         * lib/unictype/pr_iso_control.h: Likewise.
21168         * lib/unictype/pr_join_control.h: Likewise.
21169         * lib/unictype/pr_left_of_pair.h: Likewise.
21170         * lib/unictype/pr_line_separator.h: Likewise.
21171         * lib/unictype/pr_math.h: Likewise.
21172         * lib/unictype/pr_non_break.h: Likewise.
21173         * lib/unictype/pr_not_a_character.h: Likewise.
21174         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21175         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21176         * lib/unictype/pr_other_id_continue.h: Likewise.
21177         * lib/unictype/pr_other_id_start.h: Likewise.
21178         * lib/unictype/pr_other_lowercase.h: Likewise.
21179         * lib/unictype/pr_other_math.h: Likewise.
21180         * lib/unictype/pr_other_uppercase.h: Likewise.
21181         * lib/unictype/pr_paired_punctuation.h: Likewise.
21182         * lib/unictype/pr_paragraph_separator.h: Likewise.
21183         * lib/unictype/pr_pattern_syntax.h: Likewise.
21184         * lib/unictype/pr_pattern_white_space.h: Likewise.
21185         * lib/unictype/pr_private_use.h: Likewise.
21186         * lib/unictype/pr_quotation_mark.h: Likewise.
21187         * lib/unictype/pr_radical.h: Likewise.
21188         * lib/unictype/pr_soft_dotted.h: Likewise.
21189         * lib/unictype/pr_space.h: Likewise.
21190         * lib/unictype/pr_titlecase.h: Likewise.
21191         * lib/unictype/pr_variation_selector.h: Likewise.
21192         * lib/unictype/pr_white_space.h: Likewise.
21193         * lib/unictype/sy_c_ident.h: Likewise.
21194         * lib/unictype/sy_c_whitespace.h: Likewise.
21195         * lib/unictype/sy_java_whitespace.h: Likewise.
21196         * modules/uni*/*: Bump version number of expected libunistring version.
21197         Reported by Simon Josefsson.
21198
21199 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21200
21201         useless-if-before-free: fix typo in --help and make the internal,
21202         automatic version date update process work once again.
21203         --help output contained a NUL character instead of the
21204         backslash-zero that was intended.  Also, the "must lie within
21205         the first 8 lines" line is on line 9, and hence not getting
21206         automatically updated.
21207         * build-aux/useless-if-before-free: Fix the former by adding a
21208         backslash, and the latter by condensing the three lines of what-it-does
21209         to a single line, leaving one line of slack for the future.
21210
21211 2011-01-09  Bruno Haible  <bruno@clisp.org>
21212
21213         uniwidth/width: Fix width of U+1D173..U+1D17A.
21214         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21215         symbolic_width, output_width_property_test): New functions.
21216         (main): Invoke output_nonspacing_property, output_width_property_test.
21217         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21218         U+1D173..U+1D17A.
21219         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21220         1.
21221         * modules/uniwidth/*: Bump version number of expected libunistring
21222         version.
21223         * modules/unilbrk/*: Likewise.
21224
21225 2011-01-08  Bruno Haible  <bruno@clisp.org>
21226
21227         uninorm tests: Preserve copyright of Unicode data file.
21228         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21229         Mention modifications.
21230
21231 2011-01-08  Bruno Haible  <bruno@clisp.org>
21232
21233         gen-uni-tables: Prepare for Unicode 5.2.0.
21234         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21235         (debug_output_lbp, output_lbp): Update.
21236
21237 2011-01-08  Bruno Haible  <bruno@clisp.org>
21238
21239         unilbrk: Clarify gen-uni-tables.c code.
21240         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21241         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21242         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21243
21244 2011-01-07  Bruno Haible  <bruno@clisp.org>
21245
21246         strtod: Restore errno when successfully parsing Infinity or NaN.
21247         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21248         restore the original errno.
21249
21250 2011-01-07  Bruno Haible  <bruno@clisp.org>
21251
21252         remove test: Avoid failure on HP-UX 11.
21253         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21254
21255 2011-01-07  Bruno Haible  <bruno@clisp.org>
21256
21257         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21258         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21259         error code.
21260
21261 2011-01-07  Pádraig Brady <P@draigBrady.com>
21262
21263         ignore-value: fixup comments, and add Eric Blake
21264         as an author since he rewrote the macros.
21265         * lib/ignore-value.h (ignore_value):  State that
21266         we now support aggregates.  Also specify exactly
21267         when the GCC warn_unused_result feature was added.
21268
21269 2011-01-06  Eric Blake  <eblake@redhat.com>
21270
21271         ignore-value: support aggregate types
21272         * lib/ignore-value.h (ignore_value): Provide separate gcc
21273         definition.
21274         * modules/ignore-value-tests: New test module.
21275         * tests/test-ignore-value.c: New test.
21276
21277         maint.mk: improve sc_prohibit_strcmp regex
21278         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21279         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21280         definition of STRNEQ.
21281
21282         signal: work around Haiku issue with SIGBUS
21283         * lib/siglist.h: Add comment.
21284         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21285         strsignal's favoring of SIGSEGV.
21286         * tests/test-signal.c (main): Avoid test failure.
21287         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21288         Reported by Scott McCreary.
21289
21290         maint.mk: add pre-release check to ensure submodule commits are public
21291         * top/maint.mk (public-submodule-commit): New rule.
21292         (submodule-checks): New variable.
21293         (alpha beta stable): Depend on the variable.
21294
21295 2011-01-05  Pádraig Brady <P@draigBrady.com>
21296         and Jim Meyering  <meyering@redhat.com>
21297
21298         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21299         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21300         (ATTRIBUTE_DEPRECATED): Define.
21301         (_ignore_case): New function.
21302         (ignore_value): New macro, to replace the old function.
21303         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21304         * modules/ignore-value (Depends-on): Add stdint.
21305
21306 2011-01-04  Eric Blake  <eblake@redhat.com>
21307
21308         doc: regenerate INSTALL
21309         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21310         @firstparagraphindent support, now that autoconf dropped it.
21311         (INSTALL_PRELUDE): Reinstate old macro.
21312         * doc/install.texi: Resync from autoconf.
21313         * doc/INSTALL: Reflect recent autoconf update.
21314         * doc/INSTALL.ISO: Likewise.
21315         * doc/INSTALL.UTF-8: Likewise.
21316         Reported by Karl Berry.
21317
21318 2011-01-04  Bruce Korb  <address@hidden>
21319
21320         git-version-gen: avoid a sub-shell
21321         * build-aux/git-version-gen: Redirect stderr in `...` via
21322         "exec 2>...", rather than via an added sub-shell.
21323
21324 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21325
21326         git-version-gen: use (...) rather than sh -c '...'
21327         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21328         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21329
21330 2011-01-03  Jim Meyering  <meyering@redhat.com>
21331
21332         git-version-gen: convert leading TABs to spaces
21333         * build-aux/git-version-gen: Expand leading TABs.
21334
21335         git-version-gen: handle failed "git rev-list"
21336         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21337         from git and proceeding as if it had succeeded but printed no SHA1
21338         checksums, suppress the diagnostic and handle the failure.
21339         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21340
21341         git-version-gen: include command name in one more diagnostic
21342         * build-aux/git-version-gen: When the required .tarball-version file
21343         was missing or unreadable, you might see the diagnostic from "cat",
21344         but no trace of the name of the invoking script.  Now, you still see
21345         the diagnostic from cat, but also get one from "git-version-gen: ".
21346         Inspired by a patch from Bruce Korb.
21347
21348         update-copyright: adjust test to match changed code
21349         * tests/test-update-copyright.sh: Change test's expected output
21350         to match new actual output.
21351
21352 2011-01-02  Bruno Haible  <bruno@clisp.org>
21353
21354         getlogin_r: Avoid test failure on HP-UX 11.
21355         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21356         ERANGE when the second argument is zero.
21357         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21358         portability problem.
21359
21360 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21361
21362         * build-aux/update-copyright: doc Simon's changes
21363
21364 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21365
21366         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21367         environment variable.
21368
21369 2011-01-02  Bruno Haible  <bruno@clisp.org>
21370
21371         unigbrk: Avoid gcc warnings.
21372         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21373         unused variable.
21374         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21375         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21376         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21377         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21378         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21379         Change type of first argument to 'const char *'.
21380         (main): Remove unused variable.
21381         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21382         type of first argument to 'const char *'.
21383         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21384         Likewise.
21385         (main): Change type of variable 's'.
21386         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21387         to 'int'.
21388
21389 2011-01-02  Bruno Haible  <bruno@clisp.org>
21390
21391         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21392         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21393         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21394         bug.
21395         * lib/pwrite.c: Undo 2010-12-31 patch.
21396         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21397
21398 2011-01-02  Bruno Haible  <bruno@clisp.org>
21399
21400         pread: Fix test whether it works.
21401         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21402
21403 2011-01-02  Bruno Haible  <bruno@clisp.org>
21404
21405         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21406         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21407         ends in "6". Don't require a specific month name. Try also the locale
21408         names found on HP-UX 11 and Solaris 7.
21409
21410 2011-01-02  Bruno Haible  <bruno@clisp.org>
21411
21412         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21413         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21414         C linkage.
21415         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21416
21417 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21418
21419         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21420         for consistency, since the "cluster" term is not used elsewhere.
21421         * lib/unigbrk.in.h: Update name.
21422         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21423         * lib/unigbrk/u16-grapheme-next.c: Update name.
21424         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21425         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21426         * lib/unigbrk/u32-grapheme-next.c: Update name.
21427         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21428         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21429         * lib/unigbrk/u8-grapheme-next.c: Update name.
21430         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21431         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21432         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21433         Suggested by Bruno Haible.
21434
21435 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21436
21437         Remove module 'u8-grapheme-len' as too redundant with
21438         'u8-grapheme-next'.
21439         * modules/unigbrk/u8-grapheme-len: Delete file.
21440         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21441         * lib/unigbrk.in.h: Remove prototype for deleted function.
21442         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21443         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21444
21445         Remove module 'u16-grapheme-len' as too redundant with
21446         'u16-grapheme-next'.
21447         * modules/unigbrk/u16-grapheme-len: Delete file.
21448         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21449         * lib/unigbrk.in.h: Remove prototype for deleted function.
21450         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21451         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21452
21453         Remove module 'u32-grapheme-len' as too redundant with
21454         'u32-grapheme-next'.
21455         * modules/unigbrk/u32-grapheme-len: Delete file.
21456         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21457         * lib/unigbrk.in.h: Remove prototype for deleted function.
21458         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21459         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21460
21461         Suggested by Bruno Haible.
21462
21463 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21464
21465         * unigbrk.in.h: Fix typo: "ben" => "been".
21466         Reported by Bruno Haible.
21467
21468 2011-01-01  Jim Meyering  <meyering@redhat.com>
21469
21470         maint: update almost all copyright ranges to include 2011
21471         Run the new "make update-copyright" rule.
21472
21473 2011-01-01  Jim Meyering  <meyering@redhat.com>
21474
21475         maint: update-copyright: exempt doc/INSTALL*
21476         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21477         since they are generated.  Suggested by Bruno Haible.
21478
21479 2011-01-01  Jim Meyering  <meyering@redhat.com>
21480
21481         maint: refine the update-copyright rule
21482         * Makefile (update-copyright): Also exclude any file that includes
21483         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21484         code that merely generates the comment.
21485
21486 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21487
21488         New module 'u8-grapheme-len'.
21489         * modules/unigbrk/u8-grapheme-len: New file.
21490         * modules/unigbrk/u8-grapheme-len-tests: New file.
21491         * lib/unigbrk.in.h: Add prototype for new function.
21492         * lib/unigbrk/u8-grapheme-len.c: New file.
21493         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21494
21495         New module 'u16-grapheme-len'.
21496         * modules/unigbrk/u16-grapheme-len: New file.
21497         * modules/unigbrk/u16-grapheme-len-tests: New file.
21498         * lib/unigbrk.in.h: Add prototype for new function.
21499         * lib/unigbrk/u16-grapheme-len.c: New file.
21500         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21501
21502         New module 'u32-grapheme-len'.
21503         * modules/unigbrk/u32-grapheme-len: New file.
21504         * modules/unigbrk/u32-grapheme-len-tests: New file.
21505         * lib/unigbrk.in.h: Add prototype for new function.
21506         * lib/unigbrk/u32-grapheme-len.c: New file.
21507         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21508
21509         New module 'u8-grapheme-next'.
21510         * modules/unigbrk/u8-grapheme-next: New file.
21511         * modules/unigbrk/u8-grapheme-next-tests: New file.
21512         * lib/unigbrk.in.h: Add prototype for new function.
21513         * lib/unigbrk/u8-grapheme-next.c: New file.
21514         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21515
21516         New module 'u16-grapheme-next'.
21517         * modules/unigbrk/u16-grapheme-next: New file.
21518         * modules/unigbrk/u16-grapheme-next-tests: New file.
21519         * lib/unigbrk.in.h: Add prototype for new function.
21520         * lib/unigbrk/u16-grapheme-next.c: New file.
21521         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21522
21523         New module 'u32-grapheme-next'.
21524         * modules/unigbrk/u32-grapheme-next: New file.
21525         * modules/unigbrk/u32-grapheme-next-tests: New file.
21526         * lib/unigbrk.in.h: Add prototype for new function.
21527         * lib/unigbrk/u32-grapheme-next.c: New file.
21528         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21529
21530         New module 'u8-grapheme-prev'.
21531         * modules/unigbrk/u8-grapheme-prev: New file.
21532         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21533         * lib/unigbrk.in.h: Add prototype for new function.
21534         * lib/unigbrk/u8-grapheme-prev.c: New file.
21535         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21536
21537         New module 'u16-grapheme-prev'.
21538         * modules/unigbrk/u16-grapheme-prev: New file.
21539         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21540         * lib/unigbrk.in.h: Add prototype for new function.
21541         * lib/unigbrk/u16-grapheme-prev.c: New file.
21542         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21543
21544         New module 'u32-grapheme-prev'.
21545         * modules/unigbrk/u32-grapheme-prev: New file.
21546         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21547         * lib/unigbrk.in.h: Add prototype for new function.
21548         * lib/unigbrk/u32-grapheme-prev.c: New file.
21549         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21550
21551         New module 'u8-grapheme-breaks'.
21552         * modules/unigbrk/u8-grapheme-breaks: New file.
21553         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21554         * lib/unigbrk.in.h: Add prototype for new function.
21555         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21556         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21557
21558         New module 'u16-grapheme-breaks'.
21559         * modules/unigbrk/u16-grapheme-breaks: New file.
21560         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21561         * lib/unigbrk.in.h: Add prototype for new function.
21562         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21563         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21564
21565         New module 'u32-grapheme-breaks'.
21566         * modules/unigbrk/u32-grapheme-breaks: New file.
21567         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21568         * lib/unigbrk.in.h: Add prototype for new function.
21569         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21570         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21571
21572         New module 'ulc-grapheme-breaks'.
21573         * modules/unigbrk/ulc-grapheme-breaks: New file.
21574         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21575         * m4/locale-ar.m4: New file.
21576         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21577         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21578         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21579
21580 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21581
21582         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21583         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21584         modified how this file was generated before I initially submitted
21585         the module, but failed to regenerate it.  This meant that several
21586         of the level2 entries were wrong.
21587         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21588         Remove the division-by-2 that is folded into the table now that
21589         gbrkprop.h has been regenerated properly.  Now -1 entries are
21590         handled correctly.
21591
21592         New module 'unigbrk/uc-gbrk-prop-tests'.
21593         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21594         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21595         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21596         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21597
21598 2011-01-01  Bruno Haible  <bruno@clisp.org>
21599
21600         Avoid use of hexadecimal escapes.
21601         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21602         instead of hexadecimal escapes.
21603
21604 2011-01-01  Jim Meyering  <meyering@redhat.com>
21605
21606         maint: new rule to update copyright year ranges
21607         * Makefile (update-copyright): New rule.
21608
21609         maint: indent with TABs in Makefile
21610         * Makefile: Expand leading sequences of spaces to TABs
21611
21612         version-etc: update the copyright year it reports
21613         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21614
21615 2010-12-31  Bruno Haible  <bruno@clisp.org>
21616
21617         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21618         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21619         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21620         zero.
21621
21622 2010-12-31  Bruno Haible  <bruno@clisp.org>
21623
21624         pwrite: Work around HP-UX 11.11 bug.
21625         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21626         works and set REPLACE_PWRITE if not.
21627         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21628         function.
21629         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21630
21631 2010-12-31  Bruno Haible  <bruno@clisp.org>
21632
21633         pread: Work around HP-UX 11 bugs.
21634         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21635         and set REPLACE_PREAD if not.
21636         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21637
21638 2010-12-31  Eric Blake  <eblake@redhat.com>
21639
21640         nl_langinfo: fix YESEXPR on Irix 6.5
21641         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21642         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21643         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21644         it.
21645
21646 2010-12-31  Bruno Haible  <bruno@clisp.org>
21647
21648         iconv: Document HP-UX 11 bug.
21649         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21650
21651 2010-12-31  Bruno Haible  <bruno@clisp.org>
21652
21653         ldexpl: Fix link error on HP-UX 11.
21654         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21655         LDEXPL_LIBM, using $ISNANL_LIBM.
21656
21657 2010-12-31  Eric Blake  <eblake@redhat.com>
21658
21659         ftello: avoid compilation failure with SunStudio c89
21660         * lib/ftello.c (ftello): Use lseek, not llseek.
21661
21662         tests: avoid failing coreutils tests on cygwin
21663         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21664         (create_exe_shims_): Return 0 when skipping.
21665
21666 2010-12-31  Bruno Haible  <bruno@clisp.org>
21667
21668         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21669         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21670
21671 2010-12-31  Bruno Haible  <bruno@clisp.org>
21672
21673         waitpid: Fix link error in C++ mode.
21674         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21675
21676 2010-12-31  Bruno Haible  <bruno@clisp.org>
21677
21678         isnan: Use GCC built-ins when possible.
21679         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21680         __builtin_isnan.
21681         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21682         (isnan): Define using GCC built-ins for GCC >= 4.0.
21683
21684 2010-12-31  Bruno Haible  <bruno@clisp.org>
21685
21686         isnand: Fix mistake.
21687         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21688         __builtin_isnand.
21689
21690 2010-12-31  Bruno Haible  <bruno@clisp.org>
21691
21692         open: Avoid C++ error on HP-UX 11.
21693         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21694
21695 2010-12-31  Bruno Haible  <bruno@clisp.org>
21696
21697         time_r: Add missing declarations on HP-UX 11.
21698         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21699         instead of HAVE_LOCALTIME_R.
21700         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21701         HAVE_LOCALTIME_R always.
21702         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21703         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21704         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21705         HAVE_LOCALTIME_R.
21706         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21707         * doc/posix-functions/localtime_r.texi: Likewise.
21708
21709 2010-12-29  Eric Blake  <eblake@redhat.com>
21710
21711         mountlist: tweak previous commit
21712         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21713         Reported by Paul Eggert.
21714
21715         mountlist: fix local drive detection on cygwin
21716         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21717         that works for cygwin.
21718
21719 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21720
21721         ftoastr, snprintf: ftoastr + snprintf module
21722         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21723         since the snprintf module now should be good enough here.
21724         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21725         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21726         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21727         GNULIB_SNPRINTF only for the test directory, and the latter
21728         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21729         seems to suffice by itself.
21730
21731 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21732
21733         alloca: one step towards thread-safety
21734         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21735         need for a static variable.  All callers changed.  This does not
21736         make the alloca replacement thread-safe, but it's one step.
21737
21738         tests: minor indenting change
21739         * tests/init.sh: Sync from coreutils housekeeping patch
21740         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21741         to keep lines within 80 columns.
21742
21743 2010-12-28  Jim Meyering  <meyering@redhat.com>
21744
21745         regex: don't infloop on persistent failing calloc
21746         * lib/regexec.c (build_trtable): Return failure indication upon
21747         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21748         In glibc, this was fixed for version 2.13:
21749         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21750
21751 2010-12-28  Bruno Haible  <bruno@clisp.org>
21752             Paul Eggert <eggert@cs.ucla.edu>
21753
21754         linkat: Make implementation robust against system behaviour variations.
21755         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21756         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21757         way, and to -2 if it needs a generic runtime test.
21758         * lib/linkat.c (solaris_optimized_link_immediate,
21759         solaris_optimized_link_follow): New functions.
21760         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21761         (check_same_link): Use it.
21762
21763 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21764
21765         New module 'unigbrk/base'.
21766         * modules/unigbrk/base: New file.
21767         * lib/unigbrk.in.h: New file.
21768
21769         New module 'unigbrk/uc-gbrk-prop'.
21770         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21771         * modules/unigbrk/uc-gbrk-prop: New file.
21772         * lib/unigbrk/gbrkprop.h: New file.
21773         * lib/unigbrk/uc-gbrk-prop.c: New file.
21774
21775         New module 'unigbrk/uc-is-grapheme-break'.
21776         * modules/unigbrk/uc-is-grapheme-break: New file.
21777         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21778         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21779         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21780         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21781         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21782
21783         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21784
21785 2010-12-27  Bruno Haible  <bruno@clisp.org>
21786
21787         linkat test: Avoid failure on Solaris 11 2010-11.
21788         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21789
21790 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21791
21792         utimens: work around glibc rounding bug on more platforms
21793         * lib/utimens.c (fdutimens): Work around rounding bug even if
21794         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21795         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21796
21797 2010-12-27  Bruno Haible  <bruno@clisp.org>
21798
21799         select tests: Improve comments.
21800         * tests/test-select.c (do_select): Add comments.
21801
21802 2010-12-27  Bruno Haible  <bruno@clisp.org>
21803
21804         select tests: Safer way of handling timeout.
21805         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21806         at every invocation.
21807
21808 2010-12-27  Bruno Haible  <bruno@clisp.org>
21809
21810         select tests: Use 'bool' where appropriate.
21811         * tests/test-select.c (connect_to_socket): Change argument type to
21812         'bool'.
21813
21814 2010-12-27  Bruno Haible  <bruno@clisp.org>
21815
21816         select tests: Use existing modules.
21817         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21818         (configure.ac): Don't test for unistd.h.
21819         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21820         declared in <unistd.h>.
21821
21822 2010-12-27  Bruno Haible  <bruno@clisp.org>
21823
21824         mbrtowc: Work around a Solaris 7 bug.
21825         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
21826         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
21827         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
21828         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
21829         MBRTOWC_NULL_ARG1_BUG.
21830         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
21831         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
21832         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
21833         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
21834
21835 2010-12-27  Jim Meyering  <meyering@redhat.com>
21836
21837         read-file.c: tweak syntax
21838         * lib/read-file.c (fread_file): Remove space after "*" in function
21839         definitions.
21840
21841 2010-12-27  Bruno Haible  <bruno@clisp.org>
21842
21843         times test: Avoid gcc warnings on OSF/1.
21844         * tests/test-times.c (main): Cast printf arguments from clock_t to
21845         'long int'.
21846
21847 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21848
21849         utimens: work around glibc rounding bug on older Linux kernels
21850         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
21851         on Linux with a glibc whose utimes might not work, then work
21852         around a longstanding glibc bug involving rounding rather than
21853         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
21854         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21855
21856 2010-12-26  Bruno Haible  <bruno@clisp.org>
21857
21858         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
21859         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
21860         _GL_CXXALIAS_SYS.
21861         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21862
21863 2010-12-26  Bruno Haible  <bruno@clisp.org>
21864
21865         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
21866         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
21867         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21868         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
21869         looking for the declaration.
21870         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21871         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
21872         problem.
21873         * doc/posix-functions/inet_pton.texi: Likewise.
21874
21875 2010-12-26  Bruno Haible  <bruno@clisp.org>
21876
21877         arpa_inet: Use the common idioms with C++ support.
21878         * lib/arpa_inet.in.h: Include c++defs.h.
21879         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
21880         support.
21881         * modules/arpa_inet (Depends-on): Add c++defs.
21882         (Makefile.am): Substitute the contents of c++defs.h.
21883         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
21884         * modules/arpa_inet-c++-tests: New file.
21885         * tests/test-arpa_inet-c++.cc: New file.
21886
21887 2010-12-25  Bruno Haible  <bruno@clisp.org>
21888
21889         Fix more C++ link errors on Solaris 8.
21890         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
21891         $(LIB_EACCESS).
21892         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
21893         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
21894         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
21895         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
21896         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
21897
21898 2010-12-25  Bruno Haible  <bruno@clisp.org>
21899
21900         printf-posix: Fix link error when a non-GCC compiler is used.
21901         * lib/stdio.in.h (printf): When not using GCC, override printf
21902         correctly.
21903         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21904
21905 2010-12-25  Bruno Haible  <bruno@clisp.org>
21906
21907         strerror_r-posix: Update doc.
21908         * doc/posix-functions/strerror_r.texi: Update doc about the return
21909         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
21910
21911 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21912
21913         utimens: simplify the logic of the previous change
21914         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
21915         This should not affect whether the test succeeds or fails.
21916
21917         utimens: configure better on hosts with NFS clock skew
21918         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
21919         uses the clock of the local host.  It might use the clock of the
21920         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
21921         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21922
21923 2010-12-25  Bruno Haible  <bruno@clisp.org>
21924
21925         ptsname test: Avoid failure on Solaris.
21926         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
21927         open a pseudo-terminal; don't use BSD-style ptys.
21928         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
21929
21930 2010-12-25  Bruno Haible  <bruno@clisp.org>
21931
21932         ptsname: Avoid ERANGE failure on some systems.
21933         * lib/ptsname.c (buffer): Increase size.
21934
21935 2010-12-25  Bruno Haible  <bruno@clisp.org>
21936
21937         rename, renameat: Avoid test failures at NFS mounted locations.
21938         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
21939         so that subsequent mkdir calls succeed.
21940
21941 2010-12-25  Bruno Haible  <bruno@clisp.org>
21942
21943         iswblank: Fix C++ link error on Solaris 8.
21944         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
21945         _GL_FUNCDECL_SYS.
21946
21947 2010-12-25  Bruno Haible  <bruno@clisp.org>
21948
21949         unistd: Fix C++ link error on Solaris 8.
21950         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
21951
21952 2010-12-25  Bruno Haible  <bruno@clisp.org>
21953
21954         readlink doc: Mention an old glibc bug.
21955         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
21956
21957 2010-12-25  Bruno Haible  <bruno@clisp.org>
21958
21959         fcntl-h: Fix for use of C++ on glibc systems.
21960         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21961         also on glibc systems in C++ mode.
21962         Reported by Gary V. Vaughan <gary@gnu.org>.
21963
21964 2010-12-25  Bruno Haible  <bruno@clisp.org>
21965
21966         roundl-ieee: Make it work on OSF/1 5.1 with cc.
21967         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
21968
21969 2010-12-25  Bruno Haible  <bruno@clisp.org>
21970
21971         truncl-ieee: Make it work on OSF/1 5.1 with cc.
21972         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
21973         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
21974         test whether truncl works according to ISO C 99 with IEC 60559.
21975         * m4/truncl-ieee.m4: New file.
21976         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
21977         m4/signbit.m4.
21978         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
21979
21980 2010-12-25  Bruno Haible  <bruno@clisp.org>
21981
21982         ceill-ieee: Make it work on OSF/1 5.1 with cc.
21983         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
21984         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
21985         test whether ceill works according to ISO C 99 with IEC 60559.
21986         * m4/ceill-ieee.m4: New file.
21987         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
21988         m4/signbit.m4.
21989         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
21990
21991 2010-12-25  Bruno Haible  <bruno@clisp.org>
21992
21993         Ensure all prerequisites of <wchar.h> are included.
21994         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
21995         before <wchar.h>.
21996         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21997         gl_MBRLEN_NUL_RETVAL): Likewise.
21998         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21999         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22000         AC_FUNC_MBRTOWC): Likewise.
22001         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22002         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22003         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22004         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22005         Likewise.
22006         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22007         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22008         (gl_WCHAR_H): Improve comments.
22009         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22010
22011 2010-12-25  Bruno Haible  <bruno@clisp.org>
22012
22013         strtok_r: Fix C syntax error in autoconf macro.
22014         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22015         characters in test program.
22016
22017 2010-12-24  Bruno Haible  <bruno@clisp.org>
22018
22019         ceil, trunc, round: Fix gcc warnings.
22020         * lib/ceil.c (MIN): Undefine before redefining.
22021         * lib/trunc.c (MIN): Likewise.
22022         * lib/round.c (MIN): Likewise.
22023         Include <math.h> first.
22024
22025 2010-12-24  Bruno Haible  <bruno@clisp.org>
22026
22027         select tests: Avoid failures on OSF/1 5.1.
22028         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22029         failure of closing the last socket; it may fail with ECONNRESET.
22030
22031 2010-12-24  Eric Blake  <eblake@redhat.com>
22032
22033         stdint: avoid HP-UX 10.20 preprocessor bug
22034         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22035         than #if.
22036         * tests/test-floor2.c (main): Likewise.
22037         Reported by Peter O'Gorman.
22038
22039         pipe: make obsoletion transition easier
22040         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22041         * modules/pipe (Files): Include revived file.
22042         (Include): Drop reference, to mirror getdate's behavior.
22043
22044 2010-12-24  Bruno Haible  <bruno@clisp.org>
22045
22046         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22047         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22048         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22049         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22050
22051 2010-12-24  Bruno Haible  <bruno@clisp.org>
22052
22053         gethostname: Ensure declaration on NonStop Kernel.
22054         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22055         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22056
22057 2010-12-24  Bruno Haible  <bruno@clisp.org>
22058
22059         sys_select: Ensure all necessary types on NonStop Kernel.
22060         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22061         include <sys/time.h>.
22062         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22063         NonStop Kernel.
22064         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22065
22066 2010-12-24  Bruno Haible  <bruno@clisp.org>
22067
22068         sys_select: Remove unneeded include.
22069         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22070         have <sys/select.h>.
22071
22072 2010-12-24  Bruno Haible  <bruno@clisp.org>
22073
22074         gethostname: Provide a fallback for HOST_NAME_MAX.
22075         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22076         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22077         instead.
22078         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22079
22080 2010-12-24  Bruno Haible  <bruno@clisp.org>
22081
22082         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22083         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22084         (SA_RESTART): Likewise.
22085         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22086
22087 2010-12-24  Bruno Haible  <bruno@clisp.org>
22088
22089         signal: Define NSIG.
22090         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22091         * tests/test-signal.c (nsig): New variable.
22092         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22093
22094 2010-12-24  Bruno Haible  <bruno@clisp.org>
22095
22096         rename, renameat: Avoid test failures on OSF/1 5.1.
22097         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22098         alternative error codes.
22099         * tests/test-renameat.c (main): Likewise.
22100
22101 2010-12-24  Bruno Haible  <bruno@clisp.org>
22102
22103         *printf: Detect large precisions bug on Solaris 10/SPARC.
22104         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22105         by Paul Eggert.
22106         * tests/test-snprintf-posix.h (test_function): Add this test code here
22107         too.
22108         * tests/test-sprintf-posix.h (test_function): Likewise.
22109         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22110         * tests/test-vasprintf-posix.c (test_function): Likewise.
22111         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22112         around by gnulib.
22113         * doc/posix-functions/printf.texi: Likewise.
22114         * doc/posix-functions/snprintf.texi: Likewise.
22115         * doc/posix-functions/sprintf.texi: Likewise.
22116         * doc/posix-functions/vfprintf.texi: Likewise.
22117         * doc/posix-functions/vprintf.texi: Likewise.
22118         * doc/posix-functions/vsnprintf.texi: Likewise.
22119         * doc/posix-functions/vsprintf.texi: Likewise.
22120         * doc/posix-functions/dprintf.texi: Undo last commit.
22121         * doc/posix-functions/vdprintf.texi: Likewise.
22122
22123 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22124
22125         tests: port test-fdutimensat.c to Solaris 8
22126         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22127         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22128         On Solaris 8, it fails with errno == ENOSYS, because there is no
22129         futimens (so it can't use the fd), and there is no lutimens (so it
22130         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22131
22132         vsnprintf: make more consistent with snprintf; doc fixes
22133
22134         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22135         the byte count return problem was promoted from the snprintf-posix
22136         to the snprintf module.
22137         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22138         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22139         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22140         * tests/test-snprintf.c (main): Check the byte count returned.
22141         * tests/test-vsnprintf.c (main): Likewise.
22142
22143 2010-12-23  Eric Blake  <eblake@redhat.com>
22144
22145         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22146         * modules/sigpipe (License): Relax license.
22147
22148 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22149
22150         doc: document Solaris printf bug with large float precisions
22151         * doc/posix-functions/dprintf.texi (dprintf):
22152         * doc/posix-functions/fprintf.texi (fprintf):
22153         * doc/posix-functions/printf.texi (printf):
22154         * doc/posix-functions/snprintf.texi (snprintf):
22155         * doc/posix-functions/sprintf.texi (sprintf):
22156         * doc/posix-functions/vdprintf.texi (vdprintf):
22157         * doc/posix-functions/vfprintf.texi (vfprintf):
22158         * doc/posix-functions/vprintf.texi (vprintf):
22159         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22160         * doc/posix-functions/vsprintf.texi (vsprintf):
22161         Mention that these functions mishandle large floating point
22162         precisions on Solaris 10.  The same bug is also present in Solaris
22163         8, and I assume earlier.  This causes "cd gnulib-tests; make
22164         check" to fail on Solaris 8 (and I assume, later) when building
22165         the latest coreutils, in test-vasprintf-posix's call to
22166         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22167         the wide flavors (e.g., wprintf) so this patch just updates the
22168         documentation for the narrow ones.
22169
22170         test-posixtm.c: add two tests
22171         * tests/test-posixtm.c: Add two tests, to highlight the
22172         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22173         around this bug; this is merely to document it.
22174
22175 2010-12-22  Bruno Haible  <bruno@clisp.org>
22176
22177         getlogin_r: Work around portability problem on OSF/1.
22178         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22179         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22180         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22181         test for a truncated result.
22182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22183         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22184         * modules/getlogin_r (Depends-on): Add memchr.
22185         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22186
22187 2010-12-22  Bruno Haible  <bruno@clisp.org>
22188
22189         ptsname: Avoid test failure on OSF/1 5.1.
22190         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22191         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22192         (same_slave): New function.
22193         (main): Use it to compare ptsname's result with the expected file name.
22194
22195 2010-12-22  Bruno Haible  <bruno@clisp.org>
22196
22197         Port extended stdio modules to HP NonStop Kernel.
22198         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22199         macros.
22200         * lib/fbufmode.c: Update comments.
22201         * lib/fflush.c: Likewise.
22202         * lib/fpurge.c: Likewise.
22203         * lib/freadable.c: Likewise.
22204         * lib/freadahead.c: Likewise.
22205         * lib/freading.c: Likewise.
22206         * lib/freadptr.c: Likewise.
22207         * lib/freadseek.c: Likewise.
22208         * lib/fseeko.c: Likewise.
22209         * lib/fseterr.c: Likewise.
22210         * lib/fwritable.c: Likewise.
22211         * lib/fwriting.c: Likewise.
22212         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22213
22214 2010-12-22  Bruno Haible  <bruno@clisp.org>
22215
22216         ttyname_r: Work around bug on OSF/1 5.1.
22217         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22218         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22219         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22220         present.
22221         * lib/ttyname_r.c (ttyname_r): Update comments.
22222
22223 2010-12-22  Bruno Haible  <bruno@clisp.org>
22224
22225         round: Implement result sign according to IEEE 754.
22226         * lib/round.c (MIN, MINUS_ZERO): New macros.
22227         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22228         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22229         * tests/test-round-ieee.c (main): Likewise.
22230         * tests/test-roundl-ieee.c (main): Likewise.
22231
22232         trunc: Implement result sign according to IEEE 754.
22233         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22234         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22235         * tests/test-trunc2.c: Include minus-zero.h.
22236         (MINUS_ZERO): New macro.
22237         (trunc_reference): Keep in sync with lib/trunc.c.
22238         * tests/test-truncf2.c: Include minus-zero.h.
22239         (MINUS_ZERO): New macro.
22240         (truncf_reference): Keep in sync with lib/trunc.c.
22241         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22242         * tests/test-trunc-ieee.c (main): Likewise.
22243         * tests/test-truncl-ieee.c (main): Likewise.
22244
22245         ceil: Implement result sign according to IEEE 754.
22246         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22247         (FUNC): Return -0.0 for -1 < x < 0.
22248         * tests/test-ceil2.c: Include minus-zero.h.
22249         (MINUS_ZERO): New macro.
22250         (ceil_reference): Keep in sync with lib/ceil.c.
22251         * tests/test-ceilf2.c: Include minus-zero.h.
22252         (MINUS_ZERO): New macro.
22253         (ceilf_reference): Keep in sync with lib/ceil.c.
22254         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22255         * tests/test-ceil-ieee.c (main): Likewise.
22256         * tests/test-ceill-ieee.c (main): Likewise.
22257
22258         floor: Implement result sign according to IEEE 754.
22259         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22260         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22261         * tests/test-floorf2.c (floorf_reference): Likewise.
22262         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22263         * tests/test-floor-ieee.c (main): Likewise.
22264         * tests/test-floorl-ieee.c (main): Likewise.
22265
22266 2010-12-22  Bruno Haible  <bruno@clisp.org>
22267
22268         getaddrinfo: Update doc.
22269         * doc/posix-functions/gai_strerror.texi: Return type is also different
22270         on AIX and HP-UX.
22271
22272 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22273
22274         getaddrinfo, inet_ntop: Update doc for Solaris.
22275         * doc/posix-functions/gai_strerror.texi: Return type is also an
22276         issue on Solaris 9 and earlier.
22277         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22278         on Solaris 10 and earlier.
22279
22280 2010-12-21  Bruno Haible  <bruno@clisp.org>
22281
22282         New module 'roundl-ieee'.
22283         * modules/roundl-ieee: New file.
22284         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22285         test whether roundl works according to ISO C 99 with IEC 60559.
22286         * m4/roundl-ieee.m4: New file.
22287         * modules/roundl-ieee-tests: New file.
22288         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22289         * tests/test-roundl.c (main): Remove signbit tests.
22290         * modules/roundl-tests (Depends-on): Remove signbit.
22291         * doc/posix-functions/roundl.texi: Mention the new module.
22292
22293 2010-12-21  Bruno Haible  <bruno@clisp.org>
22294
22295         New module 'truncl-ieee'.
22296         * modules/truncl-ieee: New file.
22297         * modules/truncl-ieee-tests: New file.
22298         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22299         * tests/test-truncl.c (main): Remove signbit tests.
22300         * modules/truncl-tests (Depends-on): Remove signbit.
22301         * doc/posix-functions/truncl.texi: Mention the new module.
22302
22303 2010-12-21  Bruno Haible  <bruno@clisp.org>
22304
22305         New module 'ceill-ieee'.
22306         * modules/ceill-ieee: New file.
22307         * modules/ceill-ieee-tests: New file.
22308         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22309         * tests/test-ceill.c (main): Remove signbit tests.
22310         * modules/ceill-tests (Depends-on): Remove signbit.
22311         * doc/posix-functions/ceill.texi: Mention the new module.
22312
22313 2010-12-21  Bruno Haible  <bruno@clisp.org>
22314
22315         New module 'floorl-ieee'.
22316         * modules/floorl-ieee: New file.
22317         * modules/floorl-ieee-tests: New file.
22318         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22319         * tests/test-floorl.c (main): Remove signbit tests.
22320         * modules/floorl-tests (Depends-on): Remove signbit.
22321         * doc/posix-functions/floorl.texi: Mention the new module.
22322
22323 2010-12-21  Bruno Haible  <bruno@clisp.org>
22324
22325         New module 'round-ieee'.
22326         * modules/round-ieee: New file.
22327         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22328         whether round works according to ISO C 99 with IEC 60559.
22329         * m4/round-ieee.m4: New file.
22330         * modules/round-ieee-tests: New file.
22331         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22332         * tests/test-round1.c (main): Remove signbit tests.
22333         * modules/round-tests (Depends-on): Remove 'signbit'.
22334         * doc/posix-functions/round.texi: Mention the new module.
22335
22336 2010-12-21  Bruno Haible  <bruno@clisp.org>
22337
22338         New module 'trunc-ieee'.
22339         * modules/trunc-ieee: New file.
22340         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22341         whether trunc works according to ISO C 99 with IEC 60559.
22342         * m4/trunc-ieee.m4: New file.
22343         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22345         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22346         * modules/trunc-ieee-tests: New file.
22347         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22348         * tests/test-trunc1.c (main): Remove signbit tests.
22349         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22350         * doc/posix-functions/trunc.texi: Mention the new module.
22351
22352 2010-12-21  Bruno Haible  <bruno@clisp.org>
22353
22354         New module 'ceil-ieee'.
22355         * modules/ceil-ieee: New file.
22356         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22357         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22358         ISO C 99 with IEC 60559.
22359         * m4/ceil-ieee.m4: New file.
22360         * modules/ceil (Files): Add lib/ceil.c.
22361         (Depends-on): Add 'float'.
22362         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22363         * lib/math.in.h (ceil): New declaration.
22364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22365         REPLACE_CEIL.
22366         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22367         * modules/ceil-ieee-tests: New file.
22368         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22369         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22370         * doc/posix-functions/ceil.texi: Mention the new module.
22371
22372 2010-12-21  Bruno Haible  <bruno@clisp.org>
22373
22374         New module 'floor-ieee'.
22375         * modules/floor-ieee: New file.
22376         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22377         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22378         ISO C 99 with IEC 60559.
22379         * m4/floor-ieee.m4: New file.
22380         * modules/floor (Files): Add lib/floor.c.
22381         (Depends-on): Add 'float'.
22382         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22383         * lib/math.in.h (floor): New declaration.
22384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22385         REPLACE_FLOOR.
22386         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22387         * modules/floor-ieee-tests: New file.
22388         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22389         * tests/test-math-c++.cc: Check the signature of 'floor'.
22390         * doc/posix-functions/floor.texi: Mention the new module.
22391
22392 2010-12-21  Bruno Haible  <bruno@clisp.org>
22393
22394         New module 'roundf-ieee'.
22395         * modules/roundf-ieee: New file.
22396         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22397         test whether roundf works according to ISO C 99 with IEC 60559.
22398         * m4/roundf-ieee.m4: New file.
22399         * modules/roundf-ieee-tests: New file.
22400         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22401         * tests/test-roundf1.c (main): Remove signbit tests.
22402         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22403         * doc/posix-functions/roundf.texi: Mention the new module.
22404
22405 2010-12-21  Bruno Haible  <bruno@clisp.org>
22406
22407         New module 'truncf-ieee'.
22408         * modules/truncf-ieee: New file.
22409         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22410         test whether truncf works according to ISO C 99 with IEC 60559.
22411         * m4/truncf-ieee.m4: New file.
22412         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22414         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22415         * modules/truncf-ieee-tests: New file.
22416         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22417         * tests/test-truncf1.c (main): Remove signbit tests.
22418         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22419         * doc/posix-functions/truncf.texi: Mention the new module.
22420
22421 2010-12-21  Bruno Haible  <bruno@clisp.org>
22422
22423         New module 'ceilf-ieee'.
22424         * modules/ceilf-ieee: New file.
22425         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22426         test whether ceilf works according to ISO C 99 with IEC 60559.
22427         * m4/ceilf-ieee.m4: New file.
22428         * modules/ceilf-ieee-tests: New file.
22429         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22430         * tests/test-ceilf1.c (main): Remove signbit tests.
22431         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22432         * doc/posix-functions/ceilf.texi: Mention the new module.
22433
22434 2010-12-21  Bruno Haible  <bruno@clisp.org>
22435
22436         New module 'floorf-ieee'.
22437         * modules/floorf-ieee: New file.
22438         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22439         test whether floorf works according to ISO C 99 with IEC 60559.
22440         * m4/floorf-ieee.m4: New file.
22441         * modules/floorf-ieee-tests: New file.
22442         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22443         * tests/test-floorf1.c (main): Remove signbit tests.
22444         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22445         * doc/posix-functions/floorf.texi: Mention the new module.
22446
22447 2010-12-21  Bruno Haible  <bruno@clisp.org>
22448
22449         Support for minus zero in autoconf macros.
22450         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22451         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22452         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22453         * tests/minus-zero.h: Update comments.
22454
22455 2010-12-21  Bruno Haible  <bruno@clisp.org>
22456
22457         Tests for module 'ceil'.
22458         * modules/ceil-tests: New file.
22459         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22460         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22461
22462 2010-12-21  Bruno Haible  <bruno@clisp.org>
22463
22464         Tests for module 'floor'.
22465         * modules/floor-tests: New file.
22466         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22467         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22468
22469 2010-12-21  Bruno Haible  <bruno@clisp.org>
22470
22471         math: Fix indentation.
22472         * lib/math.in.h (floorf): Fix indentation.
22473
22474 2010-12-21  Bruno Haible  <bruno@clisp.org>
22475
22476         Fix cross-compilation guesses on Solaris.
22477         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22478         not match "solaris2.10".
22479         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22480         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22481         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22482
22483 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22484
22485         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22486         This fixes a problem observed with the latest coreutils snapshot
22487         that caused a test to fail on Solaris 8.  src/csplit.c's call
22488         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22489         earlier, instead of returning the number of bytes that would have
22490         been generated; this causes csplit to incorrectly report memory
22491         exhaustion.
22492         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22493         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22494         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22495         comments to match.
22496         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22497         Fix typo in matching older versions of Solaris: "solaris2.10"
22498         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22499         only for guessing while cross-compiling.
22500         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22501
22502 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22503
22504         ftoastr: fix comment again
22505         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22506         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22507         Also, simplify example a bit by using flags = 0.
22508
22509 2010-12-20  Bruno Haible  <bruno@clisp.org>
22510
22511         round*, trunc*: Update documentation regarding glibc.
22512         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22513         * doc/posix-functions/round.texi: Likewise.
22514         * doc/posix-functions/roundl.texi: Likewise.
22515         * doc/posix-functions/truncf.texi: Likewise.
22516         * doc/posix-functions/trunc.texi: Likewise.
22517         * doc/posix-functions/truncl.texi: Likewise.
22518
22519 2010-12-20  Bruno Haible  <bruno@clisp.org>
22520
22521         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22522         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22523         * doc/posix-functions/round.texi: Likewise.
22524         * doc/posix-functions/roundl.texi: Likewise.
22525
22526 2010-12-20  Bruno Haible  <bruno@clisp.org>
22527
22528         ttyname_r: Add missing declaration on HP-UX 11.
22529         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22530         HAVE_TTYNAME_R.
22531         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22532         declared. Set HAVE_TTYNAME_R always.
22533         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22534         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22535         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22536         HAVE_TTYNAME_R.
22537         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22538
22539 2010-12-20  Bruno Haible  <bruno@clisp.org>
22540
22541         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22542         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22543         * doc/posix-functions/getlogin_r.texi: Likewise.
22544         * tests/test-getlogin.c: Include <errno.h>.
22545         (main): Avoid test failure on HP-UX 11.11.
22546         * tests/test-getlogin_r.c (main): Likewise.
22547
22548 2010-12-20  Bruno Haible  <bruno@clisp.org>
22549
22550         getlogin_r: Add missing declaration on HP-UX 11.
22551         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22552         declared also when it exists as a function.
22553         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22554
22555 2010-12-20  Bruno Haible  <bruno@clisp.org>
22556
22557         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22558         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22559         through wcrtomb.
22560
22561 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22562
22563         ftoastr: fix comment
22564         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22565         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22566
22567 2010-12-19  Bruno Haible  <bruno@clisp.org>
22568
22569         isnan: Ensure it is a macro.
22570         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22571         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22572         Solaris.
22573
22574 2010-12-19  Bruno Haible  <bruno@clisp.org>
22575
22576         ldexpl test: Fix link error on OSF/1 5.1.
22577         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22578
22579 2010-12-19  Bruno Haible  <bruno@clisp.org>
22580
22581         wctype: Make it work in C++ mode on OSF/1 5.1.
22582         * lib/wctype.in.h (iswblank): Declare but not define here.
22583         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22584         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22585         * modules/wctype (Files): Add lib/iswblank.c.
22586
22587 2010-12-19  Bruno Haible  <bruno@clisp.org>
22588
22589         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22590         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22591         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22592
22593 2010-12-19  Bruno Haible  <bruno@clisp.org>
22594
22595         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22596         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22597         _POSIX_PII_SOCKET.
22598         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22599         * doc/posix-functions/recvfrom.texi: Likewise.
22600         * doc/posix-functions/send.texi: Likewise.
22601         * doc/posix-functions/sendto.texi: Likewise.
22602
22603 2010-12-19  Bruno Haible  <bruno@clisp.org>
22604
22605         tcgetsid: Add missing declaration on OSF/1 5.1.
22606         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22607         HAVE_TCGETSID.
22608         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22609         Don't set HAVE_TCGETSID.
22610         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22611         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22612         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22613         HAVE_TCGETSID.
22614         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22615
22616 2010-12-19  Bruno Haible  <bruno@clisp.org>
22617
22618         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22619         * lib/stdio.in.h: During the include_next statement, let recursive
22620         includes of this file include only the system header file.
22621
22622 2010-12-19  Bruno Haible  <bruno@clisp.org>
22623
22624         iconv_open: Fix regression from 2010-12-04.
22625         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22626         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22627
22628 2010-12-19  Bruno Haible  <bruno@clisp.org>
22629
22630         stdbool test: Avoid a gcc warning.
22631         * tests/test-stdbool.c (main): Fail if e1 is false.
22632         Reported by Jim Meyering.
22633
22634 2010-12-19  Jim Meyering  <meyering@redhat.com>
22635
22636         setenv: restore to working order
22637         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22638         mistakenly removed.
22639         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22640         HAVE_SETENV.
22641         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22642         HAVE_SETENV.
22643
22644 2010-12-19  Bruno Haible  <bruno@clisp.org>
22645
22646         Document some different function declarations on OSF/1 5.1.
22647         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22648         * doc/posix-functions/inet_ntop.texi: Likewise.
22649         * doc/posix-functions/gethostname.texi: Likewise.
22650         * lib/unistd.in.h (gethostname): Update comment.
22651
22652 2010-12-19  Bruno Haible  <bruno@clisp.org>
22653
22654         doc: Mention vasprintf-posix module.
22655         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22656         the 'vasprintf-posix' module.
22657         * doc/glibc-functions/vasprintf.texi: Likewise.
22658
22659 2010-12-19  Bruno Haible  <bruno@clisp.org>
22660
22661         unsetenv: Add missing declaration on OSF/1 5.1.
22662         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22663         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22664         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22666         not HAVE_UNSETENV.
22667         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22668         HAVE_UNSETENV.
22669         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22670
22671 2010-12-19  Bruno Haible  <bruno@clisp.org>
22672
22673         setenv: Add missing declaration on OSF/1 5.1.
22674         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22675         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22676         declared. Don't set HAVE_SETENV.
22677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22678         not HAVE_SETENV.
22679         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22680         HAVE_SETENV.
22681         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22682
22683 2010-12-19  Bruno Haible  <bruno@clisp.org>
22684
22685         nl_langinfo tests: Avoid gcc warning.
22686         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22687
22688 2010-12-19  Bruno Haible  <bruno@clisp.org>
22689
22690         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22691         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22692         _GL_CXXALIAS_SYS.
22693
22694 2010-12-19  Bruno Haible  <bruno@clisp.org>
22695
22696         stdbool: Relax test.
22697         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22698         address to 'bool' work in static initializer, for compilers other than
22699         GCC.
22700
22701 2010-12-19  Bruno Haible  <bruno@clisp.org>
22702
22703         ftello: Add missing declaration on OSF/1 5.1.
22704         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22705         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22707         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22708         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22709
22710 2010-12-19  Bruno Haible  <bruno@clisp.org>
22711
22712         fseeko: Add missing declaration on OSF/1 5.1.
22713         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22714         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22716         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22717         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22718
22719 2010-12-19  Bruno Haible  <bruno@clisp.org>
22720
22721         fchdir: Add missing declaration on OSF/1 5.1.
22722         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22723         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22724         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22725         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22726         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22727
22728 2010-12-19  Bruno Haible  <bruno@clisp.org>
22729
22730         relocatable-prog-wrapper: Separate from relocatable-prog.
22731         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22732         uninstall-relocwrapper rule here.
22733         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22734         Reported by Ian Beckwith <ianb@erislabs.net>.
22735
22736 2010-12-19  Bruno Haible  <bruno@clisp.org>
22737
22738         unistr/u8-mbsnlen: Add missing dependency.
22739         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22740         Reported by Ian Beckwith <ianb@erislabs.net>.
22741
22742 2010-12-19  Bruno Haible  <bruno@clisp.org>
22743
22744         iconv: Make it possible again to use this module without 'iconv-h'.
22745         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22746         if it is not defined.
22747         Reported by Ian Beckwith <ianb@erislabs.net>.
22748
22749 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22750
22751         acl: port to Solaris 8 when copying from tmpfs to ufs
22752         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22753         error number.  Problem observed on Solaris 8 with latest
22754         coreutils, with "mv A B", where A is on a tmpfs file system and B
22755         is on a ufs file system.  This caused coreutils' mv/part-symlink
22756         test to fail.
22757
22758         tests: set fail=0 at start
22759         * tests/init.sh (setup_): Move fail=0 initialization here ...
22760         (mktempd_): ... from here, so that tests can rely on fail being
22761         set to 0 initially.  This fixes a problem in coreutils; see:
22762         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22763
22764 2010-12-18  Bruno Haible  <bruno@clisp.org>
22765
22766         memmem-simple: Stylistic changes.
22767         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22768         Fix preprocessor directive indentation.
22769
22770 2010-12-15  Pádraig Brady <P@draigBrady.com>
22771
22772         memmem, memmem-simple: reorganize and expand empty needle check
22773         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22774         functional checks to memmem-simple so that one has a fully functional
22775         memmem by using just this module.
22776         Restrict the performance only check to the memmem module.
22777         Also expand the empty needle check to ensure the correct
22778         pointer is returned, not just a non NULL pointer.
22779         * doc/glibc-functions/memmem.texi: Rearrange the portability
22780         documentation to correlate with the rearranged checks.
22781         Clarify exactly how the memmem and memmem-simple modules
22782         relate to each other.
22783
22784 2010-12-15  Pádraig Brady <P@draigBrady.com>
22785             Bruno Haible  <bruno@clisp.org>
22786
22787         Improve cross-compilation guesses for uClibc.
22788         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22789         that uClibc does not have the glibc bug.
22790         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22791         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22792
22793 2010-12-14  Eric Blake  <eblake@redhat.com>
22794
22795         configmake: provide fallbacks for oldest supported autotools
22796         * m4/configmake.m4: New file.
22797         * modules/configmake (Files): Ship it.
22798         (configure.ac): Use it to guarantee fallbacks.
22799
22800 2010-12-13  Pádraig Brady <P@draigBrady.com>
22801
22802         read-file: Improve handling of large files
22803         * lib/read-file.c (fread_file): Minimize realloc()s
22804         for regular files, and better manage sizes around SIZE_MAX.
22805
22806 2010-12-13  Eric Blake  <eblake@redhat.com>
22807
22808         cloexec, fcntl: relax license
22809         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22810         consent from all contributors.
22811         * modules/fcntl (License): Likewise.
22812
22813 2010-12-10  Bruno Haible  <bruno@clisp.org>
22814
22815         Tests for module 'pipe-posix'.
22816         * modules/pipe-posix-tests: New file.
22817         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22818
22819 2010-12-10  Bruno Haible  <bruno@clisp.org>
22820
22821         pipe-posix: Make it work in C++ mode.
22822         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22823         (pipe): Use common idiom, not a macro definition.
22824         * lib/pipe.c: New file.
22825         * m4/pipe.m4: New file.
22826         * modules/pipe-posix (Description): Enhance.
22827         (Files): Add lib/pipe.c, m4/pipe.m4.
22828         (configure.ac): Invoke gl_FUNC_PIPE.
22829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
22830         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
22831         * tests/test-unistd-c++.cc: Check the signature of pipe.
22832
22833 2010-12-10  Bruno Haible  <bruno@clisp.org>
22834
22835         Rename module 'pipe' to 'spawn-pipe'.
22836         * modules/spawn-pipe: New file, renamed from modules/pipe.
22837         (Files, configure.ac, Makefile.am): Update.
22838         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
22839         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
22840         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
22841         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
22842         "spawn-pipe.h" instead of "pipe.h".
22843         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
22844         to gl_SPAWN_PIPE.
22845         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
22846         (Files, Makefile.am): Update.
22847         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
22848         Update.
22849         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
22850         Include "spawn-pipe.h" instead of "pipe.h".
22851         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
22852         * lib/javacomp.c: Likewise.
22853         * lib/javaversion.c: Likewise.
22854         * lib/pipe-filter-gi.c: Likewise.
22855         * lib/pipe-filter-ii.c: Likewise.
22856         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
22857         * modules/javacomp (Depends-on): Likewise.
22858         * modules/javaversion (Depends-on): Likewise.
22859         * modules/pipe-filter-gi (Depends-on): Likewise.
22860         * modules/pipe-filter-ii (Depends-on): Likewise.
22861         * MODULES.html.sh (Executing programs): Update.
22862         * NEWS: Mention the change.
22863
22864 2010-12-10  Eric Blake  <eblake@redhat.com>
22865
22866         pipe-posix: new module
22867         * modules/pipe-posix: New file.
22868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
22869         (gl_UNISTD_H): Check for declaration.
22870         * modules/unistd (Makefile.am): Substitute it.
22871         * lib/unistd.in.h (pipe): Provide it for mingw.
22872         * doc/posix-functions/pipe.texi (pipe): Update documentation.
22873         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
22874
22875 2010-12-07  Bruno Haible  <bruno@clisp.org>
22876
22877         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
22878         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
22879         u8_strcmp_gnu.
22880         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
22881
22882 2010-12-06  Bruno Haible  <bruno@clisp.org>
22883
22884         Update internal documentation.
22885         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
22886
22887 2010-12-04  Bruno Haible  <bruno@clisp.org>
22888
22889         Put more information about failed tests into the test return codes.
22890         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
22891         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
22892         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22893         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22894         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22895         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22896         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22897         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22898         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
22899         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22900         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
22901         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22902         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22903         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22904         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
22905         returns a bit mask.
22906         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22907         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
22908         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
22909         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22910         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22911         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22912         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22913         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22914         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22915         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22916         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22917         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22918         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22919         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22920         * m4/link.m4 (gl_FUNC_LINK): Likewise.
22921         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22922         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
22923         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
22924         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22925         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
22926         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22927         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22928         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22929         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22930         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22931         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22932         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22933         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22934         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22935         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
22936         gl_PRINTF_PRECISION): Likewise.
22937         * m4/regex.m4 (gl_REGEX): Likewise.
22938         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22939         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22940         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
22941         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22942         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22944         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
22945         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
22946         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22947         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22948         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22949         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22950         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22951         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22952         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22953         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22954         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22955         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22956         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22957         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
22958         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
22959         enumerated value.
22960         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
22961
22962 2010-12-04  Bruno Haible  <bruno@clisp.org>
22963
22964         Update for Solaris 11 2010-11.
22965         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
22966         Express, released in November 2010.
22967
22968 2010-12-04  Bruno Haible  <bruno@clisp.org>
22969
22970         nproc: Relax license.
22971         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
22972         and Paul Eggert.
22973         Requested by Ludovic Courtès <ludo@gnu.org>.
22974
22975 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
22976
22977         utimecmp: fine-grained src to nearby coarse-grained dest
22978
22979         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
22980         and the source is on a file system with higher-resolution time
22981         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
22982         not work, and the time stamps are close together, the algorithm to
22983         determine the exact resolution from the read-back mtime was buggy:
22984         it had a "!=" where it should have had an "==".  This bug has been
22985         in the code ever since it was introduced to gnulib.
22986         Problem reported by Dan Jacobson in
22987         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
22988
22989 2010-11-30  Bruno Haible  <bruno@clisp.org>
22990
22991         strerror_r-posix: Fix autoconf test.
22992         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
22993
22994 2010-11-28  Bruno Haible  <bruno@clisp.org>
22995             Paul Eggert  <eggert@cs.ucla.edu>
22996
22997         Tests for module 'getdomainname'.
22998         * modules/getdomainname-tests: New file.
22999         * tests/test-getdomainname.c: New file, based on
23000         tests/test-gethostname.c.
23001
23002 2010-11-28  Bruno Haible  <bruno@clisp.org>
23003             Paul Eggert  <eggert@cs.ucla.edu>
23004
23005         getdomainname: Use the system function when possible.
23006         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23007         (getdomainname): Replace if needed. Provide the declaration if it is
23008         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23009         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23010         (getdomainname): When the system has getdomainname, call the system
23011         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23012         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23013         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23014         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23015         the function if its second argument is of type 'int' or if it is found
23016         in libnsl.
23017         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23018         <sys/systeminfo.h> and sysinfo().
23019         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23021         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23022         HAVE_GETDOMAINNAME.
23023         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23024         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23025         * doc/glibc-functions/getdomainname.texi: Document the problems with
23026         the getdomainname declaration.
23027
23028 2010-11-28  Bruno Haible  <bruno@clisp.org>
23029
23030         sys_socket: Ensure ss_family field on AIX.
23031         * lib/sys_socket.in.h (ss_family): New macro definition.
23032         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23033         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23034         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23035         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23036         * modules/sys_socket (Makefile.am): Substitute
23037         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23038         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23039
23040 2010-11-27  Bruno Haible  <bruno@clisp.org>
23041
23042         readline: Improve configure output.
23043         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23044         "checking for readline..." result understandable.
23045
23046 2010-11-27  Bruno Haible  <bruno@clisp.org>
23047
23048         *printf-posix: Detect a bug on Solaris 10/x86.
23049         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23050         for floating-point output.
23051         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23052         directive.
23053         * tests/test-snprintf-posix.h (test_function): Likewise.
23054         * tests/test-sprintf-posix.h (test_function): Likewise.
23055         * tests/test-vasprintf-posix.c (test_function): Likewise.
23056         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23057         * doc/posix-functions/printf.texi: Likewise.
23058         * doc/posix-functions/snprintf.texi: Likewise.
23059         * doc/posix-functions/sprintf.texi: Likewise.
23060         * doc/posix-functions/vfprintf.texi: Likewise.
23061         * doc/posix-functions/vprintf.texi: Likewise.
23062         * doc/posix-functions/vsnprintf.texi: Likewise.
23063         * doc/posix-functions/vsprintf.texi: Likewise.
23064         * doc/glibc-functions/obstack_printf.texi: Likewise.
23065         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23066
23067 2010-11-27  Bruno Haible  <bruno@clisp.org>
23068
23069         Fix link error when module libunistring-optional is in use.
23070         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23071         * modules/striconveha-tests (Makefile.am): Likewise.
23072
23073 2010-11-27  Bruno Haible  <bruno@clisp.org>
23074
23075         regex: Mention link dependencies.
23076         * modules/regex (Link): New section.
23077         * modules/rpmatch (Link): Likewise.
23078         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23079
23080 2010-11-27  Bruno Haible  <bruno@clisp.org>
23081
23082         ftoastr: Fix compilation error on Solaris.
23083         * lib/ftoastr.c: Include <config.h>.
23084
23085 2010-11-27  Bruno Haible  <bruno@clisp.org>
23086
23087         getloadavg: Update documentation.
23088         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23089
23090 2010-11-27  Bruno Haible  <bruno@clisp.org>
23091
23092         sys_socket: Fix test whether the functions are declared.
23093         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23094         not <sys/select.h>.
23095
23096 2010-11-27  Bruno Haible  <bruno@clisp.org>
23097
23098         getpass: Make sure to get system declaration on some platforms.
23099         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23100         gl_USE_SYSTEM_EXTENSIONS.
23101         * modules/getpass (Depends-on): Add extensions.
23102
23103 2010-11-26  Bruno Haible  <bruno@clisp.org>
23104
23105         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23106         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23107         'iconv' module is present.
23108         (ICONV_CONST): New macro.
23109         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23110         ICONV_CONST.
23111         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23112         set ICONV_CONST.
23113         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23114         here.
23115         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23116         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23117         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23118         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23119         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23120         present.
23121
23122 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23123
23124         ftoastr: comment fix
23125         * lib/ftoastr.c: "little" -> "little or no" in comment
23126
23127 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23128
23129         stdint: port to GCC 4.3 + OSX + Octave
23130         On this platform, stdint.h is buggy and defines int64_t to long
23131         long int.  The replacement defined it to long int, causing
23132         problems with C++ style name mangling.  Instead, trust the system
23133         definition if INT64_MAX is defined, and likewise for the unsigned
23134         variant.   Problem reported by Jarno Rajahalme in
23135         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23136         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23137         and don't mess with int64_t and INT64_MAX in this case.
23138         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23139
23140 2010-11-24  Bruno Haible  <bruno@clisp.org>
23141
23142         doc: Corrections regarding MacOS X 10.4 and 10.5.
23143         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23144         MacOS X.
23145         Reported by Simon Josefsson.
23146
23147 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23148
23149         Uninstall ".bin" files installed by relocwrapper.
23150         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23151         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23152         unless it is already there.
23153
23154 2010-11-21  Bruno Haible  <bruno@clisp.org>
23155
23156         Update for NetBSD 5.0.
23157         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23158         NetBSD; the test fails on NetBSD 5.0.
23159         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23160         about NetBSD.
23161
23162 2010-11-21  Bruno Haible  <bruno@clisp.org>
23163
23164         Update for HP-UX 11.23 and HP-UX 11.31.
23165         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23166         HP-UX.
23167
23168 2010-11-21  Bruno Haible  <bruno@clisp.org>
23169
23170         Update for MacOS X 10.5.
23171         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23172         MacOS X; the test fails on MacOS X 10.5.8.
23173         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23174         about MacOS X.
23175
23176 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23177
23178         bootstrap: add bootstrap_sync option.
23179         See discussion at
23180         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23181         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23182         * build-aux/bootstrap: Accept --bootstrap-sync to update
23183         bootstrap if it is not identical to the local gnulib's
23184         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23185         enable this by default.  Accept --no-bootstrap-sync to disable
23186         it.
23187
23188 2010-11-20  Bruno Haible  <bruno@clisp.org>
23189
23190         Ensure that <features.h> is included before __GLIBC__ is tested.
23191         * lib/printf-parse.h: Include <features.h>.
23192         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23193         Reported by Mike Frysinger <vapier@gentoo.org>.
23194
23195         Ensure that <features.h> is included before __GLIBC__ is tested.
23196         * lib/wchar.in.h: Include <features.h>.
23197         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23198         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23199         Reported by Mike Frysinger <vapier@gentoo.org>.
23200
23201         Ensure that <features.h> is included before __GLIBC__ is tested.
23202         * lib/arpa_inet.in.h: Include <features.h>.
23203         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23204         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23205         Reported by Mike Frysinger <vapier@gentoo.org>.
23206
23207         Ensure that <features.h> is included before __GLIBC__ is tested.
23208         * build-aux/link-warning.h: Include <features.h>.
23209         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23210         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23211         Reported by Mike Frysinger <vapier@gentoo.org>.
23212
23213         Ensure that <features.h> is included before __GLIBC__ is tested.
23214         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23215         Reported by Mike Frysinger <vapier@gentoo.org>.
23216
23217 2010-11-20  Bruno Haible  <bruno@clisp.org>
23218
23219         memmem: Fix autoconf test.
23220         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23221
23222 2010-11-20  Bruno Haible  <bruno@clisp.org>
23223
23224         Port to uClibc.
23225         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23226         * lib/fcntl.in.h: Likewise.
23227         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23228         * lib/mbrtowc.c (mbrtowc): Likewise.
23229         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23230         * lib/strerror_r.c: Likewise.
23231         * lib/unistr/u8-strnlen.c: Likewise.
23232         * lib/vasnprintf.c (decimal_point_char): Likewise.
23233         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23234         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23235         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23236         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23237         * tests/test-sigaction.c (handler, main): Likewise.
23238         * lib/freading.h: Treat uClibc like a non-glibc platform.
23239         * lib/freading.c: Likewise.
23240         * lib/gettext.h: Likewise.
23241         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23242         Likewise.
23243         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23244         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23245         * lib/propername.c (proper_name_utf8): Likewise.
23246         * lib/spawn.in.h: Likewise.
23247         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23248         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23249         mem_cd_iconveh_internal): Likewise.
23250         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23251         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23252         strstr, strcasestr): Likewise.
23253         * lib/unicodeio.c (unicode_to_mb): Likewise.
23254         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23255         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23256         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23257         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23258         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23259         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23260         * lib/unistr/u8-stpncpy.c: Likewise.
23261         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23262         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23263         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23264         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23265         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23266         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23267         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23268         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23269         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23270         Likewise.
23271         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23272         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23273         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23274         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23275         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23276         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23277         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23278         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23279         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23280         * tests/test-striconveha.c (main): Likewise.
23281         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23282         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23283         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23284         * doc/posix-functions/getline.texi: Likewise.
23285         Reported by Mike Frysinger <vapier@gentoo.org>.
23286
23287 2010-11-20  Bruno Haible  <bruno@clisp.org>
23288
23289         nproc: Fix condition.
23290         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23291         HAVE_PTHREAD_AFFINITY_NP.
23292
23293 2010-11-20  Bruno Haible  <bruno@clisp.org>
23294
23295         Fix a comment.
23296         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23297
23298 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23299
23300         ftoastr: don't assume snprintf
23301         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23302         Implement a subset of snprintf here, by using sprintf safely.
23303         * modules/ftoastr (Depends-on): Remove snprintf.
23304
23305 2010-11-19  Jim Meyering  <meyering@redhat.com>
23306
23307         test-rename.h: fix compilation failure
23308         * tests/test-rename.h (test_rename): Add omitted "}".
23309
23310 2010-11-17  Jim Meyering  <meyering@redhat.com>
23311
23312         maint.mk: add a URL discussing the no-@acronym policy
23313         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23314
23315 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23316
23317         ftoastr: depend on snprintf, improve comments
23318         * lib/ftoastr.c: Also mention Loitsch's draft.
23319         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23320         needed in the current implementation, but it might simplify
23321         speeding up the code later.
23322         * modules/ftoastr: Depend on snprintf; this improves portability.
23323         Suggested by Bruno Haible in the same email.
23324
23325         ftoastr: port to hosts lacking strtof and strtold
23326         Problem reported by Bruno Haible in
23327         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23328         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23329         environment and strtold (and presumably strtof) are not available.
23330         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23331         (configure.ac): Require gl_C99_STRTOLD.
23332
23333 2010-11-18  Bruno Haible  <bruno@clisp.org>
23334
23335         c-strtold: Avoid link error on AIX 7.
23336         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23337         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23338         (gl_C_STRTOLD): Test whether strtold_l exists.
23339         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23340
23341 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23342
23343         intprops: new macro INT_BITS_STRLEN_BOUND
23344         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23345         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23346         not exposed.  Also, it uses a slightly tighter bound than before;
23347         though this makes no practical difference, we might as well be as
23348         tight as we easily can.
23349
23350         ftoastr: new module, for lossless conversion of floats to short strings
23351         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23352         * modules/ftoastr: New files.
23353
23354 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23355
23356         bootstrap: port to Solaris sed
23357         * build-aux/bootstrap (get_version): Port to Solaris sed.
23358         See Ralf Wildenhues's note in
23359         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23360
23361 2010-11-14  Jim Meyering  <meyering@redhat.com>
23362
23363         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23364         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23365         and move definition closer to sole use.
23366
23367 2010-11-13  Jim Meyering  <meyering@redhat.com>
23368
23369         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23370         Now we require at least autoconf-2.59, which means the work-around
23371         is no longer needed.
23372         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23373         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23374         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23375         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23376         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23377
23378 2010-11-13  Bruno Haible  <bruno@clisp.org>
23379
23380         rename, renameat: Avoid test failures at NFS mounted locations.
23381         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23382         functions.
23383         (test_rename): Use assert_nonexistent.
23384         * tests/test-rename.c: Include <dirent.h>.
23385         * tests/test-renameat.c: Likewise.
23386         Reported by Gary V. Vaughan <gary@gnu.org>.
23387
23388         rename, renameat: Document Linux bug with NFS
23389         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23390         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23391         * doc/posix-functions/renameat.texi: Likewise.
23392         Suggested by Eric Blake.
23393
23394 2010-11-13  Bruno Haible  <bruno@clisp.org>
23395
23396         rename test: Add comments.
23397         * tests/test-rename.h (test_rename): Add structure and comments.
23398
23399 2010-11-13  Eric Blake  <eblake@redhat.com>
23400
23401         maintainer-makefile: cover a few more files
23402         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23403         scripts generated within C files, for libvirt.
23404
23405 2010-11-13  Bruno Haible  <bruno@clisp.org>
23406
23407         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23408         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23409         character, return the number of bytes that belong together, not always
23410         1.
23411         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23412         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23413         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23414         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23415         number of bytes of an invalid character.
23416         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23417         (main): Invoke it.
23418         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23419         results.
23420         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23421         malformed byte sequences.
23422         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23423         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23424         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23425         Reported by Ben Pfaff and Paolo Bonzini.
23426
23427 2010-11-13  Bruno Haible  <bruno@clisp.org>
23428
23429         openat: Work around glibc bug with fchownat() and empty file names.
23430         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23431         (gl_FUNC_FCHOWNAT): Invoke it.
23432         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23433         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23434         Reported by Gary V. Vaughan <gary@gnu.org>.
23435
23436 2010-11-13  Bruno Haible  <bruno@clisp.org>
23437
23438         openat: Ensure autoconf macro ordering.
23439         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23440         gl_USE_SYSTEM_EXTENSIONS.
23441         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23442
23443 2010-11-13  Bruno Haible  <bruno@clisp.org>
23444
23445         Update comments.
23446         * lib/unistr/u8-check.c: Update file name in comments.
23447         * lib/unistr/u8-mblen.c: Likewise.
23448         * lib/unistr/u8-prev.c: Likewise.
23449         * lib/unistr/u8-strmblen.c: Likewise.
23450         * lib/unistr/u8-strmbtouc.c: Likewise.
23451
23452 2010-11-13  Jim Meyering  <meyering@redhat.com>
23453
23454         tests: avoid test failure on Solaris 10 due to lack of PATH export
23455         * tests/test-update-copyright.sh: Don't forget to export PATH.
23456
23457         init.sh: ensure that IFS is defined, just in case...
23458         * tests/init.sh (setup_): Ensure that IFS is defined,
23459         so that saving and restoring it works as expected.  This
23460         appears to be useful at least for an old version of dash
23461         from a long time ago (RH 6).  See here for details:
23462         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23463
23464         maint.mk: tighten "test a == b" check
23465         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23466         test to files that contain something like #!/bin/sh.
23467         Without this, coreutils would get two false positives in
23468         the comments of C source files.
23469
23470 2010-11-12  Eric Blake  <eblake@redhat.com>
23471
23472         bootstrap: fix typo in previous attempt
23473         * build-aux/bootstrap (buildreq): Correct the grouping.
23474         Reported by Paul Eggert.
23475
23476         maintainer-makefile: prohibit test x == x
23477         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23478         Based on a report by Matthias Bolte.
23479
23480         bootstrap: allow FreeBSD gzip
23481         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23482         which has no '.' and goes to stderr.
23483         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23484         Reported by Matthias Bolte.
23485
23486         maintainer-makefile: check for i18n setup
23487         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23488         will likely work.
23489
23490 2010-11-12  Bruno Haible  <bruno@clisp.org>
23491
23492         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23493         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23494         * lib/nanosleep.c (nanosleep): Likewise.
23495
23496 2010-11-11  Bruno Haible  <bruno@clisp.org>
23497
23498         fcntl-h: Fix for use of C++ on glibc systems.
23499         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23500         also on glibc systems in C++ mode.
23501         Reported by Gary V. Vaughan <gary@gnu.org>.
23502
23503 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23504
23505         mknod: avoid false failure with dash
23506         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23507
23508 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23509
23510         unlink: Fix "is it should" typo in diagnostic.
23511         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23512         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23513
23514 2010-11-11  Bruno Haible  <bruno@clisp.org>
23515
23516         Tests for module 'strerror_r-posix'.
23517         * modules/strerror_r-posix-tests: New file.
23518         * tests/test-strerror_r.c: New file.
23519         * tests/test-string-c++.cc: Check the signature of strerror_r.
23520
23521         New module 'strerror_r-posix'.
23522         * lib/string.in.h (strerror_r): New declaration.
23523         * lib/strerror_r.c: New file.
23524         * m4/strerror_r.m4: New file.
23525         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23526         of strerror_r.
23527         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23528         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23529         * modules/strerror_r-posix: New file.
23530         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23531         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23532         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23533         portability problems.
23534
23535 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23536
23537         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23538         line is also considered for output. Quoted function name in shell
23539         command, so temporary files for functions like MyClass::operator()
23540         are removed correctly without errors.
23541
23542 2010-11-09  Bruno Haible  <bruno@clisp.org>
23543
23544         * doc/posix-functions/strerror.texi: List more failing platforms.
23545
23546         * doc/posix-functions/strerror.texi: Add a comment.
23547
23548 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23549
23550         fdopendir: fix bug on MacOS X when low on file descriptors
23551
23552         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23553         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23554         All callers changed.
23555         (fdopendir): Invoke save_cwd at the top level, not after using
23556         multiple dup() calls to use up file descriptors.  Then retry
23557         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23558         less than the maximum number of open file descriptors, because
23559         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23560         on Mac OS X 10.6.4 for tar 1.24
23561         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23562         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23563         and for tar 1.25
23564         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23565
23566 2010-11-07  Bruno Haible  <bruno@clisp.org>
23567
23568         vasnprintf: Support I flag on glibc systems.
23569         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23570         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23571         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23572         snprintf function.
23573         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23574         glibc systems.
23575         * tests/test-vasnprintf-posix3.c: New file.
23576         * modules/vasnprintf-posix-tests (Files): Add it.
23577         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23578
23579 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23580
23581         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23582         * MODULES.html.sh: For compiler warnings, use name
23583         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23584
23585 2010-11-05  Eric Blake  <eblake@redhat.com>
23586
23587         ceil, floor: avoid spurious failure with icc
23588         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23589         [denormals-as-zero] when optimizing without -mieee-fp option.
23590         * tests/test-floorf2.c (floorf_reference): Likewise.
23591         * tests/test-ceilf1.c (dummy): New function.
23592         (main): Use it to outsmart icc's optimization.
23593         * tests/test-floorf1.c (dummy, main): Likewise.
23594
23595         tests: require working signbit
23596         * modules/ceilf-tests (Depends-on): Add signbit.
23597         * modules/ceill-tests (Depends-on): Likewise.
23598         * modules/floorf-tests (Depends-on): Likewise.
23599         * modules/floorl-tests (Depends-on): Likewise.
23600         * modules/round-tests (Depends-on): Likewise.
23601         * modules/roundf-tests (Depends-on): Likewise.
23602         * modules/roundl-tests (Depends-on): Likewise.
23603         * modules/trunc-tests (Depends-on): Likewise.
23604         * modules/truncf-tests (Depends-on): Likewise.
23605         * modules/truncl-tests (Depends-on): Likewise.
23606
23607         strtod: work around icc bug
23608         * lib/strtod.c (minus_zero): Define to working value.
23609         (strtod): Use it to avoid icc bug.
23610
23611         copysign: enhance tests
23612         * modules/copysign-tests (Files): Add minus-zero.h.
23613         * tests/test-copysign.c (main): Also test zeros.
23614
23615 2010-11-04  Eric Blake  <eblake@redhat.com>
23616
23617         ceil, floor, round, trunc: enhance tests of -0
23618         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23619         * tests/test-ceill.c (main): Likewise.
23620         * tests/test-floorf1.c (main): Likewise.
23621         * tests/test-floorl.c (main): Likewise.
23622         * tests/test-round1.c (main): Likewise.
23623         * tests/test-roundf1.c (main): Likewise.
23624         * tests/test-roundl.c (main): Likewise.
23625         * tests/test-trunc1.c (main): Likewise.
23626         * tests/test-truncf1.c (main): Likewise.
23627         * tests/test-truncl.c (main): Likewise.
23628
23629 2010-11-04  Eric Blake  <eblake@redhat.com>
23630
23631         frexp, tests: work around ICC bug with -zero
23632         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23633         works with more compilers.
23634         * tests/minus-zero.h: New file.
23635         * modules/ceilf-tests (Files): Include it.
23636         * modules/ceill-tests (Files): Likewise.
23637         * modules/floorf-tests (Files): Likewise.
23638         * modules/floorl-tests (Files): Likewise.
23639         * modules/frexp-nolibm-tests (Files): Likewise.
23640         * modules/frexp-tests (Files): Likewise.
23641         * modules/frexpl-nolibm-tests (Files): Likewise.
23642         * modules/frexpl-tests (Files): Likewise.
23643         * modules/isnan-tests (Files): Likewise.
23644         * modules/isnand-nolibm-tests (Files): Likewise.
23645         * modules/isnand-tests (Files): Likewise.
23646         * modules/isnanf-nolibm-tests (Files): Likewise.
23647         * modules/isnanf-tests (Files): Likewise.
23648         * modules/isnanl-nolibm-tests (Files): Likewise.
23649         * modules/isnanl-tests (Files): Likewise.
23650         * modules/round-tests (Files): Likewise.
23651         * modules/roundf-tests (Files): Likewise.
23652         * modules/roundl-tests (Files): Likewise.
23653         * modules/ldexpl-tests (Files): Likewise.
23654         * modules/signbit-tests (Files): Likewise.
23655         * modules/snprintf-posix-tests (Files): Likewise.
23656         * modules/sprintf-posix-tests (Files): Likewise.
23657         * modules/strtod-tests (Files): Likewise.
23658         * modules/trunc-tests (Files): Likewise.
23659         * modules/truncf-tests (Files): Likewise.
23660         * modules/truncl-tests (Files): Likewise.
23661         * modules/vsnprintf-posix-tests (Files): Likewise.
23662         * modules/vsprintf-posix-tests (Files): Likewise.
23663         * modules/vasnprintf-posix-tests (Files): Likewise.
23664         * modules/vasprintf-posix-tests (Files): Likewise.
23665         * tests/test-ceilf1.c (main): Use it.
23666         * tests/test-ceill.c (main): Likewise.
23667         * tests/test-floorf1.c (main): Likewise.
23668         * tests/test-floorl.c (main): Likewise.
23669         * tests/test-frexp.c (main): Likewise.
23670         * tests/test-frexpl.c (main): Likewise.
23671         * tests/test-isnan.c (main): Likewise.
23672         * tests/test-isnand.h (main): Likewise.
23673         * tests/test-isnanf.h (main): Likewise.
23674         * tests/test-isnanl.h (main): Likewise.
23675         * tests/test-ldexpl.c (main): Likewise.
23676         * tests/test-round.c (main): Likewise.
23677         * tests/test-roundf.c (main): Likewise.
23678         * tests/test-roundl.c (main): Likewise.
23679         * tests/test-signbit.c (test_signbitf, test_signbitd)
23680         (test_signbitl): Likewise.
23681         * tests/test-snprintf-posix.h (test_function): Likewise.
23682         * tests/test-sprintf-posix.h (test_function): Likewise.
23683         * tests/test-strtod.c (main): Likewise.
23684         * tests/test-trunc1.c (main): Likewise.
23685         * tests/test-truncf1.c (main): Likewise.
23686         * tests/test-truncl.c (main): Likewise.
23687
23688         isnanl: work around icc bug
23689         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23690
23691 2010-11-03  Eric Blake  <eblake@redhat.com>
23692
23693         tests: fix compiler warnings
23694         * tests/test-getopt.h (test_getopt): Fix condition.
23695         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23696         * tests/test-pipe2.c (main): Likewise.
23697         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23698
23699         utimens: fix broken m4 test
23700         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23701
23702 2010-10-28  Bruno Haible  <bruno@clisp.org>
23703
23704         posix_spawn*, getdtablesize: Relax license.
23705         * modules/posix_spawn (License): Change to LGPLv2+.
23706         * modules/posix_spawnp (License): Likewise.
23707         * modules/posix_spawn-internal (License): Likewise.
23708         * modules/posix_spawnattr_init (License): Likewise.
23709         * modules/posix_spawnattr_getflags (License): Likewise.
23710         * modules/posix_spawnattr_setflags (License): Likewise.
23711         * modules/posix_spawnattr_getpgroup (License): Likewise.
23712         * modules/posix_spawnattr_setpgroup (License): Likewise.
23713         * modules/posix_spawnattr_getschedparam (License): Likewise.
23714         * modules/posix_spawnattr_setschedparam (License): Likewise.
23715         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23716         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23717         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23718         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23719         * modules/posix_spawnattr_getsigmask (License): Likewise.
23720         * modules/posix_spawnattr_setsigmask (License): Likewise.
23721         * modules/posix_spawnattr_destroy (License): Likewise.
23722         * modules/posix_spawn_file_actions_init (License): Likewise.
23723         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23724         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23725         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23726         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23727         * modules/getdtablesize (License): Likewise.
23728         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23729
23730 2010-10-26  Bruno Haible  <bruno@clisp.org>
23731
23732         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23733         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23734         Cygwin and mingw.
23735         Suggested by Eric Blake.
23736
23737 2010-10-26  Bruno Haible  <bruno@clisp.org>
23738
23739         stdio: Work around compilation error due to renameat() on Solaris 10.
23740         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23741         * lib/renameat.c: Don't include <unistd.h> here.
23742         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23743         Reported by Paul Eggert and Eric Blake.
23744
23745 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23746
23747         renameat: port to Solaris 10, which declares renameat in unistd.h
23748
23749         * lib/renameat.c: Include unistd.h before stdio.h, because
23750         Solaris 10 declares renameat in unistd.h.  Problem encountered
23751         when building GNU tar 1.24 on Solaris 10.
23752
23753 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23754
23755         fdopendir: fix C89 compilation
23756         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23757         compilers.
23758
23759 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23760
23761         inttostr: simplify by removing unnecessary redundancy
23762         * lib/anytostr.c: Don't include verify.h.
23763         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23764         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23765         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23766         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23767         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23768         Likewise.
23769         * modules/inttostr (Depends-on): Remove 'verify'.
23770
23771 2010-10-23  Bruno Haible  <bruno@clisp.org>
23772
23773         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23774         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23775         Reported by Eric Blake.
23776
23777 2010-10-23  Bruno Haible  <bruno@clisp.org>
23778
23779         Tests: Fix LOCALE_JA on MirBSD 10.
23780         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23781         to an UTF-8 locale.
23782         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23783         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23784         Reported by Eric Blake.
23785
23786 2010-10-21  Bruno Haible  <bruno@clisp.org>
23787
23788         nl_langinfo test: Avoid test failure on NetBSD 5.
23789         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23790         Reported by Eric Blake.
23791
23792 2010-10-21  Eric Blake  <eblake@redhat.com>
23793
23794         c-stack: work around libsigsegv 2.8 bug
23795         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23796         overflow on at least PowerPC64.
23797
23798 2010-10-17  Bruno Haible  <bruno@clisp.org>
23799
23800         userspec: Drop redundant file.
23801         * modules/userspec (Files): Remove lib/inttostr.h.
23802
23803 2010-10-17  Bruno Haible  <bruno@clisp.org>
23804
23805         nl_langinfo tests: Silence some warnings.
23806         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23807         Reported by Jim Meyering.
23808
23809 2010-10-17  Bruno Haible  <bruno@clisp.org>
23810
23811         Make use of GCC's attribute __alloc_size__.
23812         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23813         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23814         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23815         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23816         __alloc_size__.
23817         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23818         Suggested by Jim Meyering.
23819
23820 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23821
23822         bootstrap: anchor .gitignore entries.
23823         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23824         with...
23825         (insert_vc_ignore): ... this new function, which prepends `/' to
23826         all .gitignore entries before passing them to
23827         insert_sorted_if_absent.
23828
23829 2010-10-16  Bruno Haible  <bruno@clisp.org>
23830
23831         nextafter: Fix configure check.
23832         * modules/nextafter (configure.ac): Correct expected prototype.
23833
23834 2010-10-16  Bruno Haible  <bruno@clisp.org>
23835
23836         termios: Update documentation.
23837         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
23838
23839 2010-10-16  Bruno Haible  <bruno@clisp.org>
23840
23841         tests: Make them compile with TinyCC.
23842         * tests/test-strstr.c (main): Remove parentheses around array
23843         initializer.
23844
23845 2010-10-15  Eric Blake  <eblake@redhat.com>
23846
23847         ignore-value: make header idempotent
23848         * lib/ignore-value.h: Add double-inclusion guards.
23849         Reported by Stefan Berger.
23850
23851 2010-10-15  Jim Meyering  <meyering@redhat.com>
23852
23853         GNUmakefile: handle "stable" target, not "major"
23854         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
23855         lists in maint.mk and announce-gen.  Without this, "make stable"
23856         would fail to ensure that $(VERSION) is up to date.
23857
23858 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
23859
23860         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
23861         & co.
23862
23863 2010-10-14  Bruno Haible  <bruno@clisp.org>
23864
23865         vasnprintf: Don't set errno to 0.
23866         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
23867         block that sets it to 0.
23868         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23869
23870 2010-10-14  Bruno Haible  <bruno@clisp.org>
23871
23872         socketlib: Fix.
23873         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
23874         gl_PREREQ_SYS_H_WINSOCK2.
23875         Reported by Ian Beckwith <ianb@erislabs.net>.
23876
23877 2010-10-13  Jim Meyering  <meyering@redhat.com>
23878
23879         test-select-stdin.c: avoid warn_unused_result warnings
23880         * tests/test-select-stdin.c: Include "macros.h".
23881         ASSERT that read and fflush succeed.
23882
23883 2010-10-13  Jim Meyering  <meyering@redhat.com>
23884
23885         git-version-gen: do require git-VC'd files in cwd
23886         * build-aux/git-version-gen: Reject a git version string
23887         if there are no commits associated with the current directory.
23888         This avoids an unlikely false-positive (unrelated dir whose parent
23889         repository also contains a tag matching v*), as pointed out
23890         by Giuseppe Scrivano in
23891         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
23892
23893 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23894
23895         argv-iter: omit nonconforming declaration
23896         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
23897         enum arg_iter_err declaration, which doesn't conform to C99.
23898         Solaris 10 cc warns about this.
23899
23900 2010-10-13  Eric Blake  <eblake@redhat.com>
23901
23902         termios: fix compilation on mingw
23903         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
23904         (gl_TERMIOS_H): Adjust it on mingw.
23905         * modules/termios (Makefile.am): Substitute new key.
23906         * lib/termios.in.h (includes): Make include_next conditional.
23907         * doc/posix-headers/termios.texi (termios.h): Update
23908         documentation.
23909         Reported by Daniel P. Berrange.
23910
23911 2010-10-13  Jim Meyering  <meyering@redhat.com>
23912
23913         git-version-gen: don't require that .git/ be in the current dir
23914         * build-aux/git-version-gen: Adjust this script so that it works
23915         when run from any working directory beneath the top-level .git/-
23916         containing directory.  Inspired by a patch from Giuseppe Scrivano,
23917         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
23918
23919         test-select: avoid warn_unused_result warnings
23920         * tests/test-select.c: Include "macros.h".
23921         ASSERT that each call to read, write, and pipe succeeds.
23922         While not technically required, also check each "close".
23923         * modules/select-tests (Files): Add tests/macros.h.
23924
23925         test-symlinkat: remove declaration of unused local
23926         * tests/test-symlinkat.c (main): Remove unused local, "buf".
23927
23928         test-inttostr: avoid shadowing warnings
23929         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
23930         and use malloc rather than the stack for the same reason as
23931         mentioned in the comment justifying the other allocation.
23932
23933 2010-10-11  Bruno Haible  <bruno@clisp.org>
23934
23935         stdlib: Allow multiple gnulib generated replacements to coexist.
23936         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
23937         Reported by Sam Steingold <sds@gnu.org>.
23938
23939 2010-10-11  Jim Meyering  <meyering@redhat.com>
23940
23941         fix a documentation typo
23942         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
23943
23944 2010-10-11  Eric Blake  <eblake@redhat.com>
23945
23946         futimens: work around Solaris 11 bug
23947         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
23948         * tests/test-futimens.h (test_futimens): Enhance, rather than
23949         weaken test.
23950         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23951
23952 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23953
23954         Indentation.
23955         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
23956         higher-level operators more to the left.
23957
23958 2010-10-11  Jim Meyering  <meyering@redhat.com>
23959
23960         test-futimens: avoid unwarranted test failure on Solaris 5.11
23961         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
23962         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
23963         because it tries to dereference the NULL name argument.
23964
23965 2010-10-11  Bruno Haible  <bruno@clisp.org>
23966
23967         Indentation.
23968         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
23969         indentation.
23970
23971 2010-10-11  Jim Meyering  <meyering@redhat.com>
23972
23973         spawn.in.h: make indentation consistent with parentheses
23974         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
23975         Make indentation consistent with parentheses.
23976
23977 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
23978
23979         Fix mismatched parens in previous commit
23980         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
23981         parens.
23982
23983 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23984
23985         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
23986
23987         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
23988         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
23989         * lib/malloca.c: Include "verify.h".
23990         (verify1): Remove, replacing with a verify call.
23991         * lib/relocwrapper.c (verify1): Likewise.
23992         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
23993         Likewise.
23994         * modules/malloca (Depends-on): Add 'verify'.
23995         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
23996         * modules/vasnprintf (Depends-on): Add 'verify'.
23997         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23998         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23999         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24000         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24001         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24002         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24003         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24004
24005         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24006
24007         Formerly the style was sometimes 2*X - 1, because the C standard
24008         was wrongly thought to disallow ?: in integral constant expressions.
24009         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24010         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24011         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24012         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24013         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24014         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24015         verify that time_t cannot be floating.
24016
24017 2010-10-08  Eric Blake  <eblake@redhat.com>
24018
24019         time: enforce recent POSIX ruling that time_t is integral
24020         * lib/time.in.h (__time_t_must_be_integral): Detect any
24021         problematic systems, allowing the rest of gnulib to assume POSIX.
24022
24023 2010-10-08  Jim Meyering  <meyering@redhat.com>
24024
24025         fdopendir: fix a bug on systems lacking openat and /proc support
24026         OpenBSD 4.7 is one such system.  The most noticeable effect was
24027         failure of any application making nontrivial use of fts: rm, du,
24028         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24029           ./rm: traversal failed: `a': Bad file descriptor
24030         Debugging that, you see that even though FD 6 was closed just
24031         prior to the opendir call in fd_clone_opendir, its resulting
24032         dir->dd_fd was 8, rather than the expected value of 6:
24033
24034         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24035         93                close (fd);
24036         (gdb) n
24037         94                dir = fd_clone_opendir (dupfd);
24038         (gdb) n
24039         95                saved_errno = errno;
24040         (gdb) p dir->dd_fd
24041         $11 = 8
24042
24043         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24044         The problem is that on OpenBSD, fd_clone_opendir has to resort
24045         to using the old-style save/restore CWD mechanism, due to its
24046         lack of openat/proc support, and *that* would steal the FD (6)
24047         that opendir was supposed to use.
24048
24049         The fix is to squirrel away the desired FD so that save_cwd uses a
24050         different one, and then free the dest FD right before calling opendir.
24051         That guarantees opendir will use the required file descriptor.
24052
24053         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24054
24055 2010-10-08  Bruno Haible  <bruno@clisp.org>
24056
24057         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24058         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24059
24060 2010-10-08  Bruno Haible  <bruno@clisp.org>
24061
24062         nanosleep: Make replacement POSIX compliant.
24063         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24064         is out of range.
24065         Reported by Jim Meyering.
24066
24067 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24068
24069         bootstrap: add hook for altering gnulib.mk, for Bison
24070         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24071         the Bison bootstrapping process can rewrite file names and variables
24072         in this file before later parts of 'bootstrap' use the file.
24073         Bison wants to include lib/gnulib.mk from the top-level makefile,
24074         so it needs the file names in this file to be relative to the top
24075         level, not relative to lib; plus it needs variable names to be
24076         rewritten.
24077         (slurp): Use the new function.
24078
24079         bootstrap: reformat for readability
24080         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24081
24082 2010-10-08  Eric Blake  <eblake@redhat.com>
24083
24084         docs: update cygwin progress
24085         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24086         1.7.7.
24087         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24088         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24089         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24090         * doc/posix-functions/carg.texi (carg): Likewise.
24091         * doc/posix-functions/cargf.texi (cargf): Likewise.
24092         * doc/posix-functions/casin.texi (casin): Likewise.
24093         * doc/posix-functions/casinf.texi (casinf): Likewise.
24094         * doc/posix-functions/casinh.texi (casinh): Likewise.
24095         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24096         * doc/posix-functions/catan.texi (catan): Likewise.
24097         * doc/posix-functions/catanf.texi (catanf): Likewise.
24098         * doc/posix-functions/catanh.texi (catanh): Likewise.
24099         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24100         * doc/posix-functions/ccos.texi (ccos): Likewise.
24101         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24102         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24103         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24104         * doc/posix-functions/cexp.texi (cexp): Likewise.
24105         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24106         * doc/posix-functions/cimag.texi (cimag): Likewise.
24107         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24108         * doc/posix-functions/clog.texi (clog): Likewise.
24109         * doc/posix-functions/clogf.texi (clogf): Likewise.
24110         * doc/posix-functions/conj.texi (conj): Likewise.
24111         * doc/posix-functions/conjf.texi (conjf): Likewise.
24112         * doc/posix-functions/cpow.texi (cpow): Likewise.
24113         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24114         * doc/posix-functions/cproj.texi (cproj): Likewise.
24115         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24116         * doc/posix-functions/creal.texi (creal): Likewise.
24117         * doc/posix-functions/crealf.texi (crealf): Likewise.
24118         * doc/posix-functions/csin.texi (csin): Likewise.
24119         * doc/posix-functions/csinf.texi (csinf): Likewise.
24120         * doc/posix-functions/csinh.texi (csinh): Likewise.
24121         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24122         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24123         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24124         * doc/posix-functions/ctan.texi (ctan): Likewise.
24125         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24126         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24127         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24128         * doc/posix-headers/complex.texi (complex.h): Likewise.
24129
24130 2010-10-07  Jim Meyering  <meyering@redhat.com>
24131
24132         parse-datetime: avoid compilation failure on OpenBSD 4.7
24133         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24134         This works around a compilation failure on OpenBSD 4.7:
24135         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24136
24137 2010-10-07  Eric Blake  <eblake@redhat.com>
24138
24139         docs: update cygwin progress
24140         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24141         1.7.6.
24142         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24143         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24144         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24145         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24146         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24147         Likewise.
24148         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24149         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24150         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24151         Likewise.
24152         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24153         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24154         Likewise.
24155         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24156         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24157         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24158         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24159         Likewise.
24160         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24161         Likewise.
24162         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24163
24164         docs: update parse-datetime history
24165         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24166         documentation of this function's history and alternatives.
24167
24168         cygwin: use more robust version check
24169         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24170         exclude an eventual cygwin 1.9.1.
24171         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24172         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24173         (gl_FUNC_STRCASESTR): Likewise.
24174         Reported by Bruno Haible.
24175
24176 2010-10-06  Bruno Haible  <bruno@clisp.org>
24177
24178         string, sys_select: Avoid #including large headers unless necessary.
24179         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24180         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24181         OSF/1, BeOS, Haiku.
24182         Reported by Jim Meyering.
24183
24184 2010-10-05  Eric Blake  <eblake@redhat.com>
24185
24186         memmem, strstr, strcasestr: fix bug with long periodic needle
24187         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24188         periodic needle having false positive.
24189         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24190         and cygwin 1.7.7.
24191         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24192         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24193         (gl_FUNC_STRCASESTR): Likewise.
24194         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24195         * tests/test-memmem.c (main): Expose the bug.
24196         * tests/test-strcasestr.c (main): Likewise.
24197         * tests/test-strstr.c (main): Likewise.
24198         * tests/test-c-strcasestr.c (main): Likewise.
24199         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24200         * doc/posix-functions/strstr.texi (strstr): Likewise.
24201         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24202         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24203
24204 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24205
24206         parse-datetime: do some more renaming
24207         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24208         parse_datetime, not get_date.  Mention the renaming.
24209         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24210         in comments.
24211         * m4/bison.m4: Likewise.
24212
24213 2010-10-05  Eric Blake  <eblake@redhat.com>
24214
24215         parse-datetime: better name than get_date
24216         * NEWS: Reword the deprecation notice.
24217         * modules/get_date: Rename to modules/parse-datetime.
24218         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24219         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24220         * lib/get_date.y: Rename to lib/parse-datetime.y.
24221         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24222         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24223         * doc/getdate.texi: Provide fallback wrapper.
24224         * lib/getdate.h: Move guts, and wrap...
24225         * lib/parse-datetime.h: ...new file.
24226         * lib/parse-datetime.y (get_date): Rename...
24227         (parse_datetime): ...to this.
24228         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24229         (gl_PARSE_DATETIME): ...to this.
24230         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24231         documentation.
24232         * modules/getdate (Files): Provide fallback docs and header.
24233         (Notice, Depends-on): Update references.
24234         * tests/test-parse-datetime.c: Likewise.
24235         * DEPENDENCIES: Likewise.
24236         * MODULES.html.sh (Date and time <time.h>): Likewise.
24237         * doc/parse-datetime.texi (Date input formats)
24238         (Authors of parse_datetime): Likewise.
24239         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24240         (Include): Likewise.
24241         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24242         * gnulib-tool: Likewise.
24243         * m4/bison.m4 (gl_BISON): Likewise.
24244         Suggested by Bruno Haible.
24245
24246 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24247
24248         more ports to Solaris tr, which needs [] around ranges
24249         * gnulib-tool: Solaris tr needs [] around ranges.
24250         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24251         * tests/test-pipe-filter-gi1.c (main): Likewise.
24252         * tests/test-pipe-filter-ii1.c (main): Likewise.
24253
24254 2010-10-05  Eric Blake  <eblake@redhat.com>
24255
24256         bootstrap: fix Solaris regression
24257         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24258         around ranges.
24259         Reported by Pádraig Brady.
24260
24261         bootstrap: work with pkg-config
24262         * build-aux/bootstrap (check_versions): Also transliterate - in
24263         prerequisite name.
24264         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24265         prerequisites that were already found, to avoid confusion.
24266         Reported by Justin Clift.
24267
24268         faccessat: remove unused wrappers
24269         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24270         presence of these wrappers dragged in -lgen on Solaris.
24271         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24272
24273 2010-10-05  Jim Meyering  <meyering@redhat.com>
24274
24275         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24276         * Makefile (sc_pragma_columns): New syntax-check rule.
24277
24278 2010-10-04  Bruno Haible  <bruno@clisp.org>
24279
24280         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24281         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24282         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24283         Reported by Bruce Korb and Eric Blake.
24284
24285 2010-10-04  Bruno Haible  <bruno@clisp.org>
24286
24287         threadlib: Make option --with-libpth-prefix work.
24288         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24289         use $LIBPTH, not just -lpth.
24290
24291 2010-10-04  Bruno Haible  <bruno@clisp.org>
24292
24293         Avoid line length limitation from HP NonStop system header files.
24294         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24295         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24296         * lib/ctype.in.h: Likewise.
24297         * lib/dirent.in.h: Likewise.
24298         * lib/errno.in.h: Likewise.
24299         * lib/fcntl.in.h: Likewise.
24300         * lib/float.in.h: Likewise.
24301         * lib/getopt.in.h: Likewise.
24302         * lib/iconv.in.h: Likewise.
24303         * lib/inttypes.in.h: Likewise.
24304         * lib/langinfo.in.h: Likewise.
24305         * lib/locale.in.h: Likewise.
24306         * lib/math.in.h: Likewise.
24307         * lib/netdb.in.h: Likewise.
24308         * lib/netinet_in.in.h: Likewise.
24309         * lib/poll.in.h: Likewise.
24310         * lib/pthread.in.h: Likewise.
24311         * lib/pty.in.h: Likewise.
24312         * lib/sched.in.h: Likewise.
24313         * lib/se-selinux.in.h: Likewise.
24314         * lib/search.in.h: Likewise.
24315         * lib/signal.in.h: Likewise.
24316         * lib/spawn.in.h: Likewise.
24317         * lib/stdarg.in.h: Likewise.
24318         * lib/stddef.in.h: Likewise.
24319         * lib/stdint.in.h: Likewise.
24320         * lib/stdio.in.h: Likewise.
24321         * lib/stdlib.in.h: Likewise.
24322         * lib/string.in.h: Likewise.
24323         * lib/strings.in.h: Likewise.
24324         * lib/sys_file.in.h: Likewise.
24325         * lib/sys_ioctl.in.h: Likewise.
24326         * lib/sys_select.in.h: Likewise.
24327         * lib/sys_socket.in.h: Likewise.
24328         * lib/sys_stat.in.h: Likewise.
24329         * lib/sys_time.in.h: Likewise.
24330         * lib/sys_times.in.h: Likewise.
24331         * lib/sys_utsname.in.h: Likewise.
24332         * lib/sys_wait.in.h: Likewise.
24333         * lib/sysexits.in.h: Likewise.
24334         * lib/termios.in.h: Likewise.
24335         * lib/time.in.h: Likewise.
24336         * lib/unistd.in.h: Likewise.
24337         * lib/wchar.in.h: Likewise.
24338         * lib/wctype.in.h: Likewise.
24339         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24340         * modules/ctype (Makefile.am): Likewise.
24341         * modules/dirent (Makefile.am): Likewise.
24342         * modules/errno (Makefile.am): Likewise.
24343         * modules/fcntl-h (Makefile.am): Likewise.
24344         * modules/float (Makefile.am): Likewise.
24345         * modules/getopt-posix (Makefile.am): Likewise.
24346         * modules/iconv-h (Makefile.am): Likewise.
24347         * modules/inttypes (Makefile.am): Likewise.
24348         * modules/langinfo (Makefile.am): Likewise.
24349         * modules/locale (Makefile.am): Likewise.
24350         * modules/math (Makefile.am): Likewise.
24351         * modules/netdb (Makefile.am): Likewise.
24352         * modules/netinet_in (Makefile.am): Likewise.
24353         * modules/poll-h (Makefile.am): Likewise.
24354         * modules/pthread (Makefile.am): Likewise.
24355         * modules/pty (Makefile.am): Likewise.
24356         * modules/sched (Makefile.am): Likewise.
24357         * modules/search (Makefile.am): Likewise.
24358         * modules/selinux-h (Makefile.am): Likewise.
24359         * modules/signal (Makefile.am): Likewise.
24360         * modules/spawn (Makefile.am): Likewise.
24361         * modules/stdarg (Makefile.am): Likewise.
24362         * modules/stddef (Makefile.am): Likewise.
24363         * modules/stdint (Makefile.am): Likewise.
24364         * modules/stdio (Makefile.am): Likewise.
24365         * modules/stdlib (Makefile.am): Likewise.
24366         * modules/string (Makefile.am): Likewise.
24367         * modules/strings (Makefile.am): Likewise.
24368         * modules/sys_file (Makefile.am): Likewise.
24369         * modules/sys_ioctl (Makefile.am): Likewise.
24370         * modules/sys_select (Makefile.am): Likewise.
24371         * modules/sys_socket (Makefile.am): Likewise.
24372         * modules/sys_stat (Makefile.am): Likewise.
24373         * modules/sys_time (Makefile.am): Likewise.
24374         * modules/sys_times (Makefile.am): Likewise.
24375         * modules/sys_utsname (Makefile.am): Likewise.
24376         * modules/sys_wait (Makefile.am): Likewise.
24377         * modules/sysexits (Makefile.am): Likewise.
24378         * modules/termios (Makefile.am): Likewise.
24379         * modules/time (Makefile.am): Likewise.
24380         * modules/unistd (Makefile.am): Likewise.
24381         * modules/wchar (Makefile.am): Likewise.
24382         * modules/wctype (Makefile.am): Likewise.
24383
24384 2010-10-04  Bruno Haible  <bruno@clisp.org>
24385
24386         read-file tests: Avoid a test failure on NonStop Kernel.
24387         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24388         a regular file.
24389         Reported by Joachim Schmitz <schmitz@hp.com>.
24390
24391 2010-10-03  Bruno Haible  <bruno@clisp.org>
24392
24393         gnulib-tool: Fixes for --create-testdir with --libtool.
24394         * gnulib-tool (func_get_automake_snippet): Don't augment
24395         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24396         an executable.
24397         (func_create_testdir): Handle module 'alloca' like func_import.
24398         Reported by Bruce Korb <bruce.korb@gmail.com>.
24399
24400 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24401
24402         Avoid some lines longer than 80 characters.
24403         * lib/stdint.in.h: Break long comment lines.
24404         * lib/math.in.h: Likewise.
24405         (_GL_NUM_UINT_WORDS): New macro, for readability.
24406         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24407         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24408         * lib/stdlib.in.h: Likewise.
24409         * lib/spawn.in.h: Likewise.
24410         * lib/sys_socket.in.h: Update an URL.
24411         * lib/sys_stat.in.h: Break long line.
24412
24413 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24414
24415         Improve pmccabe2html.
24416         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24417         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24418         when the sources change. Remove the line in the HTML about "Used
24419         ranges" (which implied that there might be other unused ranges),
24420         rename "Resume" to "Summary" (easier to understand for more users).
24421         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24422         styles, and some unnecessary blank lines.
24423
24424 2010-10-03  Bruno Haible  <bruno@clisp.org>
24425             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24426
24427         acl: Add support for ACLs on NonStop Kernel.
24428         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24429         Check whether the function aclsort() exists.
24430         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24431         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24432         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24433         (acl_nontrivial [HAVE_ACLSORT]: New function.
24434         (file_has_acl): Implement for NonStop Kernel.
24435         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24436         (qset_acl): Implement for NonStop Kernel.
24437         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24438         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24439         (main): Implement for NonStop Kernel.
24440         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24441         Kernel. Handle this flavor.
24442         * tests/test-set-mode-acl.sh: Likewise.
24443         * tests/test-copy-acl.sh: Likewise.
24444         * tests/test-copy-file.sh: Likewise.
24445
24446 2010-10-03  Bruno Haible  <bruno@clisp.org>
24447
24448         Info about ACLs on NonStop Kernel.
24449         * doc/acl-resources.txt: Add info about NonStop Kernel.
24450         References by Joachim Schmitz <schmitz@hp.com>.
24451
24452 2010-10-02  Bruno Haible  <bruno@clisp.org>
24453
24454         Define missing EDQUOT on NonStop Kernel.
24455         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24456         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24457         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24458         missing.
24459         * doc/posix-headers/errno.texi: Mention the NSK bug.
24460         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24461         Reported by Joachim Schmitz <schmitz@hp.com>.
24462
24463 2010-10-02  Bruno Haible  <bruno@clisp.org>
24464
24465         Update doc for POSIX:2008.
24466         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24467         Update URL of POSIX specification.
24468
24469 2010-10-02  Bruno Haible  <bruno@clisp.org>
24470
24471         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24472         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24473         from gnulib, not from Automake.
24474
24475 2010-10-02  Bruno Haible  <bruno@clisp.org>
24476
24477         New module 'system-posix'.
24478         * modules/system-posix: New file.
24479         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24480         module is present.
24481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24482         GNULIB_SYSTEM_POSIX.
24483         * modules/stdlib (Depends-on): Remove sys_wait.
24484         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24485         * doc/posix-functions/system.texi: Mention the new module.
24486         * doc/posix-headers/stdlib.texi: Likewise.
24487         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24488         define test_sys_wait_macros to a no-op.
24489         Reported by Sam Steingold <sds@gnu.org>.
24490
24491 2010-09-30  Bruno Haible  <bruno@clisp.org>
24492
24493         More renaming from 'getdate' to 'get_date'.
24494         * doc/get_date.texi: Renamed from doc/getdate.texi.
24495         * modules/get_date (Files): Update.
24496         * MODULES.html.sh (Date and time <time.h>): Update.
24497         * DEPENDENCIES: Update.
24498         * gnulib-tool: Update comment.
24499         * m4/bison.m4 (gl_BISON): Likewise.
24500         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24501
24502 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24503
24504         bootstrap: support ACLOCAL_FLAGS during aclocal
24505         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24506         can add additional -I dir for third-party .m4 files.
24507
24508 2010-09-30  Eric Blake  <eblake@redhat.com>
24509
24510         bootstrap: use glibtoolize on MacOS
24511         * build-aux/bootstrap (check_versions): Convert libtool into
24512         libtoolize.
24513         (tool search): Move libtool check earlier, and look for
24514         glibtoolize for MacOS.
24515         (gnulib_tool_options): Auto-add --libtool when appropriate.
24516         Reported by Justin Clift.
24517
24518         poll: fix typo that broke test on MacOS
24519         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24520         Reported by Justin Clift.
24521
24522         getdate: rename to get_date
24523         Note: getdate.h is not renamed, to minimize client impact.
24524         * modules/getdate: Mark obsolete.  Move old contents...
24525         * modules/get_date: ...to new module name.
24526         * modules/getdate-tests: Move...
24527         * modules/get_date-tests: ...here.
24528         * m4/getdate.m4: Move...
24529         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24530         * lib/getdate.y: Move...
24531         * lib/get_date.y: ...here.
24532         * tests/test-getdate.c: Move...
24533         * tests/test-get_date.c: ...here.
24534         * doc/posix-functions/getdate.texi (getdate): Update name.
24535         * NEWS: Mention the change.
24536
24537 2010-09-29  Bruno Haible  <bruno@clisp.org>
24538
24539         Separate the module 'waitpid' from the module 'sys_wait'.
24540         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24541         present.
24542         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24543         gl_MODULE_INDICATOR_FOR_TESTS.
24544         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24545         * modules/sys_wait (Depends-on): Remove waitpid.
24546         (Makefile.am): Substitute GNULIB_WAITPID.
24547         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24548         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24549         signature only if the 'waitpid' module is present.
24550         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24551         * NEWS: Mention the change.
24552         * modules/grantpt (Depends-on): Add waitpid.
24553         * modules/wait-process (Depends-on): Likewise.
24554
24555 2010-09-29  Bruno Haible  <bruno@clisp.org>
24556
24557         More tests for module 'sys_wait'.
24558         * modules/sys_wait-c++-tests: New file.
24559         * tests/test-sys_wait-c++.cc: New file.
24560         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24561         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24562
24563 2010-09-29  Bruno Haible  <bruno@clisp.org>
24564
24565         New module 'waitpid'.
24566         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24567         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24568         Don't include <process.h>.
24569         (waitpid): Declare only, using modern idiom.
24570         * m4/waitpid.m4: New file.
24571         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24572         * modules/waitpid: New file.
24573         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24574         (Makefile.am): Update.
24575         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24576
24577 2010-09-28  Bruno Haible  <bruno@clisp.org>
24578
24579         poll: Assume ANSI C.
24580         * lib/poll.c (poll): Use an ANSI C declaration.
24581
24582 2010-09-28  Bruno Haible  <bruno@clisp.org>
24583
24584         poll-h: Create poll.h on all platforms.
24585         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24586         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24587         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24588         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24589         (gl_REPLACE_POLL_H): Don't set POLL_H.
24590         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24591         * modules/poll-h (Depends-on): Add include_next.
24592         (Makefile.am): Create poll.h unconditionally. Substitute also
24593         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24594
24595 2010-09-28  Bruno Haible  <bruno@clisp.org>
24596
24597         Tests for module 'poll-h'.
24598         * modules/poll-h-c++-tests: New file.
24599         * tests/test-poll-h-c++.cc: New file.
24600
24601         Tests for module 'poll-h'.
24602         * modules/poll-h-tests: New file.
24603         * tests/test-poll-h.c: New file.
24604
24605 2010-09-28  Bruno Haible  <bruno@clisp.org>
24606
24607         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24608         * modules/poll-h (Depends-on): Add 'extensions'.
24609
24610 2010-09-28  Bruno Haible  <bruno@clisp.org>
24611
24612         New module 'poll-h'.
24613         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24614         (poll): Use modern idiom.
24615         * modules/poll-h: New file.
24616         * modules/poll (Files): Remove lib/poll.in.h.
24617         (Depends-on): Add poll-h.
24618         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24619         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24620         * m4/poll_h.m4: New file.
24621         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24622         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24623         and invoke gl_REPLACE_POLL_H.
24624         * lib/poll.c: Use common idiom.
24625         * tests/test-poll.c: Likewise.
24626         * doc/posix-headers/poll.texi: Mention the poll-h module.
24627         Suggested by Eric Blake.
24628
24629 2010-09-26  Bruno Haible  <bruno@clisp.org>
24630
24631         sys_wait: Implement WSTOPSIG.
24632         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24633         Reported by Simon Josefsson.
24634
24635 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24636
24637         stdlib, sys_wait: Avoid compilation error on mingw.
24638         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24639
24640 2010-09-26  Bruno Haible  <bruno@clisp.org>
24641
24642         stdlib tests: Avoid code duplication.
24643         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24644         * modules/sys_wait-tests (Files): Likewise.
24645         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24646         * tests/test-stdlib.c: Include test-sys_wait.h.
24647         (main): Invoke test_sys_wait_macros.
24648         * tests/test-sys_wait.c: Include test-sys_wait.h.
24649         (main): Invoke test_sys_wait_macros.
24650
24651 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24652
24653         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24654         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24655         sure Windows sockets are working before calling getaddrinfo.
24656         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24657         * doc/gnulib.texi (Windows sockets): Fix typo.
24658
24659 2010-09-25  Bruno Haible  <bruno@clisp.org>
24660
24661         Tests for module 'regex-quote'.
24662         * modules/regex-quote-tests: New file.
24663         * tests/test-regex-quote.c: New file.
24664
24665         New module 'regex-quote'.
24666         * lib/regex-quote.h: New file.
24667         * lib/regex-quote.c: New file.
24668         * modules/regex-quote: New file.
24669         Suggested by Reuben Thomas <rrt@sc3d.org>.
24670
24671 2010-09-24  Bruno Haible  <bruno@clisp.org>
24672
24673         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24674         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24675
24676 2010-09-23  Bruno Haible  <bruno@clisp.org>
24677
24678         setenv: Relax license.
24679         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24680         Blake.
24681         Requested by Eric Blake.
24682
24683 2010-09-22  Bruno Haible  <bruno@clisp.org>
24684
24685         termios: Relax license.
24686         * modules/termios (License): Change to LGPLv2+.
24687         Requested by Eric Blake.
24688
24689 2010-09-22  Bruno Haible  <bruno@clisp.org>
24690
24691         threadlib: Allow the package to change the default to 'no'.
24692         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24693         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24694         Reported by Paul Eggert.
24695
24696 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24697             Bruno Haible  <bruno@clisp.org>
24698
24699         Fix endless loop in mbmemcasecoll.
24700         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24701         byte.
24702         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24703
24704 2010-09-22  Bruno Haible  <bruno@clisp.org>
24705
24706         Tests for module 'memcoll'.
24707         * modules/memcoll-tests: New file.
24708         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24709
24710         memcoll, xmemcoll: Clarify size vs. length.
24711         * modules/memcoll.c (memcoll0): Clarify specification.
24712         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24713         passed to collate_error.
24714
24715 2010-09-22  Bruno Haible  <bruno@clisp.org>
24716
24717         Tests for module 'memcasecmp'.
24718         * modules/memcasecmp-tests: New file.
24719         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24720
24721 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24722
24723         * lib/pthread.in.h: Add split double-inclusion guard, and include
24724         system <pthread.h> if there is one.  Use @@-style as in other
24725         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24726         pthread.h doesn't.
24727         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24728         (pthread_mutexattr_settype, pthread_mutex_trylock):
24729         New static inline functions, if there's no system <pthread.h>.
24730         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24731         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24732         Approximate with mutexes if the system lacks spinlocks, as in
24733         MacOS.
24734         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24735         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24736         @@-style.  Check for spinlocks separately.
24737         (gl_PTHREAD_DEFAULTS): New macro.
24738         * modules/pthread: Redo to use a more typical style for in.h files.
24739
24740 2010-09-21  Eric Blake  <eblake@redhat.com>
24741
24742         net_if: enhance tests
24743         * tests/test-net_if.c (main): Move signature checks earlier.
24744         Print failures to stderr.
24745         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24746         Document the bug that we do not yet fix.
24747
24748 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24749
24750         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24751         about gnulib, not GSS.
24752
24753 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24754
24755         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24756         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24757         for Emacs.
24758         * build-aux/pmccabe2html: Make Makefile.am example code more
24759         cut-and-paste friendly.
24760
24761 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24762
24763         * tests/test-net_if.c: New file.
24764         * modules/net_if-tests: New file.
24765
24766 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24767
24768         pthread: add pthread_spin_destroy
24769         * lib/pthread.in.h (pthread_spin_destroy): New function.
24770
24771 2010-09-19  Bruno Haible  <bruno@clisp.org>
24772
24773         gnulib-tool: Fix --help output.
24774         * gnulib-tool (func_usage): Fix help message.
24775         Reported by Reuben Thomas <rrt@sc3d.org>.
24776
24777 2010-09-18  Jim Meyering  <meyering@redhat.com>
24778
24779         maint.mk: avoid unexpanded \n in two diagnostics
24780         * top/maint.mk (sc_prohibit_always_true_header_tests):
24781         Don't use a literal \n in a halt=... assignment.  It would not be
24782         expanded, and the two \n bytes would appear in the diagnostic output
24783         rather than the desired newline.  Use halt=$$(printf ... instead.
24784         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24785
24786 2010-09-18  Bruno Haible  <bruno@clisp.org>
24787
24788         netinet_in: Doc tweak.
24789         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24790         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24791
24792 2010-09-18  Jim Meyering  <meyering@redhat.com>
24793
24794         init.sh: correct an outdated comment
24795         * tests/init.sh (create_exe_shims_):  s/function/alias/
24796
24797         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24798         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24799         a file named "*.exe" is removed between the glob expansion and the
24800         processing of that oddly named file.
24801
24802 2010-09-17  Eric Blake  <eblake@redhat.com>
24803
24804         mirbsd: add some more support
24805         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24806         in BSD family.
24807         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24808         devices as OpenBSD.
24809         * m4/host-os.m4 (mirbsd): Add MirBSD.
24810
24811         tests: fix unportable assumption on sys/wait.h
24812         * tests/test-sys_wait.c (main): Relax test.
24813         * tests/test-stdlib.c (main): Likewise.
24814
24815         init.sh: accomodate directory with no .exes
24816         * tests/init.sh: Accomodate directory containing only scripts.
24817
24818         tests: avoid compiler warning
24819         * tests/test-stdlib.c (main): Use the variable.
24820
24821         fdutimens, fdutimensat: update signature, again
24822         * lib/utimens.h (gl_futimens): Delete, and move signature...
24823         (fdutimens): ...here.
24824         (fdutimensat): Rearrange signature.
24825         (lutimensat): Rename variable for clarity.
24826         * lib/fdutimensat.c (fdutimensat): Update signature.
24827         * lib/utimens.c (fdutimens): Likewise.
24828         (gl_futimens): Delete.
24829         (utimens, lutimens): Update callers.
24830         * lib/futimens.c (futimens): Likewise.
24831         * tests/test-fdutimensat.c: Likewise.
24832         * tests/test-utimens.c: Likewise.
24833         * tests/test-futimens.h: Update comment.
24834         * NEWS: Mention this.
24835         Suggested by Paul Eggert.
24836
24837 2010-09-17  Bruno Haible  <bruno@clisp.org>
24838
24839         Take over the maintenance of some older macros from Autoconf.
24840         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
24841         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
24842         GNU Autoconf.
24843         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
24844         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
24845
24846 2010-09-17  Eric Blake  <eblake@redhat.com>
24847
24848         fdutimensat: drop atflag validation
24849         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
24850         with valid fd, to close a race scenario where futimens is
24851         unsupported and FILE was replaced by a symlink.
24852         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
24853         accordingly.
24854         Suggested by Paul Eggert.
24855
24856 2010-09-16  Bruno Haible  <bruno@clisp.org>
24857
24858         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
24859         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
24860
24861 2010-09-16  Bruno Haible  <bruno@clisp.org>
24862
24863         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
24864         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
24865         login_tty exists.
24866         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24867
24868 2010-09-16  Bruno Haible  <bruno@clisp.org>
24869
24870         login_tty: Make the replacement code work on BSD systems.
24871         * lib/login_tty.c: Include <sys/ioctl.h>.
24872         (login_tty): Use ioctl TIOCSCTTY when available.
24873         * modules/login_tty (Depends-on): Add sys_ioctl.
24874         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24875
24876 2010-09-16  Bruno Haible  <bruno@clisp.org>
24877
24878         login_tty: Stricter unit test.
24879         * modules/login_tty-tests (Depends-on): Add tcgetsid.
24880         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
24881         and tcgetsid() after login_tty.
24882         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24883
24884 2010-09-16  Bruno Haible  <bruno@clisp.org>
24885
24886         New module 'tcgetsid'.
24887         * lib/tcgetsid.c: New file.
24888         * m4/tcgetsid.m4: New file.
24889         * modules/tcgetsid: New file.
24890         * modules/termios (Depends-on): Add c++defs, warn-on-use.
24891         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
24892         GNULIB_TCGETSID, HAVE_TCGETSID.
24893         * lib/termios.in.h: Include <sys/types.h>.
24894         (tcgetsid): New declaration.
24895         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
24896         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
24897         * doc/posix-functions/tcgetsid.texi: Mention the new module.
24898         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
24899
24900 2010-09-16  Bruno Haible  <bruno@clisp.org>
24901
24902         Tests for module 'termios'.
24903         * modules/termios-c++-tests: New file.
24904         * modules/termios-tests: New file.
24905         * tests/test-termios-c++.cc: New file.
24906         * tests/test-termios.c: New file.
24907
24908         New module 'termios'.
24909         * modules/termios: New file.
24910         * lib/termios.in.h: New file.
24911         * m4/termios_h.m4: New file.
24912         * doc/posix-headers/termios.texi: Mention the new module.
24913
24914 2010-09-16  Eric Blake  <eblake@redhat.com>
24915
24916         fdutimensat: add an atflag parameter
24917         * lib/fdutimensat.c (fdutimensat): Add new parameter.
24918         * lib/utimens.h (fdutimensat): Update prototype.
24919         * tests/test-fdutimensat.c: Adjust test to match.
24920         * NEWS: Document the change.
24921         Suggested by Paul Eggert.
24922
24923 2010-09-16  Bruno Haible  <bruno@clisp.org>
24924
24925         Fix typos in comments.
24926         * lib/striconveh.h: Fix typo in comment.
24927         * lib/login_tty.c (login_tty): Likewise.
24928
24929 2010-09-15  Bruno Haible  <bruno@clisp.org>
24930
24931         stdlib: clarify MirBSD WEXITSTATUS bug
24932         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
24933         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24934
24935 2010-09-15  Eric Blake  <eblake@redhat.com>
24936
24937         stdlib: work around MirBSD WEXITSTATUS bug
24938         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
24939         * modules/stdlib (Depends-on): Add sys_wait.
24940         * tests/test-sys_wait.c (main): Enhance test.
24941         * tests/test-stdlib.c (main): Likewise.
24942         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
24943
24944         docs: mention MacOS issue with WEXITSTATUS(constant)
24945         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
24946         issue.
24947         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24948
24949         strnlen: add tests
24950         * modules/strnlen-tests: New file.
24951         * tests/test-strnlen.c: Likewise.
24952
24953 2010-09-14  Bruno Haible  <bruno@clisp.org>
24954
24955         unistr/base: Avoid link errors when module 'libunistring' is also used.
24956         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
24957         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
24958         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
24959         Declare also when HAVE_LIBUNISTRING is set.
24960         Reported by Pádraig Brady <P@draigbrady.com>.
24961
24962 2010-09-14  Eric Blake  <eblake@redhat.com>
24963
24964         test-rawmemchr: make more robust
24965         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
24966         (Depends-on, configure.ac): Add needed prerequisites to use it.
24967         * modules/memchr-tests (Files, Depends-on, configure.ac):
24968         Likewise, to avoid implicit reliance on memchr module prereqs.
24969         * tests/test-memchr.c (main): Ensure proper masking.
24970         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
24971         reads.
24972
24973         memchr: detect glibc Alpha bug
24974         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
24975         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
24976         Alpha.
24977         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
24978         * tests/test-memchr.c (main): Enhance test.
24979         Reported by Nelson H. F. Beebe.
24980
24981 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24982
24983         fts, getcwd, glob: audit for dirfd returning -1
24984         * lib/fts.c (opendir): Remove #define; no longer used.
24985         (opendirat): New arg PDIR_FD.  All callers changed.
24986         (fts_build, _opendir2): Use new opendirat to avoid the need for
24987         dirfd, or for checking whether dirfd returns a negative value.
24988         Don't use opendir; always use openat followed by fdopendir.
24989         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
24990         it.
24991         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
24992         returns -1 here.
24993         * modules/fts (Depends-on): Remove dirfd.
24994         * modules/getcwd (Depends-on): Likewise.
24995
24996 2010-09-13  Eric Blake  <eblake@redhat.com>
24997
24998         float: fix broken MirBSD header
24999         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25000         * doc/posix-headers/float.texi (float.h): Document it.
25001
25002 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25003
25004         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25005         * lib/fts.c (opendirat): New arg extra_flags.
25006         (__opendir2): Use it to avoid following symlinks when opening
25007         a directory, if symlinks are not supposed to be followed.  See
25008         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25009
25010         fdopendir: preserve argument fd before returning
25011         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25012         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25013         (fdopendir): Use them, arranging for FD to be open to the same
25014         directory that it was when it started.  (It might be temporarily
25015         closed while fdopendir is running, so this not thread- or
25016         signal-safe.)  Be careful to do the right thing even when file
25017         descriptors are scarce and dup fails with errno == EMFILE.  See
25018         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25019
25020 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25021
25022         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25023         * NEWS: Document change.
25024         * m4/regex.m4: Disable test for regoff_t size.
25025
25026 2010-09-13  Jim Meyering  <meyering@redhat.com>
25027
25028         fts: don't operate on an invalid file descriptor after failed dup
25029         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25030         negative file descriptor.
25031
25032 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25033
25034         savedir: add streamsavedir, deprecate fdsavedir
25035         * NEWS: Mention deprecation of fdsavedir.
25036         * lib/savedir.c (streamsavedir): New extern function, whose name
25037         ends in "savedir" to be consistent with the others.  This differs
25038         from savedirstream in that it doesn't close its argument.  The
25039         next version of GNU tar will use this instead of fdsavedir, to
25040         avoid some race conditions and conserve file descriptors.
25041         (savedirstream): Reimplement as a wrapper around streamsavedir.
25042         (fdsavedir): Add a comment deprecating this function.  As far as
25043         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25044         * lib/savedir.h (streamsavedir): New decl.
25045         (fdsavedir): Add a comment deprecating this.
25046
25047 2010-09-10  Bruno Haible  <bruno@clisp.org>
25048
25049         langinfo: Fix last commit.
25050         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25051         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25052         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25053
25054 2010-09-10  Bruno Haible  <bruno@clisp.org>
25055
25056         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25057         * lib/progreloc.c (O_EXEC): Define fallback.
25058
25059 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25060
25061         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25062         * NEWS: Document recent changes to fcntl-h.
25063         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25064         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25065         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25066         Similarly for O_SEARCH; this last was already true, but not documented.
25067         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25068         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25069         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25070         Likewise.
25071         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25072         is zero, not whether it is defined.
25073         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25074         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25075         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25076
25077 2010-09-10  Bruno Haible  <bruno@clisp.org>
25078
25079         langinfo, nl_langinfo: Fix for IRIX 5.3.
25080         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25081         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25082         HAVE_LANGINFO_YESEXPR.
25083         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25084         HAVE_LANGINFO_YESEXPR.
25085         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25086         HAVE_LANGINFO_T_FMT_AMPM is 0.
25087         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25088         HAVE_LANGINFO_YESEXPR is 0.
25089         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25090         NOEXPR.
25091         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25092         * doc/posix-functions/nl_langinfo.texi: Likewise.
25093         Reported by Eric Blake.
25094
25095 2010-09-10  Bruno Haible  <bruno@clisp.org>
25096
25097         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25098         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25099         on FreeBSD 8.0 and OpenBSD 4.6.
25100         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25101         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25102         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25103         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25104         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25105         ac_includes_default.
25106         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25107
25108 2010-09-09  Eric Blake  <eblake@redhat.com>
25109
25110         strsignal: work around NetBSD bug
25111         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25112         * lib/string.in.h (includes): Likewise.
25113         * doc/posix-functions/strsignal.texi (strsignal): Document the
25114         bug.
25115         Reported by Nelson H. F. Beebe.
25116
25117         gnulib-tool: work with NetBSD /bin/sh
25118         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25119         (func_get_description, func_get_comment, func_get_status)
25120         (func_get_notice, func_get_applicability, func_get_filelist)
25121         (func_get_dependencies, func_get_autoconf_early_snippet)
25122         (func_get_autoconf_snippet, func_get_automake_snippet)
25123         (func_get_include_directive, func_get_link_directive)
25124         (func_get_license, func_get_maintainer, func_import): Avoid
25125         shell syntax errors from parsing syntax extensions.
25126
25127 2010-09-09  Bruno Haible  <bruno@clisp.org>
25128
25129         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25130         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25131         a reliable way to determine whether the 'alias' command works.
25132
25133 2010-09-08  Jim Meyering  <meyering@redhat.com>
25134
25135         init.sh: penalize a set-x-impaired shell; don't disqualify it
25136         * tests/init.sh: Too many shells corrupt application stderr when
25137         you set -x, so we can't afford to disqualify them, since at least
25138         on Irix-6.5, that would disqualify all bourne shells.
25139         Instead, use a two-pass approach.
25140         On the first pass, try to find a shell that meets the stricter
25141         condition that set -x does not corrupt stderr.
25142         If no shell meets the stricter condition, retest each candidate
25143         shell, but without that extra condition.  Finally, when
25144         VERBOSE=yes is requested and set -x might cause trouble, simply
25145         issue a warning and refrain from enabling debug output.
25146
25147 2010-09-08  Eric Blake  <eblake@redhat.com>
25148
25149         unsetenv: fix OpenBSD bug
25150         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25151         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25152         documentation.
25153         Reported by Jim Meyering.
25154
25155         strtod: work around IRIX 6.5 bug
25156         * lib/strtod.c (strtod): Reparse number on shorter string if
25157         exponent parse was invalid.
25158         * tests/test-strtod.c (main): Add check for "0x1p 2".
25159         Reported by Tom G. Christensen.
25160
25161         getopt: optimize previous patch
25162         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25163         empty variable.  Speed up awk script.
25164         Reported by Paolo Bonzini.
25165
25166 2010-09-08  Jim Meyering  <meyering@redhat.com>
25167
25168         test.sh: disqualify shells for which set -x corrupts stderr
25169         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25170         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25171         appear in stderr output.  For example, this command:
25172             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25173         prints "P=1" on those two systems:
25174
25175 2010-09-08  Bruno Haible  <bruno@clisp.org>
25176
25177         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25178         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25179         commands, because some shells ignore redirections when there is an
25180         error in the command lookup.
25181         Reported by Eric Blake.
25182
25183 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25184
25185         * lib/regex.h: Fix a mention of `regex_compile' (should be
25186         `re_compile_pattern').
25187         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25188         (re_set_registers): Correct name of parameter in comment.
25189
25190         * doc/regex.texi: Add documentation for missing syntax flags.
25191         Remove commented-out documentation of defunct syntax option
25192         RE_NO_EMPTY_ALTS.
25193         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25194         Add documentation of re_set_registers.
25195         Document trick to re-use a pattern buffer by setting fastmap manually.
25196         Update documentation of struct re_pattern_buffer per public members.
25197         Uncomment documentation of equivalence class operators and
25198         collating symbol operators, since they are now implemented,
25199         Explain leftmost-longest matching in relation to alternatives.
25200         Tidy documentation of substring matching.
25201         Remove POSIX documentation, which is done better in
25202         glibc, and refer the reader there. Keep BSD API documentation, as
25203         that is not readily available elsewhere.
25204
25205 2010-09-07  Eric Blake  <eblake@redhat.com>
25206
25207         getopt: handle POSIXLY_CORRECT set but not exported
25208         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25209         export state of POSIXLY_CORRECT, due to bash set -o posix.
25210         Reported by Dustin J. Mitchell.
25211
25212 2010-09-05  Bruno Haible  <bruno@clisp.org>
25213
25214         gnulib-tool: Highlight the changed options.
25215         * gnulib-tool (func_usage): Display the --import, --add-import,
25216         --remove-import explanations in bold font.
25217
25218 2010-09-06  Karl Berry  <karl@gnu.org>
25219
25220         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25221
25222 2010-09-05  Bruno Haible  <bruno@clisp.org>
25223
25224         uniwidth/width: Update comment.
25225         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25226         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25227
25228 2010-09-05  Bruno Haible  <bruno@clisp.org>
25229
25230         isinf, isnan: Relax license.
25231         * modules/isinf (License): Change from GPL to LGPL, with consent from
25232         Ben Pfaff.
25233         * modules/isnan (License): Likewise.
25234         Requested by Ludovic Courtès.
25235
25236 2010-09-04  Bruno Haible  <bruno@clisp.org>
25237
25238         gnulib-tool: Help migration from --import to --add-import or --update.
25239         * gnulib-tool: Emit a verbose error message when --import is used
25240         without any module name.
25241
25242 2010-09-04  Bruno Haible  <bruno@clisp.org>
25243
25244         Update doc about gnulib-tool.
25245         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25246         'gnulib-tool --update' in more detail.
25247         Reported by Eric Blake.
25248
25249 2010-09-04  Bruno Haible  <bruno@clisp.org>
25250
25251         gnulib-tool: Change --import. New options --add/remove-import.
25252         * gnulib-tool: New options --add-import, --remove-import.
25253         (func_usage): Document them.
25254         (have_associative): Define always.
25255         (func_import): In import mode, don't merge the specified settings with
25256         the cached settings. Implement remove-import mode.
25257         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25258         Explain when to use them versus --import.
25259         (Simple update): Use --add-import instead of --import.
25260         * NEWS: Mention the change.
25261
25262 2010-09-04  Bruno Haible  <bruno@clisp.org>
25263
25264         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25265         separate gnulib.mk.
25266
25267 2010-09-04  Bruno Haible  <bruno@clisp.org>
25268
25269         gnulib-tool: Don't talk about CVS any more.
25270         * gnulib-tool (func_usage, func_import): Write "version control"
25271         instead of CVS.
25272
25273 2010-09-04  Jim Meyering  <meyering@redhat.com>
25274
25275         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25276         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25277         false positives (whose names may be ill-chosen) when searching
25278         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25279         would cause a false-positive.
25280
25281         avoid coreutils "make distcheck" failure
25282         Coreutils tests with an absolute build directory name that contains
25283         a space.  Not quoting this directory name caused a failure.
25284         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25285         * tests/test-vc-list-files-cvs.sh: Likewise.
25286
25287 2010-09-04  Bruno Haible  <bruno@clisp.org>
25288
25289         gnulib-tool: Avoid error when run in a package without Makefile.am.
25290         * gnulib-tool: When collecting the m4dirs in a package that does not
25291         have a Makefile.am, eliminate those directories that contain no
25292         gnulib-cache.m4. Fix expression that counts these directories.
25293
25294 2010-09-04  Bruno Haible  <bruno@clisp.org>
25295
25296         update-copyright test: Improve output when perl is missing or too old.
25297         * tests/test-update-copyright.sh: Move test of Perl version down after
25298         the test whether Perl exists. Provide an explanation relating Perl's
25299         error message to Automake's SKIP: message.
25300
25301 2010-09-04  Bruno Haible  <bruno@clisp.org>
25302
25303         Don't augment PATH in TESTS_ENVIRONMENT.
25304         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25305         set abs_aux_dir instead of augmenting PATH.
25306         * modules/vc-list-files-tests (Makefile.am): Likewise.
25307         * tests/test-update-copyright.sh: Augment PATH here.
25308         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25309         path_prepend_.
25310         * tests/test-vc-list-files-git.sh: Likewise.
25311
25312 2010-09-04  Jim Meyering  <meyering@redhat.com>
25313
25314         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25315         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25316
25317 2010-09-04  Bruno Haible  <bruno@clisp.org>
25318
25319         strdup: Fix compilation error in C++ mode.
25320         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25321         the macro.
25322
25323 2010-09-04  Bruno Haible  <bruno@clisp.org>
25324
25325         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25326         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25327         macro into a function.
25328         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25329
25330 2010-09-04  Bruno Haible  <bruno@clisp.org>
25331
25332         Set PATH_SEPARATOR the same way autoconf does.
25333         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25334         the value of PATH_SEPARATOR the same way autoconf-generated configure
25335         scripts do.
25336         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25337         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25338
25339 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25340
25341         Set PATH_SEPARATOR the same way autoconf does.
25342         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25343         the same way autoconf-generated configure scripts do.
25344         * posix-modules: Likewise.
25345
25346 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25347
25348         hash: fix safe_hasher const typo
25349         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25350         const; otherwise, there is a type error later.
25351
25352 2010-09-02  Jim Meyering  <meyering@redhat.com>
25353
25354         test-update-copyright.sh: require perl 5.8.0
25355         * tests/test-update-copyright.sh: Require 5.8.0,
25356         which Tom G. Christensen has confirmed is adequate,
25357         while 5.6.1 is not.
25358
25359 2010-09-02  Eric Blake  <eblake@redhat.com>
25360
25361         tests: init.sh improvements for re-exec'ing with zsh
25362         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25363         -vx through shell re-exec.
25364         Reported by Tom G. Christensen.
25365
25366         wctype: fix typo in previous commit
25367         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25368         Reported by Ludovic Courtès.
25369
25370 2010-09-02  Jim Meyering  <meyering@redhat.com>
25371
25372         test-update-copyright.sh: skip test if Perl is too old
25373         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25374         Reported by Tom G. Christensen.
25375
25376 2010-09-02  Bruno Haible  <bruno@clisp.org>
25377
25378         wctype: Avoid compilation error on IRIX 6.5.30.
25379         * lib/wctype.in.h (iswblank): Declare with a replacement if
25380         REPLACE_ISWBLANK is set.
25381         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25382         declared. Set REPLACE_ISWBLANK.
25383         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25384         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25385         * doc/posix-headers/wctype.texi: Likewise.
25386         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25387
25388 2010-09-01  Bruno Haible  <bruno@clisp.org>
25389
25390         New module 'socketlib'.
25391         * modules/socketlib: New file.
25392         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25393         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25394         * modules/sockets (Depends-on): Add socketlib.
25395         Suggested by Sam Steingold <sds@gnu.org>.
25396
25397 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25398
25399         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25400
25401         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25402         when one needs search access to a directory but not read access.
25403         On systems where it is available, it works in some cases where
25404         O_RDONLY does not, namely on directories that are searchable but
25405         not readable, and which need only to be searchable.  If O_SEARCH
25406         is not available, fall back to the traditional method of using
25407         O_RDONLY.
25408
25409         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25410         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25411         when opening a directory that needs only to be searchable.
25412         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25413         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25414         * lib/openat-proc.c (openat_proc_name): Likewise.
25415         * lib/openat.c (openat_needs_fchdir): Likewise.
25416         * lib/save-cwd.c (save_cwd): Likewise.
25417         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25418
25419 2010-08-28  Bruno Haible  <bruno@clisp.org>
25420
25421         New module 'host-cpu-c-abi'.
25422         * modules/host-cpu-c-abi: New file.
25423         * m4/host-cpu-c-abi.m4: New file, based on part of
25424         clisp/src/m4/general.m4.
25425         Requested by Sam Steingold <sds@gnu.org>.
25426
25427 2010-08-31  Eric Blake  <eblake@redhat.com>
25428         and Jim Meyering  <meyering@redhat.com>
25429
25430         hash: factor, and guard against misbehaving hasher function
25431         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25432         of table->hasher's return value.  Also protect against a hash value
25433         so large that adding it to table->bucket results in a NULL pointer.
25434         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25435         Use it in place of open-coded check-and-abort.
25436
25437 2010-08-30  Bruno Haible  <bruno@clisp.org>
25438
25439         hash: silence spurious clang warning
25440         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25441         Reported by Eric Blake.
25442
25443 2010-08-30  Eric Blake  <eblake@redhat.com>
25444
25445         strstr, memmem, strcasestr: avoid leaked shell message
25446         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25447         FreeBSD.
25448         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25449         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25450
25451         tests: silence clang warning
25452         * tests/test-malloca.c (do_allocation): Avoid dead store.
25453
25454 2010-08-29  Bruno Haible  <bruno@clisp.org>
25455
25456         gettext: Fix recent mistake.
25457         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25458
25459 2010-08-29  Bruno Haible  <bruno@clisp.org>
25460
25461         selinux-h: Offer a --without-selinux option.
25462         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25463         --without-selinux was specified, skip all tests and define
25464         HAVE_SELINUX_SELINUX_H to 0.
25465         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25466         set LIB_SELINUX to empty.
25467         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25468         gl_LIBSELINUX. If --without-selinux was specified, replace
25469         selinux/context.h.
25470         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25471
25472 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25473             Bruno Haible  <bruno@clisp.org>
25474
25475         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25476         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25477         of HAVE_REALLOC.
25478         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25479         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25480         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25481         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25482
25483 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25484             Bruno Haible  <bruno@clisp.org>
25485
25486         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25487         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25488         HAVE_CALLOC.
25489         * lib/xmalloc.c: Update accordingly.
25490         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25491         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25492         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25493
25494 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25495             Bruno Haible  <bruno@clisp.org>
25496
25497         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25498         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25499         HAVE_MALLOC.
25500         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25501         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25502         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25503
25504 2010-08-29  Bruno Haible  <bruno@clisp.org>
25505
25506         Update modules list.
25507         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25508         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25509         (String handling <string.h>): Add astrxfrm.
25510         (File system functions): Add readlinkat.
25511
25512 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25513
25514         Tests for module 'realloc-gnu'.
25515         * modules/realloc-gnu-tests: New file.
25516         * tests/test-realloc-gnu.c: New file.
25517
25518         Tests for module 'calloc-gnu'.
25519         * modules/calloc-gnu-tests: New file.
25520         * tests/test-calloc-gnu.c: New file.
25521
25522         Tests for module 'malloc-gnu'.
25523         * modules/malloc-gnu-tests: New file.
25524         * tests/test-malloc-gnu.c: New file.
25525
25526 2010-08-28  Bruno Haible  <bruno@clisp.org>
25527
25528         Rename module 'realloc' -> 'realloc-gnu'.
25529         * modules/realloc-gnu: New file, copied from modules/realloc.
25530         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25531         obsolete.
25532         * modules/mgetgroups (Depends-on): Update.
25533         * doc/posix-functions/realloc.texi: Update.
25534         * NEWS: Mention the change.
25535
25536         Rename module 'calloc' -> 'calloc-gnu'.
25537         * modules/calloc-gnu: New file, copied from modules/calloc.
25538         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25539         obsolete.
25540         * doc/posix-functions/calloc.texi: Update.
25541         * NEWS: Mention the change.
25542
25543         Rename module 'malloc' -> 'malloc-gnu'.
25544         * modules/malloc-gnu: New file, copied from modules/malloc.
25545         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25546         obsolete.
25547         * modules/argp (Depends-on): Update.
25548         * modules/regex (Depends-on): Update.
25549         * doc/posix-functions/malloc.texi: Update.
25550         * NEWS: Mention the change.
25551
25552 2010-08-28  Eric Blake  <eblake@redhat.com>
25553
25554         pread, pwrite: add missing dependency
25555         * modules/pread (Depends-on): Add extensions.
25556         * modules/pwrite (Depends-on): Likewise.
25557
25558 2010-08-28  Bruno Haible  <bruno@clisp.org>
25559
25560         unistr/u*-strchr: Fix tests dependencies.
25561         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25562         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25563         Reported by Ian Beckwith <ianb@erislabs.net>.
25564
25565 2010-08-28  Bruno Haible  <bruno@clisp.org>
25566
25567         read-file: Don't occupy too much unused memory.
25568         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25569
25570 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25571             Eric Blake  <eblake@redhat.com>
25572             Bruno Haible  <bruno@clisp.org>
25573
25574         read-file: Avoid memory reallocations with regular files.
25575         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25576         (fread_file): With regular files, use the remaining length as the
25577         initial buffer size.  Check against overflow.
25578         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25579         sys_stat.
25580
25581 2010-08-28  Bruno Haible  <bruno@clisp.org>
25582
25583         ftello: Relax license.
25584         * modules/ftello (License): Relax to LGPLv2+.
25585         Reported by Eric Blake.
25586
25587 2010-08-28  Bruno Haible  <bruno@clisp.org>
25588
25589         Avoid relocwrapper link errors due to gnulib replacement functions.
25590         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25591         function.
25592         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25593
25594 2010-08-28  Bruno Haible  <bruno@clisp.org>
25595
25596         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25597         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25598         defined.
25599         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25600         Suggested by Eric Blake.
25601
25602 2010-08-28  Bruno Haible  <bruno@clisp.org>
25603
25604         sys_socket, netdb: Ensure socklen_t gets defined.
25605         * modules/sys_socket (Depends-on): Add socklen.
25606         * modules/netdb (Depends-on): Likewise.
25607         * modules/getaddrinfo (Depends-on): Remove socklen.
25608         * modules/getsockopt (Depends-on): Likewise.
25609         * modules/setsockopt (Depends-on): Likewise.
25610         * tests/test-sys_socket.c: Check that socklen_t is defined.
25611         * tests/test-netdb.c: Likewise.
25612         * m4/socklen.m4: Update comments.
25613         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25614
25615 2010-08-27  Eric Blake  <eblake@redhat.com>
25616
25617         login_tty: add missing dependency
25618         * modules/login_tty (Depends-on): Add pty.
25619
25620 2010-08-26  Eric Blake  <eblake@redhat.com>
25621
25622         lib-symbol-versions: fix m4 quoting
25623         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25624         format for AC_LINK_IFELSE.
25625
25626         glob: fix compile test
25627         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25628
25629         btowc: fix missing file
25630         * modules/btowc (Files): Also ship locale-fr.m4.
25631
25632         lseek: fix link test
25633         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25634         AC_LINK_IFELSE.
25635
25636         include_next: silence autoconf 2.68 warning
25637         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25638         AC_COMPILE_IFELSE as special.
25639         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25640         autoconf < 2.68.
25641
25642         acl: fix compilation test
25643         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25644         AC_COMPILE_IFELSE.
25645
25646 2010-08-26  Bruno Haible  <bruno@clisp.org>
25647
25648         Modernize AC_TRY_RUN invocations.
25649         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25650         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25651         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25652         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25653         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25654         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25655         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25656         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25657         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25658         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25659         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25660         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25661         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25662         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25663         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25664         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25665         gl_MBRLEN_NUL_RETVAL): Likewise.
25666         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25667         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25668         Likewise.
25669         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25670         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25671         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25672         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25673         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25674         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25675         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25676         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25677         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25678         Likewise.
25679         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25680         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25681         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25682         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25683         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25684         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25685         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25686         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25687         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25688         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25689
25690 2010-08-26  Bruno Haible  <bruno@clisp.org>
25691
25692         Modernize AC_TRY_LINK invocations.
25693         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25694         AC_TRY_LINK.
25695         * m4/argp.m4 (gl_ARGP): Likewise.
25696         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25697         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25698         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25699         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25700         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25701         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25702         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25703         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25704         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25705         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25706         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25707         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25708         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25709         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25710         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25711         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25712         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25713         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25714         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25715         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25716         Likewise.
25717         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25718         Likewise.
25719         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25720         Likewise.
25721         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25722         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25723         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25724         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25725         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25726         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25727         * m4/servent.m4 (gl_SERVENT): Likewise.
25728         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25729         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25730         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25731         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25732         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25733         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25734         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25735         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25736         * modules/tsearch-tests (configure.ac): Likewise.
25737
25738 2010-08-26  Bruno Haible  <bruno@clisp.org>
25739
25740         Modernize AC_TRY_COMPILE invocations.
25741         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25742         AC_TRY_COMPILE.
25743         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25744         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25745         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25746         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25747         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25748         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25749         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25750         * m4/lock.m4 (gl_LOCK): Likewise.
25751         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25752         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25753         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25754         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25755         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25756         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25757         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25758         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25759         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25760         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25761         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25762         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25763         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25764         extraneous semicolon.
25765
25766 2010-08-26  Jim Meyering  <meyering@redhat.com>
25767
25768         stat-time: relax license LGPL
25769         * modules/stat-time (License): Change from GPL to LGPL,
25770         with consent from all contributors, for use in libguile.
25771         Requested by Ludovic Courtès.
25772
25773 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25774
25775         poll: return immediately on POLLHUP.
25776         * lib/poll.c (poll): Always set timeout before wait_timeout is
25777         computed.
25778
25779 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25780
25781         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25782         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25783         rmdir ("dir/.//"), unlinkat.
25784
25785 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25786
25787         stdbool: avoid spurious failure with modern xlc
25788         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25789
25790 2010-08-24  Bruno Haible  <bruno@clisp.org>
25791
25792         getloadavg: simplify code
25793         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25794         gl_have_func. Update comments.
25795
25796 2010-08-24  Eric Blake  <eblake@redhat.com>
25797
25798         getloadavg: don't define SVR4 on cygwin
25799         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25800         only define SVR4 when -lkvm is required.
25801         Reported by Yaakov Selkowitz.
25802
25803 2010-08-24  Bruno Haible  <bruno@clisp.org>
25804
25805         priv-set: fix comment
25806         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25807
25808 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25809
25810         priv-set: fix comments
25811         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25812         to match code, as suggested by David Bartley in:
25813         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25814
25815 2010-08-23  Eric Blake  <eblake@redhat.com>
25816
25817         stdbool: avoid rejecting clang
25818         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25819         * tests/test-stdbool.c: Enable more tests if using the system
25820         <stdbool.h> instead of the gnulib replacement.
25821         (main): Move xlc bug test to a runtime test for all compilers.
25822         Reported by Anders Kaseorg.
25823
25824         argz: fix shell quoting issue
25825         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
25826         Reported by Charles Wilson.
25827
25828 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
25829             Erik Faye-Lund <kusmabite@gmail.com>
25830
25831         poll, select: handle ERROR_BROKEN_PIPE.
25832         * lib/poll.c (win32_compute_revents): Return POLLHUP when
25833         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25834         * lib/select.c (win32_compute_revents): Do not mark a pipe
25835         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25836
25837 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
25838
25839         fts: allow compilation with C++
25840         * lib/fts_.h: Specify extern "C" linkage with C++.
25841
25842 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25843
25844         Fix gnulib-tool sed script de-commentation for AIX sed.
25845         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
25846         sed.
25847
25848 2010-08-17  Eric Blake  <eblake@redhat.com>
25849
25850         test-stddef: test for (some) offsetof bugs
25851         * tests/test-stddef.c: Enhance test to ensure correct type of
25852         offsetof.
25853         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
25854         that we are not fixing at this time.
25855
25856 2010-08-15  Bruno Haible  <bruno@clisp.org>
25857
25858         stpncpy: Allow stpncpy to be defined as a macro.
25859         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
25860         if it's already correctly declared.
25861         * lib/string.in.h (stpncpy): Undefine before redefining.
25862         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
25863
25864 2010-08-14  Bruno Haible  <bruno@clisp.org>
25865
25866         Rename module 'memxfrm' to 'amemxfrm'.
25867         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
25868         (amemxfrm): Renamed from memxfrm.
25869         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
25870         (amemxfrm): Renamed from memxfrm.
25871         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
25872         * NEWS: Mention the change.
25873         * MODULES.html.sh (String handling <string.h>): Update.
25874         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
25875         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
25876         * lib/unicase/u16-casexfrm.c: Likewise.
25877         * lib/unicase/u32-casexfrm.c: Likewise.
25878         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
25879         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
25880         * lib/uninorm/u16-normxfrm.c: Likewise.
25881         * lib/uninorm/u32-normxfrm.c: Likewise.
25882         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
25883         memxfrm.
25884         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
25885         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
25886         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
25887         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
25888         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
25889         Suggested by Paul Eggert.
25890
25891 2010-08-14  Bruno Haible  <bruno@clisp.org>
25892
25893         Tests for module 'astrxfrm'.
25894         * modules/astrxfrm-tests: New file.
25895         * tests/test-astrxfrm.c: New file.
25896
25897         New module 'astrxfrm'.
25898         * lib/astrxfrm.h: New file.
25899         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
25900         * modules/astrxfrm: New file.
25901
25902 2010-08-14  Reuben Thomas <rrt@sc3d.org>
25903
25904         regex: Tweak doc.
25905         * doc/regex.texi (Overview): Don't mention regex.c.
25906         (GNU Regular Expression Compiling): Likewise.
25907         (Match-end-of-line Operator): Mention 'not_eol'.
25908
25909 2010-08-14  Brian Gough  <bjg@gnu.org>
25910             Bruno Haible  <bruno@clisp.org>
25911
25912         git-merge-changelog: add doc relating to use with bzr and hg.
25913         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
25914
25915 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
25916
25917         pthread: fix pthread.h creation for srcdir != builddir
25918         * modules/pthread (Makefile.am): Fix the rule to work also in a
25919         non-srcdir build.
25920
25921 2010-08-13  Karl Berry  <karl@gnu.org>
25922
25923         * doc/regex.texi (Predefined Syntaxes): @smallexample.
25924         * doc/posix-*/*: force line break before @url of POSIX
25925         specifications.
25926         Suggested by Werner Lemberg.
25927
25928 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25929
25930         strtod: fix const diagnostic
25931         * lib/strtod.c (strtod): Don't assign const char * to char *,
25932         as this elicits a warning from GCC when warnings are enabled.
25933
25934 2010-08-10  Pádraig Brady <P@draigbrady.com>
25935         and Eric Blake  <eblake@redhat.com>
25936
25937         copy-acl: ignore ENOTSUP on HP-UX
25938         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
25939         so that it is available for HP-UX.
25940         * lib/copy-acl.c (qcopy_acl): Use it.
25941         Reported by Patrick M. Callahan.
25942
25943 2010-08-10  Eric Blake  <eblake@redhat.com>
25944
25945         open, chown: relax license
25946         * modules/open (License): Change to LGPLv2+, with consent by all
25947         authors, for use in augeas.
25948         * modules/chown (License): Likewise.
25949         * modules/lchown (Likewise): Likewise.
25950         Requested by Adam Stokes.
25951
25952 2010-08-09  Karl Berry  <karl@gnu.org>
25953
25954         * build-aux/ar-lib: new file, import from Automake.
25955         * config/srclist.txt: autocheck for updates.
25956
25957 2010-08-09  Eric Blake  <eblake@redhat.com>
25958
25959         readlinkat: adjust client modules
25960         * modules/areadlinkat (Depends-on): Use readlinkat, not
25961         symlinkat.
25962         * modules/areadlinkat-with-size (Depends-on): Likewise.
25963
25964         mknod: be more vocal about danger of running tests as root
25965         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
25966         root, since that is just asking for problems.
25967         Suggested by Bruno Haible, based on a report by Rainer Tammer.
25968
25969         readlinkat: split into its own module
25970         * modules/symlinkat: Split readlinkat...
25971         * modules/readlinkat: ...into separate module.
25972         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
25973         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
25974         * lib/symlinkat.c (readlinkat): Move...
25975         * lib/readlinkat.c: ...into new file.
25976         * modules/symlinkat-tests: Split readlinkat test...
25977         * modules/readlinkat-tests: ...into separate module.
25978         * tests/test-symlinkat.c: Split...
25979         * tests/test-readlinkat.c: ...into new file.
25980         * NEWS: Document the split.
25981         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25982         * lib/unistd.in.h (readlinkat): Likewise.
25983         Suggested by Bruno Haible.
25984
25985 2010-08-08  Bruno Haible  <bruno@clisp.org>
25986
25987         memxfrm: Speed up.
25988         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
25989         that usually only one call to strxfrm is necessary for each string
25990         part.
25991         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25992
25993 2010-08-07  Karl Berry  <karl@gnu.org>
25994
25995         * doc/posix-headers/limits.texi,
25996         * doc/posix-functions/malloc.texi,
25997         * doc/posix-functions/strsignal.texi: missing @item.
25998         * doc/ld-version-script.texi: spurious leading i.
25999         * doc/regex.texi (Interval Operators): no commas inside @var.
26000
26001 2010-08-01  Bruno Haible  <bruno@clisp.org>
26002
26003         Integrate the regex documentation.
26004         * doc/gnulib.texi: Define 'cn' index.
26005         (Regular expressions): New a chapter that includes regex.texi and
26006         regexprops-generic.texi.
26007         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26008         syntax.
26009
26010         Whitespace cleanup.
26011         * doc/regex.texi: Remove trailing spaces.
26012
26013         Add regex documentation.
26014         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26015         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26016         Written by Kathy A. Hargreaves and Karl Berry.
26017
26018 2010-08-01  Bruno Haible  <bruno@clisp.org>
26019
26020         link: Update documentation.
26021         * doc/posix-functions/link.texi: Update regarding Solaris.
26022
26023 2010-07-31  Bruno Haible  <bruno@clisp.org>
26024
26025         Update modules list.
26026         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26027         (String handling <string.h>): Add memcmp2, memxfrm.
26028         (Container data structures): Add xlist, xsublist, xoset.
26029         (Core language properties): Add alignof, unused-parameter.
26030         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26031         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26032         (Unibyte characters <ctype.h>): New section.
26033         (String handling <string.h>): New section.
26034         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26035         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26036         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26037         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26038         tan, tanh, tanl, y0, y1, yn.
26039         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26040         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26041         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26042         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26043         unlockpt, vdprintf, vdprintf-posix.
26044         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26045         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26046         xconcat-filename.
26047         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26048         getdtablesize, pipe2, pipe2-safer.
26049         (Security): New section.
26050         (Networking functions): Add accept4.
26051         (Signal handling): Add sigpipe.
26052         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26053         mbmemcasecoll.
26054         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26055         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26056         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26057         pipe-filter-ii.
26058         (Misc): Add argp-version-etc, login_tty, parse-duration.
26059
26060 2010-07-31  Bruno Haible  <bruno@clisp.org>
26061
26062         Improve doc in MODULES.html.
26063         * modules/linkat (Description): Add the word "function".
26064         * modules/mkfifo (Description): Likewise.
26065         * modules/mknod (Description): Likewise.
26066         * modules/remove (Description): Likewise.
26067         * modules/renameat (Description): Likewise.
26068         * modules/stat (Description): Likewise.
26069         * modules/symlink (Description): Likewise.
26070         * modules/unlink (Description): Likewise.
26071
26072 2010-07-31  Bruno Haible  <bruno@clisp.org>
26073
26074         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26075         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26076         option --enable/disable-c++ instead of --enable/disable-cxx.
26077         * NEWS: Mention the change.
26078
26079 2010-07-31  Bruno Haible  <bruno@clisp.org>
26080
26081         readlink, areadlink: Relax test a bit.
26082         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26083         alternative to ENOTDIR.
26084         * tests/test-areadlink.h (test_areadlink): Likewise.
26085         Reported by Rainer Tammer.
26086
26087 2010-07-31  Bruno Haible  <bruno@clisp.org>
26088
26089         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26090         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26091         character, perform the search using U_STRCHR.
26092         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26093         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26094         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26095         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26096         Suggested by Paolo Bonzini.
26097
26098 2010-07-31  Bruno Haible  <bruno@clisp.org>
26099
26100         unistr/u*-strstr: Fix dependencies.
26101         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26102         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26103         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26104
26105 2010-07-31  Bruno Haible  <bruno@clisp.org>
26106
26107         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26108         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26109         the beginning of the loop.
26110         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26111         cases in 'switch' statement.
26112
26113         unistr/u8-strchr: Fix several bugs.
26114         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26115         the string. When not found, return NULL, not a pointer near the end.
26116
26117         More tests for unistr/u8-strchr.
26118         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26119         that the function does not read past the first occurrence of the byte
26120         being searched.
26121         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26122         * tests/unistr/test-u16-strchr.c (main): New function.
26123         * tests/unistr/test-u32-strchr.c (main): New function.
26124
26125 2010-07-31  Bruno Haible  <bruno@clisp.org>
26126
26127         posix-modules: Ignore backup files of documentation files.
26128         * posix-modules: grep only through files named *.texi.
26129
26130 2010-07-31  Bruno Haible  <bruno@clisp.org>
26131
26132         symlinkat: Fix documentation.
26133         * doc/posix-functions/readlinkat.texi: Fix module name.
26134
26135 2010-07-31  Bruno Haible  <bruno@clisp.org>
26136
26137         fchownat: Replace also when chown has the trailing slash bug.
26138         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26139         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26140         introduced on 2010-04-10.
26141         Reported by Rainer Tammer.
26142
26143 2010-07-31  Bruno Haible  <bruno@clisp.org>
26144
26145         linkat: Work around AIX 7.1 bug.
26146         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26147         whether linkat handles trailing slash correctly. If not, replace linkat
26148         and define LINKAT_TRAILING_SLASH_BUG.
26149         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26150         check whether (fd1,file1) points to a directory if file1 or file2 ends
26151         in a slash. Code taken from lib/link.c.
26152         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26153         Reported by Rainer Tammer.
26154
26155 2010-07-31  Bruno Haible  <bruno@clisp.org>
26156
26157         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26158         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26159         This disables an xlc optimization that was causing wrong test results.
26160         Reported by Rainer Tammer.
26161
26162 2010-07-31  Bruno Haible  <bruno@clisp.org>
26163
26164         iconv: Work around AIX 6.1..7.1 bug.
26165         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26166         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26167         cross-compiling, guess no on all versions of AIX.
26168         Reported by Rainer Tammer.
26169
26170 2010-07-31  Bruno Haible  <bruno@clisp.org>
26171
26172         readlink: Relax test a bit.
26173         * tests/test-readlink.h (test_readlink): Allow different errno value
26174         when readlink is called with a file name that ends in / and refers to
26175         a file.
26176         Suggested by Eric Blake.
26177         Reported by Rainer Tammer.
26178
26179 2010-07-31  Bruno Haible  <bruno@clisp.org>
26180
26181         copysign: Does not require -lm on glibc systems.
26182         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26183         gl_COMMON_DOUBLE_MATHFUNC.
26184         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26185
26186 2010-07-31  Bruno Haible  <bruno@clisp.org>
26187
26188         duplocale: Work around AIX 7.1 bug.
26189         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26190         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26191         * lib/duplocale.c (rpl_duplocale): Update comment.
26192         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26193         Reported by Rainer Tammer.
26194
26195 2010-07-30  Bruno Haible  <bruno@clisp.org>
26196
26197         dirfd: Avoid link error on AIX 7.1.
26198         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26199         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26200         exist, set REPLACE_DIRFD.
26201         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26202         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26203         * doc/posix-functions/dirfd.texi: Update.
26204         Reported by Rainer Tammer.
26205
26206 2010-07-30  Eric Blake  <eblake@redhat.com>
26207
26208         strtod: next round of AIX fixes
26209         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26210         exponent.
26211         * tests/test-strtod.c (main): Enhance tests.
26212         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26213         Reported by Rainer Tammer.
26214
26215         futimens: fix configure check
26216         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26217         Reported by Bruno Haible.
26218
26219 2010-07-30  Bruno Haible  <bruno@clisp.org>
26220
26221         getline: Update regarding AIX.
26222         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26223         Reported by Rainer Tammer.
26224
26225 2010-07-30  Bruno Haible  <bruno@clisp.org>
26226
26227         wcwidth: Drop replacement on AIX 7.
26228         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26229         AIX 7.
26230         Reported by Rainer Tammer.
26231
26232 2010-07-30  Bruno Haible  <bruno@clisp.org>
26233
26234         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26235         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26236         a 'char *'.
26237         Reported by Rainer Tammer.
26238
26239 2010-07-30  Bruno Haible  <bruno@clisp.org>
26240
26241         unlink: Update regarding AIX.
26242         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26243         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26244         Reported by Rainer Tammer.
26245
26246 2010-07-30  Bruno Haible  <bruno@clisp.org>
26247
26248         symlink: Update regarding AIX.
26249         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26250         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26251         Reported by Rainer Tammer.
26252
26253 2010-07-30  Bruno Haible  <bruno@clisp.org>
26254
26255         strndup: Update regarding AIX.
26256         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26257         AIX 7.
26258         Reported by Rainer Tammer.
26259
26260 2010-07-30  Bruno Haible  <bruno@clisp.org>
26261
26262         stat: Update regarding AIX.
26263         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26264         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26265         Reported by Rainer Tammer.
26266
26267 2010-07-30  Bruno Haible  <bruno@clisp.org>
26268
26269         truncl: Fix autoconf test.
26270         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26271         whether truncl works.
26272         Reported by Rainer Tammer.
26273
26274 2010-07-30  Bruno Haible  <bruno@clisp.org>
26275
26276         round: Update regarding AIX.
26277         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26278         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26279         Reported by Rainer Tammer.
26280
26281 2010-07-30  Bruno Haible  <bruno@clisp.org>
26282
26283         rename: Update regarding AIX.
26284         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26285         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26286         Reported by Rainer Tammer.
26287
26288 2010-07-30  Bruno Haible  <bruno@clisp.org>
26289
26290         printf.m4: Update regarding AIX.
26291         * m4/printf.m4: Update comments regarding AIX.
26292         Reported by Rainer Tammer.
26293
26294 2010-07-30  Bruno Haible  <bruno@clisp.org>
26295
26296         iconv: Update regarding AIX.
26297         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26298         AIX 7.
26299         Reported by Rainer Tammer.
26300
26301 2010-07-30  Bruno Haible  <bruno@clisp.org>
26302
26303         getopt: Update regarding AIX.
26304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26305         no on AIX.
26306         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26307         Reported by Rainer Tammer.
26308
26309 2010-07-30  Bruno Haible  <bruno@clisp.org>
26310
26311         ldexpl; Update regarding AIX.
26312         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26313         on AIX 7.
26314         Reported by Rainer Tammer.
26315
26316 2010-07-30  Bruno Haible  <bruno@clisp.org>
26317
26318         frexpl: Update regarding AIX.
26319         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26320         on AIX 7.
26321         Reported by Rainer Tammer.
26322
26323 2010-07-30  Bruno Haible  <bruno@clisp.org>
26324
26325         open, fopen: Update regarding AIX.
26326         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26327         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26328         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26329         * doc/posix-functions/fopen.texi: Likewise.
26330         Reported by Rainer Tammer.
26331
26332 2010-07-30  Bruno Haible  <bruno@clisp.org>
26333
26334         chown: Update doc regarding AIX.
26335         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26336         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26337         Reported by Rainer Tammer.
26338
26339 2010-07-30  Eric Blake  <eblake@redhat.com>
26340
26341         strtod: fix bug in replacement function on AIX
26342         * lib/strtod.c (strtod): Special case broken "0x" parse in
26343         underlying strtod.
26344         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26345         * doc/posix-functions/strtod.texi (strtod): Likewise.
26346         Reported by Rainer Tammer.
26347
26348 2010-07-30  Bruno Haible  <bruno@clisp.org>
26349
26350         mbrlen: Fix cross-compilation guess for AIX.
26351         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26352         guess. Leftover from 2008-12-22.
26353
26354 2010-07-30  Bruno Haible  <bruno@clisp.org>
26355
26356         mbrtowc: Fix cross-compilation guess for AIX.
26357         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26358         guess. Leftover from 2008-12-21.
26359
26360 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26361
26362         init.sh: work around trap limitation of some shells
26363         * tests/init.sh (setup_): Move exit trap outside of shell function.
26364
26365 2010-07-29  Eric Blake  <eblake@redhat.com>
26366
26367         strtod: aid debugging
26368         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26369         understanding why strtod is rejected.
26370
26371 2010-07-28  Bruno Haible  <bruno@clisp.org>
26372
26373         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26374         * lib/unistr/u8-chr.c: Include <string.h>.
26375         * tests/unistr/test-u8-chr.c: Likewise.
26376         * tests/unistr/test-u16-chr.c: Likewise.
26377         * tests/unistr/test-u32-chr.c: Likewise.
26378         * tests/unistr/test-u8-strchr.c: Likewise.
26379         * tests/unistr/test-u16-strchr.c: Likewise.
26380         * tests/unistr/test-u32-strchr.c: Likewise.
26381         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26382         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26383         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26384         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26385
26386 2010-07-28  Bruno Haible  <bruno@clisp.org>
26387
26388         Use spaces for indentation, not tabs.
26389         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26390
26391 2010-07-27  Bruno Haible  <bruno@clisp.org>
26392
26393         mbspcasecmp: Fix function specification.
26394         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26395         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26396         Reported by Eric Blake <eblake@redhat.com>.
26397
26398 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26399
26400         timespec: use cast and not conditional, as truncation isn't possible
26401         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26402         instead of a conditional.  Comment about the situation in more detail.
26403         This undoes most of the 2009-10-29 patch.
26404
26405 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26406
26407         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26408         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26409         * lib/unistr/u8-strchr.c: Likewise.
26410         * modules/unistr/u8-chr: Depend on memchr.
26411
26412         unistr/u*-strchr: add tests
26413         * modules/unistr/u8-strchr-tests: New file.
26414         * modules/unistr/u16-strchr-tests: New file.
26415         * modules/unistr/u32-strchr-tests: New file.
26416         * tests/unistr/test-strchr.h: New file.
26417         * tests/unistr/test-u8-strchr.c: New file.
26418         * tests/unistr/test-u16-strchr.c: New file.
26419         * tests/unistr/test-u32-strchr.c: New file.
26420
26421         unistr/u*-chr: test multibyte sequences more
26422         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26423         test vector.
26424         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26425         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26426         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26427
26428         unistr/u*-chr: test multibyte sequences
26429         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26430
26431         unistr/u*-chr: prepare for multibyte tests
26432         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26433         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26434         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26435         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26436         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26437         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26438
26439 2010-07-18  Bruno Haible  <bruno@clisp.org>
26440
26441         unistr/u8-strchr: Optimize non-ASCII argument case.
26442         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26443         because the first byte often matches anyway.
26444         Reported by Pádraig Brady <P@draigbrady.com>.
26445
26446 2010-07-15  Karl Berry  <karl@gnu.org>
26447
26448         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26449
26450 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26451
26452         getcwd: on Solaris, work better if ancestors are inaccessible
26453         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26454         buffer and size, try again with a large buffer.  This works better
26455         on Solaris, since its getcwd succeeds even if the path to the root
26456         is inaccessible, and this is helpful in common cases such as .zfs
26457         hidden directories.  Problem reported by J Chapman Flack in
26458         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26459         Use system getcwd if it's declared, not merely if it's partly
26460         working; use the partly-working test only to avoid needless effort
26461         if the system getcwd fails.
26462         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26463         comment that was already obsolete and is now even more obsolete.
26464         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26465         now might call strdup.
26466
26467 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26468
26469         pthread: Add enough so that coreutils/src/sort.c compiles.
26470         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26471         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26472         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26473         Include <sys/types.h>, in case it defines pthread_t.
26474         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26475         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26476         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26477         (pthread_rwlockattr_t, pthread_spinlock_t):
26478         New typedefs, if HAVE_PTHREAD_T is not defined.
26479         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26480         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26481         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26482         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26483         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26484         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26485         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26486         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26487         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26488         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26489         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26490         New macros.
26491         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26492         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26493         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26494         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26495         (pthread_spin_unlock): New dummy functions.
26496         (pthread_create): Return EAGAIN; don't set errno.
26497         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26498         require AC_C_INLINE.
26499         * modules/pthread (Depends-on): Add sched, time.
26500         (pthread.h): Use AM_V_GEN.
26501
26502 2010-07-13  Bruno Haible  <bruno@clisp.org>
26503
26504         striconveh: Don't malloc memory if the result buffer is sufficient.
26505         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26506         buffer if its size is sufficient.
26507         Reported by Ludovic Courtès <ludo@gnu.org>.
26508
26509 2010-07-13  Bruno Haible  <bruno@clisp.org>
26510
26511         strtod: Add safety check.
26512         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26513
26514 2010-07-12  Bruno Haible  <bruno@clisp.org>
26515
26516         Unify tests that set gl_cv_func_ldexpl_no_libm.
26517         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26518         gl_FUNC_LDEXPL.
26519         (gl_FUNC_LDEXPL): Invoke it.
26520         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26521
26522 2010-07-12  Bruno Haible  <bruno@clisp.org>
26523
26524         Unify tests that set gl_cv_func_ldexp_no_libm.
26525         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26526         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26527         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26528         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26529         * modules/strtod (Files): Add m4/ldexp.m4.
26530
26531 2010-07-12  Bruno Haible  <bruno@clisp.org>
26532
26533         Unify tests that set gl_cv_func_frexpl_no_libm.
26534         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26535         gl_FUNC_FREXPL_NO_LIBM.
26536         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26537         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26538
26539 2010-07-12  Bruno Haible  <bruno@clisp.org>
26540
26541         Unify tests that set gl_cv_func_frexp_no_libm.
26542         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26543         gl_FUNC_FREXP_NO_LIBM.
26544         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26545         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26546
26547 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26548
26549         memcoll: clarify sizes versus lengths, document better, and tweak perf
26550         * lib/memcoll.c (strcoll_loop, memcoll0):
26551         Improve quality of descriptive comments.  Name variables
26552         consistently as to whether they are lengths (which do not include
26553         terminating null) versus sizes (which do).
26554         * lib/xmemcoll.c (xmemcoll0): Likewise.
26555         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26556         returned when s1size == 0; this is easier to compile and saves
26557         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26558
26559 2010-07-12  Bruno Haible  <bruno@clisp.org>
26560
26561         Tests for module '_Exit'.
26562         * modules/_Exit-tests: New file.
26563         * tests/test-_Exit.sh: New file.
26564         * tests/test-_Exit.c: New file.
26565
26566         New module '_Exit'.
26567         * lib/stdlib.in.h (__attribute__): New macro.
26568         (_Exit): New declaration.
26569         * lib/_Exit.c: New file.
26570         * m4/_Exit.m4: New file.
26571         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26572         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26573         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26574         * modules/_Exit: New file.
26575         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26576         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26577
26578 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26579
26580         strtod: make it more-accurate typically, and don't require libm
26581         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26582         Include limits.h.  Don't include string.h.
26583         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26584         (locale_isspace): New function, so that no casts are needed to
26585         check whether *s is a space.
26586         (ldexp): Provide an unused dummy if not available.
26587         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26588         (strtod): Use them.  This implementation prefers to use the
26589         underlying strtod if available, falling back on our own code
26590         only to fix known bugs.  This is more likely to produce an
26591         accurate result.  Also, it avoids the use of libm functions.
26592         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26593         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26594         was absent, but it caused a test failure with coreutils.
26595         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26596         with libm.
26597         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26598         * modules/strtod-tests (Makefile.am): Likewise.
26599
26600 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26601             Bruno Haible  <bruno@clisp.org>
26602
26603         unistr/u8-strchr: Optimize ASCII argument case.
26604         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26605
26606 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26607
26608         (x)memcoll: minor tweaks
26609         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26610         is after the type that it qualifies.
26611         (memcoll0): Likewise.
26612         * lib/memcoll.h (memcoll0): Likewise.
26613         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26614         * lib/xmemcoll.h (xmemcoll0): Likewise.
26615         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26616         differs from memcoll in that the NUL byte is part of the argument.
26617         Omit the abort-checks, as performance is a real issue here.  Plus,
26618         the checks were wrong anyway (an off-by-one error).  Omit local
26619         variable 'diff', as it's a bit clearer that way.
26620         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26621         no longer needed.
26622
26623 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26624
26625         (x)memcoll: speedup when input is known to be NUL delimited
26626         * lib/memcoll.c: Include stdlib.
26627         (memcoll0): New function.
26628         (strcoll_loop): New function, refactored for use in both memcoll
26629         and memcoll0.
26630         * lib/memcoll.h (memcoll0): Add prototype.
26631         * lib/xmemcoll.c (xmemcoll0): New function.
26632         (collate_error): New function, refactored for use in both xmemcoll
26633         and xmemcoll0.
26634         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26635         * m4/memcoll.m4: add inline invocation.
26636
26637 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26638
26639         * build-aux/bootstrap: Remove any local translations
26640         from the translation project synchronization directory,
26641         so that local only translations are not distributed.
26642
26643 2010-07-04  Bruno Haible  <bruno@clisp.org>
26644
26645         fsusage: Clarify which code applies to which platforms.
26646         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26647         platform.
26648         * lib/fsusage.c (get_fs_usage): Likewise.
26649
26650 2010-07-04  Bruno Haible  <bruno@clisp.org>
26651
26652         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26653         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26654         Reported by Martin Lambers <marlam@marlam.de>.
26655
26656 2010-07-04  Jim Meyering  <meyering@redhat.com>
26657
26658         hash: once again explicitly disallow insertion of NULL
26659         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26660         inserting a NULL pointer cannot work with these functions.
26661         Add a comment with details.
26662         This reverts part of the 2010-07-01 commit, 5bef1a35
26663         "hash: extend module to deal with non-pointer keys".
26664
26665 2010-07-01  Bruno Haible  <bruno@clisp.org>
26666
26667         stdbool: Update doc.
26668         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26669         Info from Christian Weisgerber <naddy@mips.inka.de>.
26670
26671 2010-07-01  Jim Meyering  <meyering@redhat.com>
26672
26673         hash: extend module to deal with non-pointer keys
26674         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26675         but that allows insertion of non-pointer entries.
26676         Do not disallow an ENTRY value of NULL.
26677         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26678         * lib/hash.h (hash_insert0): Declare.
26679
26680 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26681
26682         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26683         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26684         not present (i.e. with autoconf 2.59 and when using gettextize, not
26685         gnulib), require AC_GNU_SOURCE instead.
26686
26687 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26688
26689         idpriv-drop: Fix tests.
26690         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26691         not to the test-idpriv-droptemp program.
26692
26693 2010-06-29  Bruno Haible  <bruno@clisp.org>
26694
26695         string: Fix syntax error with g++ 2.96.
26696         * lib/string.in.h (__pure__): Remove definition.
26697         (_GL_ATTRIBUTE_PURE): New macro.
26698         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26699         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26700         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26701
26702 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26703
26704         unitypes: Fix bug introduced on 2010-05-18.
26705         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26706
26707 2010-06-22  Eric Blake  <eblake@redhat.com>
26708
26709         memmem: slight optimization
26710         * lib/str-two-way.h (critical_factorization): Update comments.
26711         Reduce work during factorization phase.
26712         Reported by Carlos Bueno <carlos@bueno.org>.
26713
26714 2010-06-21  Bruno Haible  <bruno@clisp.org>
26715
26716         Fix HAVE_CALLOC_POSIX misnomer.
26717         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26718         !HAVE_CALLOC_POSIX.
26719         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26720         HAVE_CALLOC_POSIX.
26721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26722         instead of HAVE_CALLOC_POSIX.
26723         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26724         HAVE_CALLOC_POSIX.
26725
26726         Use modern idiom for calloc() replacement.
26727         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26728         AC_FUNC_CALLOC.
26729         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26730         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26731         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26732         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26733         (gl_REPLACE_CALLOC): New macro.
26734
26735 2010-06-21  Bruno Haible  <bruno@clisp.org>
26736
26737         Fix HAVE_REALLOC_POSIX misnomer.
26738         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26739         !HAVE_REALLOC_POSIX.
26740         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26741         HAVE_REALLOC_POSIX.
26742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26743         instead of HAVE_REALLOC_POSIX.
26744         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26745         HAVE_REALLOC_POSIX.
26746
26747         Use modern idiom for realloc() replacement.
26748         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26749         AC_FUNC_REALLOC.
26750         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26751         Autoconf's AC_FUNC_REALLOC.
26752         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26753         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26754         (gl_REPLACE_REALLOC): New macro.
26755         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26756
26757 2010-06-21  Bruno Haible  <bruno@clisp.org>
26758
26759         Fix HAVE_MALLOC_POSIX misnomer.
26760         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26761         !HAVE_MALLOC_POSIX.
26762         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26763         HAVE_MALLOC_POSIX.
26764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26765         instead of HAVE_MALLOC_POSIX.
26766         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26767         HAVE_MALLOC_POSIX.
26768
26769         Use modern idiom for malloc() replacement.
26770         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26771         AC_FUNC_MALLOC.
26772         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26773         Autoconf's AC_FUNC_MALLOC.
26774         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26775         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26776         (gl_REPLACE_MALLOC): New macro.
26777         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26778
26779 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26780
26781         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26782         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26783         This macro takes 3 arguments, not 4.
26784
26785 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26786
26787         ipv6: fix detection under mingw
26788         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26789         in6_addr.
26790
26791 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26792
26793         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26794         that strtod() works when cross-compiling to a glibc version known
26795         to work.
26796
26797 2010-06-15  Bruno Haible  <bruno@clisp.org>
26798
26799         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26800
26801 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26802
26803         select: Correct timeout.
26804         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26805
26806 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26807
26808         git-version-gen: init shell var to avoid env var influence
26809         * build-aux/git-version-gen (v): Init shell var to empty.
26810
26811 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26812
26813         priv-set: Don't assume that priv.h exists merely because getppriv does.
26814         See Jan Andersen's bug report about AIX 5L in
26815         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26816         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26817         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26818         * lib/priv-set.h: Likewise.
26819         * tests/test-priv-set.c: Likewise.
26820
26821 2010-06-13  Bruno Haible  <bruno@clisp.org>
26822
26823         relocatable: Make it easier to test whether to install wrappers.
26824         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26825         RELOCATABLE_VIA_WRAPPER.
26826
26827 2010-06-13  Bruno Haible  <bruno@clisp.org>
26828
26829         gnulib-tool: Display specified modules and dependencies differently.
26830         * gnulib-tool (func_show_module_list): New function.
26831         (func_import, func_create_testdir): Invoke it.
26832         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26833
26834 2010-06-13  Bruno Haible  <bruno@clisp.org>
26835
26836         gnulib-tool: Align code of func_import and func_create_testdir.
26837         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
26838         specified_modules.
26839
26840 2010-06-12  Jim Meyering  <meyering@redhat.com>
26841
26842         test-inttostr: avoid spurious failure on Solaris 9
26843         * tests/test-inttostr.c (main): Skip the test when snprintf fails
26844         to accept "%ju".  Reported by Bruno Haible.
26845
26846 2010-06-11  Jim Meyering  <meyering@redhat.com>
26847
26848         test-sys_socket: mark variables as used more readably
26849         * tests/test-sys_socket.c (main): Mark otherwise unused variables
26850         as "used" explicitly via (void) statement casts.  This is more
26851         readable than using them in an artificial return expression.
26852         Suggestion from Bruno Haible.
26853
26854 2010-06-11  Bruno Haible  <bruno@clisp.org>
26855
26856         Avoid some more warnings from "gcc -Wwrite-strings".
26857         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
26858         to 'const char *'.
26859         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
26860         * tests/test-c-strcasestr.c (main): Likewise.
26861         * tests/test-mbscasestr1.c (main): Likewise.
26862         * tests/test-mbscasestr2.c (main): Likewise.
26863         * tests/test-memmem.c (main): Likewise.
26864         * tests/test-strstr.c (main): Likewise.
26865         * tests/test-strcasestr.c (main): Likewise.
26866
26867 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26868
26869         init.sh: change framework_failure_ to fail with status 99, not 1
26870         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
26871         automake's parallel-tests rule that this is an unexpected failure,
26872         even if the test is listed in XFAIL_TESTS.
26873
26874 2010-06-11  Jim Meyering  <meyering@redhat.com>
26875
26876         test-inttostr: avoid warnings about 4-6KB literal strings
26877         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
26878         Include "macros.h", for its definition of ASSERT.
26879         (CK): s/assert/ASSERT/
26880         * modules/inttostr-tests (Files): Add macros.h.
26881
26882         init.sh: don't use $ME_ or skip_ before they are defined
26883         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
26884         their first uses.  Also hoist their companions: warn_, fail_,
26885         framework_failure_, $stderr_fileno.  Prompted by a patch from
26886         Stefano Lattarini.
26887
26888         test-sys_socket: avoid set-but-not-used warnings from gcc
26889         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
26890         avoid warning about set-but-not-used variables.
26891
26892         test-xvasprintf: avoid 'const' discard warnings
26893         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
26894         "const" when assigning from literal strings.
26895         (test_xasprintf): Add "void" in function argument list to placate
26896         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
26897
26898         tests: avoid compilation warnings in argmatch and exclude tests...
26899         in packages that define ARGMATCH_DIE_DECL, like coreutils.
26900         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
26901         Since it always exits, declare with the "noreturn" attribute.
26902         * tests/test-argmatch.c: Likewise.
26903
26904         tests: avoid 'const' discard warnings in mbsstr tests
26905         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
26906         * tests/test-mbsstr2.c (main): Likewise.
26907
26908         test-verify: avoid warning from gcc's -Wmissing-declarations
26909         * tests/test-verify.c (function): Declare to be static.
26910
26911         test-inttostr.c: include <string.h> for use of strcmp
26912         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
26913
26914         test-linkat: avoid failed assertion on "other" architectures
26915         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
26916         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
26917         sparc: https://bugs.launchpad.net/bugs/591968
26918
26919 2010-06-11  Jim Meyering  <meyering@redhat.com>
26920
26921         printf.m4: avoid autoconf's "Expanded Before Required" warning
26922         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
26923         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
26924         autoconf warning.
26925
26926 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
26927
26928         Replacement header templates are now named with ".in", not "_".
26929         * doc/gnulib-intro.texi: Correct.
26930
26931 2010-06-10  Jim Meyering  <meyering@redhat.com>
26932
26933         inttostr-tests: depend on snprintf, not snprintf-posix
26934         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
26935         snprintf-posix, to avoid this aclocal failure:
26936           missing file gnulib-tests/vasnprintf.c
26937           configure.ac:45: error: expected source file, required through \
26938           AC_LIBSOURCES, not found
26939
26940 2010-06-10  Jim Meyering  <meyering@redhat.com>
26941
26942         inttostr: add a new function, inttostr, and tests
26943         The namesake function was not available.  The existence of the
26944         template file, inttostr.c makes its addition nontrivial.
26945         * lib/anytostr.c: Rename from inttostr.c.
26946         (anytostr): Rename from inttostr.
26947         * lib/inttostr.c: New file.
26948         * modules/inttostr (Files): Add anytostr.c.
26949         (Makefile.am): Set lib_SOURCES instead of ...
26950         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
26951         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
26952         * lib/offtostr.c: Likewise.
26953         * lib/uinttostr.c: Likewise.
26954         * lib/umaxtostr.c: Likewise.
26955         * modules/inttostr-tests: New file.
26956         * tests/test-inttostr.c: New file.  Test these functions.
26957
26958 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
26959             Bruno Haible  <bruno@clisp.org>
26960
26961         Add "Extending Gnulib" chapter to manual.
26962         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
26963         chapter.
26964         (Extending Gnulib): New chapter.
26965         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
26966         chapter.
26967
26968 2010-06-09  Bruno Haible  <bruno@clisp.org>
26969
26970         Avoid relocwrapper link errors due to gnulib replacement functions.
26971         * lib/areadlink.c: Use the system's malloc, realloc functions.
26972         (areadlink): Set errno to ENOMEM explicitly.
26973         * modules/areadlink (Depends-on): Remove malloc-posix.
26974         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26975
26976 2010-06-09  Bruno Haible  <bruno@clisp.org>
26977
26978         Avoid relocwrapper link errors due to gnulib replacement functions.
26979         * lib/canonicalize-lgpl.c: Use the system's malloc function.
26980         * lib/malloca.c: Likewise.
26981         * lib/relocatable.c: Likewise.
26982         * lib/progreloc.c: Use the system's malloc, sprintf functions.
26983         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
26984         * lib/setenv.c: Use the system's malloc, realloc functions.
26985         * lib/strerror.c: Use the system's sprintf function.
26986         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26987
26988 2010-06-04  Bruno Haible  <bruno@clisp.org>
26989
26990         Prefer documented low-level autoconf macro names.
26991         * m4/lib-link.m4: Use m4_translit instead of translit.
26992         * m4/environ.m4: Likewise.
26993         * m4/mathfunc.m4: Likewise.
26994         * m4/onceonly.m4: Likewise.
26995         * m4/stdint.m4: Likewise.
26996         Suggested by Eric Blake.
26997
26998 2010-06-04  Martin Lambers  <marlam@marlam.de>
26999             Bruno Haible  <bruno@clisp.org>
27000
27001         havelib: Allow library names with '+' characters.
27002         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27003         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27004
27005 2010-06-09  Bruno Haible  <bruno@clisp.org>
27006
27007         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27008         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27009         realloc failed.
27010
27011 2010-06-08  Peter Simons  <simons@cryp.to>
27012
27013         maint.mk: make the news-check rule more configurable
27014         * top/maint.mk (news-check-lines-spec): New variable.
27015         (news-check): Use "sed -n 1,10p" in place of "head".
27016
27017 2010-06-07  Jim Meyering  <meyering@redhat.com>
27018
27019         do-release-commit-and-tag: fix typo in --help
27020         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27021
27022         regex: avoid new dead-code warning with gcc-4.6.0
27023         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27024         if-block containing a while-loop.  It's been unused for at least
27025         5 years.
27026
27027 2010-06-05  Bruno Haible  <bruno@clisp.org>
27028
27029         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27030         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27031
27032 2010-06-04  Bruno Haible  <bruno@clisp.org>
27033
27034         Update to GNU gettext 0.18.1.
27035         * modules/gettext (configure.ac): Require gettext infrastructure from
27036         version 0.18.1.
27037
27038 2010-06-03  Bruno Haible  <bruno@clisp.org>
27039
27040         Don't use AC_LIBOBJ with file names in subdirectories.
27041         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27042         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27043         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27044         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27045         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27046         gl_LIBUNISTRING_LIBSOURCE.
27047         (Makefile.am): Augment lib_SOURCES here, conditionally.
27048         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27049
27050 2010-06-03  Bruno Haible  <bruno@clisp.org>
27051
27052         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27053         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27054         expansion does not end with a newline.
27055         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27056         unnecessary newline.
27057
27058 2010-06-03  Bruno Haible  <bruno@clisp.org>
27059
27060         Reduce dependencies.
27061         * tests/test-quotearg.h: New file, extracted from
27062         tests/test-quotearg.c.
27063         * tests/test-quotearg-simple.c: New file, extracted from
27064         tests/test-quotearg.c.
27065         * tests/test-quotearg.c: Don't include <ctype.h>.
27066         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27067         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27068         use_quote_double_quotes, use_quotearg_colon): Moved to
27069         tests/test-quotearg.h.
27070         (results_g, flag_results, custom_quotes, custom_results): Moved
27071         to tests/test-quotearg-simple.c.
27072         (main): Moved the part that does not depend on gettext to
27073         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27074         performed.
27075         * modules/quotearg-simple: New file.
27076         * modules/quotearg-simple-tests: New file.
27077         * modules/quotearg (Depends-on): Add quotearg-simple.
27078         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27079         (Files): Add tests/test-quotearg.h.
27080         Reported by Paolo Bonzini.
27081
27082 2010-06-03  Bruno Haible  <bruno@clisp.org>
27083
27084         Reduce dependencies.
27085         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27086
27087 2010-06-03  Bruno Haible  <bruno@clisp.org>
27088
27089         time: Undefine more broken macros.
27090         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27091         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27092         Reported by Eric Blake.
27093
27094 2010-06-03  Bruno Haible  <bruno@clisp.org>
27095
27096         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27097         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27098         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27099         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27100         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27101         Reported by Ludovic Courtès <ludo@gnu.org>.
27102
27103 2010-06-02  Eric Blake  <eblake@redhat.com>
27104
27105         time: work with mingw + pthreads-win32 library
27106         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27107         if timespec is defined only in pthread.h.
27108         * modules/time (Makefile.am): Substitute it.
27109         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27110         <pthread.h>, when needed.
27111         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27112         from the library.
27113
27114 2010-05-31  Bruno Haible  <bruno@clisp.org>
27115
27116         Avoid expanding two macros in the wrong order.
27117         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27118         gl_LIBUNISTRING if it is defined.
27119         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27120         autoconf >= 2.64.
27121         Reported by Ludovic Courtès <ludo@gnu.org>.
27122
27123 2010-05-27  Jim Meyering  <meyering@redhat.com>
27124
27125         maint.mk: also prohibit "#undef" of always-defined symbols
27126         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27127         Allow more than one space before the symbol name.
27128         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27129         the regexp uses alternation.
27130
27131 2010-05-26  Eric Blake  <eblake@redhat.com>
27132
27133         maint.mk: avoid echo -e
27134         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27135         Convert all uses of echo -* to printf.
27136         Reported by Matthias Bolte.
27137
27138 2010-05-25  Bruno Haible  <bruno@clisp.org>
27139
27140         Update to GNU gettext 0.18, part 2.
27141         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27142         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27143
27144 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27145
27146         Add missing include in test-pwrite.c.
27147         * tests/test-pwrite.c: Include string.h, for strcmp.
27148
27149 2010-05-24  Bruno Haible  <bruno@clisp.org>
27150
27151         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27152
27153 2010-05-24  Bruno Haible  <bruno@clisp.org>
27154
27155         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27156         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27157         iconveh_error argument.
27158         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27159         U_STRCONV_TO_LOCALE.
27160         * lib/unistr/u16-strcoll.c: Likewise.
27161         * lib/unistr/u32-strcoll.c: Likewise.
27162         * modules/unistr/u8-strcoll (Depends-on): Add
27163         uniconv/u8-strconv-to-enc, localcharset. Remove
27164         uniconv/u8-strconv-to-locale.
27165         (configure.ac): Bump version number.
27166         * modules/unistr/u16-strcoll (Depends-on): Add
27167         uniconv/u16-strconv-to-enc, localcharset. Remove
27168         uniconv/u16-strconv-to-locale.
27169         (configure.ac): Bump version number.
27170         * modules/unistr/u32-strcoll (Depends-on): Add
27171         uniconv/u32-strconv-to-enc, localcharset. Remove
27172         uniconv/u32-strconv-to-locale.
27173         (configure.ac): Bump version number.
27174
27175 2010-05-24  Bruno Haible  <bruno@clisp.org>
27176
27177         Avoid a test failure on NetBSD 5.0.
27178         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27179         an iconv() bug.
27180
27181 2010-05-24  Bruno Haible  <bruno@clisp.org>
27182
27183         Adjust #include directive style.
27184         * modules/regex (Includes): Recommend to write <regex.h>.
27185
27186 2010-05-24  Bruno Haible  <bruno@clisp.org>
27187
27188         regex: Don't require alloca.
27189         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27190         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27191         only inside if (0).
27192
27193 2010-05-23  Jim Meyering  <meyering@redhat.com>
27194
27195         test-renameat.c: include <sys/stat.h>
27196         * tests/test-renameat.c: Include <sys/stat.h>; required for
27197         definition of S_IS* macros.
27198
27199 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27200
27201         Update maintainer documentation for 'relocatable-prog' module.
27202         * doc/relocatable-maint.texi: Update.
27203         Comments by Bruno Haible.
27204
27205 2010-05-23  Bruno Haible  <bruno@clisp.org>
27206
27207         git-merge-changelog: Enable --split-merged-entry by default.
27208         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27209         (usage): Don't mention this option any more.
27210         Reported by Ralf Wildenhues.
27211
27212 2010-05-23  Jim Meyering  <meyering@redhat.com>
27213
27214         test-pwrite: do not leave behind a test file named "out"
27215         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27216         The trivial-looking use of init.sh is really necessary.
27217         It ensures that the temporary file, "out", is created in
27218         a temporary directory, and removed upon termination.
27219         * tests/test-pwrite.sh: Re-add file.
27220         * modules/pwrite-tests: Reference it.
27221
27222 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27223
27224         Fix output redirection buglet in init.sh.
27225         * tests/init.sh: Fix redirection of stderr.
27226
27227 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27228
27229         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27230
27231 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27232
27233         * modules/valgrind-tests: New file.
27234         * m4/valgrind-tests.m4: New file.
27235         * doc/valgrind-tests.texi: New file.
27236         * doc/gnulib.texi (Running self-tests under valgrind): New
27237         section.
27238
27239 2010-05-19  Bruno Haible  <bruno@clisp.org>
27240
27241         Clean up dead code in recent commit.
27242         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27243         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27244         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27245         Suggested by Paolo Bonzini.
27246
27247 2010-05-19  Bruno Haible  <bruno@clisp.org>
27248
27249         Avoid valgrind error reports from libunistring.
27250         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27251         * modules/libunistring (Files): Add it.
27252         * modules/libunistring-optional (Files): Likewise.
27253
27254 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27255             Bruno Haible  <bruno@clisp.org>
27256
27257         New module 'libunistring-optional'.
27258         * modules/libunistring-optional: New file.
27259         * m4/libunistring-base.m4: New file.
27260         * m4/libunistring-optional.m4: New file.
27261         * lib/unicase.in.h: Renamed from lib/unicase.h.
27262         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27263         * lib/unictype.in.h: Renamed from lib/unictype.h.
27264         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27265         * lib/uniname.in.h: Renamed from lib/uniname.h.
27266         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27267         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27268         * lib/unistr.in.h: Renamed from lib/unistr.h.
27269         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27270         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27271         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27272         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27273         gl_LIBUNISTRING. If the library was found, determine the installed
27274         version and set LIBUNISTRING_VERSION.
27275         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27276         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27277         handle a configuration option --with-included-libunistring.
27278         * modules/libunistring (Files): Add m4/absolute-header.m4.
27279         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27280         Add m4/libunistring-base.m4.
27281         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27282         (Makefile.am): Build unicase.h from unicase.in.h.
27283         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27284         Add m4/libunistring-base.m4.
27285         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27286         (Makefile.am): Build uniconv.h from uniconv.in.h.
27287         * modules/unictype/base (Files): Use unictype.in.h instead of
27288         unictype.h. Add m4/libunistring-base.m4.
27289         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27290         (Makefile.am): Build unictype.h from unictype.in.h.
27291         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27292         Add m4/libunistring-base.m4.
27293         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27294         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27295         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27296         Add m4/libunistring-base.m4.
27297         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27298         (Makefile.am): Build uniname.h from uniname.in.h.
27299         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27300         Add m4/libunistring-base.m4.
27301         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27302         (Makefile.am): Build uninorm.h from uninorm.in.h.
27303         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27304         unistdio.h. Add m4/libunistring-base.m4.
27305         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27306         (Makefile.am): Build unistdio.h from unistdio.in.h.
27307         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27308         Add m4/libunistring-base.m4.
27309         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27310         (Makefile.am): Build unistr.h from unistr.in.h.
27311         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27312         Add m4/libunistring-base.m4.
27313         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27314         (Makefile.am): Build unitypes.h from unitypes.in.h.
27315         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27316         Add m4/libunistring-base.m4.
27317         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27318         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27319         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27320         uniwidth.h. Add m4/libunistring-base.m4.
27321         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27322         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27323         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27324         instead of augmenting lib_SOURCES.
27325         * modules/unicase/empty-suffix-context: Likewise.
27326         * modules/unicase/locale-language: Likewise.
27327         * modules/unicase/tolower: Likewise.
27328         * modules/unicase/totitle: Likewise.
27329         * modules/unicase/toupper: Likewise.
27330         * modules/unicase/u8-casecmp: Likewise.
27331         * modules/unicase/u8-casecoll: Likewise.
27332         * modules/unicase/u8-casefold: Likewise.
27333         * modules/unicase/u8-casexfrm: Likewise.
27334         * modules/unicase/u8-ct-casefold: Likewise.
27335         * modules/unicase/u8-ct-tolower: Likewise.
27336         * modules/unicase/u8-ct-totitle: Likewise.
27337         * modules/unicase/u8-ct-toupper: Likewise.
27338         * modules/unicase/u8-is-cased: Likewise.
27339         * modules/unicase/u8-is-casefolded: Likewise.
27340         * modules/unicase/u8-is-lowercase: Likewise.
27341         * modules/unicase/u8-is-titlecase: Likewise.
27342         * modules/unicase/u8-is-uppercase: Likewise.
27343         * modules/unicase/u8-prefix-context: Likewise.
27344         * modules/unicase/u8-suffix-context: Likewise.
27345         * modules/unicase/u8-tolower: Likewise.
27346         * modules/unicase/u8-totitle: Likewise.
27347         * modules/unicase/u8-toupper: Likewise.
27348         * modules/unicase/u16-casecmp: Likewise.
27349         * modules/unicase/u16-casecoll: Likewise.
27350         * modules/unicase/u16-casefold: Likewise.
27351         * modules/unicase/u16-casexfrm: Likewise.
27352         * modules/unicase/u16-ct-casefold: Likewise.
27353         * modules/unicase/u16-ct-tolower: Likewise.
27354         * modules/unicase/u16-ct-totitle: Likewise.
27355         * modules/unicase/u16-ct-toupper: Likewise.
27356         * modules/unicase/u16-is-cased: Likewise.
27357         * modules/unicase/u16-is-casefolded: Likewise.
27358         * modules/unicase/u16-is-lowercase: Likewise.
27359         * modules/unicase/u16-is-titlecase: Likewise.
27360         * modules/unicase/u16-is-uppercase: Likewise.
27361         * modules/unicase/u16-prefix-context: Likewise.
27362         * modules/unicase/u16-suffix-context: Likewise.
27363         * modules/unicase/u16-tolower: Likewise.
27364         * modules/unicase/u16-totitle: Likewise.
27365         * modules/unicase/u16-toupper: Likewise.
27366         * modules/unicase/u32-casecmp: Likewise.
27367         * modules/unicase/u32-casecoll: Likewise.
27368         * modules/unicase/u32-casefold: Likewise.
27369         * modules/unicase/u32-casexfrm: Likewise.
27370         * modules/unicase/u32-ct-casefold: Likewise.
27371         * modules/unicase/u32-ct-tolower: Likewise.
27372         * modules/unicase/u32-ct-totitle: Likewise.
27373         * modules/unicase/u32-ct-toupper: Likewise.
27374         * modules/unicase/u32-is-cased: Likewise.
27375         * modules/unicase/u32-is-casefolded: Likewise.
27376         * modules/unicase/u32-is-lowercase: Likewise.
27377         * modules/unicase/u32-is-titlecase: Likewise.
27378         * modules/unicase/u32-is-uppercase: Likewise.
27379         * modules/unicase/u32-prefix-context: Likewise.
27380         * modules/unicase/u32-suffix-context: Likewise.
27381         * modules/unicase/u32-tolower: Likewise.
27382         * modules/unicase/u32-totitle: Likewise.
27383         * modules/unicase/u32-toupper: Likewise.
27384         * modules/unicase/ulc-casecmp: Likewise.
27385         * modules/unicase/ulc-casecoll: Likewise.
27386         * modules/unicase/ulc-casexfrm: Likewise.
27387         * modules/uniconv/u8-conv-from-enc: Likewise.
27388         * modules/uniconv/u8-conv-to-enc: Likewise.
27389         * modules/uniconv/u8-strconv-from-enc: Likewise.
27390         * modules/uniconv/u8-strconv-from-locale: Likewise.
27391         * modules/uniconv/u8-strconv-to-enc: Likewise.
27392         * modules/uniconv/u8-strconv-to-locale: Likewise.
27393         * modules/uniconv/u16-conv-from-enc: Likewise.
27394         * modules/uniconv/u16-conv-to-enc: Likewise.
27395         * modules/uniconv/u16-strconv-from-enc: Likewise.
27396         * modules/uniconv/u16-strconv-from-locale: Likewise.
27397         * modules/uniconv/u16-strconv-to-enc: Likewise.
27398         * modules/uniconv/u16-strconv-to-locale: Likewise.
27399         * modules/uniconv/u32-conv-from-enc: Likewise.
27400         * modules/uniconv/u32-conv-to-enc: Likewise.
27401         * modules/uniconv/u32-strconv-from-enc: Likewise.
27402         * modules/uniconv/u32-strconv-from-locale: Likewise.
27403         * modules/uniconv/u32-strconv-to-enc: Likewise.
27404         * modules/uniconv/u32-strconv-to-locale: Likewise.
27405         * modules/unictype/bidicategory-byname: Likewise.
27406         * modules/unictype/bidicategory-name: Likewise.
27407         * modules/unictype/bidicategory-of: Likewise.
27408         * modules/unictype/bidicategory-test: Likewise.
27409         * modules/unictype/block-list: Likewise.
27410         * modules/unictype/block-test: Likewise.
27411         * modules/unictype/category-C: Likewise.
27412         * modules/unictype/category-Cc: Likewise.
27413         * modules/unictype/category-Cf: Likewise.
27414         * modules/unictype/category-Cn: Likewise.
27415         * modules/unictype/category-Co: Likewise.
27416         * modules/unictype/category-Cs: Likewise.
27417         * modules/unictype/category-L: Likewise.
27418         * modules/unictype/category-Ll: Likewise.
27419         * modules/unictype/category-Lm: Likewise.
27420         * modules/unictype/category-Lo: Likewise.
27421         * modules/unictype/category-Lt: Likewise.
27422         * modules/unictype/category-Lu: Likewise.
27423         * modules/unictype/category-M: Likewise.
27424         * modules/unictype/category-Mc: Likewise.
27425         * modules/unictype/category-Me: Likewise.
27426         * modules/unictype/category-Mn: Likewise.
27427         * modules/unictype/category-N: Likewise.
27428         * modules/unictype/category-Nd: Likewise.
27429         * modules/unictype/category-Nl: Likewise.
27430         * modules/unictype/category-No: Likewise.
27431         * modules/unictype/category-P: Likewise.
27432         * modules/unictype/category-Pc: Likewise.
27433         * modules/unictype/category-Pd: Likewise.
27434         * modules/unictype/category-Pe: Likewise.
27435         * modules/unictype/category-Pf: Likewise.
27436         * modules/unictype/category-Pi: Likewise.
27437         * modules/unictype/category-Po: Likewise.
27438         * modules/unictype/category-Ps: Likewise.
27439         * modules/unictype/category-S: Likewise.
27440         * modules/unictype/category-Sc: Likewise.
27441         * modules/unictype/category-Sk: Likewise.
27442         * modules/unictype/category-Sm: Likewise.
27443         * modules/unictype/category-So: Likewise.
27444         * modules/unictype/category-Z: Likewise.
27445         * modules/unictype/category-Zl: Likewise.
27446         * modules/unictype/category-Zp: Likewise.
27447         * modules/unictype/category-Zs: Likewise.
27448         * modules/unictype/category-and: Likewise.
27449         * modules/unictype/category-and-not: Likewise.
27450         * modules/unictype/category-byname: Likewise.
27451         * modules/unictype/category-name: Likewise.
27452         * modules/unictype/category-none: Likewise.
27453         * modules/unictype/category-of: Likewise.
27454         * modules/unictype/category-or: Likewise.
27455         * modules/unictype/category-test: Likewise.
27456         * modules/unictype/combining-class: Likewise.
27457         * modules/unictype/ctype-alnum: Likewise.
27458         * modules/unictype/ctype-alpha: Likewise.
27459         * modules/unictype/ctype-blank: Likewise.
27460         * modules/unictype/ctype-cntrl: Likewise.
27461         * modules/unictype/ctype-digit: Likewise.
27462         * modules/unictype/ctype-graph: Likewise.
27463         * modules/unictype/ctype-lower: Likewise.
27464         * modules/unictype/ctype-print: Likewise.
27465         * modules/unictype/ctype-punct: Likewise.
27466         * modules/unictype/ctype-space: Likewise.
27467         * modules/unictype/ctype-upper: Likewise.
27468         * modules/unictype/ctype-xdigit: Likewise.
27469         * modules/unictype/decimal-digit: Likewise.
27470         * modules/unictype/digit: Likewise.
27471         * modules/unictype/mirror: Likewise.
27472         * modules/unictype/numeric: Likewise.
27473         * modules/unictype/property-alphabetic: Likewise.
27474         * modules/unictype/property-ascii-hex-digit: Likewise.
27475         * modules/unictype/property-bidi-arabic-digit: Likewise.
27476         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27477         * modules/unictype/property-bidi-block-separator: Likewise.
27478         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27479         * modules/unictype/property-bidi-common-separator: Likewise.
27480         * modules/unictype/property-bidi-control: Likewise.
27481         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27482         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27483         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27484         * modules/unictype/property-bidi-european-digit: Likewise.
27485         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27486         * modules/unictype/property-bidi-left-to-right: Likewise.
27487         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27488         * modules/unictype/property-bidi-other-neutral: Likewise.
27489         * modules/unictype/property-bidi-pdf: Likewise.
27490         * modules/unictype/property-bidi-segment-separator: Likewise.
27491         * modules/unictype/property-bidi-whitespace: Likewise.
27492         * modules/unictype/property-byname: Likewise.
27493         * modules/unictype/property-combining: Likewise.
27494         * modules/unictype/property-composite: Likewise.
27495         * modules/unictype/property-currency-symbol: Likewise.
27496         * modules/unictype/property-dash: Likewise.
27497         * modules/unictype/property-decimal-digit: Likewise.
27498         * modules/unictype/property-default-ignorable-code-point: Likewise.
27499         * modules/unictype/property-deprecated: Likewise.
27500         * modules/unictype/property-diacritic: Likewise.
27501         * modules/unictype/property-extender: Likewise.
27502         * modules/unictype/property-format-control: Likewise.
27503         * modules/unictype/property-grapheme-base: Likewise.
27504         * modules/unictype/property-grapheme-extend: Likewise.
27505         * modules/unictype/property-grapheme-link: Likewise.
27506         * modules/unictype/property-hex-digit: Likewise.
27507         * modules/unictype/property-hyphen: Likewise.
27508         * modules/unictype/property-id-continue: Likewise.
27509         * modules/unictype/property-id-start: Likewise.
27510         * modules/unictype/property-ideographic: Likewise.
27511         * modules/unictype/property-ids-binary-operator: Likewise.
27512         * modules/unictype/property-ids-trinary-operator: Likewise.
27513         * modules/unictype/property-ignorable-control: Likewise.
27514         * modules/unictype/property-iso-control: Likewise.
27515         * modules/unictype/property-join-control: Likewise.
27516         * modules/unictype/property-left-of-pair: Likewise.
27517         * modules/unictype/property-line-separator: Likewise.
27518         * modules/unictype/property-logical-order-exception: Likewise.
27519         * modules/unictype/property-lowercase: Likewise.
27520         * modules/unictype/property-math: Likewise.
27521         * modules/unictype/property-non-break: Likewise.
27522         * modules/unictype/property-not-a-character: Likewise.
27523         * modules/unictype/property-numeric: Likewise.
27524         * modules/unictype/property-other-alphabetic: Likewise.
27525         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27526         * modules/unictype/property-other-grapheme-extend: Likewise.
27527         * modules/unictype/property-other-id-continue: Likewise.
27528         * modules/unictype/property-other-id-start: Likewise.
27529         * modules/unictype/property-other-lowercase: Likewise.
27530         * modules/unictype/property-other-math: Likewise.
27531         * modules/unictype/property-other-uppercase: Likewise.
27532         * modules/unictype/property-paired-punctuation: Likewise.
27533         * modules/unictype/property-paragraph-separator: Likewise.
27534         * modules/unictype/property-pattern-syntax: Likewise.
27535         * modules/unictype/property-pattern-white-space: Likewise.
27536         * modules/unictype/property-private-use: Likewise.
27537         * modules/unictype/property-punctuation: Likewise.
27538         * modules/unictype/property-quotation-mark: Likewise.
27539         * modules/unictype/property-radical: Likewise.
27540         * modules/unictype/property-sentence-terminal: Likewise.
27541         * modules/unictype/property-soft-dotted: Likewise.
27542         * modules/unictype/property-space: Likewise.
27543         * modules/unictype/property-terminal-punctuation: Likewise.
27544         * modules/unictype/property-test: Likewise.
27545         * modules/unictype/property-titlecase: Likewise.
27546         * modules/unictype/property-unassigned-code-value: Likewise.
27547         * modules/unictype/property-unified-ideograph: Likewise.
27548         * modules/unictype/property-uppercase: Likewise.
27549         * modules/unictype/property-variation-selector: Likewise.
27550         * modules/unictype/property-white-space: Likewise.
27551         * modules/unictype/property-xid-continue: Likewise.
27552         * modules/unictype/property-xid-start: Likewise.
27553         * modules/unictype/property-zero-width: Likewise.
27554         * modules/unictype/scripts: Likewise.
27555         * modules/unictype/syntax-c-ident: Likewise.
27556         * modules/unictype/syntax-c-whitespace: Likewise.
27557         * modules/unictype/syntax-java-ident: Likewise.
27558         * modules/unictype/syntax-java-whitespace: Likewise.
27559         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27560         * modules/unilbrk/u8-width-linebreaks: Likewise.
27561         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27562         * modules/unilbrk/u16-width-linebreaks: Likewise.
27563         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27564         * modules/unilbrk/u32-width-linebreaks: Likewise.
27565         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27566         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27567         * modules/uniname/uniname: Likewise.
27568         * modules/uninorm/canonical-decomposition: Likewise.
27569         * modules/uninorm/composition: Likewise.
27570         * modules/uninorm/decomposing-form: Likewise.
27571         * modules/uninorm/decomposition: Likewise.
27572         * modules/uninorm/filter: Likewise.
27573         * modules/uninorm/nfc: Likewise.
27574         * modules/uninorm/nfd: Likewise.
27575         * modules/uninorm/nfkc: Likewise.
27576         * modules/uninorm/nfkd: Likewise.
27577         * modules/uninorm/u8-normalize: Likewise.
27578         * modules/uninorm/u8-normcmp: Likewise.
27579         * modules/uninorm/u8-normcoll: Likewise.
27580         * modules/uninorm/u8-normxfrm: Likewise.
27581         * modules/uninorm/u16-normalize: Likewise.
27582         * modules/uninorm/u16-normcmp: Likewise.
27583         * modules/uninorm/u16-normcoll: Likewise.
27584         * modules/uninorm/u16-normxfrm: Likewise.
27585         * modules/uninorm/u32-normalize: Likewise.
27586         * modules/uninorm/u32-normcmp: Likewise.
27587         * modules/uninorm/u32-normcoll: Likewise.
27588         * modules/uninorm/u32-normxfrm: Likewise.
27589         * modules/unistdio/u8-asnprintf: Likewise.
27590         * modules/unistdio/u8-asprintf: Likewise.
27591         * modules/unistdio/u8-snprintf: Likewise.
27592         * modules/unistdio/u8-sprintf: Likewise.
27593         * modules/unistdio/u8-u8-asnprintf: Likewise.
27594         * modules/unistdio/u8-u8-asprintf: Likewise.
27595         * modules/unistdio/u8-u8-snprintf: Likewise.
27596         * modules/unistdio/u8-u8-sprintf: Likewise.
27597         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27598         * modules/unistdio/u8-u8-vasprintf: Likewise.
27599         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27600         * modules/unistdio/u8-u8-vsprintf: Likewise.
27601         * modules/unistdio/u8-vasnprintf: Likewise.
27602         * modules/unistdio/u8-vasprintf: Likewise.
27603         * modules/unistdio/u8-vsnprintf: Likewise.
27604         * modules/unistdio/u8-vsprintf: Likewise.
27605         * modules/unistdio/u16-asnprintf: Likewise.
27606         * modules/unistdio/u16-asprintf: Likewise.
27607         * modules/unistdio/u16-snprintf: Likewise.
27608         * modules/unistdio/u16-sprintf: Likewise.
27609         * modules/unistdio/u16-u16-asnprintf: Likewise.
27610         * modules/unistdio/u16-u16-asprintf: Likewise.
27611         * modules/unistdio/u16-u16-snprintf: Likewise.
27612         * modules/unistdio/u16-u16-sprintf: Likewise.
27613         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27614         * modules/unistdio/u16-u16-vasprintf: Likewise.
27615         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27616         * modules/unistdio/u16-u16-vsprintf: Likewise.
27617         * modules/unistdio/u16-vasnprintf: Likewise.
27618         * modules/unistdio/u16-vasprintf: Likewise.
27619         * modules/unistdio/u16-vsnprintf: Likewise.
27620         * modules/unistdio/u16-vsprintf: Likewise.
27621         * modules/unistdio/u32-asnprintf: Likewise.
27622         * modules/unistdio/u32-asprintf: Likewise.
27623         * modules/unistdio/u32-snprintf: Likewise.
27624         * modules/unistdio/u32-sprintf: Likewise.
27625         * modules/unistdio/u32-u32-asnprintf: Likewise.
27626         * modules/unistdio/u32-u32-asprintf: Likewise.
27627         * modules/unistdio/u32-u32-snprintf: Likewise.
27628         * modules/unistdio/u32-u32-sprintf: Likewise.
27629         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27630         * modules/unistdio/u32-u32-vasprintf: Likewise.
27631         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27632         * modules/unistdio/u32-u32-vsprintf: Likewise.
27633         * modules/unistdio/u32-vasnprintf: Likewise.
27634         * modules/unistdio/u32-vasprintf: Likewise.
27635         * modules/unistdio/u32-vsnprintf: Likewise.
27636         * modules/unistdio/u32-vsprintf: Likewise.
27637         * modules/unistdio/ulc-asnprintf: Likewise.
27638         * modules/unistdio/ulc-asprintf: Likewise.
27639         * modules/unistdio/ulc-fprintf: Likewise.
27640         * modules/unistdio/ulc-snprintf: Likewise.
27641         * modules/unistdio/ulc-sprintf: Likewise.
27642         * modules/unistdio/ulc-vasnprintf: Likewise.
27643         * modules/unistdio/ulc-vasprintf: Likewise.
27644         * modules/unistdio/ulc-vfprintf: Likewise.
27645         * modules/unistdio/ulc-vsnprintf: Likewise.
27646         * modules/unistdio/ulc-vsprintf: Likewise.
27647         * modules/unistr/u8-check: Likewise.
27648         * modules/unistr/u8-chr: Likewise.
27649         * modules/unistr/u8-cmp: Likewise.
27650         * modules/unistr/u8-cmp2: Likewise.
27651         * modules/unistr/u8-cpy: Likewise.
27652         * modules/unistr/u8-cpy-alloc: Likewise.
27653         * modules/unistr/u8-endswith: Likewise.
27654         * modules/unistr/u8-mblen: Likewise.
27655         * modules/unistr/u8-mbsnlen: Likewise.
27656         * modules/unistr/u8-mbtouc: Likewise.
27657         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27658         * modules/unistr/u8-mbtoucr: Likewise.
27659         * modules/unistr/u8-move: Likewise.
27660         * modules/unistr/u8-next: Likewise.
27661         * modules/unistr/u8-prev: Likewise.
27662         * modules/unistr/u8-set: Likewise.
27663         * modules/unistr/u8-startswith: Likewise.
27664         * modules/unistr/u8-stpcpy: Likewise.
27665         * modules/unistr/u8-stpncpy: Likewise.
27666         * modules/unistr/u8-strcat: Likewise.
27667         * modules/unistr/u8-strchr: Likewise.
27668         * modules/unistr/u8-strcmp: Likewise.
27669         * modules/unistr/u8-strcoll: Likewise.
27670         * modules/unistr/u8-strcpy: Likewise.
27671         * modules/unistr/u8-strcspn: Likewise.
27672         * modules/unistr/u8-strdup: Likewise.
27673         * modules/unistr/u8-strlen: Likewise.
27674         * modules/unistr/u8-strmblen: Likewise.
27675         * modules/unistr/u8-strmbtouc: Likewise.
27676         * modules/unistr/u8-strncat: Likewise.
27677         * modules/unistr/u8-strncmp: Likewise.
27678         * modules/unistr/u8-strncpy: Likewise.
27679         * modules/unistr/u8-strnlen: Likewise.
27680         * modules/unistr/u8-strpbrk: Likewise.
27681         * modules/unistr/u8-strrchr: Likewise.
27682         * modules/unistr/u8-strspn: Likewise.
27683         * modules/unistr/u8-strstr: Likewise.
27684         * modules/unistr/u8-strtok: Likewise.
27685         * modules/unistr/u8-to-u16: Likewise.
27686         * modules/unistr/u8-to-u32: Likewise.
27687         * modules/unistr/u8-uctomb: Likewise.
27688         * modules/unistr/u16-check: Likewise.
27689         * modules/unistr/u16-chr: Likewise.
27690         * modules/unistr/u16-cmp: Likewise.
27691         * modules/unistr/u16-cmp2: Likewise.
27692         * modules/unistr/u16-cpy: Likewise.
27693         * modules/unistr/u16-cpy-alloc: Likewise.
27694         * modules/unistr/u16-endswith: Likewise.
27695         * modules/unistr/u16-mblen: Likewise.
27696         * modules/unistr/u16-mbsnlen: Likewise.
27697         * modules/unistr/u16-mbtouc: Likewise.
27698         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27699         * modules/unistr/u16-mbtoucr: Likewise.
27700         * modules/unistr/u16-move: Likewise.
27701         * modules/unistr/u16-next: Likewise.
27702         * modules/unistr/u16-prev: Likewise.
27703         * modules/unistr/u16-set: Likewise.
27704         * modules/unistr/u16-startswith: Likewise.
27705         * modules/unistr/u16-stpcpy: Likewise.
27706         * modules/unistr/u16-stpncpy: Likewise.
27707         * modules/unistr/u16-strcat: Likewise.
27708         * modules/unistr/u16-strchr: Likewise.
27709         * modules/unistr/u16-strcmp: Likewise.
27710         * modules/unistr/u16-strcoll: Likewise.
27711         * modules/unistr/u16-strcpy: Likewise.
27712         * modules/unistr/u16-strcspn: Likewise.
27713         * modules/unistr/u16-strdup: Likewise.
27714         * modules/unistr/u16-strlen: Likewise.
27715         * modules/unistr/u16-strmblen: Likewise.
27716         * modules/unistr/u16-strmbtouc: Likewise.
27717         * modules/unistr/u16-strncat: Likewise.
27718         * modules/unistr/u16-strncmp: Likewise.
27719         * modules/unistr/u16-strncpy: Likewise.
27720         * modules/unistr/u16-strnlen: Likewise.
27721         * modules/unistr/u16-strpbrk: Likewise.
27722         * modules/unistr/u16-strrchr: Likewise.
27723         * modules/unistr/u16-strspn: Likewise.
27724         * modules/unistr/u16-strstr: Likewise.
27725         * modules/unistr/u16-strtok: Likewise.
27726         * modules/unistr/u16-to-u32: Likewise.
27727         * modules/unistr/u16-to-u8: Likewise.
27728         * modules/unistr/u16-uctomb: Likewise.
27729         * modules/unistr/u32-check: Likewise.
27730         * modules/unistr/u32-chr: Likewise.
27731         * modules/unistr/u32-cmp: Likewise.
27732         * modules/unistr/u32-cmp2: Likewise.
27733         * modules/unistr/u32-cpy: Likewise.
27734         * modules/unistr/u32-cpy-alloc: Likewise.
27735         * modules/unistr/u32-endswith: Likewise.
27736         * modules/unistr/u32-mblen: Likewise.
27737         * modules/unistr/u32-mbsnlen: Likewise.
27738         * modules/unistr/u32-mbtouc: Likewise.
27739         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27740         * modules/unistr/u32-mbtoucr: Likewise.
27741         * modules/unistr/u32-move: Likewise.
27742         * modules/unistr/u32-next: Likewise.
27743         * modules/unistr/u32-prev: Likewise.
27744         * modules/unistr/u32-set: Likewise.
27745         * modules/unistr/u32-startswith: Likewise.
27746         * modules/unistr/u32-stpcpy: Likewise.
27747         * modules/unistr/u32-stpncpy: Likewise.
27748         * modules/unistr/u32-strcat: Likewise.
27749         * modules/unistr/u32-strchr: Likewise.
27750         * modules/unistr/u32-strcmp: Likewise.
27751         * modules/unistr/u32-strcoll: Likewise.
27752         * modules/unistr/u32-strcpy: Likewise.
27753         * modules/unistr/u32-strcspn: Likewise.
27754         * modules/unistr/u32-strdup: Likewise.
27755         * modules/unistr/u32-strlen: Likewise.
27756         * modules/unistr/u32-strmblen: Likewise.
27757         * modules/unistr/u32-strmbtouc: Likewise.
27758         * modules/unistr/u32-strncat: Likewise.
27759         * modules/unistr/u32-strncmp: Likewise.
27760         * modules/unistr/u32-strncpy: Likewise.
27761         * modules/unistr/u32-strnlen: Likewise.
27762         * modules/unistr/u32-strpbrk: Likewise.
27763         * modules/unistr/u32-strrchr: Likewise.
27764         * modules/unistr/u32-strspn: Likewise.
27765         * modules/unistr/u32-strstr: Likewise.
27766         * modules/unistr/u32-strtok: Likewise.
27767         * modules/unistr/u32-to-u16: Likewise.
27768         * modules/unistr/u32-to-u8: Likewise.
27769         * modules/unistr/u32-uctomb: Likewise.
27770         * modules/uniwbrk/u8-wordbreaks: Likewise.
27771         * modules/uniwbrk/u16-wordbreaks: Likewise.
27772         * modules/uniwbrk/u32-wordbreaks: Likewise.
27773         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27774         * modules/uniwbrk/wordbreak-property: Likewise.
27775         * modules/uniwidth/u8-strwidth: Likewise.
27776         * modules/uniwidth/u8-width: Likewise.
27777         * modules/uniwidth/u16-strwidth: Likewise.
27778         * modules/uniwidth/u16-width: Likewise.
27779         * modules/uniwidth/u32-strwidth: Likewise.
27780         * modules/uniwidth/u32-width: Likewise.
27781         * modules/uniwidth/width: Likewise.
27782         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27783         with $(LIBUNISTRING).
27784         * modules/unicase/ignorable-tests: Likewise.
27785         * modules/unicase/locale-language-tests: Likewise.
27786         * modules/unicase/tolower-tests: Likewise.
27787         * modules/unicase/totitle-tests: Likewise.
27788         * modules/unicase/toupper-tests: Likewise.
27789         * modules/unicase/u8-casecmp-tests: Likewise.
27790         * modules/unicase/u8-casecoll-tests: Likewise.
27791         * modules/unicase/u8-casefold-tests: Likewise.
27792         * modules/unicase/u8-is-cased-tests: Likewise.
27793         * modules/unicase/u8-is-casefolded-tests: Likewise.
27794         * modules/unicase/u8-is-lowercase-tests: Likewise.
27795         * modules/unicase/u8-is-titlecase-tests: Likewise.
27796         * modules/unicase/u8-is-uppercase-tests: Likewise.
27797         * modules/unicase/u8-tolower-tests: Likewise.
27798         * modules/unicase/u8-totitle-tests: Likewise.
27799         * modules/unicase/u8-toupper-tests: Likewise.
27800         * modules/unicase/u16-casecmp-tests: Likewise.
27801         * modules/unicase/u16-casecoll-tests: Likewise.
27802         * modules/unicase/u16-casefold-tests: Likewise.
27803         * modules/unicase/u16-is-cased-tests: Likewise.
27804         * modules/unicase/u16-is-casefolded-tests: Likewise.
27805         * modules/unicase/u16-is-lowercase-tests: Likewise.
27806         * modules/unicase/u16-is-titlecase-tests: Likewise.
27807         * modules/unicase/u16-is-uppercase-tests: Likewise.
27808         * modules/unicase/u16-tolower-tests: Likewise.
27809         * modules/unicase/u16-totitle-tests: Likewise.
27810         * modules/unicase/u16-toupper-tests: Likewise.
27811         * modules/unicase/u32-casecmp-tests: Likewise.
27812         * modules/unicase/u32-casecoll-tests: Likewise.
27813         * modules/unicase/u32-casefold-tests: Likewise.
27814         * modules/unicase/u32-is-cased-tests: Likewise.
27815         * modules/unicase/u32-is-casefolded-tests: Likewise.
27816         * modules/unicase/u32-is-lowercase-tests: Likewise.
27817         * modules/unicase/u32-is-titlecase-tests: Likewise.
27818         * modules/unicase/u32-is-uppercase-tests: Likewise.
27819         * modules/unicase/u32-tolower-tests: Likewise.
27820         * modules/unicase/u32-totitle-tests: Likewise.
27821         * modules/unicase/u32-toupper-tests: Likewise.
27822         * modules/unicase/ulc-casecmp-tests: Likewise.
27823         * modules/unicase/ulc-casecoll-tests: Likewise.
27824         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27825         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
27826         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
27827         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
27828         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
27829         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
27830         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
27831         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
27832         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
27833         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
27834         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
27835         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
27836         * modules/unictype/bidicategory-byname-tests: Likewise.
27837         * modules/unictype/bidicategory-name-tests: Likewise.
27838         * modules/unictype/bidicategory-of-tests: Likewise.
27839         * modules/unictype/bidicategory-test-tests: Likewise.
27840         * modules/unictype/block-list-tests: Likewise.
27841         * modules/unictype/block-of-tests: Likewise.
27842         * modules/unictype/block-test-tests: Likewise.
27843         * modules/unictype/category-C-tests: Likewise.
27844         * modules/unictype/category-Cc-tests: Likewise.
27845         * modules/unictype/category-Cf-tests: Likewise.
27846         * modules/unictype/category-Cn-tests: Likewise.
27847         * modules/unictype/category-Co-tests: Likewise.
27848         * modules/unictype/category-Cs-tests: Likewise.
27849         * modules/unictype/category-L-tests: Likewise.
27850         * modules/unictype/category-Ll-tests: Likewise.
27851         * modules/unictype/category-Lm-tests: Likewise.
27852         * modules/unictype/category-Lo-tests: Likewise.
27853         * modules/unictype/category-Lt-tests: Likewise.
27854         * modules/unictype/category-Lu-tests: Likewise.
27855         * modules/unictype/category-M-tests: Likewise.
27856         * modules/unictype/category-Mc-tests: Likewise.
27857         * modules/unictype/category-Me-tests: Likewise.
27858         * modules/unictype/category-Mn-tests: Likewise.
27859         * modules/unictype/category-N-tests: Likewise.
27860         * modules/unictype/category-Nd-tests: Likewise.
27861         * modules/unictype/category-Nl-tests: Likewise.
27862         * modules/unictype/category-No-tests: Likewise.
27863         * modules/unictype/category-P-tests: Likewise.
27864         * modules/unictype/category-Pc-tests: Likewise.
27865         * modules/unictype/category-Pd-tests: Likewise.
27866         * modules/unictype/category-Pe-tests: Likewise.
27867         * modules/unictype/category-Pf-tests: Likewise.
27868         * modules/unictype/category-Pi-tests: Likewise.
27869         * modules/unictype/category-Po-tests: Likewise.
27870         * modules/unictype/category-Ps-tests: Likewise.
27871         * modules/unictype/category-S-tests: Likewise.
27872         * modules/unictype/category-Sc-tests: Likewise.
27873         * modules/unictype/category-Sk-tests: Likewise.
27874         * modules/unictype/category-Sm-tests: Likewise.
27875         * modules/unictype/category-So-tests: Likewise.
27876         * modules/unictype/category-Z-tests: Likewise.
27877         * modules/unictype/category-Zl-tests: Likewise.
27878         * modules/unictype/category-Zp-tests: Likewise.
27879         * modules/unictype/category-Zs-tests: Likewise.
27880         * modules/unictype/category-and-not-tests: Likewise.
27881         * modules/unictype/category-and-tests: Likewise.
27882         * modules/unictype/category-byname-tests: Likewise.
27883         * modules/unictype/category-name-tests: Likewise.
27884         * modules/unictype/category-none-tests: Likewise.
27885         * modules/unictype/category-of-tests: Likewise.
27886         * modules/unictype/category-or-tests: Likewise.
27887         * modules/unictype/category-test-withtable-tests: Likewise.
27888         * modules/unictype/combining-class-tests: Likewise.
27889         * modules/unictype/ctype-alnum-tests: Likewise.
27890         * modules/unictype/ctype-alpha-tests: Likewise.
27891         * modules/unictype/ctype-blank-tests: Likewise.
27892         * modules/unictype/ctype-cntrl-tests: Likewise.
27893         * modules/unictype/ctype-digit-tests: Likewise.
27894         * modules/unictype/ctype-graph-tests: Likewise.
27895         * modules/unictype/ctype-lower-tests: Likewise.
27896         * modules/unictype/ctype-print-tests: Likewise.
27897         * modules/unictype/ctype-punct-tests: Likewise.
27898         * modules/unictype/ctype-space-tests: Likewise.
27899         * modules/unictype/ctype-upper-tests: Likewise.
27900         * modules/unictype/ctype-xdigit-tests: Likewise.
27901         * modules/unictype/decimal-digit-tests: Likewise.
27902         * modules/unictype/digit-tests: Likewise.
27903         * modules/unictype/mirror-tests: Likewise.
27904         * modules/unictype/numeric-tests: Likewise.
27905         * modules/unictype/property-alphabetic-tests: Likewise.
27906         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
27907         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
27908         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
27909         * modules/unictype/property-bidi-block-separator-tests: Likewise.
27910         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
27911         * modules/unictype/property-bidi-common-separator-tests: Likewise.
27912         * modules/unictype/property-bidi-control-tests: Likewise.
27913         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
27914         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
27915         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
27916         * modules/unictype/property-bidi-european-digit-tests: Likewise.
27917         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
27918         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
27919         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
27920         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
27921         * modules/unictype/property-bidi-pdf-tests: Likewise.
27922         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
27923         * modules/unictype/property-bidi-whitespace-tests: Likewise.
27924         * modules/unictype/property-byname-tests: Likewise.
27925         * modules/unictype/property-combining-tests: Likewise.
27926         * modules/unictype/property-composite-tests: Likewise.
27927         * modules/unictype/property-currency-symbol-tests: Likewise.
27928         * modules/unictype/property-dash-tests: Likewise.
27929         * modules/unictype/property-decimal-digit-tests: Likewise.
27930         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
27931         * modules/unictype/property-deprecated-tests: Likewise.
27932         * modules/unictype/property-diacritic-tests: Likewise.
27933         * modules/unictype/property-extender-tests: Likewise.
27934         * modules/unictype/property-format-control-tests: Likewise.
27935         * modules/unictype/property-grapheme-base-tests: Likewise.
27936         * modules/unictype/property-grapheme-extend-tests: Likewise.
27937         * modules/unictype/property-grapheme-link-tests: Likewise.
27938         * modules/unictype/property-hex-digit-tests: Likewise.
27939         * modules/unictype/property-hyphen-tests: Likewise.
27940         * modules/unictype/property-id-continue-tests: Likewise.
27941         * modules/unictype/property-id-start-tests: Likewise.
27942         * modules/unictype/property-ideographic-tests: Likewise.
27943         * modules/unictype/property-ids-binary-operator-tests: Likewise.
27944         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
27945         * modules/unictype/property-ignorable-control-tests: Likewise.
27946         * modules/unictype/property-iso-control-tests: Likewise.
27947         * modules/unictype/property-join-control-tests: Likewise.
27948         * modules/unictype/property-left-of-pair-tests: Likewise.
27949         * modules/unictype/property-line-separator-tests: Likewise.
27950         * modules/unictype/property-logical-order-exception-tests: Likewise.
27951         * modules/unictype/property-lowercase-tests: Likewise.
27952         * modules/unictype/property-math-tests: Likewise.
27953         * modules/unictype/property-non-break-tests: Likewise.
27954         * modules/unictype/property-not-a-character-tests: Likewise.
27955         * modules/unictype/property-numeric-tests: Likewise.
27956         * modules/unictype/property-other-alphabetic-tests: Likewise.
27957         * modules/unictype/property-other-default-ignorable-code-point-tests:
27958         Likewise.
27959         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
27960         * modules/unictype/property-other-id-continue-tests: Likewise.
27961         * modules/unictype/property-other-id-start-tests: Likewise.
27962         * modules/unictype/property-other-lowercase-tests: Likewise.
27963         * modules/unictype/property-other-math-tests: Likewise.
27964         * modules/unictype/property-other-uppercase-tests: Likewise.
27965         * modules/unictype/property-paired-punctuation-tests: Likewise.
27966         * modules/unictype/property-paragraph-separator-tests: Likewise.
27967         * modules/unictype/property-pattern-syntax-tests: Likewise.
27968         * modules/unictype/property-pattern-white-space-tests: Likewise.
27969         * modules/unictype/property-private-use-tests: Likewise.
27970         * modules/unictype/property-punctuation-tests: Likewise.
27971         * modules/unictype/property-quotation-mark-tests: Likewise.
27972         * modules/unictype/property-radical-tests: Likewise.
27973         * modules/unictype/property-sentence-terminal-tests: Likewise.
27974         * modules/unictype/property-soft-dotted-tests: Likewise.
27975         * modules/unictype/property-space-tests: Likewise.
27976         * modules/unictype/property-terminal-punctuation-tests: Likewise.
27977         * modules/unictype/property-test-tests: Likewise.
27978         * modules/unictype/property-titlecase-tests: Likewise.
27979         * modules/unictype/property-unassigned-code-value-tests: Likewise.
27980         * modules/unictype/property-unified-ideograph-tests: Likewise.
27981         * modules/unictype/property-uppercase-tests: Likewise.
27982         * modules/unictype/property-variation-selector-tests: Likewise.
27983         * modules/unictype/property-white-space-tests: Likewise.
27984         * modules/unictype/property-xid-continue-tests: Likewise.
27985         * modules/unictype/property-xid-start-tests: Likewise.
27986         * modules/unictype/property-zero-width-tests: Likewise.
27987         * modules/unictype/scripts-tests: Likewise.
27988         * modules/unictype/syntax-c-ident-tests: Likewise.
27989         * modules/unictype/syntax-c-whitespace-tests: Likewise.
27990         * modules/unictype/syntax-java-ident-tests: Likewise.
27991         * modules/unictype/syntax-java-whitespace-tests: Likewise.
27992         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
27993         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
27994         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
27995         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
27996         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
27997         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
27998         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
27999         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28000         * modules/uniname/uniname-tests: Likewise.
28001         * modules/uninorm/canonical-decomposition-tests: Likewise.
28002         * modules/uninorm/compat-decomposition-tests: Likewise.
28003         * modules/uninorm/composition-tests: Likewise.
28004         * modules/uninorm/decomposing-form-tests: Likewise.
28005         * modules/uninorm/decomposition-tests: Likewise.
28006         * modules/uninorm/filter-tests: Likewise.
28007         * modules/uninorm/nfc-tests: Likewise.
28008         * modules/uninorm/nfd-tests: Likewise.
28009         * modules/uninorm/nfkc-tests: Likewise.
28010         * modules/uninorm/nfkd-tests: Likewise.
28011         * modules/uninorm/u8-normcmp-tests: Likewise.
28012         * modules/uninorm/u8-normcoll-tests: Likewise.
28013         * modules/uninorm/u16-normcmp-tests: Likewise.
28014         * modules/uninorm/u16-normcoll-tests: Likewise.
28015         * modules/uninorm/u32-normcmp-tests: Likewise.
28016         * modules/uninorm/u32-normcoll-tests: Likewise.
28017         * modules/unistdio/u8-asnprintf-tests: Likewise.
28018         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28019         * modules/unistdio/u8-vasprintf-tests: Likewise.
28020         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28021         * modules/unistdio/u8-vsprintf-tests: Likewise.
28022         * modules/unistdio/u16-asnprintf-tests: Likewise.
28023         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28024         * modules/unistdio/u16-vasprintf-tests: Likewise.
28025         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28026         * modules/unistdio/u16-vsprintf-tests: Likewise.
28027         * modules/unistdio/u32-asnprintf-tests: Likewise.
28028         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28029         * modules/unistdio/u32-vasprintf-tests: Likewise.
28030         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28031         * modules/unistdio/u32-vsprintf-tests: Likewise.
28032         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28033         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28034         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28035         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28036         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28037         * modules/unistr/u8-check-tests: Likewise.
28038         * modules/unistr/u8-chr-tests: Likewise.
28039         * modules/unistr/u8-cmp-tests: Likewise.
28040         * modules/unistr/u8-cmp2-tests: Likewise.
28041         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28042         * modules/unistr/u8-cpy-tests: Likewise.
28043         * modules/unistr/u8-mblen-tests: Likewise.
28044         * modules/unistr/u8-mbsnlen-tests: Likewise.
28045         * modules/unistr/u8-mbtouc-tests: Likewise.
28046         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28047         * modules/unistr/u8-mbtoucr-tests: Likewise.
28048         * modules/unistr/u8-move-tests: Likewise.
28049         * modules/unistr/u8-next-tests: Likewise.
28050         * modules/unistr/u8-prev-tests: Likewise.
28051         * modules/unistr/u8-set-tests: Likewise.
28052         * modules/unistr/u8-stpcpy-tests: Likewise.
28053         * modules/unistr/u8-stpncpy-tests: Likewise.
28054         * modules/unistr/u8-strcat-tests: Likewise.
28055         * modules/unistr/u8-strcmp-tests: Likewise.
28056         * modules/unistr/u8-strcoll-tests: Likewise.
28057         * modules/unistr/u8-strcpy-tests: Likewise.
28058         * modules/unistr/u8-strdup-tests: Likewise.
28059         * modules/unistr/u8-strlen-tests: Likewise.
28060         * modules/unistr/u8-strmblen-tests: Likewise.
28061         * modules/unistr/u8-strmbtouc-tests: Likewise.
28062         * modules/unistr/u8-strncat-tests: Likewise.
28063         * modules/unistr/u8-strncmp-tests: Likewise.
28064         * modules/unistr/u8-strncpy-tests: Likewise.
28065         * modules/unistr/u8-strnlen-tests: Likewise.
28066         * modules/unistr/u8-to-u16-tests: Likewise.
28067         * modules/unistr/u8-to-u32-tests: Likewise.
28068         * modules/unistr/u8-uctomb-tests: Likewise.
28069         * modules/unistr/u16-check-tests: Likewise.
28070         * modules/unistr/u16-chr-tests: Likewise.
28071         * modules/unistr/u16-cmp-tests: Likewise.
28072         * modules/unistr/u16-cmp2-tests: Likewise.
28073         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28074         * modules/unistr/u16-cpy-tests: Likewise.
28075         * modules/unistr/u16-mblen-tests: Likewise.
28076         * modules/unistr/u16-mbsnlen-tests: Likewise.
28077         * modules/unistr/u16-mbtouc-tests: Likewise.
28078         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28079         * modules/unistr/u16-mbtoucr-tests: Likewise.
28080         * modules/unistr/u16-move-tests: Likewise.
28081         * modules/unistr/u16-next-tests: Likewise.
28082         * modules/unistr/u16-prev-tests: Likewise.
28083         * modules/unistr/u16-set-tests: Likewise.
28084         * modules/unistr/u16-stpcpy-tests: Likewise.
28085         * modules/unistr/u16-stpncpy-tests: Likewise.
28086         * modules/unistr/u16-strcat-tests: Likewise.
28087         * modules/unistr/u16-strcmp-tests: Likewise.
28088         * modules/unistr/u16-strcoll-tests: Likewise.
28089         * modules/unistr/u16-strcpy-tests: Likewise.
28090         * modules/unistr/u16-strdup-tests: Likewise.
28091         * modules/unistr/u16-strlen-tests: Likewise.
28092         * modules/unistr/u16-strmblen-tests: Likewise.
28093         * modules/unistr/u16-strmbtouc-tests: Likewise.
28094         * modules/unistr/u16-strncat-tests: Likewise.
28095         * modules/unistr/u16-strncmp-tests: Likewise.
28096         * modules/unistr/u16-strncpy-tests: Likewise.
28097         * modules/unistr/u16-strnlen-tests: Likewise.
28098         * modules/unistr/u16-to-u32-tests: Likewise.
28099         * modules/unistr/u16-to-u8-tests: Likewise.
28100         * modules/unistr/u16-uctomb-tests: Likewise.
28101         * modules/unistr/u32-check-tests: Likewise.
28102         * modules/unistr/u32-chr-tests: Likewise.
28103         * modules/unistr/u32-cmp-tests: Likewise.
28104         * modules/unistr/u32-cmp2-tests: Likewise.
28105         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28106         * modules/unistr/u32-cpy-tests: Likewise.
28107         * modules/unistr/u32-mblen-tests: Likewise.
28108         * modules/unistr/u32-mbsnlen-tests: Likewise.
28109         * modules/unistr/u32-mbtouc-tests: Likewise.
28110         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28111         * modules/unistr/u32-mbtoucr-tests: Likewise.
28112         * modules/unistr/u32-move-tests: Likewise.
28113         * modules/unistr/u32-next-tests: Likewise.
28114         * modules/unistr/u32-prev-tests: Likewise.
28115         * modules/unistr/u32-set-tests: Likewise.
28116         * modules/unistr/u32-stpcpy-tests: Likewise.
28117         * modules/unistr/u32-stpncpy-tests: Likewise.
28118         * modules/unistr/u32-strcat-tests: Likewise.
28119         * modules/unistr/u32-strcmp-tests: Likewise.
28120         * modules/unistr/u32-strcoll-tests: Likewise.
28121         * modules/unistr/u32-strcpy-tests: Likewise.
28122         * modules/unistr/u32-strdup-tests: Likewise.
28123         * modules/unistr/u32-strlen-tests: Likewise.
28124         * modules/unistr/u32-strmblen-tests: Likewise.
28125         * modules/unistr/u32-strmbtouc-tests: Likewise.
28126         * modules/unistr/u32-strncat-tests: Likewise.
28127         * modules/unistr/u32-strncmp-tests: Likewise.
28128         * modules/unistr/u32-strncpy-tests: Likewise.
28129         * modules/unistr/u32-strnlen-tests: Likewise.
28130         * modules/unistr/u32-to-u16-tests: Likewise.
28131         * modules/unistr/u32-to-u8-tests: Likewise.
28132         * modules/unistr/u32-uctomb-tests: Likewise.
28133         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28134         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28135         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28136         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28137         * modules/uniwidth/u8-strwidth-tests: Likewise.
28138         * modules/uniwidth/u8-width-tests: Likewise.
28139         * modules/uniwidth/u16-strwidth-tests: Likewise.
28140         * modules/uniwidth/u16-width-tests: Likewise.
28141         * modules/uniwidth/u32-strwidth-tests: Likewise.
28142         * modules/uniwidth/u32-width-tests: Likewise.
28143         * modules/uniwidth/width-tests: Likewise.
28144
28145 2010-05-18  Richard Jones  <rjones@redhat.com>
28146
28147         doc: users.txt: list hivex
28148         * users.txt: Add hivex.
28149
28150 2010-05-18  Richard Jones  <rjones@redhat.com>
28151
28152         doc: users.txt: list febootstrap
28153         * users.txt: Add febootstrap.
28154
28155 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28156
28157         bootstrap: fix an error when gnulib is not used as a git submodule
28158         * build-aux/bootstrap (gnulib_path): If its length is zero then
28159         assign "gnulib" to it.
28160         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28161
28162 2010-05-16  Bruno Haible  <bruno@clisp.org>
28163
28164         Avoid autoconf warnings about AM_ICONV.
28165         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28166         2.64.
28167
28168 2010-05-16  Bruno Haible  <bruno@clisp.org>
28169
28170         absolute-header: Make the macro usable in more situations.
28171         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28172         from gl_ABSOLUTE_HEADER.
28173         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28174
28175 2010-05-16  James Youngman  <jay@gnu.org>
28176
28177         doc: update users.txt
28178         * users.txt: Add CSSC.
28179
28180 2010-05-16  Jim Meyering  <meyering@redhat.com>
28181
28182         init.sh: fix an error in the previous change; add more comments
28183         * tests/init.sh: Compare exit code in loop against 9, not 2.
28184         Patch by Bruno Haible.
28185         Make the two tests more similar by adding an empty "then" clause.
28186         Add comments.
28187
28188         init.sh: avoid unnecessary shell re-exec
28189         * tests/init.sh: Improve the re-exec-required check to first test the
28190         current shell.  If it passes the test, do not search for a shell that
28191         does pass, and do not re-exec.  This test is particularly contorted to
28192         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28193         of $(...) evokes a syntax error and causes immediate shell exit with
28194         status 2.  Bruno Haible reported that the re-exec made it impossible
28195         to single-step through any init.sh-using script.
28196
28197 2010-05-16  Bruno Haible  <bruno@clisp.org>
28198
28199         Fix collision between gnulib's and libintl's printf replacements.
28200         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28201         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28202         (printf): When using GNU C, map the __printf__ function to rpl_printf
28203         via __asm__. When not using GNU C, define rpl_printf instead of
28204         __printf__.
28205         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28206         commit.
28207         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28208         commit.
28209         * m4/asm-underscore.m4: New file.
28210         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28211         * modules/stdio (Files): Add m4/asm-underscore.m4.
28212         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28213         Reported by Ben Pfaff.
28214
28215 2010-05-16  Bruno Haible  <bruno@clisp.org>
28216
28217         verify: Avoid skipping the test on openSUSE 11.0.
28218         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28219
28220 2010-05-13  Bruno Haible  <bruno@clisp.org>
28221
28222         Avoid useless warnings from G++.
28223         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28224         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28225         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28226
28227 2010-05-11  Jim Meyering  <meyering@redhat.com>
28228
28229         maint.mk: tweak preceding change
28230         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28231         regexps tighter by anchoring at EOL, and make the new group "shy"
28232         for slightly decreased overhead.
28233
28234 2010-05-11  Eric Blake  <eblake@redhat.com>
28235
28236         maint.mk: gnulib doesn't guarantee NSIG
28237         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28238
28239 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28240
28241         test-pwrite.c: Remove unused variable declaration.
28242         * tests/test-pwrite.c (main): Remove read_buf declaration.
28243
28244         Remove useless test-pwrite.sh file.
28245         * tests/test-pwrite.sh: Delete file.
28246         * modules/pwrite-tests: Remove references.
28247         Reported by Bruno Haible.
28248
28249 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28250
28251         init.sh: fix a typo
28252         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28253
28254 2010-05-10  Jim Meyering  <meyering@redhat.com>
28255
28256         maint.mk: avoid using a temporary file in the always-defined-macros check
28257         * top/maint.mk (.re-defmac): Remove rule.
28258         (gl_trap_): Remove definition.
28259         (sc_prohibit_always-defined_macros): Rewrite not to create and
28260         depend on a temporary file.  Instead, depend on GNU grep's ability
28261         to read a list of regular expressions from stdin when given "-f -".
28262
28263 2010-05-09  Bruno Haible  <bruno@clisp.org>
28264
28265         Update to GNU gettext 0.18, part 1.
28266         * m4/gettext.m4: Update to GNU gettext 0.18.
28267         * m4/intl.m4: Likewise.
28268         * m4/po.m4: Likewise.
28269         * modules/gettext (Files): Add m4/fcntl-o.m4.
28270         (configure.ac): Require gettext infrastructure from version 0.18.
28271
28272 2010-05-09  Jim Meyering  <meyering@redhat.com>
28273
28274         init.sh: enable MALLOC_PERTURB_
28275         * tests/init.sh: Enable glibc's malloc-perturbing option.
28276
28277         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28278         With my recent change in init.sh from the two-line form:
28279             -#   : ${srcdir=.}
28280             -#   . "$srcdir/init.sh"; path_prepend_ .
28281             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28282         I noticed that using the one-line form would cause this test
28283         to fail with a false-positive, or to stop working altogether,
28284         depending on whether help-version changed or all the tests did.
28285         * top/maint.mk (_hv_regex): Remove this definition.
28286         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28287         (_hv_regex_strong): Use a stronger regex to check for conformance.
28288         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28289         Give a separate diagnostic for lack of conforming use.
28290
28291         maint.mk: prohibit definition of symbols defined by gnulib
28292         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28293         definition of symbols defined by gnulib.
28294
28295 2010-05-09  Bruno Haible  <bruno@clisp.org>
28296
28297         acl: Avoid test failure on Cygwin-hosted mingw.
28298         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28299
28300 2010-05-09  Bruno Haible  <bruno@clisp.org>
28301
28302         error: Use system's fcntl function.
28303         * lib/error.c (fcntl): Undefine.
28304
28305 2010-05-09  Jim Meyering  <meyering@redhat.com>
28306
28307         verify: adjust formatting to be more consistent
28308         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28309         argument-list '('s, and after one comma.
28310
28311 2010-05-09  Bruno Haible  <bruno@clisp.org>
28312
28313         error: More reliable output on mingw.
28314         * lib/error.c: Include <windows.h>.
28315         (is_open): New function.
28316         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28317         defined.
28318
28319 2010-05-09  Bruno Haible  <bruno@clisp.org>
28320
28321         vasnprintf: Fix syntax errors in libintl build on mingw.
28322         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28323         pad_ourselves and prec_ourselves after use.
28324
28325 2010-05-08  Bruno Haible  <bruno@clisp.org>
28326
28327         * lib/config.charset: Update comments for Cygwin 1.7.
28328         * lib/localcharset.c: Likewise.
28329
28330 2010-05-07  Jim Meyering  <meyering@redhat.com>
28331
28332         init.sh: improve comments
28333         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28334         . "${srcdir=.}/init.sh"; path_prepend_ .
28335         Add a note about path_prepend_ and the alternative of using
28336         TESTS_ENVIRONMENT.
28337
28338 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28339
28340         exclude: Unescape hashed patterns in wildcard mode.
28341         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28342         to the hash list.
28343         * tests/test-exclude8.sh: New test case.
28344         * modules/exclude-tests: Add new test.
28345
28346 2010-05-05  Eric Blake  <eblake@redhat.com>
28347
28348         verify: automate tests
28349         * modules/verify-tests: New module.
28350         * tests/test-verify.sh: New file.
28351         * tests/test-verify.c: Guard each negative test with a unique id.
28352         Also avoid warning about unused left hand of comma expressions.
28353
28354 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28355
28356         Further improvements to verify.h, suggested by Eric Blake.
28357         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28358         the GL_* versions, to avoid collision with OpenGL.
28359         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28360         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28361         than testing merely whether it's defined.
28362
28363         Modify verify.h to pacify gcc -Wredundant_decls.
28364         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28365         These use the prefix "GL_" since they're likely to be useful elsewhere.
28366         We may need to break them out into a different .h file.
28367         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28368         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28369         of verify_function__.
28370
28371 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28372
28373         Tests for module pwrite.
28374         * modules/pwrite-tests: New file.
28375         * tests/test-pwrite.sh: New file.
28376         * tests/test-pwrite.c: New file.
28377
28378         New module pwrite.
28379         * lib/unistd.in.h (pwrite): New declaration.
28380         * lib/pwrite.c: New file, from glibc with modifications.
28381         * m4/pwrite.m4: New file.
28382         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28383         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28384         REPLACE_PWRITE.
28385         * modules/pwrite: New file.
28386         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28387         REPLACE_PWRITE.
28388         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28389         * doc/posix-functions/pwrite.texi: Mention the new module.
28390
28391 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28392
28393         pread: Update documentation.
28394         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28395
28396 2010-05-04  Eric Blake  <eblake@redhat.com>
28397
28398         docs: update cygwin progress
28399         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28400         this bug.
28401         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28402         Added in cygwin 1.7.2.
28403         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28404         Likewise.
28405         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28406         Likewise.
28407         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28408         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28409         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28410         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28411         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28412         Mention nproc module.
28413         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28414         bug in cygwin 1.7.5 addition.
28415         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28416         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28417         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28418         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28419         1.7.5.
28420         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28421         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28422         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28423         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28424         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28425         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28426         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28427         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28428         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28429         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28430         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28431         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28432         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28433         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28434         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28435         Likewise.
28436         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28437         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28438         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28439         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28440         Likewise.
28441         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28442         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28443         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28444         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28445         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28446         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28447         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28448         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28449         Likewise.
28450         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28451         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28452         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28453         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28454         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28455         Likewise.
28456         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28457         Likewise.
28458         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28459         Likewise.
28460         * doc/glibc-functions/xdrrec_endofrecord.texi
28461         (xdrrec_endofrecord): Likewise.
28462         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28463         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28464         Likewise.
28465         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28466         Likewise.
28467
28468 2010-05-04  Jim Meyering  <meyering@redhat.com>
28469
28470         gendocs.sh: make its "-s FILE" option more useful
28471         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28472         $PACKAGE to reflect the probably-different basename of "FILE".
28473
28474 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28475
28476         bootstrap: don't ignore download_po_files failure
28477         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28478         failure.
28479
28480 2010-05-03  Jim Meyering  <meyering@redhat.com>
28481
28482         maint.mk: allow to pass options to gendocs.sh
28483         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28484         (gendocs_options_): New overridable variable.
28485
28486         gnu-web-doc-update: don't ignore configure or build failure
28487         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28488
28489         announce-gen: backslash-escape '@'s in --help output
28490         * build-aux/announce-gen: Fix syntax errors.
28491
28492         maint.mk, announce-gen: allow project-specific announcement mail headers
28493         * top/maint.mk (translation_project_): Define default.
28494         (announcement_Cc_, announcement_mail_headers_): Likewise.
28495         (announcement): Invoke announce-gen with new --mail-headers option.
28496         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28497
28498         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28499         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28500         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28501         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28502         line in the "err2" output file when running "make check" in verbose
28503         mode (i.e., with set -x enabled).
28504
28505 2010-05-03  Bruno Haible  <bruno@clisp.org>
28506
28507         wctob: Fix for weird platforms.
28508         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28509         argument value.
28510
28511 2010-05-03  Jim Meyering  <meyering@redhat.com>
28512
28513         maint.mk: prohibit unwarranted use of <strings.h>
28514         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28515         strings.h in a file that does not also use strcasecmp, strncasecmp,
28516         ffs or ffsll.
28517
28518         maint.mk: remove obsolete comments
28519         * top/maint.mk: Remove stale, commented-out rules.
28520
28521 2010-05-02  Bruno Haible  <bruno@clisp.org>
28522
28523         wcwidth: Declare also when it's aliased.
28524         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28525         macro.
28526
28527 2010-05-02  Bruno Haible  <bruno@clisp.org>
28528
28529         Fix regression from 2010-04-25.
28530         * gnulib-tool (func_modules_transitive_closure): Check the status of
28531         all modules, not only of the tests that are of the form foo-tests where
28532         foo is a module.
28533
28534 2010-05-02  Bruno Haible  <bruno@clisp.org>
28535
28536         wctob: Work around nasty Cygwin 1.7.2 bug.
28537         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28538         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28539
28540 2010-05-01  Bruno Haible  <bruno@clisp.org>
28541
28542         fpurge: Sharper test.
28543         * tests/test-fpurge.c (main): Add one more ftell check.
28544         * modules/fpurge-tests (Depends-on): Add ftell.
28545         Suggested by Eric Blake.
28546
28547 2010-05-01  Bruno Haible  <bruno@clisp.org>
28548
28549         ftello: Another test.
28550         * tests/test-ftello3.c: New file.
28551         * modules/ftello-tests (Files): Add it.
28552         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28553         MOSTLYCLEANFILES.
28554
28555         ftell: Another test.
28556         * tests/test-ftell3.c: New file.
28557         * modules/ftell-tests (Files): Add it.
28558         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28559         MOSTLYCLEANFILES.
28560
28561 2010-05-01  Bruno Haible  <bruno@clisp.org>
28562
28563         ftell, ftello: Work around Solaris bug.
28564         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28565         * lib/ftello.c: Include stdio-impl.h.
28566         (ftello): On Solaris, when _IOWRT is set, compute the result without
28567         looking at _IOREAD.
28568         * modules/ftello (Files): Add lib/stdio-impl.h.
28569         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28570         * doc/posix-functions/ftello.texi: Likewise.
28571         Reported by Eric Blake.
28572
28573 2010-05-01  Bruno Haible  <bruno@clisp.org>
28574
28575         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28576         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28577         the _IOWRT flag is also set.
28578
28579 2010-05-01  Bruno Haible  <bruno@clisp.org>
28580
28581         Fix doc about a HP-UX stdio bug.
28582         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28583         * doc/posix-functions/ftello.texi: Likewise.
28584
28585 2010-05-01  Bruno Haible  <bruno@clisp.org>
28586
28587         lseek test: Fix failure on Solaris.
28588         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28589         output.
28590
28591 2010-04-30  Jim Meyering  <meyering@redhat.com>
28592
28593         bootstrap: don't ignore failure to generate po*/Makevars
28594         * build-aux/bootstrap (with_gettext): Don't ignore failure
28595         to create po/Makevars or runtime-po/Makevars.
28596
28597 2010-04-29  Eric Blake  <eblake@redhat.com>
28598
28599         headers: relax license to LGPLv2+
28600         * modules/fcntl-h (License): Relax license.
28601         * modules/getopt-posix (License): Likewise.
28602         * modules/locale (License): Likewise.
28603         * modules/math (License): Likewise.
28604         * modules/pty (License): Likewise.
28605         * modules/sched (License): Likewise.
28606         * modules/search (License): Likewise.
28607         * modules/spawn (License): Likewise.
28608         * modules/stdarg (License): Likewise.
28609         * modules/sysexits (License): Likewise.
28610
28611 2010-04-29  Jim Meyering  <meyering@redhat.com>
28612
28613         inttypes: relax license to LGPLv2+
28614         * modules/inttypes (License): Relax license.
28615
28616 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28617
28618         * top/maint.mk (indent): Run twice to produce idempotent results.
28619
28620 2010-04-28  Bruno Haible  <bruno@clisp.org>
28621
28622         getdate: Generate getdate.c in the source directory.
28623         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28624         MOSTLYCLEANFILES.
28625         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28626
28627 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28628
28629         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28630         is not declared as a const *; avoid warnings in that case.
28631
28632 2010-04-28  Eric Blake  <eblake@redhat.com>
28633
28634         canonicalize-lgpl: avoid compiler warning
28635         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28636         declaration' / 'extraneous semicolon' warning with some compilers.
28637         Reported by Andreas Gruenbacher.
28638
28639 2010-04-28  Jim Meyering  <meyering@redhat.com>
28640
28641         init.sh: ensure a more reliable exit status when exiting via trap
28642         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28643         Inspired by patches from Dmitry V. Levin.
28644         Also trap on signal 3 (SIGQUIT).
28645
28646 2010-04-27  Bruno Haible  <bruno@clisp.org>
28647
28648         Update doc about utimes().
28649         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28650         'utimens' module.
28651         Reported by Andreas Gruenbacher <agruen@suse.de>.
28652
28653 2010-04-27  Eric Blake  <eblake@redhat.com>
28654
28655         full-read, full-write: relax license
28656         * modules/full-read (License): Drop to LGPLv2+.
28657         * modules/full-write (License): Likewise.
28658         * modules/safe-read (License): Likewise.
28659         * modules/safe-write (License): Likewise.
28660
28661         pthread: mention library for linking
28662         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28663
28664 2010-04-27  Jim Meyering  <meyering@redhat.com>
28665
28666         maint.mk: fix a bug introduced in last change
28667         * top/maint.mk (gl_assured_headers_): Now that all names are on
28668         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28669         is not anchored to end of word, it should be adequate.
28670
28671         maint.mk: avoid side-effect in latest syntax-check
28672         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28673         to run commands via $(shell...), and hence to incur cost only when
28674         the new rule is actually run.
28675
28676         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28677         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28678         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28679         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28680         (gl_assured_headers_, az_, AZ_): Define.
28681         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28682
28683 2010-04-26  Jim Meyering  <jim@meyering.net>
28684             Bruno Haible  <bruno@clisp.org>
28685
28686         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28687         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28688         Prompted by an exchange with Gilles Espinasse.
28689
28690 2010-04-26  Jim Meyering  <meyering@redhat.com>
28691
28692         git-version-gen: aesthetic tweak
28693         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28694         so that the command remains on a single line.
28695
28696 2010-04-26  Eric Blake  <eblake@redhat.com>
28697
28698         git-version-gen: allow use on EBCDIC hosts
28699         * build-aux/git-version-gen (dirty): Use literal rather than tying
28700         ourselves to ascii.
28701         Reported by Steve Goetze.
28702
28703 2010-04-25  Bruno Haible  <bruno@clisp.org>
28704
28705         netdb: Add support for GNULIB_POSIXCHECK.
28706         * lib/netdb.in.h: Include warn-on-use.h.
28707         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28708         functions are used when GNULIB_POSIXCHECK is defined and the
28709         getaddrinfo module is not in use.
28710         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28711         freeaddrinfo, gai_strerror, getnameinfo are declared.
28712         * modules/netdb (Depends-on): Add warn-on-use.
28713         (Makefile.am): Include warn-on-use.h in netdb.h.
28714
28715 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28716
28717         build: avoid "make check" failure without .git/ directory
28718         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28719         there is no .git/ directory.
28720
28721 2010-04-25  Bruno Haible  <bruno@clisp.org>
28722
28723         ptsname: Fix misuse of ttyname_r.
28724         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28725         of errno.
28726
28727 2010-04-25  Bruno Haible  <bruno@clisp.org>
28728
28729         ttyname_r: Make it work on Solaris 10.
28730         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28731         if the system function has the POSIX declaration. Test whether the
28732         function fails if the buffer is less than 128 bytes large.
28733         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28734         system's ttyname_r function. Provide a reasonably large buffer.
28735         * modules/ttyname_r (Depends-on): Add extensions.
28736         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28737
28738 2010-04-25  Bruno Haible  <bruno@clisp.org>
28739
28740         Use the 'extensions' module for some more functions on Solaris.
28741         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28742         module.
28743         * doc/posix-functions/ctime_r.texi: Likewise.
28744         * doc/posix-functions/getgrgid_r.texi: Likewise.
28745         * doc/posix-functions/getgrnam_r.texi: Likewise.
28746         * doc/posix-functions/getpwnam_r.texi: Likewise.
28747         * doc/posix-functions/getpwuid_r.texi: Likewise.
28748         * doc/posix-functions/readdir_r.texi: Likewise.
28749         * doc/posix-functions/sigwait.texi: Likewise.
28750         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28751         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28752
28753 2010-04-25  Bruno Haible  <bruno@clisp.org>
28754
28755         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28756         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28757         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28758         * lib/ttyname_r.c: Include <limits.h>.
28759         (ttyname_r): Define using the system's ttyname_r function, if it exists
28760         and not on Solaris.
28761         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28762         set.
28763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28764         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28765         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28766         Reported by Simon Josefsson.
28767
28768 2010-04-25  Bruno Haible  <bruno@clisp.org>
28769
28770         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28771         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
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/getlogin_r.texi: Likewise.
28776         * doc/posix-functions/getpwnam_r.texi: Likewise.
28777         * doc/posix-functions/getpwuid_r.texi: Likewise.
28778         * doc/posix-functions/readdir_r.texi: Likewise.
28779         * doc/posix-functions/sigwait.texi: Likewise.
28780         * doc/posix-functions/ttyname_r.texi: Likewise.
28781         Reported by Simon Josefsson.
28782
28783 2010-04-25  Bruno Haible  <bruno@clisp.org>
28784
28785         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28786         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28787         also to --create-testdir.
28788         (func_acceptable): Don't consider the status of *-tests modules here.
28789         (func_modules_transitive_closure): Consider it here, before including a
28790         test module.
28791         (func_import, func_create_testdir): Set inc_all_direct_tests,
28792         inc_all_indirect_tests.
28793         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28794         --create-testdir and --create-megatestdir.
28795
28796 2010-04-25  Bruno Haible  <bruno@clisp.org>
28797
28798         gnulib-tool: Add --without-*-tests options.
28799         * gnulib-tool (func_usage): Document the --without-*-tests options.
28800         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28801         excl_unportable_tests): New variables.
28802         Fail if they are specified with --import or --update.
28803         (func_acceptable): Respect the excl_*_tests variables.
28804         (func_import): Set the excl_*_tests variables to empty.
28805
28806 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28807             Bruno Haible  <bruno@clisp.org>
28808
28809         Work around a MacOS X 10.4 bug with openpty.
28810         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28811         * tests/test-openpty.c (main): Close the master side explicitly.
28812
28813 2010-04-25  Bruno Haible  <bruno@clisp.org>
28814
28815         strnlen: Fix a C++ test error on MacOS X and Solaris.
28816         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28817         the function is not declared.
28818         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28819         Simon Josefsson.
28820
28821 2010-04-24  Bruno Haible  <bruno@clisp.org>
28822
28823         Avoid a gcc warning.
28824         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28825         of correct type for %08lx directive.
28826         Reported by Eric Blake.
28827
28828 2010-04-24  Bruno Haible  <bruno@clisp.org>
28829
28830         vasnprintf: Correct errno value in case of out-of-memory.
28831         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
28832         or sprintf. Use the errno value from SNPRINTF or sprintf.
28833         Reported by Ian Beckwith <ianb@erislabs.net>.
28834
28835 2010-04-24  Bruno Haible  <bruno@clisp.org>
28836
28837         ansi-c++-opt: Find correct compiler when cross-compiling.
28838         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
28839         AC_CHECK_PROGS.
28840         Reported by Simon Josefsson.
28841
28842 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
28843
28844         vc-list-files: Add support for subversion
28845         * build-aux/vc-list-files: Use "svn list" to generate the list of
28846         files controlled by subversion.
28847
28848 2010-04-23  Jim Meyering  <meyering@redhat.com>
28849
28850         vc-list-files tests: convert to use init.sh
28851         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
28852         path_prepend_.
28853         Use Exit, not exit.
28854         Use skip_ rather than open coding it.
28855         Remove trap set-up and compare definitions.
28856         * tests/test-vc-list-files-git.sh: Likewise.
28857         * modules/vc-list-files-tests (Files): Add tests/init.sh.
28858
28859 2010-04-22  Simon Josefsson  <simon@josefsson.org>
28860
28861         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
28862         backup files.
28863
28864 2010-04-21  Simon Josefsson  <simon@josefsson.org>
28865
28866         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
28867
28868 2010-04-20  Eric Blake  <eblake@redhat.com>
28869
28870         tests: be robust to ignored SIGPIPE
28871         * tests/test-select-in.sh: Consume all output.
28872         * tests/test-lseek.sh: Check correct exit status, while avoiding
28873         EPIPE.
28874
28875 2010-04-20  Simon Josefsson  <simon@josefsson.org>
28876             Bruno Haible  <bruno@clisp.org>
28877
28878         visibility: Don't use -fvisibility if it leads to a warning.
28879         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
28880         yes, don't pretend that visibility works if it leads to a warning.
28881         Reported by Mike Gran <spk121@yahoo.com>.
28882
28883 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
28884
28885         * build-aux/bootstrap: Use "git -h" for testing for supported options
28886         instead of "git --help".  The short-form option only shows a summary,
28887         and doesn't layout the full man page.  Grep for the full option name
28888         in the summary, too.
28889
28890 2010-04-19  Bruno Haible  <bruno@clisp.org>
28891
28892         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
28893         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
28894         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
28895         mention of RELOCATABLE_STRIP.
28896         Reported by Sylvain Beucler <beuc@beuc.net>.
28897
28898 2010-04-19  Bruno Haible  <bruno@clisp.org>
28899
28900         * lib/diffseq.h: Fix typo in comment.
28901         Reported by Eric Blake.
28902
28903 2010-04-19  Bruno Haible  <bruno@clisp.org>
28904
28905         ioctl: Move autoconf macro to a .m4 file.
28906         * m4/ioctl.m4: New file, extracted from modules/ioctl.
28907         * modules/ioctl (Files): Add it.
28908         (configure.ac): Simply invoke gl_FUNC_IOCTL.
28909         Reported by Ian Beckwith <ianb@erislabs.net>.
28910
28911 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
28912             Bruno Haible  <bruno@clisp.org>
28913
28914         diffseq: Accommodate use-case with abstract arrays.
28915         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
28916         is not defined.
28917         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
28918         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
28919
28920 2010-04-18  Bruno Haible  <bruno@clisp.org>
28921
28922         * doc/posix-headers/stdbool.texi: More precise wording.
28923
28924 2010-04-17  Jim Meyering  <meyering@redhat.com>
28925
28926         maint.mk: use gnu-style indentation in an embedded perl script
28927         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
28928         Rename variable: s/two/last_two_bytes/
28929
28930 2010-04-16  Eric Blake  <eblake@redhat.com>
28931
28932         test-stdbool: skip test that fails with Solaris CC
28933         * tests/test-stdbool.c (f): Skip test that causes compilation
28934         error under buggy C++ compiler.
28935         * lib/stdbool.in.h: Document the limitation.
28936         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
28937
28938         setenv: allow compilation with C++
28939         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
28940         register keyword.
28941
28942         stdint: allow test to pass with C++
28943         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
28944
28945         getopt: allow compilation with C++
28946         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
28947         struct.
28948         * lib/getopt.c (_getopt_internal_r): Use correct type.
28949         Reported by Dagobert Michelson, via Joel E. Denny.
28950
28951 2010-04-16  Bruno Haible  <bruno@clisp.org>
28952
28953         Override netdb.h always.
28954         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
28955         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
28956         Reported by Ludovic Courtès <ludo@gnu.org>.
28957
28958 2010-04-15  Bruno Haible  <bruno@clisp.org>
28959
28960         openpty: Fix mistake from 2010-03-21.
28961         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
28962         Reported by Simon Josefsson.
28963
28964 2010-04-15  Eric Blake  <eblake@redhat.com>
28965
28966         test-forkpty: fix expected signature
28967         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
28968         Reported by Simon Josefsson.
28969
28970 2010-04-15  Jim Meyering  <meyering@redhat.com>
28971
28972         maint.mk: texinfo_suffix_re_: correct the default regexp
28973         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
28974
28975         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
28976         make it configurable via texinfo_suffix_re_.
28977
28978 2010-04-14  Eric Blake  <eblake@redhat.com>
28979
28980         strtok_r: relax license to LGPLv2+
28981         * modules/strtok_r (License): Relax license.
28982         Reported by Matthias Bolte.
28983
28984 2010-04-14  Simon Josefsson  <simon@josefsson.org>
28985
28986         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
28987         version 1.4.4 by default instead of requiring the libgcrypt
28988         version used during build.  This makes it possible to use the
28989         application with older but still binary compatible libgcrypt
28990         versions.
28991
28992 2010-04-13  Eric Blake  <eblake@redhat.com>
28993
28994         getopt-gnu: match recent glibc fixes and posix ruling
28995         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
28996         '+' handling, when requesting extensions.
28997         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
28998         'W;' handling.
28999         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29000         * doc/posix-functions/getopt.texi (getopt): Document this.
29001         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29002         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29003         Likewise.
29004
29005         getopt: merge bug fixes from glibc
29006         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29007         diagnostics.  Honor '+:' correctly.  Reject ';'.
29008
29009         getopt-posix: detect MacOS bug
29010         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29011         optind when missing a required argument.
29012         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29013         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29014         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29015         Likewise.
29016
29017         getopt-posix: avoid spurious failure on Solaris
29018         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29019         an indicator that setting optind=1 is sufficient for reset.
29020
29021         getopt-posix: avoid spurious failure on FreeBSD
29022         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29023         in POSIX mode, since the m4 test uses it.
29024
29025         gnulib-tool: silence warning on BSD sh
29026         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29027
29028 2010-04-13  Jim Meyering  <meyering@redhat.com>
29029
29030         doc: users.txt: GNU patch now uses gnulib
29031         * users.txt: Add patch.
29032
29033 2010-04-12  Jim Meyering  <meyering@redhat.com>
29034
29035         maint.mk: generate more concise timing data for syntax-check rules
29036         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29037         " done" from each line that reports a syntax-check test duration.
29038
29039 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29040
29041         git-version-gen: use "git update-index..." rather than "git status"
29042         * build-aux/git-version-gen: Use git update-index --refresh, not
29043         "git status".  With some versions of git, "git status" would fail
29044         to update the index and result in an unwarranted "-dirty" suffix.
29045
29046 2010-04-11  Jim Meyering  <meyering@redhat.com>
29047
29048         openat: correct formatting (no semantic change)
29049         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29050         Suggested by Bruno Haible.
29051
29052 2010-04-11  Bruno Haible  <bruno@clisp.org>
29053
29054         Stricter declaration checking in testdirs.
29055         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29056         If for_tests is true, augment AM_CPPFLAGS to define
29057         GNULIB_STRICT_CHECKING.
29058         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29059         GNULIB_STRICT_CHECKING is defined, verify that the function is
29060         declared.
29061
29062 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29063             Bruno Haible  <bruno@clisp.org>
29064
29065         libunistring: Improve configure output.
29066         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29067         Don't say "consider installing GNU libunistring" when checking again
29068         with libiconv.
29069
29070 2010-04-11  Bruno Haible  <bruno@clisp.org>
29071
29072         libunistring: Correct value of $LTLIBUNISTRING.
29073         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29074         correct the value of $LTLIBUNISTRING.
29075
29076 2010-04-11  Bruno Haible  <bruno@clisp.org>
29077
29078         havelib: Add static libraries to LIBS in the right order.
29079         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29080         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29081
29082 2010-04-11  Bruno Haible  <bruno@clisp.org>
29083
29084         libunistring: Detect libunistring also when it depends on libiconv.
29085         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29086         the second AC_LIB_HAVE_LINKFLAGS invocation.
29087
29088 2010-04-11  James Youngman  <jay@gnu.org>
29089
29090         close-stream: declare local scalars to be "const"
29091         * lib/close-stream.c (close_stream): Make boolean variables const
29092         to document the fact that we set but do not change them.
29093
29094 2010-04-11  Bruno Haible  <bruno@clisp.org>
29095
29096         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29097
29098 2010-04-11  Jim Meyering  <meyering@redhat.com>
29099
29100         maint.mk: don't include dist-check.mk
29101         * top/maint.mk: Remove bogus include directive.
29102
29103         maint.mk: improve empty-line-at-EOF check
29104         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29105         solution, rather than tail+Perl-based one.  The latter would read
29106         a few kilobytes from the end of each file, and did not handle empty
29107         files properly.
29108
29109         maint.mk: print the elapsed time for each syntax-check rule
29110         * top/maint.mk (sc_m_rules_): Save start time in a file.
29111         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29112         (local-check): Interpose the .z rules
29113
29114 2010-04-11  Jim Meyering  <meyering@redhat.com>
29115
29116         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29117         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29118         empty file with one that ends in an empty line.
29119
29120 2010-04-10  Bruno Haible  <bruno@clisp.org>
29121
29122         mkdir: Make it work on mingw64.
29123         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29124         * lib/mkdir.c: Update comment.
29125         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29126
29127 2010-04-10  Bruno Haible  <bruno@clisp.org>
29128
29129         Don't override improved macro from newer autoconf.
29130         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29131         autoconf >= 2.62.
29132         Reported by Joel E. Denny <jdenny@clemson.edu>.
29133
29134 2010-04-10  Jim Meyering  <meyering@redhat.com>
29135
29136         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29137         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29138
29139         maint.mk: correct a diagnostic
29140         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29141         in diagnostic; now use $prohibit.
29142
29143 2010-04-10  Bruno Haible  <address@hidden>
29144
29145         fchownat: Fix a C++ test error on Solaris 8.
29146         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29147         the function does not exist.
29148
29149 2010-04-10  Bruno Haible  <bruno@clisp.org>
29150
29151         vasnprintf: Add more tests.
29152         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29153         (test_function): Test converting an invalid wide string.
29154
29155         vasnprintf: Correct handling of unconvertible wide string arguments.
29156         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29157         VASNPRINTF.
29158         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29159         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29160         smaller than the expected maximum need for the directive. Set errno to
29161         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29162         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29163         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29164         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29165         * modules/vasnprintf (Files): Add m4/printf.m4.
29166         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29167
29168 2010-04-10  Bruno Haible  <bruno@clisp.org>
29169
29170         vasnprintf: Fix crash in %ls directive.
29171         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29172         string is passed as argument to %ls, with no precision and no width.
29173         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29174
29175 2010-04-10  Bruno Haible  <bruno@clisp.org>
29176
29177         vasnprintf: Fix multiple test failures on mingw.
29178         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29179         _snprintf, or snwprintf, not _snwprintf.
29180
29181 2010-04-10  Bruno Haible  <bruno@clisp.org>
29182
29183         write: Fix a C++ test error on mingw.
29184         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29185
29186 2010-04-10  Bruno Haible  <bruno@clisp.org>
29187
29188         vasnprintf test: Reduce code duplication.
29189         * tests/test-vasnprintf.c (test_function): New function, extracted from
29190         test_vasnprintf.
29191         (test_vasnprintf, test_asnprintf): Invoke it.
29192
29193 2010-04-10  Bruno Haible  <bruno@clisp.org>
29194
29195         strnlen: Fix warning in C++ mode on MacOS X.
29196         * lib/string.in.h (strnlen): Use the modern idiom.
29197         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29198         defining strnlen as a macro already in <config.h>.
29199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29200         REPLACE_STRNLEN.
29201         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29202         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29203
29204 2010-04-08  James Youngman  <jay@gnu.org>
29205
29206         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29207         the example.
29208
29209 2010-04-09  Jim Meyering  <meyering@redhat.com>
29210
29211         maint.mk: print better diagnostic when there is no $(_hv_file)
29212         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29213         announce that when $(_hv_file) (aka help-version) does not exist.
29214
29215         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29216         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29217         not try to interpret its random input bytes.  Jarno Rajahalme reported
29218         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29219         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29220         (mktempd_): Likewise, just in case.
29221
29222         ftruncate: add two years to projected module removal date: 2012
29223         * m4/ftruncate.m4: Adjust comments.
29224
29225         ftruncate: mark module as obsolete; even MinGW provides it, now
29226         * modules/ftruncate (Status): Obsolete.
29227         (Notice): Say that.
29228         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29229         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29230
29231 2010-04-08  Bruno Haible  <bruno@clisp.org>
29232
29233         Fix side effects from tests-related modules.
29234         * modules/dprintf-posix (Comment): New section.
29235         * modules/fprintf-posix (Comment): Likewise.
29236         * modules/obstack-printf-posix (Comment): Likewise.
29237         * modules/printf-posix (Comment): Likewise.
29238         * modules/snprintf-posix (Comment): Likewise.
29239         * modules/sprintf-posix (Comment): Likewise.
29240         * modules/vasnprintf-posix (Comment): Likewise.
29241         * modules/vasprintf-posix (Comment): Likewise.
29242         * modules/vdprintf-posix (Comment): Likewise.
29243         * modules/vfprintf-posix (Comment): Likewise.
29244         * modules/vprintf-posix (Comment): Likewise.
29245         * modules/vsnprintf-posix (Comment): Likewise.
29246         * modules/vsprintf-posix (Comment): Likewise.
29247         * modules/xprintf-posix (Comment): Likewise.
29248         * modules/xvasprintf-posix (Comment): Likewise.
29249         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29250         * modules/floorf-tests (Depends-on): Likewise.
29251         * modules/round-tests (Depends-on): Likewise.
29252         * modules/roundf-tests (Depends-on): Likewise.
29253         * modules/trunc-tests (Depends-on): Likewise.
29254         * modules/truncf-tests (Depends-on): Likewise.
29255         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29256         'fprintf-posix' module is not present.
29257         * tests/test-floorf2.c (check): Likewise.
29258         * tests/test-trunc2.c (check): Likewise.
29259         * tests/test-truncf2.c (check): Likewise.
29260         * tests/test-round2.c (equal): Likewise.
29261         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29262
29263 2010-04-07  Karl Berry  <karl@gnu.org>
29264
29265         * config/srclist.txt,
29266         * config/srclistvars.sh,
29267         * config/srclist-update: doc fixes.
29268
29269 2010-04-07  Jim Meyering  <meyering@redhat.com>
29270
29271         maint.mk: add a PATH crosschecking syntax-check rule
29272         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29273         Useful if you use a test like the one in help-version (coreutils,
29274         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29275         printed by prog --version.
29276
29277 2010-04-06  Bruno Haible  <bruno@clisp.org>
29278
29279         Fix link error on mingw.
29280         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29281         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29282
29283 2010-04-06  Bruno Haible  <bruno@clisp.org>
29284
29285         Assume rmdir exists.
29286         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29287
29288 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29289
29290         doc: update users.txt
29291         * users.txt: Add gcal.
29292
29293 2010-04-06  Jim Meyering  <meyering@redhat.com>
29294
29295         init.sh: simply unset TMPDIR rather than risking env -i
29296         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29297         although it probably works fine on all Unix-based systems, some
29298         systems (Cygwin?) cannot tolerate a totally cleared environment.
29299         Suggestion from Eric Blake.
29300
29301 2010-04-06  Jim Meyering  <meyering@redhat.com>
29302
29303         init.sh: portability fix: use env's POSIX-specified -i option not -u
29304         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29305         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29306
29307 2010-04-05  Bruno Haible  <bruno@clisp.org>
29308
29309         btowc: Work around Cygwin 1.7.2 bug.
29310         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29311         does not map NUL to 0.
29312         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29313
29314 2010-04-05  Bruno Haible  <bruno@clisp.org>
29315
29316         Make the multithread modules work on Cygwin 1.7.2.
29317         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29318         imported symbols can be declared weak, so that it returns "no" on
29319         Cygwin 1.7.2.
29320
29321 2010-04-05  Bruno Haible  <bruno@clisp.org>
29322
29323         Use the module 'strncat'.
29324         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29325
29326         Tests for module 'strncat'.
29327         * modules/strncat-tests: New file.
29328         * tests/test-strncat.c: New file.
29329
29330         New module 'strncat'.
29331         * lib/string.in.h (strncat): New declaration.
29332         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29333         * m4/strncat.m4: New file, based on m4/memchr.m4.
29334         * modules/strncat: New file.
29335         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29336         is declared.
29337         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29338         REPLACE_STRNCAT.
29339         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29340         REPLACE_STRNCAT.
29341         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29342         module.
29343         * tests/test-string-c++.cc: Check signature of strncat.
29344
29345 2010-04-05  Jim Meyering  <meyering@redhat.com>
29346
29347         xstrtoumax-tests: convert to use init.sh
29348         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29349         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29350         Use Exit, not exit.
29351         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29352
29353         xstrtoimax-tests: convert to use init.sh
29354         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29355         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29356         Use Exit, not exit.
29357         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29358
29359 2010-04-05  Bruno Haible  <bruno@clisp.org>
29360
29361         sys_socket: Avoid #define replacements in C++ mode.
29362         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29363         warning to the function if possible, rather than #defining the symbol
29364         to a dysfunctional alias.
29365
29366 2010-04-05  Bruno Haible  <bruno@clisp.org>
29367
29368         fseeko: Fix C++ test error on mingw.
29369         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29370         gl_FUNC_FSEEKO.
29371         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29372         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29373         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29374         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29375
29376 2010-04-05  Bruno Haible  <bruno@clisp.org>
29377
29378         duplocale: Improve test output.
29379         * tests/test-duplocale.c (main): Print reason for skipped test.
29380
29381 2010-04-05  Bruno Haible  <bruno@clisp.org>
29382
29383         Assume rmdir exists.
29384         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29385         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29386
29387 2010-04-05  Bruno Haible  <bruno@clisp.org>
29388
29389         Fix link error on Solaris 8 with cc.
29390         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29391
29392 2010-04-05  Bruno Haible  <bruno@clisp.org>
29393
29394         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29395         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29396
29397 2010-04-05  Bruno Haible  <bruno@clisp.org>
29398
29399         vasprintf: Update documentation.
29400         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29401
29402 2010-04-05  Bruno Haible  <bruno@clisp.org>
29403
29404         ptsname: Improve test.
29405         * tests/test-ptsname.c (main): Also try the various master names of BSD
29406         systems.
29407
29408 2010-04-05  Bruno Haible  <bruno@clisp.org>
29409
29410         memchr: Avoid a possible C++ test error.
29411         * lib/string.in.h (memchr): Provide declaration if function is missing.
29412         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29413         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29415         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29416
29417 2010-04-05  Bruno Haible  <bruno@clisp.org>
29418
29419         strtok_r: Improve idiom.
29420         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29421         AC_LIBOBJ is used.
29422
29423 2010-04-05  Bruno Haible  <bruno@clisp.org>
29424
29425         strdup: Improve idiom.
29426         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29427         AC_LIBOBJ is used.
29428         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29429         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29430         when AC_LIBOBJ is used.
29431
29432 2010-04-05  Bruno Haible  <bruno@clisp.org>
29433
29434         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29435         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29436         don't set REPLACE_MBSINIT to 1.
29437         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29438         don't set REPLACE_MBRTOWC to 1.
29439         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29440         exist, don't set REPLACE_MBSRTOWCS to 1.
29441         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29442         exist, don't set REPLACE_MBSNRTOWCS to 1.
29443         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29444         don't set REPLACE_WCRTOMB to 1.
29445         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29446         exist, don't set REPLACE_WCSRTOMBS to 1.
29447         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29448         exist, don't set REPLACE_WCSNRTOMBS to 1.
29449
29450 2010-04-05  Bruno Haible  <bruno@clisp.org>
29451
29452         ldexpl: Improve idiom.
29453         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29454         make sure to set HAVE_DECL_LDEXPL to 0.
29455
29456 2010-04-05  Jim Meyering  <meyering@redhat.com>
29457
29458         xstrtol-tests: convert to use init.sh
29459         * modules/xstrtol-tests (Files): Add tests/init.sh.
29460         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29461         Use Exit, not exit.
29462         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29463
29464         atexit-tests: convert to use init.sh
29465         * modules/atexit-tests (Files): Add tests/init.sh.
29466         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29467         Use Exit, not exit.
29468         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29469
29470         init.sh: fix typo
29471         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29472
29473         init.sh: make it easier for a test script to write to the tty, ...
29474         when using automake's parallel-tests mode.
29475         * tests/init.sh (stderr_fileno_): Define overridable variable.
29476         (warn_): New function, to use it.
29477         (fail_, skip_, framework_failure_): Use warn_.
29478
29479 2010-04-04  Bruno Haible  <bruno@clisp.org>
29480
29481         btowc: Avoid warning.
29482         * lib/btowc.c: Include <stdlib.h>.
29483         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29484
29485 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29486             Bruno Haible  <bruno@clisp.org>
29487
29488         wchar: Port to NetBSD 1.5.
29489         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29490         * lib/wctype.in.h (WEOF): Likewise.
29491
29492 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29493             Bruno Haible  <bruno@clisp.org>
29494
29495         Port extended stdio to NetBSD 1.5.
29496         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29497         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29498         older.
29499
29500 2010-04-04  Bruno Haible  <bruno@clisp.org>
29501
29502         string: Remove unused substitution.
29503         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29504         HAVE_DECL_STRERROR.
29505         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29506
29507 2010-04-04  Bruno Haible  <bruno@clisp.org>
29508
29509         strtod: Avoid a possible C++ test error.
29510         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29511         set REPLACE_STRTOD.
29512
29513 2010-04-04  Bruno Haible  <bruno@clisp.org>
29514
29515         strerror: Update documentation.
29516         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29517
29518 2010-04-04  Bruno Haible  <bruno@clisp.org>
29519
29520         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29521         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29522         _GL_CXXALIAS_SYS_CAST.
29523
29524 2010-04-04  Bruno Haible  <bruno@clisp.org>
29525
29526         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29527         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29528         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29529         REPLACE_FREXPL to 1.
29530         * doc/posix-functions/frexpl.texi: Update documentation.
29531
29532 2010-04-04  Bruno Haible  <bruno@clisp.org>
29533
29534         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29535         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29536
29537 2010-04-04  Bruno Haible  <bruno@clisp.org>
29538
29539         Implement nanosleep for native Windows.
29540         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29541
29542 2010-04-04  Bruno Haible  <bruno@clisp.org>
29543
29544         math: Fix some C++ test errors on Solaris 8.
29545         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29546
29547 2010-04-04  Bruno Haible  <bruno@clisp.org>
29548
29549         math: Fix some C++ test errors on Cygwin.
29550         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29551         truncl): Provide declaration if the system does not have it.
29552         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29553         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29554         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29555         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29556         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29557         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29558         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29559         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29560         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29561         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29562         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29563         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29564         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29565         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29566         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29567         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29569         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29570         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29571         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29572         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29573         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29574
29575 2010-04-04  Bruno Haible  <bruno@clisp.org>
29576
29577         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29578         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29579         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29580         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29581         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29582         * m4/isinf.m4 (gl_ISINF): Likewise.
29583         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29584
29585 2010-04-04  Bruno Haible  <bruno@clisp.org>
29586
29587         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29588         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29589
29590 2010-04-04  Bruno Haible  <bruno@clisp.org>
29591
29592         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29593         * modules/tmpfile (configure.ac): Update.
29594
29595         tmpfile: Fix C++ test error on mingw.
29596         * lib/stdio.in.h (tmpfile): New declaration.
29597         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29598         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29599         * modules/tmpfile (Depends-on): Add stdio.
29600         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29601         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29602         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29603         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29604         REPLACE_TMPFILE.
29605         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29606
29607 2010-04-04  Bruno Haible  <bruno@clisp.org>
29608
29609         ioctl: Fix C++ test error on mingw.
29610         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29611         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29612         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29613
29614 2010-04-03  Bruno Haible  <bruno@clisp.org>
29615
29616         wcwidth: Fix C++ test error on mingw.
29617         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29619         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29620
29621 2010-04-03  Bruno Haible  <bruno@clisp.org>
29622
29623         nanosleep: Fix C++ test error on mingw.
29624         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29625         * lib/time.in.h (nanosleep): Use modern idiom.
29626         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29627         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29628         REPLACE_NANOSLEEP to 1.
29629         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29630         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29631
29632 2010-04-03  Bruno Haible  <bruno@clisp.org>
29633
29634         strptime: Fix C++ test error on mingw.
29635         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29636         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29637         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29638         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29639         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29640         not REPLACE_STRPTIME.
29641         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29642         REPLACE_STRPTIME.
29643
29644 2010-04-03  Bruno Haible  <bruno@clisp.org>
29645
29646         timegm: Fix C++ test error on mingw.
29647         * lib/time.in.h (timegm): Use modern idiom.
29648         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29649         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29650         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29651         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29652
29653 2010-04-03  Bruno Haible  <bruno@clisp.org>
29654
29655         timegm: Assume declaration if function exists.
29656         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29657         if it exists. Don't clobber ac_cv_func_timegm.
29658
29659 2010-04-03  Bruno Haible  <bruno@clisp.org>
29660
29661         time_r: Fix C++ test error on mingw.
29662         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29663         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29664         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29665         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29666         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29667
29668 2010-04-03  Bruno Haible  <bruno@clisp.org>
29669
29670         time_r: Minor updates.
29671         * modules/time_r (Description): Mention the provided functions.
29672         * lib/time_r.c: Don't include <string.h>.
29673         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29674         * doc/posix-functions/localtime_r.texi: Likewise.
29675
29676 2010-04-03  Bruno Haible  <bruno@clisp.org>
29677
29678         time: Fix regression introduced on 2010-03-08.
29679         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29680         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29681
29682 2010-04-03  Jim Meyering  <meyering@redhat.com>
29683
29684         maint.mk: don't silently disable project-specific syntax-check rules
29685         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29686         that they need to convert their project-specific syntax-check rules
29687         to use the new _sc_search_regexp.
29688
29689 2010-04-03  Bruno Haible  <bruno@clisp.org>
29690
29691         fchdir: Fix regression introduced on 2010-03-08.
29692         * lib/unistd.in.h (fchdir): Fix declaration.
29693         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29695         REPLACE_FCHDIR.
29696         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29697         REPLACE_FCHDIR.
29698
29699 2010-04-03  Bruno Haible  <bruno@clisp.org>
29700
29701         getpagesize: Fix C++ test error on mingw.
29702         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29703         system does not declare the function.
29704         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29705         declared.
29706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29707         HAVE_DECL_GETPAGESIZE.
29708         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29709
29710 2010-04-03  Bruno Haible  <bruno@clisp.org>
29711
29712         stdio: Make C++ tests work on mingw.
29713         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29714         does not declare the function.
29715
29716 2010-04-03  Bruno Haible  <bruno@clisp.org>
29717
29718         ftello: Fix C++ test error on mingw.
29719         * lib/stdio.in.h (ftello): Use modern idiom.
29720         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29721         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29722         is missing and that it needs to be replaced.
29723         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29725         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29726
29727 2010-04-03  Bruno Haible  <bruno@clisp.org>
29728
29729         fseeko: Fix C++ test error on mingw.
29730         * lib/stdio.in.h (fseeko): Use modern idiom.
29731         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29732         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29733         is missing and that it needs to be replaced.
29734         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29736         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29737
29738 2010-04-03  Bruno Haible  <bruno@clisp.org>
29739
29740         mkstemp: Fix C++ test error on mingw.
29741         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29742         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29743         function is missing and that it needs to be replaced.
29744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29745         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29746
29747 2010-04-03  Bruno Haible  <bruno@clisp.org>
29748
29749         stpncpy: Fix C++ test error on mingw.
29750         * lib/string.in.h (stpncpy): Use modern idiom.
29751         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29752         function is missing and that it needs to be replaced.
29753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29754         REPLACE_STPNCPY.
29755         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29756
29757 2010-04-03  Bruno Haible  <bruno@clisp.org>
29758
29759         sys_stat: Fix C++ test error on mingw.
29760         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29761         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29762
29763 2010-04-03  Bruno Haible  <bruno@clisp.org>
29764
29765         pty: Update doc.
29766         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29767
29768 2010-04-03  Bruno Haible  <bruno@clisp.org>
29769
29770         unistd: Fix C++ test error on mingw.
29771         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29772
29773 2010-04-03  Bruno Haible  <bruno@clisp.org>
29774
29775         Update doc regarding mingw.
29776         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29777         * doc/glibc-functions/login_tty.texi: Likewise.
29778         * doc/glibc-functions/forkpty.texi: Likewise.
29779
29780 2010-04-03  Bruno Haible  <bruno@clisp.org>
29781
29782         stdlib: Avoid compilation failure of c-strtold on mingw.
29783         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29784
29785 2010-04-03  Bruno Haible  <bruno@clisp.org>
29786
29787         locale: Make C++ tests work on Cygwin and mingw.
29788         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29789         cannot provide the function.
29790         Reported by Simon Josefsson.
29791
29792 2010-04-03  Bruno Haible  <bruno@clisp.org>
29793
29794         localename: Port to MacOS X 10.6.
29795         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29796         memory layout of the locales in MacOS X 10.6 as well.
29797         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29798
29799 2010-04-02  Bruno Haible  <bruno@clisp.org>
29800
29801         gnulib-tool: Ensure that long-running tests are executed last.
29802         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29803         running tests after the one for the other tests.
29804
29805 2010-04-02  Bruno Haible  <bruno@clisp.org>
29806
29807         gnulib-tool: Ensure the tests in the main directory are executed first.
29808         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29809         start with the current directory.
29810
29811 2010-04-02  Bruno Haible  <bruno@clisp.org>
29812
29813         Tests for module 'havelib', moved here from GNU gettext.
29814         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29815         modifications.
29816         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29817         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29818         with modifications.
29819         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29820         modifications.
29821         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29822         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29823         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29824         with modifications.
29825         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
29826         with modifications.
29827         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
29828         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
29829         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
29830         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
29831         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
29832         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
29833         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
29834         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
29835         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
29836         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
29837         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
29838         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
29839         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
29840         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
29841         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
29842         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
29843         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
29844         with modifications.
29845         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
29846         with modifications.
29847         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
29848         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
29849         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
29850         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
29851         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
29852         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
29853         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
29854         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
29855         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
29856         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
29857         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
29858         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
29859         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
29860         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
29861         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
29862         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
29863         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
29864         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
29865         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
29866         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
29867         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
29868         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
29869         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
29870         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
29871         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
29872         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
29873         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
29874         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
29875         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
29876         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
29877         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
29878         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
29879         * tests/havelib/rpathx/rpathx.c: New file, from
29880         gettext/autoconf-lib-link.
29881         * tests/havelib/rpathx/Makefile.am: New file, from
29882         gettext/autoconf-lib-link.
29883         * tests/havelib/rpathx/configure.ac: New file, from
29884         gettext/autoconf-lib-link with modifications.
29885         * tests/havelib/rpathy/rpathy.c: New file, from
29886         gettext/autoconf-lib-link.
29887         * tests/havelib/rpathy/Makefile.am: New file, from
29888         gettext/autoconf-lib-link.
29889         * tests/havelib/rpathy/configure.ac: New file, from
29890         gettext/autoconf-lib-link with modifications.
29891         * tests/havelib/rpathz/rpathz.c: New file, from
29892         gettext/autoconf-lib-link.
29893         * tests/havelib/rpathz/Makefile.am: New file, from
29894         gettext/autoconf-lib-link.
29895         * tests/havelib/rpathz/configure.ac: New file, from
29896         gettext/autoconf-lib-link with modifications.
29897         * tests/havelib/rpathlx/usex.c: New file, from
29898         gettext/autoconf-lib-link.
29899         * tests/havelib/rpathlx/Makefile.am: New file, from
29900         gettext/autoconf-lib-link.
29901         * tests/havelib/rpathlx/configure.ac: New file, from
29902         gettext/autoconf-lib-link with modifications.
29903         * tests/havelib/rpathly/usey.c: New file, from
29904         gettext/autoconf-lib-link.
29905         * tests/havelib/rpathly/Makefile.am: New file, from
29906         gettext/autoconf-lib-link.
29907         * tests/havelib/rpathly/configure.ac: New file, from
29908         gettext/autoconf-lib-link with modifications.
29909         * tests/havelib/rpathlz/usez.c: New file, from
29910         gettext/autoconf-lib-link.
29911         * tests/havelib/rpathlz/Makefile.am: New file, from
29912         gettext/autoconf-lib-link.
29913         * tests/havelib/rpathlz/configure.ac: New file, from
29914         gettext/autoconf-lib-link with modifications.
29915         * tests/havelib/rpathlyx/usey.c: New file, from
29916         gettext/autoconf-lib-link.
29917         * tests/havelib/rpathlyx/Makefile.am: New file, from
29918         gettext/autoconf-lib-link.
29919         * tests/havelib/rpathlyx/configure.ac: New file, from
29920         gettext/autoconf-lib-link with modifications.
29921         * tests/havelib/rpathlzyx/usez.c: New file, from
29922         gettext/autoconf-lib-link.
29923         * tests/havelib/rpathlzyx/Makefile.am: New file, from
29924         gettext/autoconf-lib-link.
29925         * tests/havelib/rpathlzyx/configure.ac: New file, from
29926         gettext/autoconf-lib-link with modifications.
29927         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
29928         with modifications.
29929
29930 2010-04-02  Bruno Haible  <bruno@clisp.org>
29931
29932         gnulib-tool: Create distributed built sources also for the tests.
29933         * gnulib-tool (func_create_testdir): Also generate distributed built
29934         sources in the tests directory.
29935
29936 2010-04-02  Bruno Haible  <bruno@clisp.org>
29937
29938         gnulib-tool: Obey user's environment variables.
29939         * gnulib-tool (func_create_testdir): When creating built sources,
29940         respect the environment variables for autoconf, automake, etc. given by
29941         the user.
29942
29943 2010-04-02  Bruno Haible  <bruno@clisp.org>
29944
29945         gnulib-tool: Provide the value of --m4-base to modules.
29946         * gnulib-tool (func_import, func_create_testdir): Emit a definition
29947         of gl_m4_base.
29948
29949 2010-04-02  Eric Blake  <eblake@redhat.com>
29950
29951         maint.mk: fix some fallout
29952         * NEWS: Document the incompatible change, and its effect on cfg.mk.
29953         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
29954
29955 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29956
29957         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
29958         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
29959         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
29960         (sc_cast_of_x_alloc_return_value): Likewise.
29961         (sc_cast_of_alloca_return_value): Likewise.
29962         (sc_space_tab): Likewise.
29963         (sc_prohibit_atoi_atof): Likewise.
29964         (sc_prohibit_magic_number_exit): Likewise.
29965         (sc_error_exit_success): Likewise.
29966         (sc_file_system): Likewise.
29967         (sc_prohibit_have_config_h): Likewise.
29968         (sc_require_config_h): Likewise.
29969         (sc_prohibit_HAVE_MBRTOWC): Likewise.
29970         (sc_obsolete_symbols): Likewise.
29971         (sc_changelog): Likewise.
29972         (sc_program_name): Likewise.
29973         (sc_the_the): Likewise.
29974         (sc_trailing_blank): Likewise.
29975         (sc_two_space_separator_in_usage): Likewise.
29976         (sc_useless_cpp_parens): Likewise.
29977         (sc_GPL_version): Likewise.
29978         (sc_GFDL_version): Likewise.
29979         (sc_texinfo_acronym): Likewise.
29980         (sc_prohibit_cvs_keyword): Likewise.
29981         (sc_prohibit_stat_st_blocks): Likewise.
29982         (sc_prohibit_S_IS_definition): Likewise.
29983         (sc_redundant_const): Likewise.
29984         (sc_makefile_TAB_only_indentation): Likewise.
29985         (sc_m4_quote_check): Likewise.
29986         (sc_makefile_path_separator_check): Likewise.
29987         (sc_copyright_check): Likewise.
29988         (sc_Wundef_boolean): Likewise.
29989         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29990
29991         maint.mk: match 0 or more whitespace-before-function-call '('
29992         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
29993         that have zero or two-and-more spaces between the function name
29994         and the open parenthesis.
29995         (sc_error_message_warn_fatal): Likewise.
29996         (sc_error_message_uppercase): Likewise.
29997         (sc_error_message_period): Likewise.
29998
29999 2010-03-31  Eric Blake  <eblake@redhat.com>
30000
30001         maint.mk: check for [ as well as test
30002         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30003         Based on a libvirt report by Matthias Bolte.
30004
30005         gnumakefile: don't squelch _version output
30006         * top/GNUmakefile (_version): Create one-shot dependency rather
30007         than using $(shell) when version must be regenerated.
30008         (_autoreconf): Run verbosely, by default.
30009
30010         sys_time: avoid compiler warnings
30011         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30012         unconditional, fixing regression from 2010-03-29.
30013         Reported by Simon Josefsson.
30014
30015 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30016
30017         maint.mk: s/_header_without_use/_sc_header_without_use/
30018         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30019         (sc_prohibit_assert_without_use): Use the new name.
30020         (sc_prohibit_close_stream_without_use): Likewise.
30021         (sc_prohibit_getopt_without_use): Likewise.
30022         (sc_prohibit_quotearg_without_use): Likewise.
30023         (sc_prohibit_quote_without_use): Likewise.
30024         (sc_prohibit_long_options_without_use): Likewise.
30025         (sc_prohibit_inttostr_without_use): Likewise.
30026         (sc_prohibit_ignore_value_without_use): Likewise.
30027         (sc_prohibit_error_without_use): Likewise.
30028         (sc_prohibit_xalloc_without_use): Likewise.
30029         (sc_prohibit_hash_without_use): Likewise.
30030         (sc_prohibit_hash_pjw_without_use): Likewise.
30031         (sc_prohibit_safe_read_without_use): Likewise.
30032         (sc_prohibit_argmatch_without_use): Likewise.
30033         (sc_prohibit_canonicalize_without_use): Likewise.
30034         (sc_prohibit_root_dev_ino_without_use): Likewise.
30035         (sc_prohibit_openat_without_use): Likewise.
30036         (sc_prohibit_c_ctype_without_use): Likewise.
30037         (sc_prohibit_signal_without_use): Likewise.
30038         (sc_prohibit_intprops_without_use): Likewise.
30039
30040 2010-03-30  Eric Blake  <eblake@redhat.com>
30041
30042         maint: improve module indicators
30043         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30044         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30045         columns, and avoid extra macro expansion.
30046
30047         fdopendir: work around FreeBSD bug
30048         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30049         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30050         * modules/dirent (Makefile.am): Substitute it.
30051         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30052         declaration.
30053         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30054         fix.
30055         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30056
30057 2010-03-29  Bruno Haible  <bruno@clisp.org>
30058
30059         Emit #pragma system_header after the inclusion guard, not before.
30060         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30061         guard that spans the entire file, not before. This enables an
30062         optimization in GCC's preprocessor.
30063         * lib/ctype.in.h: Likewise.
30064         * lib/dirent.in.h: Likewise.
30065         * lib/errno.in.h: Likewise.
30066         * lib/float.in.h: Likewise.
30067         * lib/getopt.in.h: Likewise.
30068         * lib/iconv.in.h: Likewise.
30069         * lib/langinfo.in.h: Likewise.
30070         * lib/locale.in.h: Likewise.
30071         * lib/math.in.h: Likewise.
30072         * lib/netdb.in.h: Likewise.
30073         * lib/netinet_in.in.h: Likewise.
30074         * lib/pty.in.h: Likewise.
30075         * lib/sched.in.h: Likewise.
30076         * lib/se-selinux.in.h: Likewise.
30077         * lib/search.in.h: Likewise.
30078         * lib/spawn.in.h: Likewise.
30079         * lib/stdarg.in.h: Likewise.
30080         * lib/stdint.in.h: Likewise.
30081         * lib/string.in.h: Likewise.
30082         * lib/strings.in.h: Likewise.
30083         * lib/sys_file.in.h: Likewise.
30084         * lib/sys_ioctl.in.h: Likewise.
30085         * lib/sys_time.in.h: Likewise.
30086         * lib/sys_times.in.h: Likewise.
30087         * lib/sys_utsname.in.h: Likewise.
30088         * lib/sys_wait.in.h: Likewise.
30089         * lib/sysexits.in.h: Likewise.
30090         * lib/wctype.in.h: Likewise.
30091
30092 2010-03-28  James Youngman  <jay@gnu.org>
30093
30094         save-cwd: don't leak a file descriptor when the caller execs.
30095         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30096         saved file descriptor.
30097         * modules/save-cwd (Depends-on): Depend on cloexec.
30098
30099 2010-03-29  Bruno Haible  <bruno@clisp.org>
30100
30101         Remove vestiges of fts-lgpl module.
30102         * lib/fts_.h: Assume GNULIB_FTS is 1.
30103         * lib/fts.c: Likewise.
30104         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30105
30106 2010-03-28  Bruno Haible  <bruno@clisp.org>
30107
30108         Fix definition of tests witness macro.
30109         * gnulib-tool (func_import): Fix definition of witness macro.
30110
30111 2010-03-28  Bruno Haible  <bruno@clisp.org>
30112
30113         Fix ioctl's protoype on glibc systems.
30114         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30115         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30116         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30117         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30118         signature. If not, arrange to replace the ioctl function.
30119         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30120         REPLACE_IOCTL.
30121         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30122         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30123         Reported by Ludovic Courtès <ludo@gnu.org>.
30124
30125 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30126
30127         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30128         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30129         made it so grep -r --include=GLOB* ... did not work.
30130
30131 2010-03-26  Jim Meyering  <meyering@redhat.com>
30132             Eric Blake  <eblake@redhat.com>
30133
30134         maint.mk: prohibit use of test's -o and -a operators
30135         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30136
30137 2010-03-28  Bruno Haible  <bruno@clisp.org>
30138
30139         Remove unused GNULIB_XYZ macro definitions.
30140         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30141         invocation.
30142
30143 2010-03-28  Bruno Haible  <bruno@clisp.org>
30144
30145         Mark privileged tests modules.
30146         * modules/idpriv-drop-tests (Status): New section.
30147         * modules/idpriv-droptemp-tests (Status): New section.
30148
30149 2010-03-28  Bruno Haible  <bruno@clisp.org>
30150
30151         Split C++ tests into separate tests modules.
30152         * modules/dirent-c++-tests: New file, extracted from
30153         modules/dirent-tests.
30154         * modules/dirent-tests: Depend on it.
30155         * modules/fcntl-h-c++-tests: New file, extracted from
30156         modules/fcntl-h-tests.
30157         * modules/fcntl-h-tests: Depend on it.
30158         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30159         * modules/glob-tests: Depend on it.
30160         * modules/iconv-h-c++-tests: New file, extracted from
30161         modules/iconv-h-tests.
30162         * modules/iconv-h-tests: Depend on it.
30163         * modules/langinfo-c++-tests: New file, extracted from
30164         modules/langinfo-tests.
30165         * modules/langinfo-tests: Depend on it.
30166         * modules/locale-c++-tests: New file, extracted from
30167         modules/locale-tests.
30168         * modules/locale-tests: Depend on it.
30169         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30170         * modules/math-tests: Depend on it.
30171         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30172         * modules/pty-tests: Depend on it.
30173         * modules/search-c++-tests: New file, extracted from
30174         modules/search-tests.
30175         * modules/search-tests: Depend on it.
30176         * modules/signal-c++-tests: New file, extracted from
30177         modules/signal-tests.
30178         * modules/signal-tests: Depend on it.
30179         * modules/spawn-c++-tests: New file, extracted from
30180         modules/spawn-tests.
30181         * modules/spawn-tests: Depend on it.
30182         * modules/stdio-c++-tests: New file, extracted from
30183         modules/stdio-tests.
30184         * modules/stdio-tests: Depend on it.
30185         * modules/stdlib-c++-tests: New file, extracted from
30186         modules/stdlib-tests.
30187         * modules/stdlib-tests: Depend on it.
30188         * modules/string-c++-tests: New file, extracted from
30189         modules/string-tests.
30190         * modules/string-tests: Depend on it.
30191         * modules/sys_ioctl-c++-tests: New file, extracted from
30192         modules/sys_ioctl-tests.
30193         * modules/sys_ioctl-tests: Depend on it.
30194         * modules/sys_select-c++-tests: New file, extracted from
30195         modules/sys_select-tests.
30196         * modules/sys_select-tests: Depend on it.
30197         * modules/sys_socket-c++-tests: New file, extracted from
30198         modules/sys_socket-tests.
30199         * modules/sys_socket-tests: Depend on it.
30200         * modules/sys_stat-c++-tests: New file, extracted from
30201         modules/sys_stat-tests.
30202         * modules/sys_stat-tests: Depend on it.
30203         * modules/sys_time-c++-tests: New file, extracted from
30204         modules/sys_time-tests.
30205         * modules/sys_time-tests: Depend on it.
30206         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30207         * modules/time-tests: Depend on it.
30208         * modules/unistd-c++-tests: New file, extracted from
30209         modules/unistd-tests.
30210         * modules/unistd-tests: Depend on it.
30211         * modules/wchar-c++-tests: New file, extracted from
30212         modules/wchar-tests.
30213         * modules/wchar-tests: Depend on it.
30214         * modules/wctype-c++-tests: New file, extracted from
30215         modules/wctype-tests.
30216         * modules/wctype-tests: Depend on it.
30217         Reported by Simon Josefsson.
30218
30219 2010-03-28  Bruno Haible  <bruno@clisp.org>
30220
30221         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30222         * gnulib-tool (func_exists_module): New function, extracted from
30223         func_verify_module.
30224         (func_verify_module): Use it.
30225         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30226         'foo' only if 'foo' exists.
30227         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30228         module.
30229
30230 2010-03-28  Bruno Haible  <bruno@clisp.org>
30231
30232         gnulib-tool: Add support for special categories of tests.
30233         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30234         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30235         (func_usage): Document them.
30236         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30237         inc_unportable_tests, inc_all_tests): New variables.
30238         (func_acceptable): Consider these variables.
30239         (func_modules_transitive_closure): Make it work when the 'Status' field
30240         consists of multiple words.
30241         (func_import): Store and restore the values of inc_cxx_tests,
30242         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30243         inc_all_tests in gnulib-comp.m4.
30244         (func_create_testdir): Set inc_all_tests to true.
30245         * doc/gnulib.texi (Extra tests modules): New section.
30246         Suggested by Jim Meyering.
30247
30248 2010-03-28  Bruno Haible  <bruno@clisp.org>
30249
30250         ansi-c++-opt: Allow turning off the C++ build by default.
30251         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30252         gl_CXX_CHOICE_DEFAULT_NO is defined.
30253         Requested by Eric Blake.
30254
30255 2010-03-28  Bruno Haible  <bruno@clisp.org>
30256
30257         unistd: Avoid #define replacements in C++ mode.
30258         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30259         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30260         setsockopt, shutdown, select): In C++, attach a warning to the function
30261         if possible, rather than #defining the symbol to a dysfunctional alias.
30262         Reported by John W. Eaton <jwe@gnu.org>.
30263
30264 2010-03-28  Bruno Haible  <bruno@clisp.org>
30265
30266         Fix link errors on mingw.
30267         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30268         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30269         $(LIBSOCKET).
30270         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30271         $(LIBSOCKET).
30272
30273 2010-03-28  Bruno Haible  <bruno@clisp.org>
30274             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30275
30276         lib-ignore: Determine different options for different compilers.
30277         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30278         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30279         Add comments.
30280         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30281         * NEWS: Mention the change.
30282
30283 2010-03-27  Bruno Haible  <bruno@clisp.org>
30284
30285         Remove unused GNULIB_XYZ macro definitions.
30286         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30287         * modules/fseek (configure.ac): Likewise.
30288         * modules/ioctl (configure.ac): Likewise.
30289         * modules/open (configure.ac): Likewise.
30290         * modules/stdlib-safer (configure.ac): Likewise.
30291
30292 2010-03-27  Bruno Haible  <bruno@clisp.org>
30293
30294         Add a remark about certain modules.
30295         * modules/malloc (Comment): New section.
30296         * modules/realloc (Comment): Likewise.
30297         * modules/sigpipe (Comment): Likewise.
30298
30299 2010-03-27  Bruno Haible  <bruno@clisp.org>
30300
30301         Resolve conflict between the two kinds of module indicators.
30302         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30303         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30304         * modules/canonicalize (configure.ac): Invoke
30305         gl_MODULE_INDICATOR_FOR_TESTS.
30306         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30307         GNULIB_XYZ.
30308         * tests/test-dirent-c++.cc: Likewise.
30309         * tests/test-dirent-safer.c: Likewise.
30310         * tests/test-dup2.c: Likewise.
30311         * tests/test-fchdir.c: Likewise.
30312         * tests/test-fcntl-h-c++.cc: Likewise.
30313         * tests/test-getopt.c: Likewise.
30314         * tests/test-getopt.h: Likewise.
30315         * tests/test-langinfo-c++.cc: Likewise.
30316         * tests/test-locale-c++.cc: Likewise.
30317         * tests/test-math-c++.cc: Likewise.
30318         * tests/test-pty-c++.cc: Likewise.
30319         * tests/test-search-c++.cc: Likewise.
30320         * tests/test-signal-c++.cc: Likewise.
30321         * tests/test-spawn-c++.cc: Likewise.
30322         * tests/test-stdio-c++.cc: Likewise.
30323         * tests/test-stdlib-c++.cc: Likewise.
30324         * tests/test-string-c++.cc: Likewise.
30325         * tests/test-sys_ioctl-c++.cc: Likewise.
30326         * tests/test-sys_select-c++.cc: Likewise.
30327         * tests/test-sys_socket-c++.cc: Likewise.
30328         * tests/test-sys_stat-c++.cc: Likewise.
30329         * tests/test-sys_time-c++.cc: Likewise.
30330         * tests/test-time-c++.cc: Likewise.
30331         * tests/test-unistd-c++.cc: Likewise.
30332         * tests/test-wchar-c++.cc: Likewise.
30333         * tests/uninorm/test-u8-nfc.c: Likewise.
30334         * tests/uninorm/test-u8-nfd.c: Likewise.
30335         * tests/uninorm/test-u8-nfkc.c: Likewise.
30336         * tests/uninorm/test-u8-nfkd.c: Likewise.
30337         * tests/uninorm/test-u16-nfc.c: Likewise.
30338         * tests/uninorm/test-u16-nfd.c: Likewise.
30339         * tests/uninorm/test-u16-nfkc.c: Likewise.
30340         * tests/uninorm/test-u16-nfkd.c: Likewise.
30341         * tests/uninorm/test-u32-nfc.c: Likewise.
30342         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30343         * tests/uninorm/test-u32-nfd.c: Likewise.
30344         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30345         * tests/uninorm/test-u32-nfkc.c: Likewise.
30346         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30347         * tests/uninorm/test-u32-nfkd.c: Likewise.
30348         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30349         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30350
30351 2010-03-27  Bruno Haible  <bruno@clisp.org>
30352
30353         Distinguish two kinds of module indicators.
30354         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30355         gl_MODULE_INDICATOR.
30356         (gl_MODULE_INDICATOR): New macro.
30357         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30358         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30359         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30360         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30361         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30362         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30363         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30364         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30365         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30366         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30367         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30368         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30369         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30370         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30371         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30372         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30373         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30374         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30375         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30376         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30377         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30378         * modules/cloexec (configure.ac): Likewise.
30379         * modules/getopt-gnu (configure.ac): Likewise.
30380         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30381         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30382         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30383         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30384
30385 2010-03-27  Bruno Haible  <bruno@clisp.org>
30386
30387         New module description field 'Comment'.
30388         * gnulib-tool: New option --extract-comment.
30389         (func_usage): Document it.
30390         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30391         (func_get_comment): New function.
30392         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30393
30394 2010-03-27  Bruno Haible  <bruno@clisp.org>
30395
30396         Addendum to 2010-02-07 commit.
30397         * gnulib-tool (func_usage): Document --extract-applicability option.
30398
30399 2010-03-27  Bruno Haible  <bruno@clisp.org>
30400
30401         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30402         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30403         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30404         rather than link errors.
30405
30406 2010-03-27  Bruno Haible  <bruno@clisp.org>
30407
30408         Avoid side effects from tests-related modules on the compilation of lib.
30409         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30410         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30411         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30412         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30413         macro.
30414         (func_import): Define a witness macro. Assign it a value that depends
30415         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30416         tests-related modules.
30417         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30418         Reported by Jim Meyering.
30419
30420 2010-03-27  Bruno Haible  <bruno@clisp.org>
30421
30422         Factorize common .m4 code.
30423         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30424         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30425         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30426         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30427         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30428         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30429         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30430         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30431         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30432         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30433         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30434         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30435         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30436         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30437         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30438         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30439         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30440         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30442         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30443         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30444         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30445         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30446         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30447         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30448         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30449         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30450         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30451         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30452         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30453         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30454         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30455
30456 2010-03-27  Bruno Haible  <bruno@clisp.org>
30457
30458         Fix a compilation error on Cygwin with g++ >= 4.3.
30459         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30460         if it is undefined or if we alias it to chmod.
30461         (lstat): Don't warn about the use of this function if it is undefined
30462         or if we alias it to stat.
30463         Reported by Simon Josefsson.
30464
30465 2010-03-27  Bruno Haible  <bruno@clisp.org>
30466
30467         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30468         * modules/getlogin (configure.ac): Update.
30469
30470         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30471         * modules/getlogin_r (configure.ac): Update.
30472
30473         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30474         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30475         * modules/inet_ntop (configure.ac): Update.
30476
30477         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30478         * modules/inet_pton (configure.ac): Update.
30479
30480         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30481         * modules/mbslen (configure.ac): Update.
30482
30483         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30484         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30485         * modules/forkpty (configure.ac): Update.
30486         * modules/openpty (configure.ac): Update.
30487
30488 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30489
30490         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30491         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30492
30493 2010-03-25  Eric Blake  <eblake@redhat.com>
30494
30495         maint: use pragma consistently across replacement headers
30496         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30497         * lib/dirent.in.h (system_header): Likewise.
30498         * lib/errno.in.h (system_header): Likewise.
30499         * lib/float.in.h (system_header): Likewise.
30500         * lib/getopt.in.h (system_header): Likewise.
30501         * lib/iconv.in.h (system_header): Likewise.
30502         * lib/inttypes.in.h (system_header): Likewise.
30503         * lib/langinfo.in.h (system_header): Likewise.
30504         * lib/locale.in.h (system_header): Likewise.
30505         * lib/math.in.h (system_header): Likewise.
30506         * lib/netdb.in.h (system_header): Likewise.
30507         * lib/netinet_in.in.h (system_header): Likewise.
30508         * lib/pty.in.h (system_header): Likewise.
30509         * lib/sched.in.h (system_header): Likewise.
30510         * lib/se-selinux.in.h (system_header): Likewise.
30511         * lib/search.in.h (system_header): Likewise.
30512         * lib/spawn.in.h (system_header): Likewise.
30513         * lib/stdarg.in.h (system_header): Likewise.
30514         * lib/stdint.in.h (system_header): Likewise.
30515         * lib/string.in.h (system_header): Likewise.
30516         * lib/strings.in.h (system_header): Likewise.
30517         * lib/sys_file.in.h (system_header): Likewise.
30518         * lib/sys_ioctl.in.h (system_header): Likewise.
30519         * lib/sys_socket.in.h (system_header): Likewise.
30520         * lib/sys_times.in.h (system_header): Likewise.
30521         * lib/sys_utsname.in.h (system_header): Likewise.
30522         * lib/sys_wait.in.h (system_header): Likewise.
30523         * lib/sysexits.in.h (system_header): Likewise.
30524         * lib/unistd.in.h (system_header): Likewise.
30525         * lib/wctype.in.h (system_header): Likewise.
30526
30527         arpa/inet: fix mingw compilation warning
30528         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30529         Reported by Matthew Bolte.
30530
30531 2010-03-25  Bruno Haible  <bruno@clisp.org>
30532
30533         Avoid collision between gnulib wrapper and libintl wrapper.
30534         * lib/printf.c (printf): Don't define if a printf wrapper is already
30535         defined in intl/printf.c.
30536         Reported by Michel Boaventura <michel@michelboaventura.com>.
30537
30538 2010-03-25  Bruno Haible  <bruno@clisp.org>
30539
30540         Use ANSI C.
30541         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30542
30543 2010-03-25  Bruno Haible  <bruno@clisp.org>
30544
30545         Minor formatting changes.
30546         * lib/acosl.c: Insert space before function argument list.
30547         * lib/argz.c: Likewise.
30548         * lib/asinl.c: Likewise.
30549         * lib/expl.c: Likewise.
30550         * lib/gen-uni-tables.c: Likewise.
30551         * lib/gettext.h: Likewise.
30552         * lib/glthread/lock.h: Likewise.
30553         * lib/tanl.c: Likewise.
30554         * lib/uniname/uniname.c: Likewise.
30555         * tests/test-idpriv-drop.c: Likewise.
30556         * tests/test-idpriv-droptemp.c: Likewise.
30557         * tests/test-lock.c: Likewise.
30558         * tests/test-tls.c: Likewise.
30559         * lib/argp-help.c: Insert space before function-like macro argument
30560         list.
30561         * lib/memcmp.c: Likewise.
30562         * tests/test-base64.c: Likewise.
30563         * lib/localename.c: Insert space before sizeof's argument list.
30564         * lib/safe-alloc.h: Likewise.
30565         * lib/file-set.h: Insert space before macro argument list.
30566         * tests/test-argp.c: Likewise.
30567         * lib/argp-namefrob.h: Insert space before function parameter list.
30568         * lib/getaddrinfo.c: Likewise.
30569         * lib/netdb.in.h: Likewise.
30570         * lib/parse-duration.h: Likewise.
30571         * lib/parse-duration.c: Likewise.
30572         * lib/poll.c: Likewise.
30573         * lib/select.c: Likewise.
30574         * lib/trim.h: Likewise.
30575         * tests/test-usleep.c: Likewise.
30576         * lib/ldexpl.c: Insert space before function parameter list and before
30577         function argument list.
30578         * lib/logl.c: Likewise.
30579         * lib/sqrtl.c: Likewise.
30580         * lib/trim.c: Likewise.
30581         * lib/cosl.c: Use GNU style indentation. Insert space before function
30582         argument list.
30583         * lib/sinl.c: Likewise.
30584         * lib/tsearch.c: Insert space after 'for'.
30585         Reported by Jim Meyering.
30586
30587 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30588
30589         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30590         config header before grepping, as it's not present before
30591         autoreconf/configure are run.  Reported by Simon Josefsson.
30592
30593 2010-03-23  Bruno Haible  <bruno@clisp.org>
30594
30595         pt_chown: Make it work with automake < 1.11.
30596         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30597         Reported by Simon Josefsson.
30598
30599 2010-03-23  Bruno Haible  <bruno@clisp.org>
30600
30601         pt_chown: Don't depend on GPLed modules.
30602         * lib/pt_chown.c: Don't include idpriv.h.
30603         (main): Don't drop privileges.
30604         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30605         Reported by Simon Josefsson.
30606
30607 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30608
30609         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30610         suggestions from karl@freefriends.org (Karl Berry).
30611
30612 2010-03-22  Eric Blake  <eblake@redhat.com>
30613
30614         gethostname: further tweaks
30615         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30616         are overriding gethostname.
30617         Suggested by Bruno Haible.
30618
30619 2010-03-21  Bruno Haible  <bruno@clisp.org>
30620
30621         Fix comments.
30622         * lib/forkpty.c (rpl_forkpty): Fix comment.
30623         * lib/openpty.c (rpl_openpty): Likewise.
30624         Reported by Eric Blake.
30625
30626 2010-03-22  Eric Blake  <eblake@redhat.com>
30627
30628         gethostname: fix build on mingw
30629         * lib/unistd.in.h (includes): Work around fact that mingw
30630         <winsock2.h> re-includes <unistd.h>, by avoiding any
30631         redeclarations if we are being included by <winsock2.h>.
30632         Reported by Matthias Bolte.
30633
30634 2010-03-21  Bruno Haible  <bruno@clisp.org>
30635
30636         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30637         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30638         modifications.
30639         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30640         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30641         provide the replacement.
30642         * modules/forkpty (Depends-on): Add openpty, login_tty.
30643         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30644         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30645         * doc/glibc-functions/forkpty.texi: More supported platforms.
30646         * config/srclist.txt: Add forkpty.c (commented).
30647
30648 2010-03-21  Bruno Haible  <bruno@clisp.org>
30649
30650         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30651         (Makefile.am): Verify that PTY_LIB is defined.
30652
30653         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30654
30655 2010-03-21  Bruno Haible  <bruno@clisp.org>
30656
30657         Tests for module 'login_tty'.
30658         * modules/login_tty-tests: New file.
30659         * tests/test-login_tty.c: New file.
30660
30661         New module 'login_tty'.
30662         * lib/login_tty.c: New file.
30663         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30664         * modules/login_tty: New file.
30665         * doc/glibc-functions/login_tty.texi: Mention the new module.
30666
30667 2010-03-21  Bruno Haible  <bruno@clisp.org>
30668
30669         login_tty: Documentation.
30670         * doc/glibc-functions/login_tty.texi: New file.
30671         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30672
30673 2010-03-21  Bruno Haible  <bruno@clisp.org>
30674
30675         pty: Consistent macro naming.
30676         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30677         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30678         * modules/pty (configure.ac): Update.
30679
30680 2010-03-21  Bruno Haible  <bruno@clisp.org>
30681
30682         Tests for openpty: Make stricter.
30683         * tests/test-openpty.c (main): Add test of canonical processing and
30684         erase.
30685         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30686
30687         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30688         * lib/openpty.c (openpty): New replacement function.
30689         * lib/pty.in.h: Include <termios.h>.
30690         (openpty): Update declaration. Add comments.
30691         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30692         is not declared, arrange to provide the replacement. Check for _getpty
30693         and posix_openpt.
30694         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30695         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30696         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30697         * modules/pty-tests (test_pty_c___LDADD): New variable.
30698         * doc/glibc-functions/openpty.texi: More supported platforms.
30699
30700 2010-03-21  Bruno Haible  <bruno@clisp.org>
30701
30702         setenv: Tweaks.
30703         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30704         the test program.
30705         * doc/posix-functions/setenv.texi: Update platforms list.
30706
30707 2010-03-21  Bruno Haible  <bruno@clisp.org>
30708
30709         New module 'unlockpt'.
30710         * lib/unlockpt.c: New file, from glibc with modifications.
30711         * m4/unlockpt.m4: New file.
30712         * modules/unlockpt: New file.
30713         * lib/stdlib.in.h (unlockpt): New declaration.
30714         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30715         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30716         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30717         HAVE_UNLOCKPT.
30718         * doc/posix-functions/unlockpt.texi: Mention the new module.
30719         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30720         * config/srclist.txt: Add unlockpt.c (commented).
30721
30722 2010-03-21  Jim Meyering  <meyering@redhat.com>
30723
30724         maint.mk: prohibit inclusion of "intprops.h" without use
30725         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30726
30727 2010-03-21  Bruno Haible  <bruno@clisp.org>
30728
30729         New module 'grantpt'.
30730         * lib/grantpt.c: New file, from glibc with modifications.
30731         * m4/grantpt.m4: New file.
30732         * modules/grantpt: New file.
30733         * lib/stdlib.in.h (grantpt): New declaration.
30734         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30735         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30736         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30737         HAVE_GRANTPT.
30738         * doc/posix-functions/grantpt.texi: Mention the new module.
30739         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30740         * config/srclist.txt: Add grantpt.c (commented).
30741
30742 2010-03-21  Bruno Haible  <bruno@clisp.org>
30743
30744         New module 'pt_chown'.
30745         * lib/pt_chown.c: New file, from glibc with modifications.
30746         * lib/pty-private.h: New file, from glibc with modifications.
30747         * modules/pt_chown: New file.
30748         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30749
30750 2010-03-21  Bruno Haible  <bruno@clisp.org>
30751
30752         Tests for module 'ptsname'.
30753         * modules/ptsname-tests: New file.
30754         * tests/test-ptsname.c: New file.
30755
30756         New module 'ptsname'.
30757         * lib/ptsname.c: New file, from glibc with modifications.
30758         * m4/ptsname.m4: New file.
30759         * modules/ptsname: New file.
30760         * lib/stdlib.in.h (ptsname): New declaration.
30761         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30762         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30763         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30764         HAVE_PTSNAME.
30765         * doc/posix-functions/ptsname.texi: Mention the new module.
30766         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30767         * config/srclist.txt: Add ptsname.c (commented).
30768
30769 2010-03-21  Bruno Haible  <bruno@clisp.org>
30770
30771         Tests for module 'ttyname_r'.
30772         * modules/ttyname_r-tests: New file.
30773         * tests/test-ttyname_r.c: New file.
30774
30775         New module 'ttyname_r'.
30776         * lib/ttyname_r.c: New file.
30777         * m4/ttyname_r.m4: New file.
30778         * modules/ttyname_r: New file.
30779         * lib/unistd.in.h (ttyname_r): New declaration.
30780         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30781         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30782         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30783         HAVE_TTYNAME_R.
30784         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30785         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30786
30787 2010-03-20  Bruno Haible  <bruno@clisp.org>
30788
30789         signal: Undefine macro definitions in C++ mode.
30790         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30791         sigfillset): Undefine macro definitions from the system header in C++
30792         mode.
30793         Reported by John W. Eaton <jwe@gnu.org>.
30794
30795 2010-03-20  Bruno Haible  <bruno@clisp.org>
30796
30797         Ensure no #include statements inside extern "C" { ... }.
30798         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30799         contain #include statements.
30800         * lib/time.in.h: Likewise.
30801
30802 2010-03-20  Bruno Haible  <bruno@clisp.org>
30803
30804         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30805         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30806         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30807         Reported by John W. Eaton <jwe@gnu.org>.
30808
30809 2010-03-20  Bruno Haible  <bruno@clisp.org>
30810
30811         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30812         Reported by Jim Meyering.
30813
30814 2010-03-20  Bruno Haible  <bruno@clisp.org>
30815
30816         pipe: Set errno upon failure.
30817         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30818         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30819         errno value in error message.
30820
30821 2010-03-20  Bruno Haible  <bruno@clisp.org>
30822             Jim Meyering  <meyering@redhat.com>
30823
30824         lchown: Avoid "unused variable" warning.
30825         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
30826
30827 2010-03-20  Bruno Haible  <bruno@clisp.org>
30828
30829         Work around unlink() bug on MacOS X 10.5.6.
30830         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
30831         attempting to unlink a parent directory.
30832         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
30833         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
30834         activate for the replacement function.
30835         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
30836
30837 2010-03-20  Bruno Haible  <bruno@clisp.org>
30838
30839         Fix link errors on Solaris 8.
30840         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
30841         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
30842
30843 2010-03-19  Jim Meyering  <meyering@redhat.com>
30844
30845         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
30846         The _LIBC implementation of build_range_exp correctly honors the
30847         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
30848         However, the non-_LIBC implementation would ignore that syntax-bit
30849         flag and return REG_ERANGE unconditionally.
30850         This change makes it honor that flag.
30851         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
30852         Make two pointer parameters "const".
30853         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
30854         (parse_bracket_exp): Update caller.
30855
30856         regex.m4: correct the reversed range endpoint ([b-a]) test
30857         * m4/regex.m4: When requiring that [b-a] evoke failure,
30858         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
30859         test pass once again for x86-based systems.
30860
30861 2010-03-19  Bruno Haible  <bruno@clisp.org>
30862
30863         scandir: Fix link error on Solaris 8.
30864         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
30865         macros.
30866
30867 2010-03-19  Bruno Haible  <bruno@clisp.org>
30868
30869         getusershell: Fix documentation.
30870         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
30871         module.
30872         * doc/glibc-functions/setusershell.texi: Likewise.
30873
30874         getusershell: Provide declaration, missing on Solaris 9.
30875         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
30876         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
30877         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
30878         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
30879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30880         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
30881         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
30882         HAVE_GETUSERSHELL.
30883         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
30884
30885 2010-03-19  Bruno Haible  <bruno@clisp.org>
30886
30887         wctype: Provide iswblank function.
30888         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
30889         exists and is fine.
30890         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
30891         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
30892         * tests/test-wctype.c (main): Re-enable the iswblank tests.
30893         * doc/posix-functions/iswblank.texi: Update.
30894
30895 2010-03-19  Bruno Haible  <bruno@clisp.org>
30896
30897         Tests of module 'pty' in C++ mode.
30898         * modules/pty-tests: New file.
30899         * tests/test-pty-c++.cc: New file.
30900         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30901
30902 2010-03-19  Eric Blake  <eblake@redhat.com>
30903
30904         logb: fix documentation
30905         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
30906         1.5 declaration bug.
30907
30908         forkpty, openpty: prefer glibc's const-safe prototype
30909         * lib/forkpty.c (rpl_forkpty): New file.
30910         * lib/openpty.c (rpl_openpty): Likewise.
30911         * modules/forkpty (Files): Distribute it.
30912         * modules/openpty (Files): Likewise.
30913         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
30914         check...
30915         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
30916         replacement for for non-const BSD signature.
30917         * modules/pty (Makefile.am): Substitute witnesses.
30918         * lib/pty.in.h (forkpty, openpty): Declare replacements.
30919         * tests/test-forkpty.c: Update signature check.
30920         * tests/test-openpty.c: Likewise.
30921         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
30922         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30923
30924         forkpty, openpty: split functions into new modules
30925         * modules/pty (Makefile.am): Substitute new witnesses.
30926         (Libraries): Move library detection...
30927         * modules/forkpty: ...into new module.
30928         * modules/openpty: Another new module.
30929         * modules/pty-tests: Rename and split...
30930         * modules/forkpty-tests: ...to this...
30931         * modules/openpty-tests: ...and this.
30932         * tests/test-pty.c: Rename and split...
30933         * tests/test-forkpty.c: ...to this...
30934         * tests/test-openpty.c: ...and this.
30935         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
30936         (gl_PTY): Split library searching...
30937         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
30938         (gl_FORKPTY, gl_OPENPTY): New macros.
30939         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
30940         * NEWS: Mention the split.
30941         * MODULES.html.sh (Misc): Document the modules.
30942         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
30943         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30944
30945         pty: improve replacement header
30946         * lib/pty.in.h: New file.
30947         * modules/pty (Files): Ship it.
30948         (Makefile.am): Always build replacement.
30949         * m4/pty.m4: Rename...
30950         * m4/pty_h.m4: ...to this.
30951         (gl_PTY): Modernize setting of witness macros; update check of
30952         forkpty to take proper advantage of cache.
30953         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
30954
30955         getopt: avoid compiler warning
30956         * lib/getopt.c (attribute_hidden): Remove unused macro.
30957
30958 2010-03-18  Bruno Haible  <bruno@clisp.org>
30959
30960         Fix link errors on Solaris 8.
30961         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
30962         * modules/search-tests (test_search_c___LDADD): Likewise.
30963         * modules/signal-tests (test_signal_c___LDADD): Likewise.
30964         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
30965         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
30966         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
30967         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
30968         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
30969         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
30970
30971 2010-03-18  Bruno Haible  <bruno@clisp.org>
30972
30973         Fix bug introduced on 2010-03-14.
30974         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
30975         (gl_SPAWN_H): Require it.
30976         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
30977         Reported by Simon Josefsson.
30978
30979 2010-03-18  Bruno Haible  <bruno@clisp.org>
30980
30981         Fix typo introduced on 2009-12-31.
30982         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
30983         posix_spawn_file_actions_adddup2.
30984
30985 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
30986         and Eric Blake  <eblake@redhat.com>
30987
30988         test-vc-list-files-git: make more robust
30989         * tests/test-vc-list-files-git.sh: Unset problematic environment
30990         variables.  Chain commands together.
30991
30992 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
30993
30994         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
30995         `AC_CHECK_DECL' invocation.
30996
30997 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
30998
30999         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31000         appears before executable statements. Suggested by Petr Sumbera
31001         <Petr.Sumbera@Sun.COM>.
31002
31003 2010-03-14  Bruno Haible  <bruno@clisp.org>
31004
31005         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31006         portability problems. Instead use a simpler test.
31007         (main): Check that invalid arguments are rejected only on Linux.
31008
31009 2010-03-14  Bruno Haible  <bruno@clisp.org>
31010
31011         Fix bug introduced on 2009-12-31.
31012         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31013         gl_PREREQ_SYS_H_WINSOCK2 always.
31014         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31015         SYS_SOCKET_H variable.
31016         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31017         Update comments.
31018         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31019         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31020         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31021         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31022         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31023
31024 2010-03-14  Bruno Haible  <bruno@clisp.org>
31025
31026         Fix values returned by sinl, cosl.
31027         * lib/trigl.h: Add specification comments.
31028         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31029         that combines the values from the precomputed table with the values of
31030         the Chebyshev polynomials.
31031
31032 2010-03-14  Bruno Haible  <bruno@clisp.org>
31033
31034         Fix compilation error when modules 'posix_spawn[p]' are not used.
31035         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31036         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31037
31038 2010-03-14  Bruno Haible  <bruno@clisp.org>
31039
31040         Fix compilation error on mingw when module 'time_r' is not used.
31041         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31042         is 1.
31043         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31044         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31045         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31046         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31047
31048 2010-03-14  Bruno Haible  <bruno@clisp.org>
31049
31050         Fix compilation error with Sun C.
31051         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31052         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31053         instead of GCC specific ULONG_LONG_MAX.
31054         * lib/xstrtoll.c: Likewise.
31055         * lib/xstrtoull.c: Likewise.
31056
31057 2010-03-13  Bruno Haible  <bruno@clisp.org>
31058
31059         Allow the user to disable C++ code and tests.
31060         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31061         (gl_PROG_ANSI_CXX): Require it.
31062
31063 2010-03-13  Bruno Haible  <bruno@clisp.org>
31064
31065         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31066         cases.
31067
31068 2010-03-13  Bruno Haible  <bruno@clisp.org>
31069
31070         Test that gnulib does not break the standard C++ headers.
31071         * tests/test-locale-c++2.cc: New file.
31072         * modules/locale-tests (Files): Add it.
31073         (Makefile.am): Compile it for test-locale-c++.
31074         * tests/test-math-c++2.cc: New file.
31075         * modules/math-tests (Files): Add it.
31076         (Makefile.am): Compile it for test-math-c++.
31077         * tests/test-signal-c++2.cc: New file.
31078         * modules/signal-tests (Files): Add it.
31079         (Makefile.am): Compile it for test-signal-c++.
31080         * tests/test-stdio-c++2.cc: New file.
31081         * modules/stdio-tests (Files): Add it.
31082         (Makefile.am): Compile it for test-stdio-c++.
31083         * tests/test-stdlib-c++2.cc: New file.
31084         * modules/stdlib-tests (Files): Add it.
31085         (Makefile.am): Compile it for test-stdlib-c++.
31086         * tests/test-string-c++2.cc: New file.
31087         * modules/string-tests (Files): Add it.
31088         (Makefile.am): Compile it for test-string-c++.
31089         * tests/test-time-c++2.cc: New file.
31090         * modules/time-tests (Files): Add it.
31091         (Makefile.am): Compile it for test-time-c++.
31092         Reported by John W. Eaton <jwe@gnu.org>.
31093
31094 2010-03-13  Bruno Haible  <bruno@clisp.org>
31095
31096         * gnulib-tool (func_usage): Clarify which options are available for
31097         --create-testdir and --create-megatestdir.
31098
31099 2010-03-13  Bruno Haible  <bruno@clisp.org>
31100
31101         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31102         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31103         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31104         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31105         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31106         when appropriate.
31107         Reported by Jim Meyering.
31108
31109 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31110
31111         * gnulib-tool (func_import): Explain origin of code.
31112
31113 2010-03-12  Bruno Haible  <bruno@clisp.org>
31114
31115         Fix problem with automake's definition of CXXLINK.
31116         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31117         Reported by Simon Josefsson and Ludovic Courtès.
31118
31119 2010-03-12  Bruno Haible  <bruno@clisp.org>
31120
31121         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31122         stable releases.
31123
31124 2010-03-11  Bruno Haible  <bruno@clisp.org>
31125
31126         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31127         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31128         whether the system provides one variant or multiple variants of the
31129         function.
31130         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31131         C++ compilers.
31132         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31133         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31134         Reported by Jim Meyering.
31135
31136 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31137
31138         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31139
31140 2010-03-08  Bruno Haible  <bruno@clisp.org>
31141
31142         gnulib-tool: Add support for --libtool in --create-testdir.
31143         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31144         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31145
31146 2010-03-08  Eric Blake  <eblake@redhat.com>
31147
31148         gnulib-tool.texi: mention possibility of git submodule
31149         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31150         submodules.
31151         * doc/.gitignore: Ignore another generated file.
31152
31153 2010-03-08  Karl Berry  <karl@gnu.org>
31154
31155         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31156         of committing gnulib files while skipping others.
31157
31158 2010-03-07  Bruno Haible  <bruno@clisp.org>
31159
31160         Tests of module 'wctype' in C++ mode.
31161         * tests/test-wctype-c++.cc: New file.
31162         * modules/wctype-tests (Files): Add it and tests/signature.h.
31163         (Depends-on): Add ansi-c++-opt.
31164         (Makefile.am): Arrange to compile and run test-wctype-c++.
31165
31166         Tests of module 'wchar' in C++ mode.
31167         * tests/test-wchar-c++.cc: New file.
31168         * modules/wchar-tests (Files): Add it and tests/signature.h.
31169         (Depends-on): Add ansi-c++-opt.
31170         (Makefile.am): Arrange to compile and run test-wchar-c++.
31171         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31172         gl_MODULE_INDICATOR.
31173
31174         Tests of module 'unistd' in C++ mode.
31175         * tests/test-unistd-c++.cc: New file.
31176         * modules/unistd-tests (Files): Add it and tests/signature.h.
31177         (Depends-on): Add ansi-c++-opt.
31178         (Makefile.am): Arrange to compile and run test-unistd-c++.
31179         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31180         gl_MODULE_INDICATOR.
31181
31182         Tests of module 'time' in C++ mode.
31183         * tests/test-time-c++.cc: New file.
31184         * modules/time-tests (Files): Add it and tests/signature.h.
31185         (Depends-on): Add ansi-c++-opt.
31186         (Makefile.am): Arrange to compile and run test-time-c++.
31187         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31188
31189         Tests of module 'sys_time' in C++ mode.
31190         * tests/test-sys_time-c++.cc: New file.
31191         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31192         (Depends-on): Add ansi-c++-opt.
31193         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31194         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31195         gl_MODULE_INDICATOR.
31196
31197         Tests of module 'sys_stat' in C++ mode.
31198         * tests/test-sys_stat-c++.cc: New file.
31199         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31200         (Depends-on): Add ansi-c++-opt.
31201         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31202         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31203         gl_MODULE_INDICATOR.
31204
31205         Tests of module 'sys_socket' in C++ mode.
31206         * tests/test-sys_socket-c++.cc: New file.
31207         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31208         (Depends-on): Add ansi-c++-opt.
31209         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31210         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31211         gl_MODULE_INDICATOR.
31212
31213         Tests of module 'sys_select' in C++ mode.
31214         * tests/test-sys_select-c++.cc: New file.
31215         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31216         (Depends-on): Add ansi-c++-opt.
31217         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31218         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31219         gl_MODULE_INDICATOR.
31220
31221         Tests of module 'sys_ioctl' in C++ mode.
31222         * tests/test-sys_ioctl-c++.cc: New file.
31223         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31224         (Depends-on): Add ansi-c++-opt.
31225         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31226         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31227         gl_MODULE_INDICATOR.
31228
31229         Tests of module 'string' in C++ mode.
31230         * tests/test-string-c++.cc: New file.
31231         * modules/string-tests (Files): Add it and tests/signature.h.
31232         (Depends-on): Add ansi-c++-opt.
31233         (Makefile.am): Arrange to compile and run test-string-c++.
31234         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31235         gl_MODULE_INDICATOR.
31236
31237         Tests of module 'stdlib' in C++ mode.
31238         * tests/test-stdlib-c++.cc: New file.
31239         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31240         (Depends-on): Add ansi-c++-opt.
31241         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31242         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31243         gl_MODULE_INDICATOR.
31244
31245         Tests of module 'stdio' in C++ mode.
31246         * tests/test-stdio-c++.cc: New file.
31247         * modules/stdio-tests (Files): Add it and tests/signature.h.
31248         (Depends-on): Add ansi-c++-opt.
31249         (Makefile.am): Arrange to compile and run test-stdio-c++.
31250         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31251         gl_MODULE_INDICATOR.
31252
31253         Tests of module 'spawn' in C++ mode.
31254         * tests/test-spawn-c++.cc: New file.
31255         * modules/spawn-tests (Files): Add it and tests/signature.h.
31256         (Depends-on): Add ansi-c++-opt.
31257         (Makefile.am): Arrange to compile and run test-spawn-c++.
31258         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31259         gl_MODULE_INDICATOR.
31260
31261         Tests of module 'signal' in C++ mode.
31262         * tests/test-signal-c++.cc: New file.
31263         * modules/signal-tests (Files): Add it and tests/signature.h.
31264         (Depends-on): Add ansi-c++-opt.
31265         (Makefile.am): Arrange to compile and run test-signal-c++.
31266         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31267         gl_MODULE_INDICATOR.
31268
31269         Tests of module 'search' in C++ mode.
31270         * tests/test-search-c++.cc: New file.
31271         * modules/search-tests (Files): Add it and tests/signature.h.
31272         (Depends-on): Add ansi-c++-opt.
31273         (Makefile.am): Arrange to compile and run test-search-c++.
31274         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31275         gl_MODULE_INDICATOR.
31276
31277         Tests of module 'math' in C++ mode.
31278         * tests/test-math-c++.cc: New file.
31279         * modules/math-tests (Files): Add it and tests/signature.h.
31280         (Depends-on): Add ansi-c++-opt.
31281         (Makefile.am): Arrange to compile and run test-math-c++.
31282         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31283
31284         Tests of module 'locale' in C++ mode.
31285         * tests/test-locale-c++.cc: New file.
31286         * modules/locale-tests (Files): Add it and tests/signature.h.
31287         (Depends-on): Add ansi-c++-opt.
31288         (Makefile.am): Arrange to compile and run test-locale-c++.
31289         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31290         gl_MODULE_INDICATOR.
31291
31292         Tests of module 'langinfo' in C++ mode.
31293         * tests/test-langinfo-c++.cc: New file.
31294         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31295         (Depends-on): Add ansi-c++-opt.
31296         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31297         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31298         gl_MODULE_INDICATOR.
31299
31300         Tests of module 'iconv-h' in C++ mode.
31301         * tests/test-iconv-h-c++.cc: New file.
31302         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31303         (Depends-on): Add ansi-c++-opt.
31304         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31305
31306         Tests of module 'glob' in C++ mode.
31307         * tests/test-glob-c++.cc: New file.
31308         * modules/glob-tests (Files): Add it.
31309         (Depends-on): Add ansi-c++-opt.
31310         (Makefile.am): Arrange to compile and run test-glob-c++.
31311
31312         Tests of module 'fcntl-h' in C++ mode.
31313         * tests/test-fcntl-h-c++.cc: New file.
31314         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31315         (Depends-on): Add ansi-c++-opt.
31316         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31317         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31318         gl_MODULE_INDICATOR.
31319
31320         Tests of module 'dirent' in C++ mode.
31321         * tests/test-dirent-c++.cc: New file.
31322         * modules/dirent-tests (Files): Add it and tests/signature.h.
31323         (Depends-on): Add ansi-c++-opt.
31324         (Makefile.am): Arrange to compile and run test-dirent-c++.
31325         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31326         gl_MODULE_INDICATOR.
31327
31328         New module 'ansi-c++-opt'.
31329         * modules/ansi-c++-opt: New file.
31330         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31331
31332         Document C++ namespace mode.
31333         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31334
31335         wctype: Avoid #define replacements in C++ mode.
31336         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31337         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31338         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31339         In C++, define a namespaced alias symbol.
31340         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31341         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31342         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31343         rule.
31344
31345         wchar: Avoid #define replacements in C++ mode.
31346         * lib/wchar.in.h: Include c++defs.h.
31347         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31348         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31349         symbol.
31350         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31351         * modules/wchar (Depends-on): Add c++defs.
31352         (Makefile.am): Update wchar.h rule.
31353
31354         unistd: Avoid #define replacements in C++ mode.
31355         * lib/unistd.in.h: Include c++defs.h.
31356         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31357         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31358         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31359         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31360         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31361         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31362         symbol.
31363         (environ): Update.
31364         * modules/unistd (Depends-on): Add c++defs.
31365         (Makefile.am): Update unistd.h rule.
31366
31367         time: Avoid #define replacements in C++ mode.
31368         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31369         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31370         define a namespaced alias symbol.
31371         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31372         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31373         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31374         * modules/time (Depends-on): Add c++defs, warn-on-use.
31375         (Makefile.am): Update time.h rule.
31376         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31377         * modules/nanosleep (configure.ac): Likewise.
31378         * modules/strptime (configure.ac): Likewise.
31379         * modules/timegm (configure.ac): Likewise.
31380
31381         sys_time: Avoid #define replacements in C++ mode.
31382         * lib/sys_time.in.h: Include c++defs.h.
31383         (gettimeofday): In C++, define a namespaced alias symbol.
31384         * modules/sys_time (Depends-on): Add c++defs.
31385         (Makefile.am): Update sys/time.h rule.
31386
31387         sys_stat: Avoid #define replacements in C++ mode.
31388         * lib/sys_stat.in.h: Include c++defs.h.
31389         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31390         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31391         namespaced alias symbol.
31392         In C++, define a namespaced alias symbol.
31393         * modules/sys_stat (Depends-on): Add c++defs.
31394         (Makefile.am): Update sys/stat.h rule.
31395
31396         sys_socket: Avoid #define replacements in C++ mode.
31397         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31398         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31399         definitions also when the system has a <sys/socket.h>.
31400         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31401         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31402         In C++, define a namespaced alias symbol.
31403         * modules/sys_socket (Depends-on): Add c++defs.
31404         (Makefile.am): Update sys/socket.h rule.
31405
31406         sys_select: Avoid #define replacements in C++ mode.
31407         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31408         definitions also when the system has a <sys/select.h>.
31409         (select): In C++, define a namespaced alias symbol.
31410         * modules/sys_select (Depends-on): Add c++defs.
31411         (Makefile.am): Update sys/select.h rule.
31412
31413         sys_ioctl: Avoid #define replacements in C++ mode.
31414         * lib/sys_ioctl.in.h: Include c++defs.h.
31415         (ioctl): In C++, define a namespaced alias symbol.
31416         * modules/sys_ioctl (Depends-on): Add c++defs.
31417         (Makefile.am): Update sys/ioctl.h rule.
31418
31419         string: Avoid #define replacements in C++ mode.
31420         * lib/string.in.h: Include c++defs.h.
31421         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31422         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31423         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31424         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31425         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31426         * modules/string (Depends-on): Add c++defs.
31427         (Makefile.am): Update string.h rule.
31428
31429         stdlib: Avoid #define replacements in C++ mode.
31430         * lib/stdlib.in.h: Include c++defs.h.
31431         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31432         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31433         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31434         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31435         symbol.
31436         * modules/stdlib (Depends-on): Add c++defs.
31437         (Makefile.am): Update stdlib.h rule.
31438
31439         stdio: Avoid #define replacements in C++ mode.
31440         * lib/stdio.in.h: Include c++defs.h.
31441         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31442         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31443         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31444         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31445         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31446         namespaced alias symbol.
31447         * modules/stdio (Depends-on): Add c++defs.
31448         (Makefile.am): Update stdio.h rule.
31449
31450         spawn: Avoid #define replacements in C++ mode.
31451         * lib/spawn.in.h: Include c++defs.h.
31452         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31453         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31454         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31455         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31456         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31457         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31458         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31459         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31460         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31461         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31462         In C++, define a namespaced alias symbol.
31463         * modules/spawn (Depends-on): Add c++defs.
31464         (Makefile.am): Update spawn.h rule.
31465
31466         signal: Avoid #define replacements in C++ mode.
31467         * lib/signal.in.h: Include c++defs.h.
31468         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31469         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31470         namespaced alias symbol.
31471         * modules/signal (Depends-on): Add c++defs.
31472         (Makefile.am): Update signal.h rule.
31473
31474         search: Avoid #define replacements in C++ mode.
31475         * lib/search.in.h: Include c++defs.h.
31476         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31477         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31478         symbol.
31479         * modules/search (Depends-on): Add c++defs.
31480         (Makefile.am): Update search.h rule.
31481
31482         math: Avoid #define replacements in C++ mode.
31483         * lib/math.in.h: Include c++defs.h.
31484         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31485         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31486         trunc, truncl): In C++, define a namespaced alias symbol.
31487         * modules/math (Depends-on): Add c++defs.
31488         (Makefile.am): Update math.h rule.
31489
31490         locale: Avoid #define replacements in C++ mode.
31491         * lib/locale.in.h: Include c++defs.h.
31492         (duplocale): In C++, define a namespaced alias symbol.
31493         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31494         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31495         * modules/locale (Depends-on): Add c++defs.
31496         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31497
31498         langinfo: Avoid #define replacements in C++ mode.
31499         * lib/langinfo.in.h: Include c++defs.h.
31500         (nl_langinfo): In C++, define a namespaced alias symbol.
31501         * modules/langinfo (Depends-on): Add c++defs.
31502         (Makefile.am): Update langinfo.h rule.
31503
31504         iconv-h: Avoid #define replacements in C++ mode.
31505         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31506         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31507         symbol.
31508         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31509         whenever iconv is present.
31510         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31511         (Makefile.am): Update iconv.h rule.
31512
31513         glob: Avoid #define replacements in C++ mode.
31514         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31515         (_gl_glob_errfunc_fn): New type.
31516         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31517         symbol.
31518         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31519         (Makefile.am): Update glob.h rule.
31520
31521         fcntl-h: Avoid #define replacements in C++ mode.
31522         * lib/fcntl.in.h: Include c++defs.h.
31523         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31524         * modules/fcntl-h (Depends-on): Add c++defs.
31525         (Makefile.am): Update fcntl.h rule.
31526
31527         dirent: Avoid #define replacements in C++ mode.
31528         * lib/dirent.in.h: Include c++defs.h.
31529         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31530         namespaced alias symbol.
31531         (dirfd): Update declaration.
31532         * modules/dirent (Depends-on): Add c++defs.
31533         (Makefile.am): Update dirent.h rule.
31534
31535         ctype: Make it usable in C++ code.
31536         * lib/ctype.in.h: Include c++defs.h.
31537         (isblank): Declare as extern "C".
31538         * modules/ctype (Depends-on): Add c++defs.
31539         (Makefile.am): Update ctype.h rule.
31540
31541         New module 'c++defs'.
31542         * modules/c++defs: New file.
31543         * build-aux/c++defs.h: New file.
31544         Reported by John W. Eaton <jwe@gnu.org>.
31545
31546 2010-03-07  Bruno Haible  <bruno@clisp.org>
31547
31548         logb: Provide missing declaration for Cygwin.
31549         * lib/math.in.h (logb): New declaration.
31550         * m4/logb.m4: New file.
31551         * modules/logb (Files): Add m4/logb.m4.
31552         (Depends-on): Add math.
31553         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31554         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31556         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31557         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31558
31559 2010-03-07  Bruno Haible  <bruno@clisp.org>
31560
31561         Fix test-cond link error.
31562         * tests/test-cond.c: Include <stdio.h>.
31563
31564 2010-03-07  Bruno Haible  <bruno@clisp.org>
31565
31566         Fix test-dirent-safer link error.
31567         * modules/dirent-safer-tests (Makefile.am): Define
31568         test_dirent_safer_LDADD.
31569
31570 2010-03-07  Bruno Haible  <bruno@clisp.org>
31571
31572         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31573         among default module list.
31574
31575 2010-03-07  Bruno Haible  <bruno@clisp.org>
31576
31577         Fix link error on platforms with GNU libiconv.
31578         * modules/unistr/u8-strcoll-tests (Makefile): Define
31579         test_u8_strcoll_LDADD.
31580         * modules/unistr/u16-strcoll-tests (Makefile): Define
31581         test_u16_strcoll_LDADD.
31582         * modules/unistr/u32-strcoll-tests (Makefile): Define
31583         test_u32_strcoll_LDADD.
31584
31585 2010-03-07  Bruno Haible  <bruno@clisp.org>
31586
31587         Use POSIX declarations for socket functions.
31588         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31589         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31590         rpl_sendto): Change declaration to match POSIX.
31591         * lib/connect.c (rpl_connect): Likewise.
31592         * lib/accept.c (rpl_accept): Likewise.
31593         * lib/bind.c (rpl_bind): Likewise.
31594         * lib/getpeername.c (rpl_getpeername): Likewise.
31595         * lib/getsockname.c (rpl_getsockname): Likewise.
31596         * lib/recv.c (rpl_recv): Likewise.
31597         * lib/send.c (rpl_send): Likewise.
31598         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31599         * lib/sendto.c (rpl_sendto): Likewise.
31600
31601 2010-03-06  Bruno Haible  <bruno@clisp.org>
31602
31603         Clarify access, euidaccess, faccessat.
31604         * doc/posix-functions/faccessat.texi: Mention security problem under
31605         "Other problems", not "Portability problems".
31606         * doc/posix-functions/access.texi: Likewise. Mention a related security
31607         problem.
31608         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31609         * lib/euidaccess.c: Add comments about platforms.
31610         * lib/unistd.in.h (access, euidaccess): Add warnings.
31611
31612 2010-03-07  Bruno Haible  <bruno@clisp.org>
31613
31614         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31615         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31616         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31617         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31618         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31619         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31620         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31621         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31622         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31623         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31624         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31625         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31626         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31627         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31628         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31629         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31630         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31631         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31632         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31633         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31634         Likewise.
31635         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31636         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31637         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31638         Likewise.
31639         * tests/test-spawn.c (main): Make it work when
31640         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31641
31642 2010-03-07  Bruno Haible  <bruno@clisp.org>
31643
31644         Fix incorrect Makefile.am generation in German locale.
31645         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31646         Execute sed command with character range in C locale.
31647
31648 2010-03-06  Bruno Haible  <bruno@clisp.org>
31649
31650         Tests for module 'iconv-h'.
31651         * modules/iconv-h-tests: New file.
31652         * tests/test-iconv-h.c: New file.
31653
31654         New module 'iconv-h'.
31655         * modules/iconv-h: New file.
31656         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31657         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31658         (configure.ac): Remove gl_ICONV_H.
31659         (Makefile.am): Remove rule for iconv.h.
31660
31661 2010-03-06  Bruno Haible  <bruno@clisp.org>
31662
31663         More consistent naming of *.m4 files.
31664         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31665         * modules/wctype (Files): Update.
31666
31667         More consistent naming of *.m4 files.
31668         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31669         * modules/wchar (Files): Update.
31670
31671 2010-03-06  Jim Meyering  <meyering@redhat.com>
31672
31673         euidaccess: relax license to LGPLv2+
31674         * modules/euidaccess (License): Relax to LGPLv2+.
31675
31676 2010-03-06  Bruno Haible  <bruno@clisp.org>
31677
31678         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31679         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31680         (Makefile.am): Augment lib_SOURCES instead.
31681
31682 2010-03-04  Jim Meyering  <meyering@redhat.com>
31683
31684         utime: remove obsolete module
31685         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31686         unnecessary for years, and has been marked as obsolete for 10 months.
31687         * modules/utime: Remove file.
31688         * lib/utime.c: Remove file.
31689         * m4/utime.m4: Remove file.
31690         * m4/utimes-null.m4: Remove file.
31691         * doc/posix-functions/utime.texi (utime): Remove reference to
31692         the module.  Move the sole "fixed by gnulib" item into the
31693         "problems not fixed by Gnulib" list.
31694         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31695
31696 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31697
31698         * modules/exit (License): Relax license to LGPLv2+.
31699         (Status): Mark as obsolete.
31700         * NEWS: Mention deprecated 'exit' module.
31701         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31702         of now obsolete 'exit'.
31703
31704 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31705
31706         fts-lgpl: remove unused module
31707         * modules/fts-lgpl: Remove.
31708         * MODULES.html.sh (func_all_modules): Adjust.
31709         * check-module (find_included_lib_files): Adjust.
31710         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31711
31712 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31713
31714         copy-acl: enhance Solaris ACL error handling
31715         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31716         * lib/set-mode-acl.c (qset_acl): Likewise.
31717
31718 2010-03-02  Bruno Haible  <bruno@clisp.org>
31719
31720         spawn: Don't override the system defined values on FreeBSD 8.
31721         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31722         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31723         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31724         if HAVE_POSIX_SPAWN is 1.
31725         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31726
31727 2010-03-01  Bruno Haible  <bruno@clisp.org>
31728
31729         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31730         regarding Automake.
31731
31732 2010-02-25  Bruno Haible  <bruno@clisp.org>
31733
31734         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31735         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31736         setting, not afterwards.
31737         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31738
31739 2010-02-24  Eric Blake  <eblake@redhat.com>
31740
31741         bootstrap, git-version-gen: use timestamp
31742         * build-aux/git-version-gen (scriptversion): Force UTC.
31743         * build-aux/bootstrap (scriptversion): New variable.
31744
31745         bootstrap: allow older git
31746         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31747         older than 1.6.4.  Requested by the libvirt project.
31748
31749 2010-02-23  Eric Blake  <eblake@redhat.com>
31750
31751         warn-on-use: work with old autoconf
31752         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31753         AS_VAR semantics of autoconf 2.60.
31754         Reported by Bruno Haible.
31755
31756         bootstrap: improve some comments
31757         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31758         clarification comments.
31759
31760         gettimeofday: provide correct function
31761         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31762         when replacement is declared, otherwise provide gettimeofday.
31763         Reported by Michael Goffioul.
31764
31765 2010-02-23  Jim Meyering  <meyering@redhat.com>
31766
31767         lib-ignore: relax license to "unlimited", not LGPLv2+
31768         * modules/lib-ignore (License): Relax to "unlimited".
31769
31770 2010-02-23  Jim Meyering  <meyering@redhat.com>
31771
31772         lib-ignore: relax license to LGPLv2+
31773         * modules/lib-ignore (License): Relax to LGPLv2+.
31774
31775 2010-02-22  Eric Blake  <eblake@redhat.com>
31776
31777         lseek: avoid bash 3.2 broken pipe bug
31778         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31779         warning from bash 3.2.
31780         Reported by Ben Pfaff, with analysis from Bruno Haible.
31781
31782         bootstrap: support non-FSF copyright holder
31783         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31784         bootstrap.conf override of COPYRIGHT_HOLDER.
31785         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31786
31787         bootstrap: interoperate with gettext 0.14.1
31788         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31789
31790         bootstrap: allow for alternate submodule location
31791         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31792         hardcoding submodule location.
31793         (gnulib_mk): Allow direct use of Makefile.am.
31794
31795         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31796         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31797         rather than reconfiguring where the submodule points.
31798
31799         gettimeofday: restore support for platforms that lack function
31800         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31801         replacement if function is missing.
31802         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31803         * modules/sys_time (Makefile.am): Substitute it.
31804         * lib/sys_time.in.h (gettimeofday): Check it.
31805         Reported by Michael Goffioul.
31806
31807 2010-02-21  Bruno Haible  <bruno@clisp.org>
31808
31809         * lib/stdio.in.h (obstack_printf): Fix typo.
31810
31811 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31812
31813         vc-list-files: use bzr ls's -R option
31814         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31815         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31816
31817 2010-02-21  Jim Meyering  <meyering@redhat.com>
31818
31819         init.sh: fix EXEEXT shims to work also for names like test-prog
31820         * tests/init.sh: Re-exec a better shell, when needed.
31821         If the current shell lacks support for posix $(...), an init.sh-using
31822         test will now try to find a shell that supports that.  If EXEEXT is
31823         nonempty, we also require support for hyphen-in-alias-name and shell
31824         substitutions like ${var#glob}.  Failure to find such a shell results
31825         in a skipped test.
31826
31827 2010-02-21  Bruno Haible  <bruno@clisp.org>
31828
31829         Really work around around "broken pipe" error message from bash 3.2.
31830         * gnulib-tool (func_reset_sigpipe): Remove function.
31831         (echo): In bash 3.2, define to a function that uses printf.
31832         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
31833
31834 2010-02-20  Bruno Haible  <bruno@clisp.org>
31835
31836         Restore support for automake 1.9.6 with autoconf 2.61.
31837         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
31838         Reported by James Youngman <jay@gnu.org>.
31839
31840 2010-02-20  Bruno Haible  <bruno@clisp.org>
31841
31842         Improve *printf warning condition.
31843         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
31844         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
31845         and the function is overridden due to SIGPIPE emulation.
31846
31847 2010-02-20  Bruno Haible  <bruno@clisp.org>
31848
31849         * lib/stdio.in.h: Tweak comments.
31850
31851 2010-02-19  Bruno Haible  <bruno@clisp.org>
31852
31853         Make it easier to find modules. New gnulib-tool option '--find'.
31854         * gnulib-tool: New option --find.
31855         (func_usage): Document it.
31856         (func_sanitize_modulelist): New function, extracted from
31857         func_all_modules.
31858         (func_all_modules): Invoke it.
31859         * doc/gnulib-tool.texi (Which modules?): New node.
31860
31861 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
31862
31863         * lib/sys_select.in.h: Provide select replacement even if
31864         sys/select.h exists on a system, for Interix.
31865
31866 2010-02-18  Jim Meyering  <meyering@redhat.com>
31867
31868         init.sh: don't use $(...) just yet
31869         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
31870         to accommodate e.g., Solaris' /bin/sh.
31871
31872 2010-02-17  Bruno Haible  <bruno@clisp.org>
31873
31874         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
31875         Reported by Ludovic Courtès <ludo@gnu.org>.
31876
31877 2010-02-16  Simon Josefsson  <simon@josefsson.org>
31878
31879         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
31880         linking with -lintl.
31881
31882 2010-02-17  Simon Josefsson  <simon@josefsson.org>
31883
31884         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
31885         if not provided by the system's netdb.h.  Reported by
31886         ludo@gnu.org (Ludovic Courtès).
31887
31888 2010-02-15  Jim Meyering  <meyering@redhat.com>
31889
31890         init.sh: improve portability and efficiency
31891         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
31892         "dummy" in a for loop.
31893         Use '!', not '^' to select the complement of a character set used
31894         in a "case" statement.
31895         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
31896         Suggestions from Eric Blake.
31897
31898         init.sh: automatically accommodate programs with the .exe suffix
31899         Automatically arrange for an invocation of "prog" to execute the
31900         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
31901         may use the simpler "prog", yet still work when built on a system
31902         that requires specifying the added suffix.
31903         Do this by constructing a function named "prog" that invokes
31904         "prog.exe" for each .exe file in selected directories.
31905         * tests/init.sh (find_exe_basenames_): New function.
31906         (create_exe_shim_functions_): New function.
31907         (path_prepend_): Use it.
31908
31909         maint.mk: mark syntax-check sc_*.m rules as .PHONY
31910         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
31911         "make -t syntax-check" doesn't create a ton of sc_*.m files.
31912
31913 2010-02-14  Jim Meyering  <meyering@redhat.com>
31914
31915         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
31916         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
31917         (sc_prohibit_hash_pjw_without_use): New rule.
31918
31919         maint.mk: allow the default upload destination dir to be overridden
31920         * top/maint.mk (upload_dest_dir_): Define with a default that
31921         preserves the status quo.
31922         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
31923         Reported by Peter Simons.
31924
31925         maint.mk: prohibit inclusion of "hash.h" without_use
31926         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
31927
31928 2010-02-10  Jim Meyering  <meyering@redhat.com>
31929
31930         maint.mk: prohibit inclusion of "ignore-value.h" without_use
31931         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
31932
31933 2010-02-09  Eric Blake  <ebb9@byu.net>
31934         and Bruno Haible  <bruno@clisp.org>
31935
31936         obstack-printf-posix: ensure declaration
31937         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
31938         extracted from gl_FUNC_OBSTACK_PRINTF.
31939         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
31940         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31941         Likewise.
31942         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
31943         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
31944         0.
31945
31946 2010-02-08  Bruno Haible  <bruno@clisp.org>
31947
31948         gnulib-tool: Fix typo in 2010-02-07 commit.
31949         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
31950         Reported by Eric Blake.
31951
31952 2010-02-07  Bruno Haible  <bruno@clisp.org>
31953
31954         gnulib-tool: Fix up caching patches.
31955         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
31956         option --no-cache. Use associative arrays when supported by the shell.
31957         (sed_comments): New variable.
31958         (modcache): Renamed from do_cache.
31959         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
31960         abbreviate unnecessarily.
31961         (have_associative): New variable.
31962         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
31963         way also for ksh and zsh.
31964         (func_init_sed_convert_to_cache_statements): New function, extracted
31965         from func_cache_lookup_module. Add support for associative arrays.
31966         Don't set the c_MODULE_cached variable here. Ignore all lines before
31967         the first field header. Remove only the final newline, not all trailing
31968         newlines. Support empty fields correctly. Limit the use of 'eval' to
31969         assignments.
31970         (func_get_description, func_get_status, func_get_notice,
31971         func_get_applicability, func_get_filelist, func_get_dependencies,
31972         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
31973         func_get_automake_snippet, func_get_include_directive,
31974         func_get_link_directive, func_get_license, func_get_maintainer):
31975         Update documentation. List the unoptimized code first. Add support for
31976         associative arrays. Limit the use of 'eval' to assignments.
31977         (func_get_applicability): Undo stylistic pessimisations.
31978         (func_get_automake_snippet, func_get_include_directive): Reduce code
31979         duplication.
31980         (func_modules_transitive_closure, func_modules_add_dummy,
31981         func_modules_notice, func_modules_to_filelist, func_add_file,
31982         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
31983         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
31984         func_create_testdir, func_create_megatestdir): Update documentation.
31985
31986 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31987
31988         * gnulib-tool (func_cache_lookup_module): Store the module name
31989         belonging to the cache variable; error out if two different
31990         module names map to the same cache variable name.
31991
31992 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31993
31994         gnulib-tool: Make caching optional.
31995         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
31996         Update matching short versions of --no-changelog.
31997         (func_usage): Update.
31998         (sed_extract_cache_prog): Renamed from ...
31999         (sed_extract_prog): ... this; revert to old extraction script.
32000         (func_get_description, func_get_status)
32001         (func_get_notice, func_get_applicability, func_get_filelist)
32002         (func_get_dependencies, func_get_autoconf_early_snippet)
32003         (func_get_autoconf_snippet, func_get_automake_snippet)
32004         (func_get_include_directive, func_get_link_directive)
32005         (func_get_license, func_get_maintainer): If $do_cache is false,
32006         use old, non-caching extraction scripts.
32007         Suggestion by Bruno Haible.
32008
32009 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32010
32011         gnulib-tool: cache module metainformation.
32012         * gnulib-tool (sed_extract_prog): Match newline before each
32013         header, and rewrite header to a shell variable suffix.
32014         (func_cache_var, func_cache_lookup_module): New functions,
32015         to turn a module name into a cache variable prefix, and to
32016         look up and cache module metainformation.
32017         (func_get_description, func_get_status)
32018         (func_get_notice, func_get_applicability, func_get_filelist)
32019         (func_get_dependencies, func_get_autoconf_early_snippet)
32020         (func_get_autoconf_snippet, func_get_automake_snippet)
32021         (func_get_include_directive, func_get_link_directive)
32022         (func_get_license, func_get_maintainer): Use
32023         func_cache_lookup_module.
32024
32025 2010-02-07  Bruno Haible  <bruno@clisp.org>
32026
32027         fnctl: Fix missing dependency.
32028         * modules/fcntl (Depends-on): Add getdtablesize.
32029         Reported by John W. Eaton <jwe@gnu.org>.
32030
32031 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32032
32033         Argp: fix recognition of short alias options.
32034
32035         * lib/argp-parse.c (convert_options): Fix improper use of
32036         `|' between character values.
32037         * tests/test-argp.c (group1_option): New alias option
32038         --read (-r).
32039         (group1_parser): Special handling for 'r'.
32040         (test15): New test case.
32041         (test_fun): Add test15.
32042         * tests/test-argp-2.sh: Update expected --help and --usage
32043         outputs.
32044
32045 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32046
32047         * tests/test-argp.c: Fix indentation.
32048
32049 2010-02-04  Eric Blake  <ebb9@byu.net>
32050
32051         gettimeofday: expose type of second argument
32052         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32053         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32054         * tests/test-gettimeofday.c: Use it to silence warning.
32055         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32056         the issue.
32057
32058 2010-02-03  Jim Meyering  <meyering@redhat.com>
32059
32060         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32061         * lib/regcomp.c (TYPE_SIGNED): Define.
32062         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32063
32064         regcomp.c: avoid a new -Wshadow warning
32065         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32066
32067 2010-02-01  Jim Meyering  <meyering@redhat.com>
32068
32069         removing useless parentheses in cpp #define directives
32070         For motivation, see commit c0221df4, "define STREQ(a,b)
32071         consistently, removing useless parentheses"
32072         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32073         * lib/mountlist.c (MNT_IGNORE): Likewise.
32074         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32075
32076 2010-02-01  Eric Blake  <ebb9@byu.net>
32077
32078         sys_time: use link-warning
32079         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32080         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32081         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32082         * modules/sys_time (Depends-on): Add warn-on-use.
32083         (Makefile.am): Always build replacement.
32084         (configure.ac): Update substitutions.
32085         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32086         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32087         bother with SYS_TIME_H.
32088         * modules/gettimeofday (configure.ac): Declare indicator.
32089         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32090         in use.
32091
32092         closein-tests: silence compiler warning
32093         * tests/test-closein.c (main): Ignore fread result.
32094         * modules/closein-tests (Depends-on): Add ignore-value.
32095
32096         tests: silence warning about system return
32097         * tests/test-areadlink-with-size.c (main): Ignore system result.
32098         * tests/test-areadlink.c (main): Likewise.
32099         * tests/test-areadlinkat-with-size.c (main): Likewise.
32100         * tests/test-areadlinkat.c (main): Likewise.
32101         * tests/test-canonicalize-lgpl.c (main): Likewise.
32102         * tests/test-canonicalize.c (main): Likewise.
32103         * tests/test-chown.c (main): Likewise.
32104         * tests/test-fchownat.c (main): Likewise.
32105         * tests/test-fdutimensat.c (main): Likewise.
32106         * tests/test-fstatat.c (main): Likewise.
32107         * tests/test-futimens.c (main): Likewise.
32108         * tests/test-lchown.c (main): Likewise.
32109         * tests/test-link.c (main): Likewise.
32110         * tests/test-linkat.c (main): Likewise.
32111         * tests/test-lstat.c (main): Likewise.
32112         * tests/test-mkdir.c (main): Likewise.
32113         * tests/test-mkdirat.c (main): Likewise.
32114         * tests/test-mkfifo.c (main): Likewise.
32115         * tests/test-mkfifoat.c (main): Likewise.
32116         * tests/test-mknod.c (main): Likewise.
32117         * tests/test-readlink.c (main): Likewise.
32118         * tests/test-remove.c (main): Likewise.
32119         * tests/test-rename.c (main): Likewise.
32120         * tests/test-renameat.c (main): Likewise.
32121         * tests/test-rmdir.c (main): Likewise.
32122         * tests/test-symlink.c (main): Likewise.
32123         * tests/test-symlinkat.c (main): Likewise.
32124         * tests/test-unlink.c (main): Likewise.
32125         * tests/test-unlinkat.c (main): Likewise.
32126         * tests/test-utimens.c (main): Likewise.
32127         * tests/test-utimensat.c (main): Likewise.
32128         * modules/areadlink-tests (Depends-on): Add ignore-value.
32129         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32130         * modules/areadlinkat-tests (Depends-on): Likewise.
32131         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32132         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32133         * modules/canonicalize-tests (Depends-on): Likewise.
32134         * modules/chown-tests (Depends-on): Likewise.
32135         * modules/fdutimensat-tests (Depends-on): Likewise.
32136         * modules/futimens-tests (Depends-on): Likewise.
32137         * modules/lchown-tests (Depends-on): Likewise.
32138         * modules/link-tests (Depends-on): Likewise.
32139         * modules/linkat-tests (Depends-on): Likewise.
32140         * modules/lstat-tests (Depends-on): Likewise.
32141         * modules/mkdir-tests (Depends-on): Likewise.
32142         * modules/mkfifo-tests (Depends-on): Likewise.
32143         * modules/mkfifoat-tests (Depends-on): Likewise.
32144         * modules/mknod-tests (Depends-on): Likewise.
32145         * modules/openat-tests (Depends-on): Likewise.
32146         * modules/readlink-tests (Depends-on): Likewise.
32147         * modules/remove-tests (Depends-on): Likewise.
32148         * modules/rename-tests (Depends-on): Likewise.
32149         * modules/renameat-tests (Depends-on): Likewise.
32150         * modules/rmdir-tests (Depends-on): Likewise.
32151         * modules/symlink-tests (Depends-on): Likewise.
32152         * modules/symlinkat-tests (Depends-on): Likewise.
32153         * modules/unlink-tests (Depends-on): Likewise.
32154         * modules/utimens-tests (Depends-on): Likewise.
32155         * modules/utimensat-tests (Depends-on): Likewise.
32156
32157 2010-01-31  Bruno Haible  <bruno@clisp.org>
32158
32159         Perform the same test for many <math.h> functions.
32160         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32161         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32162         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32163         of gl_MATHFUNC.
32164         * modules/acos (configure.ac): Likewise.
32165         * modules/asin (configure.ac): Likewise.
32166         * modules/atan (configure.ac): Likewise.
32167         * modules/atan2 (configure.ac): Likewise.
32168         * modules/cbrt (configure.ac): Likewise.
32169         * modules/copysign (configure.ac): Likewise.
32170         * modules/cos (configure.ac): Likewise.
32171         * modules/cosh (configure.ac): Likewise.
32172         * modules/erf (configure.ac): Likewise.
32173         * modules/erfc (configure.ac): Likewise.
32174         * modules/exp (configure.ac): Likewise.
32175         * modules/fmod (configure.ac): Likewise.
32176         * modules/hypot (configure.ac): Likewise.
32177         * modules/j0 (configure.ac): Likewise.
32178         * modules/j1 (configure.ac): Likewise.
32179         * modules/jn (configure.ac): Likewise.
32180         * modules/lgamma (configure.ac): Likewise.
32181         * modules/log (configure.ac): Likewise.
32182         * modules/log10 (configure.ac): Likewise.
32183         * modules/log1p (configure.ac): Likewise.
32184         * modules/pow (configure.ac): Likewise.
32185         * modules/remainder (configure.ac): Likewise.
32186         * modules/sin (configure.ac): Likewise.
32187         * modules/sinh (configure.ac): Likewise.
32188         * modules/tan (configure.ac): Likewise.
32189         * modules/tanh (configure.ac): Likewise.
32190         * modules/y0 (configure.ac): Likewise.
32191         * modules/y1 (configure.ac): Likewise.
32192         * modules/yn (configure.ac): Likewise.
32193         Suggested by Paolo Bonzini.
32194
32195 2010-01-31  Bruno Haible  <bruno@clisp.org>
32196
32197         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32198
32199 2010-01-31  Bruno Haible  <bruno@clisp.org>
32200
32201         Work around getdelim() bug on FreeBSD 8.0.
32202         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32203         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32204         not work.
32205         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32206         is 1.
32207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32208         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32209         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32210         a non-zero size.
32211         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32212
32213 2010-01-31  Bruno Haible  <bruno@clisp.org>
32214
32215         Work around getline() bug on FreeBSD 8.0.
32216         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32217         and a non-zero size.
32218         * tests/test-getline.c (main): Likewise.
32219         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32220         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32221
32222 2010-01-28  Eric Blake  <ebb9@byu.net>
32223
32224         regex: fix build failure
32225         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32226         platforms.
32227
32228 2010-01-28  Jim Meyering  <meyering@redhat.com>
32229
32230         regex: do not ignore memory allocation failure
32231         * lib/regex_internal.c (create_cd_newstate): Detect
32232         re_node_set_init_copy failure.   Extracted from glibc commit
32233         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32234
32235         regex: sync more white-space changes from libc
32236         * lib/regex_internal.c: White-space only changes.
32237         * lib/regexec.c: Likewise.
32238
32239         regex: add many uses of __attribute_warn_unused_result__
32240         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32241         * lib/regexec.c: Likewise.
32242         Extracted from a messy glibc commit.
32243
32244         regcomp.c: spelling and merge-artifact from glibc
32245         * lib/regcomp.c: Merge remainder of glibc's
32246         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32247
32248         regcomp.c: sync white-space changes from glibc
32249         * lib/regcomp.c: Merge to accommodate white space
32250         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32251
32252         regcomp.c: do not ignore internal return values
32253         * lib/regcomp.c: Do not ignore internal return values.
32254         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32255         but without its white-space changes and spelling fixes.
32256
32257         regex_internal.h: define __attribute_warn_unused_result__
32258         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32259
32260         maint: add a syntax-check rule to check for vulnerable Makefile.in
32261         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32262
32263 2010-01-27  Jim Meyering  <meyering@redhat.com>
32264
32265         ncftpput-ftp: clean up spaces
32266         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32267         Remove trailing blanks.
32268
32269 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32270
32271         * build-aux/git-version-gen: Fix copyright statement.
32272         * build-aux/gnupload: Likewise.
32273         * tests/test-arcfour.c: Likewise.
32274         * tests/test-arctwo.c: Likewise.
32275         * tests/test-count-one-bits.c: Likewise.
32276         * tests/test-crc.c: Likewise.
32277         * tests/test-des.c: Likewise.
32278         * tests/test-gc-arcfour.c: Likewise.
32279         * tests/test-gc-arctwo.c: Likewise.
32280         * tests/test-gc-des.c: Likewise.
32281         * tests/test-gc-hmac-md5.c: Likewise.
32282         * tests/test-gc-hmac-sha1.c: Likewise.
32283         * tests/test-gc-md2.c: Likewise.
32284         * tests/test-gc-md4.c: Likewise.
32285         * tests/test-gc-md5.c: Likewise.
32286         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32287         * tests/test-gc-rijndael.c: Likewise.
32288         * tests/test-gc-sha1.c: Likewise.
32289         * tests/test-gc.c: Likewise.
32290         * tests/test-gethostname.c: Likewise.
32291         * tests/test-gettimeofday.c: Likewise.
32292         * tests/test-hash.c: Likewise.
32293         * tests/test-hmac-md5.c: Likewise.
32294         * tests/test-hmac-sha1.c: Likewise.
32295         * tests/test-md2.c: Likewise.
32296         * tests/test-md4.c: Likewise.
32297         * tests/test-md5.c: Likewise.
32298         * tests/test-memchr.c: Likewise.
32299         * tests/test-memchr2.c: Likewise.
32300         * tests/test-memcmp.c: Likewise.
32301         * tests/test-memmem.c: Likewise.
32302         * tests/test-memrchr.c: Likewise.
32303         * tests/test-rawmemchr.c: Likewise.
32304         * tests/test-read-file.c: Likewise.
32305         * tests/test-rijndael.c: Likewise.
32306         * tests/test-sockets.c: Likewise.
32307         * tests/test-strchrnul.c: Likewise.
32308         * tests/test-strstr.c: Likewise.
32309         * tests/test-strtod.c: Likewise.
32310         * build-aux/ncftpput-ftp: Likewise.
32311
32312 2010-01-26  Eric Blake  <ebb9@byu.net>
32313
32314         ignore-value: update recommended header name
32315         * modules/ignore-value (Include): Only use <> for headers that
32316         exist in glibc.
32317
32318 2010-01-26  Jim Meyering  <meyering@redhat.com>
32319
32320         test-userspec.c: avoid compiler warnings
32321         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32322         and "initialization discards qualifiers..." warnings.
32323         Put the first "uid" in its own scope, and make char* members "const".
32324
32325 2010-01-25  Bruno Haible  <bruno@clisp.org>
32326
32327         gnulib-tool: Make warning diagnostics consistent.
32328         * gnulib-tool (func_warning): New function.
32329         Use it everywhere where gnulib-tool produces output to stderr and it is
32330         not a fatal error.
32331
32332 2010-01-25  Bruno Haible  <bruno@clisp.org>
32333
32334         Fix test dependencies.
32335         * modules/xstrtol-tests (Depends-on): Add inttypes.
32336         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32337
32338 2010-01-25 Pádraig Brady <P@draigBrady.com>
32339
32340         syntax-check: detect incorrect boolean macro values in config.h
32341         * modules/maintainer-makefile (configure.ac): Parameterize the location
32342         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32343         The logic is from Eric Blake and the location indicated by Jim Meyering.
32344         Note the more natural CONFIG_HEADER name is prohibited by automake
32345         for backwards compatibility reasons.
32346         * top/maint.mk (sc_Wundef_boolean): New rule.
32347
32348 2010-01-25  Jim Meyering  <meyering@redhat.com>
32349
32350         bootstrap: detect MacOS 10.6's shasum, too
32351         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32352         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32353
32354 2010-01-23  Jim Meyering  <meyering@redhat.com>
32355
32356         xstrtoll: new module
32357         * modules/xstrtoll: New file.
32358         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32359         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32360         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32361         ./configure fails if you use this module and lack "long long".
32362         * modules/xstrtoll-tests: New module.
32363         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32364         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32365         new init.sh-based test framework.
32366
32367 2010-01-24  Bruno Haible  <bruno@clisp.org>
32368
32369         Tests for module 'yn'.
32370         * modules/yn-tests: New file.
32371         * tests/test-yn.c: New file.
32372
32373         Tests for module 'y1'.
32374         * modules/y1-tests: New file.
32375         * tests/test-y1.c: New file.
32376
32377         Tests for module 'y0'.
32378         * modules/y0-tests: New file.
32379         * tests/test-y0.c: New file.
32380
32381         Tests for module 'tanh'.
32382         * modules/tanh-tests: New file.
32383         * tests/test-tanh.c: New file.
32384
32385         Tests for module 'tan'.
32386         * modules/tan-tests: New file.
32387         * tests/test-tan.c: New file.
32388
32389         Tests for module 'sqrt'.
32390         * modules/sqrt-tests: New file.
32391         * tests/test-sqrt.c: New file.
32392
32393         Tests for module 'sinh'.
32394         * modules/sinh-tests: New file.
32395         * tests/test-sinh.c: New file.
32396
32397         Tests for module 'sin'.
32398         * modules/sin-tests: New file.
32399         * tests/test-sin.c: New file.
32400
32401         Tests for module 'rint'.
32402         * modules/rint-tests: New file.
32403         * tests/test-rint.c: New file.
32404
32405         Tests for module 'remainder'.
32406         * modules/remainder-tests: New file.
32407         * tests/test-remainder.c: New file.
32408
32409         Tests for module 'pow'.
32410         * modules/pow-tests: New file.
32411         * tests/test-pow.c: New file.
32412
32413         Tests for module 'nextafter'.
32414         * modules/nextafter-tests: New file.
32415         * tests/test-nextafter.c: New file.
32416
32417         Tests for module 'modf'.
32418         * modules/modf-tests: New file.
32419         * tests/test-modf.c: New file.
32420
32421         Tests for module 'logb'.
32422         * modules/logb-tests: New file.
32423         * tests/test-logb.c: New file.
32424
32425         Tests for module 'log1p'.
32426         * modules/log1p-tests: New file.
32427         * tests/test-log1p.c: New file.
32428
32429         Tests for module 'log10'.
32430         * modules/log10-tests: New file.
32431         * tests/test-log10.c: New file.
32432
32433         Tests for module 'log'.
32434         * modules/log-tests: New file.
32435         * tests/test-log.c: New file.
32436
32437         Tests for module 'lgamma'.
32438         * modules/lgamma-tests: New file.
32439         * tests/test-lgamma.c: New file.
32440
32441         Tests for module 'ldexp'.
32442         * modules/ldexp-tests: New file.
32443         * tests/test-ldexp.c: New file.
32444
32445         Tests for module 'jn'.
32446         * modules/jn-tests: New file.
32447         * tests/test-jn.c: New file.
32448
32449         Tests for module 'j1'.
32450         * modules/j1-tests: New file.
32451         * tests/test-j1.c: New file.
32452
32453         Tests for module 'j0'.
32454         * modules/j0-tests: New file.
32455         * tests/test-j0.c: New file.
32456
32457         Tests for module 'hypot'.
32458         * modules/hypot-tests: New file.
32459         * tests/test-hypot.c: New file.
32460
32461         Tests for module 'fmod'.
32462         * modules/fmod-tests: New file.
32463         * tests/test-fmod.c: New file.
32464
32465         Tests for module 'fabs'.
32466         * modules/fabs-tests: New file.
32467         * tests/test-fabs.c: New file.
32468
32469         Tests for module 'exp'.
32470         * modules/exp-tests: New file.
32471         * tests/test-exp.c: New file.
32472
32473         Tests for module 'erfc'.
32474         * modules/erfc-tests: New file.
32475         * tests/test-erfc.c: New file.
32476
32477         Tests for module 'erf'.
32478         * modules/erf-tests: New file.
32479         * tests/test-erf.c: New file.
32480
32481         Tests for module 'cosh'.
32482         * modules/cosh-tests: New file.
32483         * tests/test-cosh.c: New file.
32484
32485         Tests for module 'cos'.
32486         * modules/cos-tests: New file.
32487         * tests/test-cos.c: New file.
32488
32489         Tests for module 'copysign'.
32490         * modules/copysign-tests: New file.
32491         * tests/test-copysign.c: New file.
32492
32493         Tests for module 'cbrt'.
32494         * modules/cbrt-tests: New file.
32495         * tests/test-cbrt.c: New file.
32496
32497         Tests for module 'atan2'.
32498         * modules/atan2-tests: New file.
32499         * tests/test-atan2.c: New file.
32500
32501         Tests for module 'atan'.
32502         * modules/atan-tests: New file.
32503         * tests/test-atan.c: New file.
32504
32505         Tests for module 'asin'.
32506         * modules/asin-tests: New file.
32507         * tests/test-asin.c: New file.
32508
32509         Tests for module 'acos'.
32510         * modules/acos-tests: New file.
32511         * tests/test-acos.c: New file.
32512
32513 2010-01-24  Bruno Haible  <bruno@clisp.org>
32514
32515         Fix tests for common <math.h> functions.
32516         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32517         code snippet that references the function pointer, rather than merely
32518         calling the function. Substitute the FUNC_LIBM variable.
32519         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32520         * modules/acos (configure.ac): Likewise.
32521         * modules/asin (configure.ac): Likewise.
32522         * modules/atan (configure.ac): Likewise.
32523         * modules/atan2 (configure.ac): Likewise.
32524         * modules/cbrt (configure.ac): Likewise.
32525         * modules/copysign (configure.ac): Likewise.
32526         * modules/cos (configure.ac): Likewise.
32527         * modules/cosh (configure.ac): Likewise.
32528         * modules/erf (configure.ac): Likewise.
32529         * modules/erfc (configure.ac): Likewise.
32530         * modules/exp (configure.ac): Likewise.
32531         * modules/fabs (configure.ac): Likewise.
32532         * modules/fmod (configure.ac): Likewise.
32533         * modules/hypot (configure.ac): Likewise.
32534         * modules/j0 (configure.ac): Likewise.
32535         * modules/j1 (configure.ac): Likewise.
32536         * modules/jn (configure.ac): Likewise.
32537         * modules/ldexp (configure.ac): Likewise.
32538         * modules/lgamma (configure.ac): Likewise.
32539         * modules/log (configure.ac): Likewise.
32540         * modules/log10 (configure.ac): Likewise.
32541         * modules/log1p (configure.ac): Likewise.
32542         * modules/logb (configure.ac): Likewise.
32543         * modules/modf (configure.ac): Likewise.
32544         * modules/nextafter (configure.ac): Likewise.
32545         * modules/pow (configure.ac): Likewise.
32546         * modules/remainder (configure.ac): Likewise.
32547         * modules/rint (configure.ac): Likewise.
32548         * modules/sin (configure.ac): Likewise.
32549         * modules/sinh (configure.ac): Likewise.
32550         * modules/tan (configure.ac): Likewise.
32551         * modules/tanh (configure.ac): Likewise.
32552         * modules/y0 (configure.ac): Likewise.
32553         * modules/y1 (configure.ac): Likewise.
32554         * modules/yn (configure.ac): Likewise.
32555
32556 2010-01-24  Bruno Haible  <bruno@clisp.org>
32557
32558         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32559         * tests/test-acosl.c (x): New variable.
32560         (main): Store argument in x and fetch it from x.
32561         * tests/test-asinl.c (x): New variable.
32562         (main): Store argument in x and fetch it from x.
32563         * tests/test-atanl.c (x): New variable.
32564         (main): Store argument in x and fetch it from x.
32565         * tests/test-cosl.c (x): New variable.
32566         (main): Store argument in x and fetch it from x.
32567         * tests/test-expl.c (x): New variable.
32568         (main): Store argument in x and fetch it from x.
32569         * tests/test-logl.c (x): New variable.
32570         (main): Store argument in x and fetch it from x.
32571         * tests/test-sinl.c (x): New variable.
32572         (main): Store argument in x and fetch it from x.
32573         * tests/test-sqrtl.c (x): New variable.
32574         (main): Store argument in x and fetch it from x.
32575         * tests/test-tanl.c (x): New variable.
32576         (main): Store argument in x and fetch it from x.
32577
32578 2010-01-24  Bruno Haible  <bruno@clisp.org>
32579
32580         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32581         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32582         assignments to the initial TESTS_ENVIRONMENT.
32583         * doc/gnulib.texi (Unit test modules): Document it.
32584         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32585         TESTS_ENVIRONMENT.
32586         * modules/btowc-tests (Makefile.am): Likewise.
32587         * modules/c-stack-tests (Makefile.am): Likewise.
32588         * modules/c-strcase-tests (Makefile.am): Likewise.
32589         * modules/copy-file-tests (Makefile.am): Likewise.
32590         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32591         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32592         * modules/mbrtowc-tests (Makefile.am): Likewise.
32593         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32594         * modules/mbscasestr-tests (Makefile.am): Likewise.
32595         * modules/mbschr-tests (Makefile.am): Likewise.
32596         * modules/mbscspn-tests (Makefile.am): Likewise.
32597         * modules/mbsinit-tests (Makefile.am): Likewise.
32598         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32599         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32600         * modules/mbspbrk-tests (Makefile.am): Likewise.
32601         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32602         * modules/mbsrchr-tests (Makefile.am): Likewise.
32603         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32604         * modules/mbsspn-tests (Makefile.am): Likewise.
32605         * modules/mbsstr-tests (Makefile.am): Likewise.
32606         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32607         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32608         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32609         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32610         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32611         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32612         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32613         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32614         * modules/wcrtomb-tests (Makefile.am): Likewise.
32615         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32616         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32617         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32618         assignments from TESTS_ENVIRONMENT.
32619         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32620         augmentation.
32621         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32622         * modules/atexit-tests (Makefile.am): Likewise.
32623         * modules/binary-io-tests (Makefile.am): Likewise.
32624         * modules/closein-tests (Makefile.am): Likewise.
32625         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32626         * modules/exclude-tests (Makefile.am): Likewise.
32627         * modules/fflush-tests (Makefile.am): Likewise.
32628         * modules/fpending-tests (Makefile.am): Likewise.
32629         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32630         * modules/freadahead-tests (Makefile.am): Likewise.
32631         * modules/freadptr-tests (Makefile.am): Likewise.
32632         * modules/freadseek-tests (Makefile.am): Likewise.
32633         * modules/fseek-tests (Makefile.am): Likewise.
32634         * modules/fseeko-tests (Makefile.am): Likewise.
32635         * modules/ftell-tests (Makefile.am): Likewise.
32636         * modules/ftello-tests (Makefile.am): Likewise.
32637         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32638         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32639         * modules/lseek-tests (Makefile.am): Likewise.
32640         * modules/parse-duration-tests (Makefile.am): Likewise.
32641         * modules/perror-tests (Makefile.am): Likewise.
32642         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32643         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32644         * modules/pipe-tests (Makefile.am): Likewise.
32645         * modules/pread-tests (Makefile.am): Likewise.
32646         * modules/printf-posix-tests (Makefile.am): Likewise.
32647         * modules/select-tests (Makefile.am): Likewise.
32648         * modules/sigpipe-tests (Makefile.am): Likewise.
32649         * modules/tsearch-tests (Makefile.am): Likewise.
32650         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32651         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32652         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32653         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32654         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32655         * modules/version-etc-tests (Makefile.am): Likewise.
32656         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32657         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32658         * modules/xalloc-die-tests (Makefile.am): Likewise.
32659         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32660         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32661         * modules/xstrtol-tests (Makefile.am): Likewise.
32662         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32663         * modules/yesno-tests (Makefile.am): Likewise.
32664         Suggested by Jim Meyering.
32665
32666 2010-01-24  Bruno Haible  <bruno@clisp.org>
32667
32668         More documentation.
32669         * doc/gnulib.texi (Writing modules): New chapter.
32670         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32671         the new chapter.
32672
32673 2010-01-24  Jim Meyering  <meyering@redhat.com>
32674
32675         maint.mk: do not prepend "./" after filtering
32676         * top/maint.mk (_prepend_srcdir_prefix): New variable
32677         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32678         "./" when $(srcdir) is ".".
32679
32680         define STREQ(a,b) consistently, removing useless parentheses
32681         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32682         since the only risk is that "a" or "b" contains an unparenthesized
32683         comma, but if either did that, STREQ would have 3 or more arguments.
32684         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32685         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32686         * lib/hash-triple.c (STREQ): Likewise.
32687         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32688         * lib/getugroups.c (STREQ): Likewise.
32689
32690 2010-01-23  Jim Meyering  <meyering@redhat.com>
32691
32692         maint.mk: fix syntax-check in a non-srcdir build directory
32693         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32694         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32695
32696 2010-01-22  Jim Meyering  <meyering@redhat.com>
32697
32698         userspec: add unit tests
32699         * tests/test-userspec.c: New file.
32700         * modules/userspec-tests: Likewise.
32701
32702 2010-01-21  Jim Meyering  <meyering@redhat.com>
32703
32704         maint.mk: handle source file names containing "." robustly
32705         * top/maint.mk (_dot_escaped_srcdir): Define.
32706         (VC_LIST): Use it in LHS of sed substitution.
32707
32708 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32709
32710         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32711         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32712         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32713         from a non-srcdir build.
32714
32715 2010-01-20  Eric Blake  <ebb9@byu.net>
32716
32717         warn-on-use: use instead of link-warning
32718         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32719         * modules/unistd (Depends-on, Makefile.am): Likewise.
32720         * modules/arpa_inet (Depends-on): Replace link-warning with
32721         warn-on-use.
32722         (Makefile.am): Update rules accordingly.
32723         * modules/ctype (Depends-on, Makefile.am): Likewise.
32724         * modules/dirent (Depends-on, Makefile.am): Likewise.
32725         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32726         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32727         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32728         * modules/locale (Depends-on, Makefile.am): Likewise.
32729         * modules/math (Depends-on, Makefile.am): Likewise.
32730         * modules/search (Depends-on, Makefile.am): Likewise.
32731         * modules/signal (Depends-on, Makefile.am): Likewise.
32732         * modules/spawn (Depends-on, Makefile.am): Likewise.
32733         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32734         * modules/string (Depends-on, Makefile.am): Likewise.
32735         * modules/strings (Depends-on, Makefile.am): Likewise.
32736         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32737         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32738         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32739         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32740         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32741         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32742         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32743         * modules/wchar (Depends-on, Makefile.am): Likewise.
32744         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32745         should be poisoned.
32746         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32747         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32748         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32749         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32750         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32751         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32752         * m4/math_h.m4 (gl_MATH_H): Likewise.
32753         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32754         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32755         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32756         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32757         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32758         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32759         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32760         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32761         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32762         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32763         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32764         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32765         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32766         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32767         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32768         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32769         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32770         GL_LINK_WARNING.
32771         * lib/ctype.in.h: Likewise.
32772         * lib/dirent.in.h: Likewise.
32773         * lib/fcntl.in.h: Likewise.
32774         * lib/inttypes.in.h: Likewise.
32775         * lib/langinfo.in.h: Likewise.
32776         * lib/locale.in.h: Likewise.
32777         * lib/math.in.h: Likewise.
32778         * lib/search.in.h: Likewise.
32779         * lib/signal.in.h: Likewise.
32780         * lib/spawn.in.h: Likewise.
32781         * lib/stdio.in.h: Likewise.
32782         * lib/stdlib.in.h: Likewise.
32783         * lib/string.in.h: Likewise.
32784         * lib/strings.in.h: Likewise.
32785         * lib/sys_file.in.h: Likewise.
32786         * lib/sys_ioctl.in.h: Likewise.
32787         * lib/sys_select.in.h: Likewise.
32788         * lib/sys_socket.in.h: Likewise.
32789         * lib/sys_stat.in.h: Likewise.
32790         * lib/sys_times.in.h: Likewise.
32791         * lib/sys_utsname.in.h: Likewise.
32792         * lib/unistd.in.h: Likewise.
32793         * lib/wchar.in.h: Likewise.
32794
32795 2010-01-20  Bruno Haible  <bruno@clisp.org>
32796
32797         Avoid duplicate -lm.
32798         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32799         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32800         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32801         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32802         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32803         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32804         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32805         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32806         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32807         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32808         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32809         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32810         Reported by Paolo Bonzini.
32811
32812 2010-01-19  Bruno Haible  <bruno@clisp.org>
32813
32814         langinfo, nl_langinfo: Relicense under LGPLv2+.
32815         * modules/langinfo (License): Change to LGPLv2+.
32816         * modules/nl_langinfo (License): Likewise.
32817         Patch by David Lutterkort <lutter@redhat.com>.
32818
32819 2010-01-19  Bruno Haible  <bruno@clisp.org>
32820
32821         Avoid compilation error with cc on OSF/1 5.1.
32822         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32823         statement, not before.
32824         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32825
32826 2010-01-18  Bruno Haible  <bruno@clisp.org>
32827
32828         Avoid a link error due to the __printf__ symbol.
32829         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
32830         and 2.6.x.
32831         (__format__, __printf__): Remove definitions.
32832         * lib/argp-fmtstream.h: Likewise.
32833         * lib/argp.h: Likewise.
32834         * lib/error.h: Likewise.
32835         * lib/vasnprintf.h: Likewise.
32836         * lib/xprintf.h: Likewise.
32837         * lib/xvasprintf.h: Likewise.
32838         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32839
32840 2010-01-18  Bruno Haible  <bruno@clisp.org>
32841
32842         Tests for module 'tanl'.
32843         * modules/tanl-tests: New file.
32844         * tests/test-tanl.c: New file.
32845
32846         Tests for module 'sqrtl'.
32847         * modules/sqrtl-tests: New file.
32848         * tests/test-sqrtl.c: New file.
32849
32850         Tests for module 'sinl'.
32851         * modules/sinl-tests: New file.
32852         * tests/test-sinl.c: New file.
32853
32854         Tests for module 'logl'.
32855         * modules/logl-tests: New file.
32856         * tests/test-logl.c: New file.
32857
32858         Tests for module 'expl'.
32859         * modules/expl-tests: New file.
32860         * tests/test-expl.c: New file.
32861
32862         Tests for module 'cosl'.
32863         * modules/cosl-tests: New file.
32864         * tests/test-cosl.c: New file.
32865
32866         Tests for module 'atanl'.
32867         * modules/atanl-tests: New file.
32868         * tests/test-atanl.c: New file.
32869
32870         Tests for module 'asinl'.
32871         * modules/asinl-tests: New file.
32872         * tests/test-asinl.c: New file.
32873
32874         Tests for module 'acosl'.
32875         * modules/acosl-tests: New file.
32876         * tests/test-acosl.c: New file.
32877
32878         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32879         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
32880         tanl): Use the standard gnulib idiom.
32881         * lib/cosl.c: Don't include trigl.c and sincosl.c.
32882         * lib/sinl.c: Likewise.
32883         * lib/tanl.c: Don't include trigl.c.
32884         (kernel_tanl): Make static.
32885         * lib/sincosl.c: Include trigl.h first.
32886         * lib/trigl.c: Likewise.
32887         * m4/acosl.m4: New file.
32888         * m4/asinl.m4: New file.
32889         * m4/atanl.m4: New file.
32890         * m4/cosl.m4: New file.
32891         * m4/expl.m4: New file.
32892         * m4/logl.m4: New file.
32893         * m4/sinl.m4: New file.
32894         * m4/sqrtl.m4: New file.
32895         * m4/tanl.m4: New file.
32896         * m4/mathl.m4: Remove file.
32897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
32898         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32899         Don't initialize GNULIB_MATHL.
32900         * modules/acosl: New file.
32901         * modules/asinl: New file.
32902         * modules/atanl: New file.
32903         * modules/cosl: New file.
32904         * modules/expl: New file.
32905         * modules/logl: New file.
32906         * modules/sinl: New file.
32907         * modules/sqrtl: New file.
32908         * modules/tanl: New file.
32909         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
32910         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
32911         substitute GNULIB_MATHL.
32912         * modules/mathl: Rewritten.
32913         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
32914         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
32915         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
32916         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
32917         * doc/posix-functions/expl.texi: Mention the 'expl' module.
32918         * doc/posix-functions/logl.texi: Mention the 'logl' module.
32919         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
32920         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
32921         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
32922
32923 2010-01-18  Bruno Haible  <bruno@clisp.org>
32924
32925         sqrt: Make gl_FUNC_SQRT requirable.
32926         * m4/sqrt.m4: New file.
32927         * modules/sqrt (Files): Add it.
32928         (configure.ac): Invoke gl_FUNC_SQRT.
32929
32930 2010-01-18  Bruno Haible  <bruno@clisp.org>
32931
32932         New modules for common <math.h> functions.
32933         * m4/mathfunc.m4: New file.
32934         * modules/acos: New file.
32935         * modules/asin: New file.
32936         * modules/atan: New file.
32937         * modules/atan2: New file.
32938         * modules/cbrt: New file.
32939         * modules/copysign: New file.
32940         * modules/cos: New file.
32941         * modules/cosh: New file.
32942         * modules/erf: New file.
32943         * modules/erfc: New file.
32944         * modules/exp: New file.
32945         * modules/fabs: New file.
32946         * modules/fmod: New file.
32947         * modules/hypot: New file.
32948         * modules/j0: New file.
32949         * modules/j1: New file.
32950         * modules/jn: New file.
32951         * modules/ldexp: New file.
32952         * modules/lgamma: New file.
32953         * modules/log: New file.
32954         * modules/log10: New file.
32955         * modules/log1p: New file.
32956         * modules/logb: New file.
32957         * modules/modf: New file.
32958         * modules/nextafter: New file.
32959         * modules/pow: New file.
32960         * modules/remainder: New file.
32961         * modules/rint: New file.
32962         * modules/sin: New file.
32963         * modules/sinh: New file.
32964         * modules/sqrt: New file.
32965         * modules/tan: New file.
32966         * modules/tanh: New file.
32967         * modules/y0: New file.
32968         * modules/y1: New file.
32969         * modules/yn: New file.
32970         * doc/posix-functions/acos.texi: Mention the 'acos' module.
32971         * doc/posix-functions/asin.texi: Mention the 'asin' module.
32972         * doc/posix-functions/atan.texi: Mention the 'atan' module.
32973         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
32974         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
32975         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
32976         * doc/posix-functions/cos.texi: Mention the 'cos' module.
32977         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
32978         * doc/posix-functions/erf.texi: Mention the 'erf' module.
32979         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
32980         * doc/posix-functions/exp.texi: Mention the 'exp' module.
32981         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
32982         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
32983         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
32984         * doc/posix-functions/j0.texi: Mention the 'j0' module.
32985         * doc/posix-functions/j1.texi: Mention the 'j1' module.
32986         * doc/posix-functions/jn.texi: Mention the 'jn' module.
32987         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
32988         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
32989         * doc/posix-functions/log.texi: Mention the 'log' module.
32990         * doc/posix-functions/log10.texi: Mention the 'log10' module.
32991         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
32992         * doc/posix-functions/logb.texi: Mention the 'logb' module.
32993         * doc/posix-functions/modf.texi: Mention the 'modf' module.
32994         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
32995         * doc/posix-functions/pow.texi: Mention the 'pow' module.
32996         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
32997         * doc/posix-functions/rint.texi: Mention the 'rint' module.
32998         * doc/posix-functions/sin.texi: Mention the 'sin' module.
32999         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33000         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33001         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33002         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33003         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33004         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33005         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33006
33007 2010-01-18  Jim Meyering  <meyering@redhat.com>
33008
33009         ignore-value: relax license to LGPLv2+
33010         * modules/ignore-value (License): Relax to LGPLv2+.
33011
33012         getdate: don't leak when TZ contains two or more '"'s
33013         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33014         double quote in TZ after the first one.
33015
33016         readtokens: do not leak internal token_lengths buffer
33017         * lib/readtokens.c (readtokens): Free the local, lengths,
33018         when the supplied "token_lengths" parameter is NULL.
33019
33020 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33021
33022         Fix a couple of missing LIBTHREAD link failures on AIX.
33023         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33024         $(LIBTHREAD).
33025         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33026
33027         Link test-poll against INET_PTON_LIB.
33028         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33029         for inet_pton on Solaris 10.
33030
33031 2010-01-17  Bruno Haible  <bruno@clisp.org>
33032
33033         unistdio/*-sprintf: Fix typo in module description.
33034         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33035         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33036         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33037         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33038         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33039         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33040         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33041         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33042
33043 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33044
33045         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33046         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33047         variables in shell case patterns, for AIX and HP-UX ksh.
33048
33049         Split large sed scripts, for HP-UX sed.
33050         * modules/stdio: Split sed scripts around 50 sed commands,
33051         to avoid HP-UX limit of 99 commands, in the near future.
33052         * modules/string: Likewise.
33053         * modules/unistd: Likewise.
33054
33055         gnulib-tool: avoid writing in the current directory.
33056         * gnulib-tool (func_emit_lib_Makefile_am)
33057         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33058         not in the current directory, so concurrent gnulib-tool
33059         instances do not interfere.
33060
33061 2010-01-16  Jim Meyering  <meyering@redhat.com>
33062
33063         doc: update users.txt
33064         * users.txt: Add grep.
33065         (diffutils, gzip): Update URLs.
33066
33067 2010-01-12  Bruno Haible  <bruno@clisp.org>
33068
33069         posix_spawn: Avoid test failure on Cygwin.
33070         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33071         characters.
33072         Reported by Simon Josefsson.
33073
33074 2010-01-12  Bruno Haible  <bruno@clisp.org>
33075
33076         * tests/test-cond.c (main): When skipping the test, show the reason.
33077
33078 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33079
33080         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33081
33082 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33083
33084         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33085         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33086
33087 2010-01-12  Eric Blake  <ebb9@byu.net>
33088
33089         build: guarantee AS_VAR_IF
33090         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33091         (gl_AS_VAR_IF): Move...
33092         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33093         Reported by Simon Josefsson.
33094
33095 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33096
33097         * lib/stdio.in.h: Fix typo.
33098
33099 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33100
33101         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33102         libgpg-error.
33103
33104 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33105
33106         * tests/test-xalloc-die.sh: Use $EXEEXT.
33107
33108 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33109             Bruno Haible  <bruno@clisp.org>
33110
33111         getlogin, getlogin_r: Avoid test failure.
33112         * tests/test-getlogin.c: Include <stdio.h>.
33113         (main): Skip the test when the function fails because stdin is not a
33114         tty.
33115         * tests/test-getlogin_r.c: Include <stdio.h>.
33116         (main): Skip the test when the function fails because stdin is not a
33117         tty.
33118
33119 2010-01-11  Eric Blake  <ebb9@byu.net>
33120
33121         tests: avoid more large file warnings
33122         * tests/test-fflush.c: Avoid warning about ftell use.
33123         * tests/test-fseek.c: Avoid warning about fseek use.
33124
33125 2010-01-10  Bruno Haible  <bruno@clisp.org>
33126
33127         nproc: Work better on Linux when /proc and /sys are not mounted.
33128         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33129         as lower bound when, on glibc/Linux systems,
33130         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33131         Suggested by Pádraig Brady <P@draigbrady.com>.
33132         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33133
33134         nproc: Refactor.
33135         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33136         extracted from num_processors.
33137         (num_processors): Call it.
33138
33139 2010-01-11  Jim Meyering  <meyering@redhat.com>
33140
33141         utimecmp: avoid new warning from upcoming gcc-4.5.0
33142         * lib/utimecmp.c (BILLION): Define using #define rather than an
33143         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33144
33145 2010-01-11  Eric Blake  <ebb9@byu.net>
33146
33147         math: add portability warnings for classification macros
33148         * modules/math (Depends-on): Add warn-on-use.
33149         (Makefile.am): Provide new substitutions.
33150         * m4/math_h.m4 (gl_MATH_H): Require inline.
33151         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33152         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33153         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33154         implement warnings.
33155
33156         unistd: warn on use of environ without module
33157         * modules/unistd (Depends-on): Add warn-on-use.
33158         (Makefile.am): Provide new substitutions.
33159         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33160         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33161
33162         stdio: warn on suspicious uses
33163         * modules/stdio (Depends-on): Add warn-on-use.
33164         (Makefile.am): Provide new substitutions.
33165         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33166         fseeko.
33167         * lib/stdio.in.h (gets): Always warn on use.
33168         (fseek, ftell): Adjust when warnings are issued, and honor
33169         _GL_NO_LARGE_FILES as a way to silence the warning.
33170         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33171         any warning about large file offsets.
33172         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33173         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33174         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33175         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33176         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33177         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33178         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33179         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33180
33181         warn-on-use: new module
33182         * modules/warn-on-use: New file.
33183         * build-aux/warn-on-use.h: Likewise.
33184         * m4/warn-on-use.m4: Likewise.
33185         * MODULES.html.sh (Support for building): Mention it.
33186
33187 2010-01-10  Bruno Haible  <bruno@clisp.org>
33188
33189         Tests for module 'unistr/u32-strdup'.
33190         * modules/unistr/u32-strdup-tests: New file.
33191         * tests/unistr/test-u32-strdup.c: New file.
33192
33193         Tests for module 'unistr/u16-strdup'.
33194         * modules/unistr/u16-strdup-tests: New file.
33195         * tests/unistr/test-u16-strdup.c: New file.
33196
33197         Tests for module 'unistr/u8-strdup'.
33198         * modules/unistr/u8-strdup-tests: New file.
33199         * tests/unistr/test-u8-strdup.c: New file.
33200         * tests/unistr/test-strdup.h: New file.
33201
33202         Tests for module 'unistr/u32-strncmp'.
33203         * modules/unistr/u32-strncmp-tests: New file.
33204         * tests/unistr/test-u32-strncmp.c: New file.
33205
33206         Tests for module 'unistr/u16-strncmp'.
33207         * modules/unistr/u16-strncmp-tests: New file.
33208         * tests/unistr/test-u16-strncmp.c: New file.
33209
33210         Tests for module 'unistr/u8-strncmp'.
33211         * modules/unistr/u8-strncmp-tests: New file.
33212         * tests/unistr/test-u8-strncmp.c: New file.
33213         * tests/unistr/test-strncmp.h: New file.
33214
33215         Tests for module 'unistr/u32-strcoll'.
33216         * modules/unistr/u32-strcoll-tests: New file.
33217         * tests/unistr/test-u32-strcoll.c: New file.
33218
33219         Tests for module 'unistr/u16-strcoll'.
33220         * modules/unistr/u16-strcoll-tests: New file.
33221         * tests/unistr/test-u16-strcoll.c: New file.
33222
33223         Tests for module 'unistr/u8-strcoll'.
33224         * modules/unistr/u8-strcoll-tests: New file.
33225         * tests/unistr/test-u8-strcoll.c: New file.
33226
33227         Tests for module 'unistr/u32-strcmp'.
33228         * modules/unistr/u32-strcmp-tests: New file.
33229         * tests/unistr/test-u32-strcmp.c: New file.
33230         * tests/unistr/test-u32-strcmp.h: New file.
33231
33232         Tests for module 'unistr/u16-strcmp'.
33233         * modules/unistr/u16-strcmp-tests: New file.
33234         * tests/unistr/test-u16-strcmp.c: New file.
33235         * tests/unistr/test-u16-strcmp.h: New file.
33236
33237         Tests for module 'unistr/u8-strcmp'.
33238         * modules/unistr/u8-strcmp-tests: New file.
33239         * tests/unistr/test-u8-strcmp.c: New file.
33240         * tests/unistr/test-u8-strcmp.h: New file.
33241         * tests/unistr/test-strcmp.h: New file.
33242
33243         Tests for module 'unistr/u32-strncat'.
33244         * modules/unistr/u32-strncat-tests: New file.
33245         * tests/unistr/test-u32-strncat.c: New file.
33246
33247         Tests for module 'unistr/u16-strncat'.
33248         * modules/unistr/u16-strncat-tests: New file.
33249         * tests/unistr/test-u16-strncat.c: New file.
33250
33251         Tests for module 'unistr/u8-strncat'.
33252         * modules/unistr/u8-strncat-tests: New file.
33253         * tests/unistr/test-u8-strncat.c: New file.
33254         * tests/unistr/test-strncat.h: New file.
33255
33256         Tests for module 'unistr/u32-strcat'.
33257         * modules/unistr/u32-strcat-tests: New file.
33258         * tests/unistr/test-u32-strcat.c: New file.
33259
33260         Tests for module 'unistr/u16-strcat'.
33261         * modules/unistr/u16-strcat-tests: New file.
33262         * tests/unistr/test-u16-strcat.c: New file.
33263
33264         Tests for module 'unistr/u8-strcat'.
33265         * modules/unistr/u8-strcat-tests: New file.
33266         * tests/unistr/test-u8-strcat.c: New file.
33267         * tests/unistr/test-strcat.h: New file.
33268
33269         Tests for module 'unistr/u32-stpncpy'.
33270         * modules/unistr/u32-stpncpy-tests: New file.
33271         * tests/unistr/test-u32-stpncpy.c: New file.
33272
33273         Tests for module 'unistr/u16-stpncpy'.
33274         * modules/unistr/u16-stpncpy-tests: New file.
33275         * tests/unistr/test-u16-stpncpy.c: New file.
33276
33277         Tests for module 'unistr/u8-stpncpy'.
33278         * modules/unistr/u8-stpncpy-tests: New file.
33279         * tests/unistr/test-u8-stpncpy.c: New file.
33280         * tests/unistr/test-stpncpy.h: New file.
33281
33282         Tests for module 'unistr/u32-strncpy'.
33283         * modules/unistr/u32-strncpy-tests: New file.
33284         * tests/unistr/test-u32-strncpy.c: New file.
33285
33286         Tests for module 'unistr/u16-strncpy'.
33287         * modules/unistr/u16-strncpy-tests: New file.
33288         * tests/unistr/test-u16-strncpy.c: New file.
33289
33290         Tests for module 'unistr/u8-strncpy'.
33291         * modules/unistr/u8-strncpy-tests: New file.
33292         * tests/unistr/test-u8-strncpy.c: New file.
33293         * tests/unistr/test-strncpy.h: New file.
33294
33295         Tests for module 'unistr/u32-stpcpy'.
33296         * modules/unistr/u32-stpcpy-tests: New file.
33297         * tests/unistr/test-u32-stpcpy.c: New file.
33298
33299         Tests for module 'unistr/u16-stpcpy'.
33300         * modules/unistr/u16-stpcpy-tests: New file.
33301         * tests/unistr/test-u16-stpcpy.c: New file.
33302
33303         Tests for module 'unistr/u8-stpcpy'.
33304         * modules/unistr/u8-stpcpy-tests: New file.
33305         * tests/unistr/test-u8-stpcpy.c: New file.
33306         * tests/unistr/test-stpcpy.h: New file.
33307
33308         Tests for module 'unistr/u32-strcpy'.
33309         * modules/unistr/u32-strcpy-tests: New file.
33310         * tests/unistr/test-u32-strcpy.c: New file.
33311
33312         Tests for module 'unistr/u16-strcpy'.
33313         * modules/unistr/u16-strcpy-tests: New file.
33314         * tests/unistr/test-u16-strcpy.c: New file.
33315
33316         Tests for module 'unistr/u8-strcpy'.
33317         * modules/unistr/u8-strcpy-tests: New file.
33318         * tests/unistr/test-u8-strcpy.c: New file.
33319         * tests/unistr/test-strcpy.h: New file.
33320
33321         Tests for module 'unistr/u32-strnlen'.
33322         * modules/unistr/u32-strnlen-tests: New file.
33323         * tests/unistr/test-u32-strnlen.c: New file.
33324
33325         Tests for module 'unistr/u16-strnlen'.
33326         * modules/unistr/u16-strnlen-tests: New file.
33327         * tests/unistr/test-u16-strnlen.c: New file.
33328
33329         Tests for module 'unistr/u8-strnlen'.
33330         * modules/unistr/u8-strnlen-tests: New file.
33331         * tests/unistr/test-u8-strnlen.c: New file.
33332         * tests/unistr/test-strnlen.h: New file.
33333
33334         Tests for module 'unistr/u32-strlen'.
33335         * modules/unistr/u32-strlen-tests: New file.
33336         * tests/unistr/test-u32-strlen.c: New file.
33337
33338         Tests for module 'unistr/u16-strlen'.
33339         * modules/unistr/u16-strlen-tests: New file.
33340         * tests/unistr/test-u16-strlen.c: New file.
33341
33342         Tests for module 'unistr/u8-strlen'.
33343         * modules/unistr/u8-strlen-tests: New file.
33344         * tests/unistr/test-u8-strlen.c: New file.
33345
33346         Tests for module 'unistr/u32-prev'.
33347         * modules/unistr/u32-prev-tests: New file.
33348         * tests/unistr/test-u32-prev.c: New file.
33349
33350         Tests for module 'unistr/u16-prev'.
33351         * modules/unistr/u16-prev-tests: New file.
33352         * tests/unistr/test-u16-prev.c: New file.
33353
33354         Tests for module 'unistr/u8-prev'.
33355         * modules/unistr/u8-prev-tests: New file.
33356         * tests/unistr/test-u8-prev.c: New file.
33357
33358         Tests for module 'unistr/u32-next'.
33359         * modules/unistr/u32-next-tests: New file.
33360         * tests/unistr/test-u32-next.c: New file.
33361
33362         Tests for module 'unistr/u16-next'.
33363         * modules/unistr/u16-next-tests: New file.
33364         * tests/unistr/test-u16-next.c: New file.
33365
33366         Tests for module 'unistr/u8-next'.
33367         * modules/unistr/u8-next-tests: New file.
33368         * tests/unistr/test-u8-next.c: New file.
33369
33370         Tests for module 'unistr/u32-strmbtouc'.
33371         * modules/unistr/u32-strmbtouc-tests: New file.
33372         * tests/unistr/test-u32-strmbtouc.c: New file.
33373
33374         Tests for module 'unistr/u16-strmbtouc'.
33375         * modules/unistr/u16-strmbtouc-tests: New file.
33376         * tests/unistr/test-u16-strmbtouc.c: New file.
33377
33378         Tests for module 'unistr/u8-strmbtouc'.
33379         * modules/unistr/u8-strmbtouc-tests: New file.
33380         * tests/unistr/test-u8-strmbtouc.c: New file.
33381
33382         Tests for module 'unistr/u32-strmblen'.
33383         * modules/unistr/u32-strmblen-tests: New file.
33384         * tests/unistr/test-u32-strmblen.c: New file.
33385
33386         Tests for module 'unistr/u16-strmblen'.
33387         * modules/unistr/u16-strmblen-tests: New file.
33388         * tests/unistr/test-u16-strmblen.c: New file.
33389
33390         Tests for module 'unistr/u8-strmblen'.
33391         * modules/unistr/u8-strmblen-tests: New file.
33392         * tests/unistr/test-u8-strmblen.c: New file.
33393
33394         Tests for module 'unistr/u32-cpy-alloc'.
33395         * modules/unistr/u32-cpy-alloc-tests: New file.
33396         * tests/unistr/test-u32-cpy-alloc.c: New file.
33397
33398         Tests for module 'unistr/u16-cpy-alloc'.
33399         * modules/unistr/u16-cpy-alloc-tests: New file.
33400         * tests/unistr/test-u16-cpy-alloc.c: New file.
33401
33402         Tests for module 'unistr/u8-cpy-alloc'.
33403         * modules/unistr/u8-cpy-alloc-tests: New file.
33404         * tests/unistr/test-u8-cpy-alloc.c: New file.
33405         * tests/unistr/test-cpy-alloc.h: New file.
33406
33407         Tests for module 'unistr/u32-mbsnlen'.
33408         * modules/unistr/u32-mbsnlen-tests: New file.
33409         * tests/unistr/test-u32-mbsnlen.c: New file.
33410
33411         Tests for module 'unistr/u16-mbsnlen'.
33412         * modules/unistr/u16-mbsnlen-tests: New file.
33413         * tests/unistr/test-u16-mbsnlen.c: New file.
33414
33415         Tests for module 'unistr/u8-mbsnlen'.
33416         * modules/unistr/u8-mbsnlen-tests: New file.
33417         * tests/unistr/test-u8-mbsnlen.c: New file.
33418
33419         Tests for module 'unistr/u32-chr'.
33420         * modules/unistr/u32-chr-tests: New file.
33421         * tests/unistr/test-u32-chr.c: New file.
33422
33423         Tests for module 'unistr/u16-chr'.
33424         * modules/unistr/u16-chr-tests: New file.
33425         * tests/unistr/test-u16-chr.c: New file.
33426
33427         Tests for module 'unistr/u8-chr'.
33428         * modules/unistr/u8-chr-tests: New file.
33429         * tests/unistr/test-u8-chr.c: New file.
33430         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33431
33432         Tests for module 'unistr/u32-cmp2'.
33433         * modules/unistr/u32-cmp2-tests: New file.
33434         * tests/unistr/test-u32-cmp2.c: New file.
33435
33436         Tests for module 'unistr/u16-cmp2'.
33437         * modules/unistr/u16-cmp2-tests: New file.
33438         * tests/unistr/test-u16-cmp2.c: New file.
33439
33440         Tests for module 'unistr/u8-cmp2'.
33441         * modules/unistr/u8-cmp2-tests: New file.
33442         * tests/unistr/test-u8-cmp2.c: New file.
33443         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33444
33445         Tests for module 'unistr/u32-cmp'.
33446         * modules/unistr/u32-cmp-tests: New file.
33447         * tests/unistr/test-u32-cmp.c: New file.
33448
33449         Tests for module 'unistr/u16-cmp'.
33450         * modules/unistr/u16-cmp-tests: New file.
33451         * tests/unistr/test-u16-cmp.c: New file.
33452
33453         Tests for module 'unistr/u8-cmp'.
33454         * modules/unistr/u8-cmp-tests: New file.
33455         * tests/unistr/test-u8-cmp.c: New file.
33456         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33457
33458         Tests for module 'unistr/u32-set'.
33459         * modules/unistr/u32-set-tests: New file.
33460         * tests/unistr/test-u32-set.c: New file.
33461
33462         Tests for module 'unistr/u16-set'.
33463         * modules/unistr/u16-set-tests: New file.
33464         * tests/unistr/test-u16-set.c: New file.
33465
33466         Tests for module 'unistr/u8-set'.
33467         * modules/unistr/u8-set-tests: New file.
33468         * tests/unistr/test-u8-set.c: New file.
33469         * tests/unistr/test-set.h: New file.
33470
33471         Tests for module 'unistr/u32-move'.
33472         * modules/unistr/u32-move-tests: New file.
33473         * tests/unistr/test-u32-move.c: New file.
33474
33475         Tests for module 'unistr/u16-move'.
33476         * modules/unistr/u16-move-tests: New file.
33477         * tests/unistr/test-u16-move.c: New file.
33478
33479         Tests for module 'unistr/u8-move'.
33480         * modules/unistr/u8-move-tests: New file.
33481         * tests/unistr/test-u8-move.c: New file.
33482         * tests/unistr/test-move.h: New file.
33483
33484         Tests for module 'unistr/u32-cpy'.
33485         * modules/unistr/u32-cpy-tests: New file.
33486         * tests/unistr/test-u32-cpy.c: New file.
33487
33488         Tests for module 'unistr/u16-cpy'.
33489         * modules/unistr/u16-cpy-tests: New file.
33490         * tests/unistr/test-u16-cpy.c: New file.
33491
33492         Tests for module 'unistr/u8-cpy'.
33493         * modules/unistr/u8-cpy-tests: New file.
33494         * tests/unistr/test-u8-cpy.c: New file.
33495         * tests/unistr/test-cpy.h: New file.
33496
33497 2010-01-09  Bruno Haible  <bruno@clisp.org>
33498
33499         Tests for module 'unistr/u32-uctomb'.
33500         * modules/unistr/u32-uctomb-tests: New file.
33501         * tests/unistr/test-u32-uctomb.c: New file.
33502
33503         Tests for module 'unistr/u16-uctomb'.
33504         * modules/unistr/u16-uctomb-tests: New file.
33505         * tests/unistr/test-u16-uctomb.c: New file.
33506
33507         Tests for module 'unistr/u8-uctomb'.
33508         * modules/unistr/u8-uctomb-tests: New file.
33509         * tests/unistr/test-u8-uctomb.c: New file.
33510
33511         Tests for module 'unistr/u32-mbtoucr'.
33512         * modules/unistr/u32-mbtoucr-tests: New file.
33513         * tests/unistr/test-u32-mbtoucr.c: New file.
33514
33515         Tests for module 'unistr/u16-mbtoucr'.
33516         * modules/unistr/u16-mbtoucr-tests: New file.
33517         * tests/unistr/test-u16-mbtoucr.c: New file.
33518
33519         Tests for module 'unistr/u8-mbtoucr'.
33520         * modules/unistr/u8-mbtoucr-tests: New file.
33521         * tests/unistr/test-u8-mbtoucr.c: New file.
33522
33523         Tests for module 'unistr/u32-mbtouc'.
33524         * modules/unistr/u32-mbtouc-tests: New file.
33525         * tests/unistr/test-u32-mbtouc.c: New file.
33526
33527         Tests for module 'unistr/u16-mbtouc'.
33528         * modules/unistr/u16-mbtouc-tests: New file.
33529         * tests/unistr/test-u16-mbtouc.c: New file.
33530
33531         Tests for module 'unistr/u8-mbtouc'.
33532         * modules/unistr/u8-mbtouc-tests: New file.
33533         * tests/unistr/test-u8-mbtouc.c: New file.
33534
33535         Tests for module 'unistr/u32-mbtouc-unsafe'.
33536         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33537         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33538         * tests/unistr/test-u32-mbtouc.h: New file.
33539
33540         Tests for module 'unistr/u16-mbtouc-unsafe'.
33541         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33542         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33543         * tests/unistr/test-u16-mbtouc.h: New file.
33544
33545         Tests for module 'unistr/u8-mbtouc-unsafe'.
33546         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33547         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33548         * tests/unistr/test-u8-mbtouc.h: New file.
33549
33550         Tests for module 'unistr/u32-mblen'.
33551         * modules/unistr/u32-mblen-tests: New file.
33552         * tests/unistr/test-u32-mblen.c: New file.
33553
33554         Tests for module 'unistr/u16-mblen'.
33555         * modules/unistr/u16-mblen-tests: New file.
33556         * tests/unistr/test-u16-mblen.c: New file.
33557
33558         Tests for module 'unistr/u8-mblen'.
33559         * modules/unistr/u8-mblen-tests: New file.
33560         * tests/unistr/test-u8-mblen.c: New file.
33561
33562         Tests for module 'unistr/u32-to-u16'.
33563         * modules/unistr/u32-to-u16-tests: New file.
33564         * tests/unistr/test-u32-to-u16.c: New file.
33565
33566         Tests for module 'unistr/u32-to-u8'.
33567         * modules/unistr/u32-to-u8-tests: New file.
33568         * tests/unistr/test-u32-to-u8.c: New file.
33569
33570         Tests for module 'unistr/u16-to-u32'.
33571         * modules/unistr/u16-to-u32-tests: New file.
33572         * tests/unistr/test-u16-to-u32.c: New file.
33573
33574         Tests for module 'unistr/u16-to-u8'.
33575         * modules/unistr/u16-to-u8-tests: New file.
33576         * tests/unistr/test-u16-to-u8.c: New file.
33577
33578         Tests for module 'unistr/u8-to-u32'.
33579         * modules/unistr/u8-to-u32-tests: New file.
33580         * tests/unistr/test-u8-to-u32.c: New file.
33581
33582         Tests for module 'unistr/u8-to-u16'.
33583         * modules/unistr/u8-to-u16-tests: New file.
33584         * tests/unistr/test-u8-to-u16.c: New file.
33585
33586         Tests for module 'unistr/u32-check'.
33587         * modules/unistr/u32-check-tests: New file.
33588         * tests/unistr/test-u32-check.c: New file.
33589
33590         Tests for module 'unistr/u16-check'.
33591         * modules/unistr/u16-check-tests: New file.
33592         * tests/unistr/test-u16-check.c: New file.
33593
33594         Tests for module 'unistr/u8-check'.
33595         * modules/unistr/u8-check-tests: New file.
33596         * tests/unistr/test-u8-check.c: New file.
33597
33598         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33599         (category_equals): New function.
33600         (main): Add more tests.
33601         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33602
33603         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33604
33605 2010-01-10  Bruno Haible  <bruno@clisp.org>
33606
33607         unistr/u*-strcoll: Try harder to distinguish different strings.
33608         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33609         compare s1 and s2 to see if they are different.
33610
33611 2010-01-10  Bruno Haible  <bruno@clisp.org>
33612
33613         unistr/u*-stpncpy: Fix the return value.
33614         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33615         description of the return value consistent with stpncpy in glibc.
33616         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33617         written non-NUL unit.
33618
33619 2010-01-10  Bruno Haible  <bruno@clisp.org>
33620
33621         unistr/u*-next: Add missing dependencies.
33622         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33623         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33624         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33625
33626 2010-01-10  Bruno Haible  <bruno@clisp.org>
33627
33628         unistr/u8-mbsnlen: Fix return value for incomplete character.
33629         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33630         u8_mblen.
33631         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33632         Remove unistr/u8-mblen.
33633         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33634         u16_mblen.
33635         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33636         Remove unistr/u16-mblen.
33637
33638 2010-01-10  Bruno Haible  <bruno@clisp.org>
33639
33640         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33641         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33642         Reported by Brian Gough <bjg@gnu.org> and
33643         Chris Clayton <chris2553@googlemail.com> via
33644         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33645
33646 2010-01-09  Bruno Haible  <bruno@clisp.org>
33647
33648         unistr/u16-to-u32: Reject invalid input.
33649         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33650         u16_mbtouc.
33651         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33652         Remove unistr/u16-mbtouc.
33653
33654         unistr/u16-to-u8: Reject invalid input.
33655         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33656         u16_mbtouc.
33657         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33658         Remove unistr/u16-mbtouc.
33659
33660         unistr/u8-to-u32: Reject invalid input.
33661         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33662         u8_mbtouc.
33663         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33664         Remove unistr/u8-mbtouc.
33665
33666         unistr/u8-to-u16: Reject invalid input.
33667         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33668         u8_mbtouc.
33669         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33670         Remove unistr/u8-mbtouc.
33671
33672 2010-01-09  Bruno Haible  <bruno@clisp.org>
33673
33674         Tests for module 'getlogin'.
33675         * modules/getlogin-tests: New file.
33676         * tests/test-getlogin.c: New file.
33677
33678         New module 'getlogin'.
33679         * lib/unistd.in.h (getlogin): New declaration.
33680         * lib/getlogin.c: New file.
33681         * m4/getlogin.m4: New file.
33682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33683         HAVE_GETLOGIN.
33684         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33685         HAVE_GETLOGIN.
33686         * modules/getlogin: New file.
33687         * doc/posix-functions/getlogin.texi: Mention the new module.
33688         Reported by John W. Eaton <jwe@gnu.org>.
33689
33690 2010-01-09  Bruno Haible  <bruno@clisp.org>
33691
33692         getlogin_r: Support for native Windows.
33693         * lib/getlogin_r.c: Include <windows.h>
33694         (getlogin_r): Implement for native Windows.
33695         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33696         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33697         via John W. Eaton <jwe@gnu.org>.
33698
33699 2010-01-09  Bruno Haible  <bruno@clisp.org>
33700
33701         getlogin_r: Small fixes.
33702         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33703         succeeds.
33704         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33705         before testing whether getlogin_r is declared. No need to set
33706         HAVE_DECL_GETLOGIN_R to 1.
33707         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33708
33709 2010-01-09  Bruno Haible  <bruno@clisp.org>
33710
33711         * lib/unistd.in.h (getlogin_r): Add comment.
33712
33713 2010-01-09  Bruno Haible  <bruno@clisp.org>
33714
33715         Tests for module 'getlogin_r'.
33716         * modules/getlogin_r-tests: New file.
33717         * tests/test-getlogin_r.c: New file.
33718
33719 2010-01-09  Jim Meyering  <meyering@redhat.com>
33720
33721         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33722         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33723         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33724
33725 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33726
33727         * lib/dup2.c (rpl_dup2): Improve comment.
33728
33729 2010-01-08  Eric Blake  <ebb9@byu.net>
33730
33731         maint.mk: allow packages to add makefile @@ exceptions
33732         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33733         (sc_makefile_check): Rename...
33734         (sc_makefile_at_at_check): ...to this, and use hook.
33735
33736         dup2: work around mingw bug
33737         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33738         Reported by Simon Josefsson.
33739
33740 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33741
33742         glob: Fix C++ compilation.
33743         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33744         C++.
33745
33746 2010-01-07  Bruno Haible  <bruno@clisp.org>
33747
33748         Fix indentation of wctype.in.h, broken since 2007-01-06.
33749         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33750
33751 2010-01-07  Bruno Haible  <bruno@clisp.org>
33752
33753         mbslen: Avoid collision with system function.
33754         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33755         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33756         * m4/mbslen.m4: New file.
33757         * modules/mbslen (Files): Add it.
33758         (configure.ac): Invoke gl_MBSLEN.
33759         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33760         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33761         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33762         via Ian Beckwith <ianb@erislabs.net>.
33763
33764 2010-01-07  Bruno Haible  <bruno@clisp.org>
33765
33766         dirent: Document the last fix.
33767         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33768
33769 2010-01-07  Bruno Haible  <bruno@clisp.org>
33770
33771         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33772         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33773         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33774         va_list are defined.
33775         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33776         Reported by Eric Blake.
33777
33778 2010-01-07  Bruno Haible  <bruno@clisp.org>
33779
33780         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33781         * modules/xlist (Depends-on): Add 'list',
33782         * modules/xoset (Depends-on): Add 'oset'.
33783         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33784
33785 2010-01-07  Bruno Haible  <bruno@clisp.org>
33786
33787         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33788         * doc/posix-functions/strncasecmp.texi: Likewise.
33789
33790 2010-01-07  Bruno Haible  <bruno@clisp.org>
33791
33792         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33793
33794 2010-01-07  John W. Eaton  <jwe@octave.org>
33795
33796         wctype: allow C++ use
33797         * lib/wctype.in.h: Add extern "C" block for C++.
33798
33799 2010-01-06  Eric Blake  <ebb9@byu.net>
33800
33801         maint.mk: detect incorrect GFDL usage
33802         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33803
33804 2010-01-06  Jim Meyering  <meyering@redhat.com>
33805         and Eric Blake  <ebb9@byu.net>
33806
33807         maint.mk: ignore multi-line copyright in NEWS
33808         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33809
33810 2010-01-06  Eric Blake  <ebb9@byu.net>
33811
33812         select: add missing dependency
33813         * modules/select-tests (Depends-on): Move sockets dependency...
33814         * modules/select (Depends-on): ...here.
33815         Reported by Ian Beckwith.
33816
33817         doc: regenerate INSTALL
33818         * doc/INSTALL: Reflect recent autoconf update.
33819         * doc/INSTALL.ISO: Likewise.
33820         * doc/INSTALL.UTF-8: Likewise.
33821
33822         pread: fix compilation on glibc
33823         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33824         Reported by Ralf Wildenhues.
33825
33826         dirent: fix test failure
33827         * lib/dirent.in.h (includes): Guarantee ino_t.
33828         Reported by Ralf Wildenhues.
33829
33830 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
33831
33832         linkat, renameat: avoid bad free
33833         * lib/at-func2.c (at_func2): Fix typo.
33834         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
33835
33836 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33837
33838         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
33839         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
33840         to avoid failure of symlink test later.
33841
33842 2010-01-06  Eric Blake  <ebb9@byu.net>
33843
33844         stdio, unistd: guarantee ssize_t
33845         * lib/unistd.in.h (includes): Ensure that types required by POSIX
33846         2008 are exposed when needed.
33847         * lib/stdio.in.h (includes): Likewise.
33848         Reported by Ralf Wildenhues.
33849
33850 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
33851
33852         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
33853         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
33854         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
33855
33856 2010-01-06  Jim Meyering  <meyering@redhat.com>
33857
33858         readtokens: this module *does* require xalloc.h
33859         It uses only functions that were omitted by the old syntax-check rule.
33860         * lib/readtokens.c: Include "xalloc.h" once again.
33861         * modules/readtokens (Depends-on): Add xalloc.
33862         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
33863
33864 2010-01-05  Eric Blake  <ebb9@byu.net>
33865
33866         maint: support 'make announcement' from a VPATH build
33867         * top/maint.mk (announcement): Look for correct NEWS file.
33868
33869 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
33870
33871         utimens (fdutimens): ignore a negative FD, per contract
33872         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
33873         when we have a valid file descriptor.  Otherwise, using a brand
33874         new glibc (with just-patched futimens that now fails with EBADF)
33875         would cause this function to fail with ENOSYS.
33876         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
33877         See also http://bugzilla.redhat.com/552320.
33878
33879 2010-01-05  Eric Blake  <ebb9@byu.net>
33880
33881         strcase: document what it provides
33882         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
33883         gnulib module.
33884         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
33885         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
33886
33887 2010-01-05  Jim Meyering  <meyering@redhat.com>
33888
33889         maint: remove useless inclusions of "xalloc.h"
33890         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
33891         * lib/readtokens.c: Likewise.
33892         * lib/same.c: Likewise.
33893         * modules/getloadavg (Depends-on): Remove xalloc.
33894         * modules/readtokens: Likewise.
33895         * modules/same: Likewise.
33896
33897         maint.mk: include 4 more function names in alloca.h-checking regexp
33898         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
33899         regexp.  Before, we would give a false-positive (saying alloca.h
33900         is included unnecessarily) when the only uses involved omitted symbols.
33901
33902         xalloc.h: use consistent formatting
33903         * lib/xalloc.h: Move declarations to start in the first column.
33904
33905 2010-01-05  Eric Blake  <ebb9@byu.net>
33906
33907         mkdir: avoid xalloc
33908         * lib/mkdir.c (includes): Drop unused header.
33909         Reported by John W. Eaton.
33910
33911 2010-01-04  Jim Meyering  <meyering@redhat.com>
33912
33913         nl_langinfo: avoid configure-time syntax error
33914         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
33915         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
33916         the empty string.  Don't let that provoke a shell syntax error.
33917
33918         regcomp, regexec, fnmatch: avoid array bounds read error
33919         * lib/regcomp.c (build_equiv_class): From glibc:
33920         Use only the low 24 bits of a findidx return value as an index
33921         into the weights array.  Patch by Ulrich Drepper:
33922         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
33923         * lib/regexec.c (check_node_accept_bytes): Likewise.
33924         * lib/fnmatch_loop.c (FCT): Likewise.
33925
33926         regcomp: skip collseq lookup when there are no rules
33927         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
33928         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
33929
33930         regcomp: recognize ill-formed { } expressions
33931         * lib/regcomp.c (parse_dup_op): From glibc:
33932         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
33933
33934         regcomp: fix typo in comment
33935         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
33936         s/satisfy/satisfies/.
33937
33938         regcomp: sync from glibc: remove dead store
33939         * lib/regcomp.c (duplicate_node_closure): Remove useless
33940         search_duplicated_node call and dead store.
33941
33942         regcomp: sync from glibc; always use nl_langinfo
33943         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
33944         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
33945         * modules/regex (Depends-on): Add nl_langinfo.
33946
33947 2010-01-04  Eric Blake  <ebb9@byu.net>
33948
33949         fdopendir: fix configure test
33950         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
33951
33952 2010-01-01  Bruno Haible  <bruno@clisp.org>
33953
33954         wchar: Remove unused configure check.
33955         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
33956
33957 2010-01-01  Eric Blake  <ebb9@byu.net>
33958
33959         headers: make check of system header explicit
33960         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
33961         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
33962         ourselves.
33963         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33964         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33965         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33966         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
33967         internals.
33968         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
33969         missing.
33970         Suggested by Bruno Haible.
33971
33972 2010-01-01  Jim Meyering  <meyering@redhat.com>
33973
33974         ChangeLog: tweak to eliminate unnecessary copyright line
33975         * ChangeLog: Remove a copyright line that was mistakenly updated
33976         by today's update-copyright run.  Reported by Eric Blake.
33977
33978         test-update-copyright: don't let envvar setting cause test failure
33979         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33980
33981 2010-01-01  Bruno Haible  <bruno@clisp.org>
33982
33983         localename: Avoid gcc warning.
33984         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
33985         function if it is not used.
33986
33987 2010-01-01  Jim Meyering  <meyering@redhat.com>
33988
33989         update nearly all FSF copyright year lists to include 2010
33990         Use the same procedure as for 2009, outlined in
33991         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
33992
33993         version-etc: set COPYRIGHT_YEAR to 2010
33994         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
33995
33996 2009-12-31  Eric Blake  <ebb9@byu.net>
33997
33998         doc: correct availability of cygwin 1.5.x getopt
33999         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34000         variables.
34001         * doc/posix-functions/opterr.texi (opterr): Likewise.
34002         * doc/posix-functions/optind.texi (optind): Likewise.
34003         * doc/posix-functions/optopt.texi (optopt): Likewise.
34004         * doc/posix-functions/tzname.texi (tzname): Likewise.
34005
34006         openat: update maintainer
34007         * modules/openat (Maintainer): Add myself.
34008
34009         utimens: avoid shadowing warning
34010         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34011         buffers into one, to avoid shadowing, as well as avoiding a
34012         redundant stat.
34013         Reported by Jim Meyering.
34014
34015         test-dup2: avoid compiler warning
34016         * tests/test-dup2.c (is_inheritable): Only define if used.
34017
34018 2010-01-01  Bruno Haible  <bruno@clisp.org>
34019
34020         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34021         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34022         defined, use wctomb instead of wcrtomb.
34023
34024 2010-01-01  Bruno Haible  <bruno@clisp.org>
34025
34026         iconv: Reject native Solaris iconv.
34027         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34028         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34029
34030 2009-12-31  Bruno Haible  <bruno@clisp.org>
34031
34032         * tests/test-signal.c (main): Remove test of 'SIG'.
34033
34034 2009-12-31  Bruno Haible  <bruno@clisp.org>
34035
34036         spawn: Fix incomplete fix.
34037         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34038         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34039         warnings for GNULIB_POSIXCHECK again.
34040         Reported by Eric Blake.
34041
34042 2009-12-31  Bruno Haible  <bruno@clisp.org>
34043
34044         Avoid namespace pollution on glibc systems.
34045         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34046         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34047         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34048         glibc systems.
34049
34050 2009-12-31  Bruno Haible  <bruno@clisp.org>
34051
34052         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34053         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34054         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34055         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34056         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34057         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34058         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34059
34060 2009-12-31  Bruno Haible  <bruno@clisp.org>
34061
34062         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34063         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34064         afterwards.
34065
34066 2009-12-31  Bruno Haible  <bruno@clisp.org>
34067
34068         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34069         SYS_UTSNAME_H.
34070
34071 2009-12-31  Bruno Haible  <bruno@clisp.org>
34072
34073         spawn: Fix misapplied patch.
34074         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34075         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34076         warnings for GNULIB_POSIXCHECK.
34077
34078 2009-12-31  Bruno Haible  <bruno@clisp.org>
34079
34080         times: Update after sys_times changed.
34081         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34082         * modules/times (Files): Add it.
34083         (configure.ac): Invoke gl_FUNC_TIMES.
34084
34085 2009-12-31  Bruno Haible  <bruno@clisp.org>
34086
34087         Use AC_C_INLINE where necessary.
34088         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34089         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34090         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34091         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34092         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34093         * m4/mbiter.m4 (gl_MBITER): Likewise.
34094         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34095         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34096         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34097         * modules/u64 (configure.ac): Likewise.
34098
34099 2009-12-31  Bruno Haible  <bruno@clisp.org>
34100
34101         Use AC_C_INLINE instead of module 'inline' where possible.
34102         * modules/inline (Description): Clarify purpose.
34103         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34104         * modules/count-one-bits (Depends-on): Remove inline.
34105         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34106         * modules/openat (Depends-on): Remove inline.
34107         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34108         instead of depending on module 'inline'.
34109         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34110         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34111         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34112         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34113         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34114         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34115         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34116         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34117         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34118         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34119         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34120         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34121         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34122         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34123         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34124         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34125         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34126         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34127         Likewise.
34128         * modules/unictype/property-ascii-hex-digit (Depends-on,
34129         configure.ac): Likewise.
34130         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34131         configure.ac): Likewise.
34132         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34133         configure.ac): Likewise.
34134         * modules/unictype/property-bidi-block-separator (Depends-on,
34135         configure.ac): Likewise.
34136         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34137         configure.ac): Likewise.
34138         * modules/unictype/property-bidi-common-separator (Depends-on,
34139         configure.ac): Likewise.
34140         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34141         Likewise.
34142         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34143         configure.ac): Likewise.
34144         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34145         configure.ac): Likewise.
34146         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34147         configure.ac): Likewise.
34148         * modules/unictype/property-bidi-european-digit (Depends-on,
34149         configure.ac): Likewise.
34150         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34151         configure.ac): Likewise.
34152         * modules/unictype/property-bidi-left-to-right (Depends-on,
34153         configure.ac): Likewise.
34154         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34155         configure.ac): Likewise.
34156         * modules/unictype/property-bidi-other-neutral (Depends-on,
34157         configure.ac): Likewise.
34158         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34159         Likewise.
34160         * modules/unictype/property-bidi-segment-separator (Depends-on,
34161         configure.ac): Likewise.
34162         * modules/unictype/property-bidi-whitespace (Depends-on,
34163         configure.ac): Likewise.
34164         * modules/unictype/property-combining (Depends-on, configure.ac):
34165         Likewise.
34166         * modules/unictype/property-composite (Depends-on, configure.ac):
34167         Likewise.
34168         * modules/unictype/property-currency-symbol (Depends-on,
34169         configure.ac): Likewise.
34170         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34171         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34172         Likewise.
34173         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34174         configure.ac): Likewise.
34175         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34176         Likewise.
34177         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34178         Likewise.
34179         * modules/unictype/property-extender (Depends-on, configure.ac):
34180         Likewise.
34181         * modules/unictype/property-format-control (Depends-on, configure.ac):
34182         Likewise.
34183         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34184         Likewise.
34185         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34186         Likewise.
34187         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34188         Likewise.
34189         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34190         Likewise.
34191         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34192         Likewise.
34193         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34194         Likewise.
34195         * modules/unictype/property-id-start (Depends-on, configure.ac):
34196         Likewise.
34197         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34198         Likewise.
34199         * modules/unictype/property-ids-binary-operator (Depends-on,
34200         configure.ac): Likewise.
34201         * modules/unictype/property-ids-trinary-operator (Depends-on,
34202         configure.ac): Likewise.
34203         * modules/unictype/property-ignorable-control (Depends-on,
34204         configure.ac): Likewise.
34205         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34206         Likewise.
34207         * modules/unictype/property-join-control (Depends-on, configure.ac):
34208         Likewise.
34209         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34210         Likewise.
34211         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34212         Likewise.
34213         * modules/unictype/property-logical-order-exception (Depends-on,
34214         configure.ac): Likewise.
34215         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34216         Likewise.
34217         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34218         * modules/unictype/property-non-break (Depends-on, configure.ac):
34219         Likewise.
34220         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34221         Likewise.
34222         * modules/unictype/property-numeric (Depends-on, configure.ac):
34223         Likewise.
34224         * modules/unictype/property-other-alphabetic (Depends-on,
34225         configure.ac): Likewise.
34226         * modules/unictype/property-other-default-ignorable-code-point
34227         (Depends-on, configure.ac): Likewise.
34228         * modules/unictype/property-other-grapheme-extend (Depends-on,
34229         configure.ac): Likewise.
34230         * modules/unictype/property-other-id-continue (Depends-on,
34231         configure.ac): Likewise.
34232         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34233         Likewise.
34234         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34235         Likewise.
34236         * modules/unictype/property-other-math (Depends-on, configure.ac):
34237         Likewise.
34238         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34239         Likewise.
34240         * modules/unictype/property-paired-punctuation (Depends-on,
34241         configure.ac): Likewise.
34242         * modules/unictype/property-paragraph-separator (Depends-on,
34243         configure.ac): Likewise.
34244         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34245         Likewise.
34246         * modules/unictype/property-pattern-white-space (Depends-on,
34247         configure.ac): Likewise.
34248         * modules/unictype/property-private-use (Depends-on, configure.ac):
34249         Likewise.
34250         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34251         Likewise.
34252         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34253         Likewise.
34254         * modules/unictype/property-radical (Depends-on, configure.ac):
34255         Likewise.
34256         * modules/unictype/property-sentence-terminal (Depends-on,
34257         configure.ac): Likewise.
34258         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34259         Likewise.
34260         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34261         * modules/unictype/property-terminal-punctuation (Depends-on,
34262         configure.ac): Likewise.
34263         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34264         Likewise.
34265         * modules/unictype/property-unassigned-code-value (Depends-on,
34266         configure.ac): Likewise.
34267         * modules/unictype/property-unified-ideograph (Depends-on,
34268         configure.ac): Likewise.
34269         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34270         Likewise.
34271         * modules/unictype/property-variation-selector (Depends-on,
34272         configure.ac): Likewise.
34273         * modules/unictype/property-white-space (Depends-on, configure.ac):
34274         Likewise.
34275         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34276         Likewise.
34277         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34278         Likewise.
34279         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34280         Likewise.
34281         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34282         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34283         Likewise.
34284
34285 2009-12-31  Bruno Haible  <bruno@clisp.org>
34286
34287         Remove unnecessary AC_C_INLINE invocation.
34288         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34289         since 2009-08-21.
34290
34291 2009-12-31  Jim Meyering  <meyering@redhat.com>
34292
34293         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34294         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34295         With this change, we can all remove the gpg_key_ID = ... definition
34296         from our respective cfg.mk files.
34297
34298         maint.mk: create announcement template in ~/, not in /tmp
34299         * top/maint.mk (emit_upload_commands): Adjust.
34300         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34301         Remove temporary file, .ci-msg.
34302
34303 2009-12-31  Eric Blake  <ebb9@byu.net>
34304
34305         link-warning: always build headers with link warnings
34306         * modules/arpa_inet (Makefile.am): Always build replacement
34307         header.
34308         * modules/ctype (Makefile.am): Likewise.
34309         * modules/dirent (Makefile.am): Likewise.
34310         * modules/inttypes (Makefile.am): Likewise.
34311         * modules/langinfo (Makefile.am): Likewise.
34312         * modules/locale (Makefile.am): Likewise.
34313         * modules/spawn (Makefile.am): Likewise.
34314         * modules/sys_file (Makefile.am): Likewise.
34315         * modules/sys_ioctl (Makefile.am): Likewise.
34316         * modules/sys_select (Makefile.am): Likewise.
34317         * modules/sys_socket (Makefile.am): Likewise.
34318         * modules/sys_times (Makefile.am): Likewise.
34319         * modules/sys_utsname (Makefile.am): Likewise.
34320         * modules/sys_wait (Makefile.am): Likewise.
34321         * modules/wchar (Makefile.am): Likewise.
34322         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34323         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34324         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34325         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34326         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34327         Likewise.
34328         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34329         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34330         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34331         Likewise.
34332         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34333         Likewise.
34334         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34335         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34336         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34337         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34338         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34339         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34340         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34341         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34342         (gl_WCHAR_H_DEFAULTS): Likewise.
34343
34344 2009-12-31  Eric Blake  <ebb9@byu.net>
34345
34346         signal, spawn: use link warnings
34347         * lib/signal.in.h (sigset_t): Make unconditional.
34348         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34349         (sigpending, sigprocmask, sigaction): Add link warnings.
34350         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34351         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34352         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34353         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34354         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34355         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34356         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34357         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34358         (posix_spawn_file_actions_destroy)
34359         (posix_spawn_file_actions_addopen)
34360         (posix_spawn_file_actions_addclose)
34361         (posix_spawn_file_actions_adddup2): Likewise.
34362         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34363         * tests/test-signal.c (main): Enhance test.
34364
34365         spawn: improve wrapper support
34366         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34367         (gl_SPAWN_H_DEFAULTS): New defaults.
34368         * modules/spawn (Makefile.am): Substitute them.
34369         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34370         Only declare if missing or broken.
34371
34372         sys_times, sys_utsname: use include_next
34373         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34374         header.
34375         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34376         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34377         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34378         * modules/sys_times (Depends-on): Add include_next.
34379         (Makefile.am): Substitute additional values.
34380         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34381         * lib/sys_times.in.h (includes): Include native header, if
34382         available.
34383         * lib/sys_utsname.in.h (includes): Likewise.
34384         * tests/test-sys_times.c (main): Enhance test.
34385
34386         fdutimensat: revert prior patch
34387         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34388         utimens.h.
34389         Reported by Bruno Haible.
34390
34391 2009-12-30  Eric Blake  <ebb9@byu.net>
34392
34393         sys_wait: drop link-warning dependency
34394         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34395         link-warning efforts.
34396         * lib/sys_wait.in.h: Likewise.
34397
34398         fdutimensat: remove bogus dependency
34399         * modules/fdutimensat (Depends-on): Drop inline.
34400
34401         unistd: fix typo
34402         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34403
34404 2009-12-30  Bruno Haible  <bruno@clisp.org>
34405
34406         Fix compilation error with Solaris cc.
34407         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34408         * lib/unicase/u16-is-invariant.c: Likewise.
34409         * lib/unicase/u32-is-invariant.c: Likewise.
34410         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34411
34412 2009-12-30  Bruno Haible  <bruno@clisp.org>
34413
34414         Fix test crash.
34415         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34416         locales.
34417         Reported by Simon Josefsson <simon@josefsson.org>.
34418
34419 2009-12-30  Bruno Haible  <bruno@clisp.org>
34420
34421         Fix compilation error on most platforms.
34422         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34423         Reported by Simon Josefsson <simon@josefsson.org>
34424         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34425
34426 2009-12-30  Eric Blake  <ebb9@byu.net>
34427
34428         futimens, utimensat: work around ntfs-3g bug
34429         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34430         a ctime bug is present, and expand workaround to cover ntfs-3g.
34431         * lib/utimens.c (fdutimens, lutimens): Likewise.
34432         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34433         (validate_timespec): Adjust return value.
34434         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34435         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34436         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34437
34438 2009-12-29  Eric Blake  <ebb9@byu.net>
34439
34440         link-warning: make usage consistent
34441         * modules/ctype (Depends-on): Add link-warning.
34442         (Makefile.am): Update rules accordingly.
34443         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34444         * modules/locale (Depends-on, Makefile.am): Likewise.
34445         * modules/sys_file (Makefile.am): Likewise.
34446         * modules/getopt-posix (Makefile.am): Delete unused link warning
34447         efforts.
34448         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34449         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34450         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34451         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34452
34453         stdio: remove unused variables
34454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34455         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34456         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34457
34458         tests: test more substitute headers
34459         * modules/ctype-tests: New file.
34460         * modules/dirent-tests: Likewise.
34461         * modules/spawn-tests: Likewise.
34462         * modules/sys_file-tests: Likewise.
34463         * modules/sys_ioctl-tests: Likewise.
34464         * modules/sys_wait-tests: Likewise.
34465         * tests/test-ctype.c: Likewise.
34466         * tests/test-dirent.c: Likewise.
34467         * tests/test-spawn.c: Likewise.
34468         * tests/test-sys_file.c: Likewise.
34469         * tests/test-sys_ioctl.c: Likewise.
34470         * tests/test-sys_wait.c: Likewise.
34471         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34472         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34473         whether or not flock is in use.
34474
34475         tests: remove License section from module
34476         * modules/arpa_inet-tests: Remove unneeded section.
34477         * modules/byteswap-tests: Likewise.
34478         * modules/ceilf-tests: Likewise.
34479         * modules/ceill-tests: Likewise.
34480         * modules/crypto/des-tests: Likewise.
34481         * modules/crypto/gc-arcfour-tests: Likewise.
34482         * modules/crypto/gc-arctwo-tests: Likewise.
34483         * modules/crypto/gc-des-tests: Likewise.
34484         * modules/crypto/gc-hmac-md5-tests: Likewise.
34485         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34486         * modules/crypto/gc-md2-tests: Likewise.
34487         * modules/crypto/gc-md4-tests: Likewise.
34488         * modules/crypto/gc-md5-tests: Likewise.
34489         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34490         * modules/crypto/gc-rijndael-tests: Likewise.
34491         * modules/crypto/gc-sha1-tests: Likewise.
34492         * modules/crypto/gc-tests: Likewise.
34493         * modules/crypto/md2-tests: Likewise.
34494         * modules/crypto/md4-tests: Likewise.
34495         * modules/fcntl-h-tests: Likewise.
34496         * modules/floorf-tests: Likewise.
34497         * modules/floorl-tests: Likewise.
34498         * modules/frexp-nolibm-tests: Likewise.
34499         * modules/frexp-tests: Likewise.
34500         * modules/frexpl-nolibm-tests: Likewise.
34501         * modules/frexpl-tests: Likewise.
34502         * modules/getaddrinfo-tests: Likewise.
34503         * modules/inttypes-tests: Likewise.
34504         * modules/isfinite-tests: Likewise.
34505         * modules/isinf-tests: Likewise.
34506         * modules/ldexpl-tests: Likewise.
34507         * modules/locale-tests: Likewise.
34508         * modules/math-tests: Likewise.
34509         * modules/netdb-tests: Likewise.
34510         * modules/netinet_in-tests: Likewise.
34511         * modules/printf-frexp-tests: Likewise.
34512         * modules/printf-frexpl-tests: Likewise.
34513         * modules/priv-set-tests: Likewise.
34514         * modules/random_r-tests: Likewise.
34515         * modules/round-tests: Likewise.
34516         * modules/roundf-tests: Likewise.
34517         * modules/roundl-tests: Likewise.
34518         * modules/search-tests: Likewise.
34519         * modules/select-tests: Likewise.
34520         * modules/signal-tests: Likewise.
34521         * modules/stdbool-tests: Likewise.
34522         * modules/stddef-tests: Likewise.
34523         * modules/stdint-tests: Likewise.
34524         * modules/stdio-tests: Likewise.
34525         * modules/stdlib-tests: Likewise.
34526         * modules/string-tests: Likewise.
34527         * modules/strings-tests: Likewise.
34528         * modules/sys_select-tests: Likewise.
34529         * modules/sys_socket-tests: Likewise.
34530         * modules/sys_stat-tests: Likewise.
34531         * modules/sys_time-tests: Likewise.
34532         * modules/sys_utsname-tests: Likewise.
34533         * modules/sysexits-tests: Likewise.
34534         * modules/time-tests: Likewise.
34535         * modules/trunc-tests: Likewise.
34536         * modules/truncf-tests: Likewise.
34537         * modules/truncl-tests: Likewise.
34538         * modules/tsearch-tests: Likewise.
34539         * modules/unistd-tests: Likewise.
34540         * modules/wchar-tests: Likewise.
34541         * modules/wctype-tests: Likewise.
34542
34543         tests: fix license on several tests
34544         * tests/test-des.c: Update to GPLv3+.
34545         * tests/test-flock.c: Likewise.
34546         * tests/test-fsync.c: Likewise.
34547         * tests/test-futimens.h: Likewise.
34548         * tests/test-gc-arcfour.c: Likewise.
34549         * tests/test-gc-arctwo.c: Likewise.
34550         * tests/test-gc-des.c: Likewise.
34551         * tests/test-gc-hmac-md5.c: Likewise.
34552         * tests/test-gc-hmac-sha1.c: Likewise.
34553         * tests/test-gc-md2.c: Likewise.
34554         * tests/test-gc-md4.c: Likewise.
34555         * tests/test-gc-md5.c: Likewise.
34556         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34557         * tests/test-gc-rijndael.c: Likewise.
34558         * tests/test-gc-sha1.c: Likewise.
34559         * tests/test-gc.c: Likewise.
34560         * tests/test-getcwd.c: Likewise.
34561         * tests/test-link.c: Likewise.
34562         * tests/test-link.h: Likewise.
34563         * tests/test-lutimens.h: Likewise.
34564         * tests/test-md2.c: Likewise.
34565         * tests/test-md4.c: Likewise.
34566         * tests/test-mkdir.h: Likewise.
34567         * tests/test-rename.c: Likewise.
34568         * tests/test-rename.h: Likewise.
34569         * tests/test-safe-alloc.c: Likewise.
34570         * tests/test-utimens-common.h: Likewise.
34571         * tests/test-utimens.h: Likewise.
34572
34573         maint: sync license texts
34574         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34575         * doc/gpl-3.0.texi: Revert copyright year update.
34576         * doc/lgpl-3.0.texi: Likewise.
34577
34578 2009-12-29  Jim Meyering  <meyering@redhat.com>
34579
34580         update nearly all FSF copyright year lists to include 2009
34581         The files named by the following are exempted:
34582             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34583               test -f "$dst" && { echo "$dst"; continue; }
34584               test -d "$dst" || continue
34585               echo "$dst"/$(basename "$src")
34586             done > exempt
34587             git ls-files tests/unictype >> exempt
34588         In the remaining files, convert to all-interval notation if
34589         - there is already at least one year interval like 2000-2003
34590         - the file is maintained by me
34591         - the file is in lib/uni*/, where that style already prevails
34592         Otherwise, use update-copyright's default.
34593
34594 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34595         and Eric Blake  <ebb9@byu.net>
34596
34597         tests: don't require debug system() to pass
34598         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34599         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34600         * tests/test-unlink.h (test_unlink_func): Likewise.
34601         * tests/test-fstatat.c (main): ...into callers.
34602         * tests/test-lstat.c (main): Likewise.
34603         * tests/test-rmdir.c (main): Likewise.
34604         * tests/test-unlink.c (main): Likewise.
34605         * tests/test-unlinkat.c (main): Likewise.
34606         * tests/test-areadlink-with-size.c (main): Don't require a
34607         debug-only system call to pass, aiding cross-testing to mingw.
34608         * tests/test-areadlink.c (main): Likewise.
34609         * tests/test-areadlinkat-with-size.c (main): Likewise.
34610         * tests/test-areadlinkat.c (main): Likewise.
34611         * tests/test-canonicalize-lgpl.c (main): Likewise.
34612         * tests/test-canonicalize.c (main): Likewise.
34613         * tests/test-chown.c (main): Likewise.
34614         * tests/test-fchownat.c (main): Likewise.
34615         * tests/test-lchown.c (main): Likewise.
34616         * tests/test-fdutimensat.c (main): Likewise.
34617         * tests/test-futimens.c (main): Likewise.
34618         * tests/test-link.c (main): Likewise.
34619         * tests/test-linkat.c (main): Likewise.
34620         * tests/test-mkdir.c (main): Likewise.
34621         * tests/test-mkdirat.c (main): Likewise.
34622         * tests/test-mkfifo.c (main): Likewise.
34623         * tests/test-mkfifoat.c (main): Likewise.
34624         * tests/test-mknod.c (main): Likewise.
34625         * tests/test-readlink.c (main): Likewise.
34626         * tests/test-remove.c (main): Likewise.
34627         * tests/test-rename.c (main): Likewise.
34628         * tests/test-renameat.c (main): Likewise.
34629         * tests/test-symlink.c (main): Likewise.
34630         * tests/test-symlinkat.c (main): Likewise.
34631         * tests/test-utimens.c (main): Likewise.
34632         * tests/test-utimensat.c (main): Likewise.
34633
34634 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34635
34636         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34637         on $(UNUSED_PARAMETER_H) to avoid build failure.
34638
34639 2009-12-28  Jim Meyering  <meyering@redhat.com>
34640
34641         update-copyright: you may specify a max. line length other than 72
34642         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34643
34644         maint: use consistent FSF copyright line syntax
34645         * lib/posixtm.c: Add missing comma in FSF copyright line.
34646         * lib/posixtm.h: Likewise.
34647         * lib/getugroups.c: Add missing ", Inc.".
34648
34649         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34650         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34651         FSF copyright line.  Remove trailing blanks.
34652
34653 2009-12-28  Eric Blake  <ebb9@byu.net>
34654
34655         test-dup2: reduce dependencies
34656         * modules/cloexec (Configure.ac): Set witness.
34657         * modules/dup2-tests (Depends-on): Drop cloexec.
34658         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34659         not present.
34660         Suggested by Bruno Haible.
34661
34662 2009-12-26  Bruno Haible  <bruno@clisp.org>
34663
34664         Remove an unneeded dependency.
34665         * modules/fseterr (Depends-on): Remove dup2.
34666
34667 2009-12-26  Eric Blake  <ebb9@byu.net>
34668
34669         tests: use macros.h in more places
34670         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34671         (ASSERT_STREAM): Provide default of stderr.
34672         * tests/test-dirent-safer.c: Include macros.h, using alternate
34673         stream for assertions.
34674         * tests/test-dup-safer.c: Likewise.
34675         * tests/test-freopen-safer.c: Likewise.
34676         * tests/test-getopt.c: Likewise.
34677         * tests/test-openat-safer.c: Likewise.
34678         * tests/test-pipe.c: Likewise.
34679         * tests/test-popen-safer.c: Likewise.
34680         * modules/dirent-safer-tests (Files): Include macros.h.
34681         * modules/unistd-safer-tests (Files): Likewise.
34682         * modules/freopen-safer-tests (Files): Likewise.
34683         * modules/getopt-posix-tests (Files): Likewise.
34684         * modules/openat-safer-tests (Files): Likewise.
34685         * modules/pipe-tests (Files): Likewise.
34686
34687 2009-12-26  Bruno Haible  <bruno@clisp.org>
34688
34689         javacomp: Portability fix.
34690         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34691         that it also works on Solaris.
34692
34693 2009-12-26  Bruno Haible  <bruno@clisp.org>
34694
34695         localename: Fix storage allocation of gl_locale_name_thread's result.
34696         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34697         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34698         all platforms that have 'uselocale'.
34699         (gl_locale_name_thread_unsafe): New function, extracted from
34700         gl_locale_name_thread.
34701         (gl_locale_name_thread): Call struniq on all platforms that have
34702         'uselocale'.
34703         * tests/test-localename.c (test_locale_name_thread): Check that the
34704         resulting strings are permanently allocated.
34705         * modules/localename-tests (Depends-on): Add strdup.
34706
34707 2009-12-26  Bruno Haible  <bruno@clisp.org>
34708
34709         * tests/test-localename.c (categories): Fill in the strings.
34710
34711 2009-12-26  Jim Meyering  <meyering@redhat.com>
34712
34713         isdir: complete the removal of m4/isdir.m4
34714         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34715
34716         isdir: clean up, since at least grep still uses it
34717         * lib/isdir.c: Include "isdir.h".
34718         (S_ISDIR): Remove now-unneeded definition.
34719         * modules/isdir (Files): Add lib/isdir.h.
34720         * lib/isdir.h: New file, with declaration.
34721         * m4/isdir.m4: Remove file -- unneeded.
34722
34723 2009-12-25  Bruno Haible  <bruno@clisp.org>
34724
34725         selinux-h: Make generated .h files standalone.
34726         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34727         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34728         * lib/se-selinux.in.h: Likewise.
34729         * modules/selinux-h (Depends-on): Add unused-parameter.
34730         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34731         selinux/selinux.h and selinux/context.h.
34732         Suggested by Eric Blake.
34733
34734 2009-12-25  Bruno Haible  <bruno@clisp.org>
34735
34736         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34737         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34738         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34739         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34740         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34741
34742 2009-12-24  Bruno Haible  <bruno@clisp.org>
34743
34744         openat: Fix warning.
34745         * lib/openat-proc.c: Include <unistd.h>.
34746
34747 2009-12-24  Bruno Haible  <bruno@clisp.org>
34748
34749         New module 'unused-parameter'.
34750         * build-aux/unused-parameter.h: New file, extracted from earlier
34751         gnulib-common.m4.
34752         * modules/unused-parameter: New file.
34753         * lib/unistr.h: Include unused-parameter.h.
34754         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34755         _GL_UNUSED.
34756         * modules/unistr/base (Depends-on): Add unused-parameter.
34757
34758 2009-12-24  Bruno Haible  <bruno@clisp.org>
34759
34760         Add missing dependencies to 'extensions' module.
34761         * m4/extensions.m4: Add comment.
34762         * modules/accept4 (Depends-on): Add extensions.
34763         * modules/dup3 (Depends-on): Likewise.
34764         * modules/fcntl (Depends-on): Likewise.
34765         * modules/futimens (Depends-on): Likewise.
34766         * modules/mknod (Depends-on): Likewise.
34767         * modules/pipe2 (Depends-on): Likewise.
34768         * modules/stat-time (Depends-on): Likewise.
34769         * modules/strcasestr-simple (Depends-on): Likewise.
34770         * modules/strsignal (Depends-on): Likewise.
34771         * modules/utimensat (Depends-on): Likewise.
34772         * modules/localcharset (Depends-on): Likewise. Needed because of
34773         gl_FCNTL_O_FLAGS.
34774         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34775         AC_TYPE_MBSTATE_T.
34776         * modules/wcsnrtombs (Depends-on): Likewise.
34777         * modules/wcsrtombs (Depends-on): Likewise.
34778
34779 2009-12-24  Bruno Haible  <bruno@clisp.org>
34780
34781         binary-io: Avoid gcc warning due to SET_BINARY.
34782         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34783         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34784
34785 2009-12-24  Bruno Haible  <bruno@clisp.org>
34786
34787         Avoid future namespace pollution on glibc systems.
34788         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34789         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34790         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34791         glibc systems.
34792
34793 2009-12-24  Bruno Haible  <bruno@clisp.org>
34794
34795         Refactor common macros used in tests.
34796         * tests/macros.h: New file.
34797         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34798         and/or <stdlib.h>, if appropriate.
34799         (ASSERT, SIZEOF): Remove macros.
34800         * tests/test-areadlink-with-size.c: Likewise.
34801         * tests/test-areadlinkat.c: Likewise.
34802         * tests/test-areadlinkat-with-size.c: Likewise.
34803         * tests/test-argmatch.c: Likewise.
34804         * tests/test-argv-iter.c: Likewise.
34805         * tests/test-array-mergesort.c: Likewise.
34806         * tests/test-array_list.c: Likewise.
34807         * tests/test-array_oset.c: Likewise.
34808         * tests/test-avltree_list.c: Likewise.
34809         * tests/test-avltree_oset.c: Likewise.
34810         * tests/test-avltreehash_list.c: Likewise.
34811         * tests/test-base64.c: Likewise.
34812         * tests/test-binary-io.c: Likewise.
34813         * tests/test-bitrotate.c: Likewise.
34814         * tests/test-btowc.c: Likewise.
34815         * tests/test-byteswap.c: Likewise.
34816         * tests/test-c-ctype.c: Likewise.
34817         * tests/test-c-stack.c: Likewise.
34818         * tests/test-c-strcasecmp.c: Likewise.
34819         * tests/test-c-strcasestr.c: Likewise.
34820         * tests/test-c-strncasecmp.c: Likewise.
34821         * tests/test-c-strstr.c: Likewise.
34822         * tests/test-canonicalize-lgpl.c: Likewise.
34823         * tests/test-canonicalize.c: Likewise.
34824         * tests/test-carray_list.c: Likewise.
34825         * tests/test-ceilf1.c: Likewise.
34826         * tests/test-ceilf2.c: Likewise.
34827         * tests/test-ceill.c: Likewise.
34828         * tests/test-chown.c: Likewise.
34829         * tests/test-cloexec.c: Likewise.
34830         * tests/test-copy-acl.c: Likewise.
34831         * tests/test-copy-file.c: Likewise.
34832         * tests/test-count-one-bits.c: Likewise.
34833         * tests/test-dprintf-posix.c: Likewise.
34834         * tests/test-dup2.c: Likewise.
34835         * tests/test-dup3.c: Likewise.
34836         * tests/test-duplocale.c: Likewise.
34837         * tests/test-fbufmode.c: Likewise.
34838         * tests/test-fchdir.c: Likewise.
34839         * tests/test-fchownat.c: Likewise.
34840         * tests/test-fcntl-safer.c: Likewise.
34841         * tests/test-fcntl.c: Likewise.
34842         * tests/test-fdopendir.c: Likewise.
34843         * tests/test-fdutimensat.c: Likewise.
34844         * tests/test-fflush2.c: Likewise.
34845         * tests/test-file-has-acl.c: Likewise.
34846         * tests/test-filevercmp.c: Likewise.
34847         * tests/test-flock.c: Likewise.
34848         * tests/test-floorf1.c: Likewise.
34849         * tests/test-floorf2.c: Likewise.
34850         * tests/test-floorl.c: Likewise.
34851         * tests/test-fnmatch.c: Likewise.
34852         * tests/test-fopen.h: Likewise.
34853         * tests/test-fpending.c: Likewise.
34854         * tests/test-fprintf-posix.c: Likewise.
34855         * tests/test-fpurge.c: Likewise.
34856         * tests/test-freadable.c: Likewise.
34857         * tests/test-freadahead.c: Likewise.
34858         * tests/test-freading.c: Likewise.
34859         * tests/test-freadptr.c: Likewise.
34860         * tests/test-freadptr2.c: Likewise.
34861         * tests/test-freadseek.c: Likewise.
34862         * tests/test-freopen.c: Likewise.
34863         * tests/test-frexp.c: Likewise.
34864         * tests/test-frexpl.c: Likewise.
34865         * tests/test-fseek.c: Likewise.
34866         * tests/test-fseeko.c: Likewise.
34867         * tests/test-fstatat.c: Likewise.
34868         * tests/test-fstrcmp.c: Likewise.
34869         * tests/test-fsync.c: Likewise.
34870         * tests/test-ftell.c: Likewise.
34871         * tests/test-ftello.c: Likewise.
34872         * tests/test-func.c: Likewise.
34873         * tests/test-futimens.c: Likewise.
34874         * tests/test-fwritable.c: Likewise.
34875         * tests/test-fwriting.c: Likewise.
34876         * tests/test-getcwd.c: Likewise.
34877         * tests/test-getdate.c: Likewise.
34878         * tests/test-getdelim.c: Likewise.
34879         * tests/test-getdtablesize.c: Likewise.
34880         * tests/test-getgroups.c: Likewise.
34881         * tests/test-getline.c: Likewise.
34882         * tests/test-getndelim2.c: Likewise.
34883         * tests/test-glob.c: Likewise.
34884         * tests/test-hash.c: Likewise.
34885         * tests/test-i-ring.c: Likewise.
34886         * tests/test-iconv-utf.c: Likewise.
34887         * tests/test-iconv.c: Likewise.
34888         * tests/test-idpriv-drop.c: Likewise.
34889         * tests/test-idpriv-droptemp.c: Likewise.
34890         * tests/test-inet_ntop.c: Likewise.
34891         * tests/test-inet_pton.c: Likewise.
34892         * tests/test-isblank.c: Likewise.
34893         * tests/test-isfinite.c: Likewise.
34894         * tests/test-isinf.c: Likewise.
34895         * tests/test-isnan.c: Likewise.
34896         * tests/test-isnand.h: Likewise.
34897         * tests/test-isnanf.h: Likewise.
34898         * tests/test-isnanl.h: Likewise.
34899         * tests/test-lchown.c: Likewise.
34900         * tests/test-ldexpl.c: Likewise.
34901         * tests/test-link.c: Likewise.
34902         * tests/test-linkat.c: Likewise.
34903         * tests/test-linked_list.c: Likewise.
34904         * tests/test-linkedhash_list.c: Likewise.
34905         * tests/test-localename.c: Likewise.
34906         * tests/test-lseek.c: Likewise.
34907         * tests/test-lstat.c: Likewise.
34908         * tests/test-mbmemcasecmp.c: Likewise.
34909         * tests/test-mbmemcasecoll.c: Likewise.
34910         * tests/test-mbrtowc.c: Likewise.
34911         * tests/test-mbscasecmp.c: Likewise.
34912         * tests/test-mbscasestr1.c: Likewise.
34913         * tests/test-mbscasestr2.c: Likewise.
34914         * tests/test-mbscasestr3.c: Likewise.
34915         * tests/test-mbscasestr4.c: Likewise.
34916         * tests/test-mbschr.c: Likewise.
34917         * tests/test-mbscspn.c: Likewise.
34918         * tests/test-mbsinit.c: Likewise.
34919         * tests/test-mbsncasecmp.c: Likewise.
34920         * tests/test-mbsnrtowcs.c: Likewise.
34921         * tests/test-mbspbrk.c: Likewise.
34922         * tests/test-mbspcasecmp.c: Likewise.
34923         * tests/test-mbsrchr.c: Likewise.
34924         * tests/test-mbsrtowcs.c: Likewise.
34925         * tests/test-mbsspn.c: Likewise.
34926         * tests/test-mbsstr1.c: Likewise.
34927         * tests/test-mbsstr2.c: Likewise.
34928         * tests/test-mbsstr3.c: Likewise.
34929         * tests/test-memchr.c: Likewise.
34930         * tests/test-memchr2.c: Likewise.
34931         * tests/test-memcmp.c: Likewise.
34932         * tests/test-memmem.c: Likewise.
34933         * tests/test-memrchr.c: Likewise.
34934         * tests/test-mkdir.c: Likewise.
34935         * tests/test-mkdirat.c: Likewise.
34936         * tests/test-mkfifo.c: Likewise.
34937         * tests/test-mkfifoat.c: Likewise.
34938         * tests/test-mknod.c: Likewise.
34939         * tests/test-nanosleep.c: Likewise.
34940         * tests/test-nl_langinfo.c: Likewise.
34941         * tests/test-obstack-printf.c: Likewise.
34942         * tests/test-open.c: Likewise.
34943         * tests/test-openat.c: Likewise.
34944         * tests/test-pipe-filter-gi1.c: Likewise.
34945         * tests/test-pipe-filter-gi2-main.c: Likewise.
34946         * tests/test-pipe-filter-ii1.c: Likewise.
34947         * tests/test-pipe-filter-ii2-main.c: Likewise.
34948         * tests/test-pipe2.c: Likewise.
34949         * tests/test-popen.h: Likewise.
34950         * tests/test-posixtm.c: Likewise.
34951         * tests/test-pread.c: Likewise.
34952         * tests/test-printf-frexp.c: Likewise.
34953         * tests/test-printf-frexpl.c: Likewise.
34954         * tests/test-printf-posix.c: Likewise.
34955         * tests/test-priv-set.c: Likewise.
34956         * tests/test-quotearg.c: Likewise.
34957         * tests/test-random_r.c: Likewise.
34958         * tests/test-rawmemchr.c: Likewise.
34959         * tests/test-rbtree_list.c: Likewise.
34960         * tests/test-rbtree_oset.c: Likewise.
34961         * tests/test-rbtreehash_list.c: Likewise.
34962         * tests/test-readlink.c: Likewise.
34963         * tests/test-remove.c: Likewise.
34964         * tests/test-rename.c: Likewise.
34965         * tests/test-renameat.c: Likewise.
34966         * tests/test-rmdir.c: Likewise.
34967         * tests/test-round1.c: Likewise.
34968         * tests/test-roundf1.c: Likewise.
34969         * tests/test-roundl.c: Likewise.
34970         * tests/test-safe-alloc.c: Likewise.
34971         * tests/test-sameacls.c: Likewise.
34972         * tests/test-set-mode-acl.c: Likewise.
34973         * tests/test-setenv.c: Likewise.
34974         * tests/test-sigaction.c: Likewise.
34975         * tests/test-signbit.c: Likewise.
34976         * tests/test-sleep.c: Likewise.
34977         * tests/test-snprintf-posix.c: Likewise.
34978         * tests/test-snprintf.c: Likewise.
34979         * tests/test-sprintf-posix.c: Likewise.
34980         * tests/test-stat-time.c: Likewise.
34981         * tests/test-stat.c: Likewise.
34982         * tests/test-strcasestr.c: Likewise.
34983         * tests/test-strchrnul.c: Likewise.
34984         * tests/test-strerror.c: Likewise.
34985         * tests/test-striconv.c: Likewise.
34986         * tests/test-striconveh.c: Likewise.
34987         * tests/test-striconveha.c: Likewise.
34988         * tests/test-strsignal.c: Likewise.
34989         * tests/test-strstr.c: Likewise.
34990         * tests/test-strtod.c: Likewise.
34991         * tests/test-strverscmp.c: Likewise.
34992         * tests/test-symlink.c: Likewise.
34993         * tests/test-symlinkat.c: Likewise.
34994         * tests/test-trunc1.c: Likewise.
34995         * tests/test-trunc2.c: Likewise.
34996         * tests/test-truncf1.c: Likewise.
34997         * tests/test-truncf2.c: Likewise.
34998         * tests/test-truncl.c: Likewise.
34999         * tests/test-uname.c: Likewise.
35000         * tests/test-unlink.c: Likewise.
35001         * tests/test-unlinkat.c: Likewise.
35002         * tests/test-unsetenv.c: Likewise.
35003         * tests/test-usleep.c: Likewise.
35004         * tests/test-utimens.c: Likewise.
35005         * tests/test-utimensat.c: Likewise.
35006         * tests/test-vasnprintf-posix.c: Likewise.
35007         * tests/test-vasnprintf-posix2.c: Likewise.
35008         * tests/test-vasnprintf.c: Likewise.
35009         * tests/test-vasprintf-posix.c: Likewise.
35010         * tests/test-vasprintf.c: Likewise.
35011         * tests/test-vdprintf-posix.c: Likewise.
35012         * tests/test-vfprintf-posix.c: Likewise.
35013         * tests/test-vprintf-posix.c: Likewise.
35014         * tests/test-vsnprintf-posix.c: Likewise.
35015         * tests/test-vsnprintf.c: Likewise.
35016         * tests/test-vsprintf-posix.c: Likewise.
35017         * tests/test-wcrtomb.c: Likewise.
35018         * tests/test-wcsnrtombs.c: Likewise.
35019         * tests/test-wcsrtombs.c: Likewise.
35020         * tests/test-wctype.c: Likewise.
35021         * tests/test-wcwidth.c: Likewise.
35022         * tests/test-xfprintf-posix.c: Likewise.
35023         * tests/test-xmemdup0.c: Likewise.
35024         * tests/test-xprintf-posix.c: Likewise.
35025         * tests/test-xvasprintf.c: Likewise.
35026         * tests/unicase/test-locale-language.c: Likewise.
35027         * tests/unicase/test-mapping-part1.h: Likewise.
35028         * tests/unicase/test-predicate-part1.h: Likewise.
35029         * tests/unicase/test-u8-casecmp.c: Likewise.
35030         * tests/unicase/test-u8-casecoll.c: Likewise.
35031         * tests/unicase/test-u8-casefold.c: Likewise.
35032         * tests/unicase/test-u8-is-cased.c: Likewise.
35033         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35034         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35035         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35036         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35037         * tests/unicase/test-u8-tolower.c: Likewise.
35038         * tests/unicase/test-u8-totitle.c: Likewise.
35039         * tests/unicase/test-u8-toupper.c: Likewise.
35040         * tests/unicase/test-u16-casecmp.c: Likewise.
35041         * tests/unicase/test-u16-casecoll.c: Likewise.
35042         * tests/unicase/test-u16-casefold.c: Likewise.
35043         * tests/unicase/test-u16-is-cased.c: Likewise.
35044         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35045         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35046         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35047         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35048         * tests/unicase/test-u16-tolower.c: Likewise.
35049         * tests/unicase/test-u16-totitle.c: Likewise.
35050         * tests/unicase/test-u16-toupper.c: Likewise.
35051         * tests/unicase/test-u32-casecmp.c: Likewise.
35052         * tests/unicase/test-u32-casecoll.c: Likewise.
35053         * tests/unicase/test-u32-casefold.c: Likewise.
35054         * tests/unicase/test-u32-is-cased.c: Likewise.
35055         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35056         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35057         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35058         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35059         * tests/unicase/test-u32-tolower.c: Likewise.
35060         * tests/unicase/test-u32-totitle.c: Likewise.
35061         * tests/unicase/test-u32-toupper.c: Likewise.
35062         * tests/unicase/test-ulc-casecmp.c: Likewise.
35063         * tests/unicase/test-ulc-casecoll.c: Likewise.
35064         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35065         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35066         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35067         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35068         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35069         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35070         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35071         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35072         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35073         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35074         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35075         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35076         * tests/unictype/test-bidi_byname.c: Likewise.
35077         * tests/unictype/test-bidi_name.c: Likewise.
35078         * tests/unictype/test-bidi_of.c: Likewise.
35079         * tests/unictype/test-bidi_test.c: Likewise.
35080         * tests/unictype/test-block_list.c: Likewise.
35081         * tests/unictype/test-block_of.c: Likewise.
35082         * tests/unictype/test-block_test.c: Likewise.
35083         * tests/unictype/test-categ_and.c: Likewise.
35084         * tests/unictype/test-categ_and_not.c: Likewise.
35085         * tests/unictype/test-categ_byname.c: Likewise.
35086         * tests/unictype/test-categ_name.c: Likewise.
35087         * tests/unictype/test-categ_none.c: Likewise.
35088         * tests/unictype/test-categ_of.c: Likewise.
35089         * tests/unictype/test-categ_or.c: Likewise.
35090         * tests/unictype/test-categ_test_withtable.c: Likewise.
35091         * tests/unictype/test-combining.c: Likewise.
35092         * tests/unictype/test-decdigit.c: Likewise.
35093         * tests/unictype/test-digit.c: Likewise.
35094         * tests/unictype/test-mirror.c: Likewise.
35095         * tests/unictype/test-numeric.c: Likewise.
35096         * tests/unictype/test-pr_byname.c: Likewise.
35097         * tests/unictype/test-pr_test.c: Likewise.
35098         * tests/unictype/test-predicate-part1.h: Likewise.
35099         * tests/unictype/test-scripts.c: Likewise.
35100         * tests/unictype/test-sy_c_ident.c: Likewise.
35101         * tests/unictype/test-sy_java_ident.c: Likewise.
35102         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35103         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35104         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35105         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35106         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35107         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35108         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35109         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35110         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35111         * tests/uninorm/test-compat-decomposition.c: Likewise.
35112         * tests/uninorm/test-composition.c: Likewise.
35113         * tests/uninorm/test-decomposing-form.c: Likewise.
35114         * tests/uninorm/test-decomposition.c: Likewise.
35115         * tests/uninorm/test-u8-nfc.c: Likewise.
35116         * tests/uninorm/test-u8-nfd.c: Likewise.
35117         * tests/uninorm/test-u8-nfkc.c: Likewise.
35118         * tests/uninorm/test-u8-nfkd.c: Likewise.
35119         * tests/uninorm/test-u8-normcmp.c: Likewise.
35120         * tests/uninorm/test-u8-normcoll.c: Likewise.
35121         * tests/uninorm/test-u16-nfc.c: Likewise.
35122         * tests/uninorm/test-u16-nfd.c: Likewise.
35123         * tests/uninorm/test-u16-nfkc.c: Likewise.
35124         * tests/uninorm/test-u16-nfkd.c: Likewise.
35125         * tests/uninorm/test-u16-normcmp.c: Likewise.
35126         * tests/uninorm/test-u16-normcoll.c: Likewise.
35127         * tests/uninorm/test-u32-nfc.c: Likewise.
35128         * tests/uninorm/test-u32-nfd.c: Likewise.
35129         * tests/uninorm/test-u32-nfkc.c: Likewise.
35130         * tests/uninorm/test-u32-nfkd.c: Likewise.
35131         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35132         * tests/uninorm/test-u32-normcmp.c: Likewise.
35133         * tests/uninorm/test-u32-normcoll.c: Likewise.
35134         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35135         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35136         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35137         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35138         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35139         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35140         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35141         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35142         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35143         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35144         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35145         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35146         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35147         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35148         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35149         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35150         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35151         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35152         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35153         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35154         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35155         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35156         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35157         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35158         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35159         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35160         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35161         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35162         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35163         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35164         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35165         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35166         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35167         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35168         * tests/uniwidth/test-u8-width.c: Likewise.
35169         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35170         * tests/uniwidth/test-u16-width.c: Likewise.
35171         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35172         * tests/uniwidth/test-u32-width.c: Likewise.
35173         * tests/uniwidth/test-uc_width.c: Likewise.
35174         * tests/uniwidth/test-uc_width2.c: Likewise.
35175         * modules/acl-tests (Files): Add tests/macros.h.
35176         * modules/areadlink-tests (Files): Likewise.
35177         * modules/areadlink-with-size-tests (Files): Likewise.
35178         * modules/areadlinkat-tests (Files): Likewise.
35179         * modules/areadlinkat-with-size-tests (Files): Likewise.
35180         * modules/argmatch-tests (Files): Likewise.
35181         * modules/argv-iter-tests (Files): Likewise.
35182         * modules/array-list-tests (Files): Likewise.
35183         * modules/array-mergesort-tests (Files): Likewise.
35184         * modules/array-oset-tests (Files): Likewise.
35185         * modules/avltree-list-tests (Files): Likewise.
35186         * modules/avltree-oset-tests (Files): Likewise.
35187         * modules/avltreehash-list-tests (Files): Likewise.
35188         * modules/base64-tests (Files): Likewise.
35189         * modules/binary-io-tests (Files): Likewise.
35190         * modules/bitrotate-tests (Files): Likewise.
35191         * modules/btowc-tests (Files): Likewise.
35192         * modules/byteswap-tests (Files): Likewise.
35193         * modules/c-ctype-tests (Files): Likewise.
35194         * modules/c-stack-tests (Files): Likewise.
35195         * modules/c-strcase-tests (Files): Likewise.
35196         * modules/c-strcasestr-tests (Files): Likewise.
35197         * modules/c-strstr-tests (Files): Likewise.
35198         * modules/canonicalize-lgpl-tests (Files): Likewise.
35199         * modules/canonicalize-tests (Files): Likewise.
35200         * modules/carray-list-tests (Files): Likewise.
35201         * modules/ceilf-tests (Files): Likewise.
35202         * modules/ceill-tests (Files): Likewise.
35203         * modules/chown-tests (Files): Likewise.
35204         * modules/cloexec-tests (Files): Likewise.
35205         * modules/copy-file-tests (Files): Likewise.
35206         * modules/count-one-bits-tests (Files): Likewise.
35207         * modules/dprintf-posix-tests (Files): Likewise.
35208         * modules/dup2-tests (Files): Likewise.
35209         * modules/dup3-tests (Files): Likewise.
35210         * modules/duplocale-tests (Files): Likewise.
35211         * modules/fbufmode-tests (Files): Likewise.
35212         * modules/fchdir-tests (Files): Likewise.
35213         * modules/fcntl-safer-tests (Files): Likewise.
35214         * modules/fcntl-tests (Files): Likewise.
35215         * modules/fdopendir-tests (Files): Likewise.
35216         * modules/fdutimensat-tests (Files): Likewise.
35217         * modules/fflush-tests (Files): Likewise.
35218         * modules/filevercmp-tests (Files): Likewise.
35219         * modules/flock-tests (Files): Likewise.
35220         * modules/floorf-tests (Files): Likewise.
35221         * modules/floorl-tests (Files): Likewise.
35222         * modules/fnmatch-tests (Files): Likewise.
35223         * modules/fopen-safer-tests (Files): Likewise.
35224         * modules/fopen-tests (Files): Likewise.
35225         * modules/fpending-tests (Files): Likewise.
35226         * modules/fprintf-posix-tests (Files): Likewise.
35227         * modules/fpurge-tests (Files): Likewise.
35228         * modules/freadable-tests (Files): Likewise.
35229         * modules/freadahead-tests (Files): Likewise.
35230         * modules/freading-tests (Files): Likewise.
35231         * modules/freadptr-tests (Files): Likewise.
35232         * modules/freadseek-tests (Files): Likewise.
35233         * modules/freopen-tests (Files): Likewise.
35234         * modules/frexp-nolibm-tests (Files): Likewise.
35235         * modules/frexp-tests (Files): Likewise.
35236         * modules/frexpl-nolibm-tests (Files): Likewise.
35237         * modules/frexpl-tests (Files): Likewise.
35238         * modules/fseek-tests (Files): Likewise.
35239         * modules/fseeko-tests (Files): Likewise.
35240         * modules/fstrcmp-tests (Files): Likewise.
35241         * modules/fsync-tests (Files): Likewise.
35242         * modules/ftell-tests (Files): Likewise.
35243         * modules/ftello-tests (Files): Likewise.
35244         * modules/func-tests (Files): Likewise.
35245         * modules/futimens-tests (Files): Likewise.
35246         * modules/fwritable-tests (Files): Likewise.
35247         * modules/fwriting-tests (Files): Likewise.
35248         * modules/getcwd-tests (Files): Likewise.
35249         * modules/getdate-tests (Files): Likewise.
35250         * modules/getdelim-tests (Files): Likewise.
35251         * modules/getdtablesize-tests (Files): Likewise.
35252         * modules/getgroups-tests (Files): Likewise.
35253         * modules/getline-tests (Files): Likewise.
35254         * modules/getndelim2-tests (Files): Likewise.
35255         * modules/glob-tests (Files): Likewise.
35256         * modules/hash-tests (Files): Likewise.
35257         * modules/i-ring-tests (Files): Likewise.
35258         * modules/iconv-tests (Files): Likewise.
35259         * modules/iconv_open-utf-tests (Files): Likewise.
35260         * modules/idpriv-drop-tests (Files): Likewise.
35261         * modules/idpriv-droptemp-tests (Files): Likewise.
35262         * modules/inet_ntop-tests (Files): Likewise.
35263         * modules/inet_pton-tests (Files): Likewise.
35264         * modules/isblank-tests (Files): Likewise.
35265         * modules/isfinite-tests (Files): Likewise.
35266         * modules/isinf-tests (Files): Likewise.
35267         * modules/isnan-tests (Files): Likewise.
35268         * modules/isnand-nolibm-tests (Files): Likewise.
35269         * modules/isnand-tests (Files): Likewise.
35270         * modules/isnanf-nolibm-tests (Files): Likewise.
35271         * modules/isnanf-tests (Files): Likewise.
35272         * modules/isnanl-nolibm-tests (Files): Likewise.
35273         * modules/isnanl-tests (Files): Likewise.
35274         * modules/lchown-tests (Files): Likewise.
35275         * modules/ldexpl-tests (Files): Likewise.
35276         * modules/link-tests (Files): Likewise.
35277         * modules/linkat-tests (Files): Likewise.
35278         * modules/linked-list-tests (Files): Likewise.
35279         * modules/linkedhash-list-tests (Files): Likewise.
35280         * modules/localename-tests (Files): Likewise.
35281         * modules/lseek-tests (Files): Likewise.
35282         * modules/lstat-tests (Files): Likewise.
35283         * modules/mbmemcasecmp-tests (Files): Likewise.
35284         * modules/mbmemcasecoll-tests (Files): Likewise.
35285         * modules/mbrtowc-tests (Files): Likewise.
35286         * modules/mbscasecmp-tests (Files): Likewise.
35287         * modules/mbscasestr-tests (Files): Likewise.
35288         * modules/mbschr-tests (Files): Likewise.
35289         * modules/mbscspn-tests (Files): Likewise.
35290         * modules/mbsinit-tests (Files): Likewise.
35291         * modules/mbsncasecmp-tests (Files): Likewise.
35292         * modules/mbsnrtowcs-tests (Files): Likewise.
35293         * modules/mbspbrk-tests (Files): Likewise.
35294         * modules/mbspcasecmp-tests (Files): Likewise.
35295         * modules/mbsrchr-tests (Files): Likewise.
35296         * modules/mbsrtowcs-tests (Files): Likewise.
35297         * modules/mbsspn-tests (Files): Likewise.
35298         * modules/mbsstr-tests (Files): Likewise.
35299         * modules/memchr-tests (Files): Likewise.
35300         * modules/memchr2-tests (Files): Likewise.
35301         * modules/memcmp-tests (Files): Likewise.
35302         * modules/memmem-tests (Files): Likewise.
35303         * modules/memrchr-tests (Files): Likewise.
35304         * modules/mkdir-tests (Files): Likewise.
35305         * modules/mkfifo-tests (Files): Likewise.
35306         * modules/mkfifoat-tests (Files): Likewise.
35307         * modules/mknod-tests (Files): Likewise.
35308         * modules/nanosleep-tests (Files): Likewise.
35309         * modules/nl_langinfo-tests (Files): Likewise.
35310         * modules/obstack-printf-tests (Files): Likewise.
35311         * modules/open-tests (Files): Likewise.
35312         * modules/openat-tests (Files): Likewise.
35313         * modules/pipe-filter-gi-tests (Files): Likewise.
35314         * modules/pipe-filter-ii-tests (Files): Likewise.
35315         * modules/pipe2-tests (Files): Likewise.
35316         * modules/popen-safer-tests (Files): Likewise.
35317         * modules/popen-tests (Files): Likewise.
35318         * modules/posixtm-tests (Files): Likewise.
35319         * modules/pread-tests (Files): Likewise.
35320         * modules/printf-frexp-tests (Files): Likewise.
35321         * modules/printf-frexpl-tests (Files): Likewise.
35322         * modules/printf-posix-tests (Files): Likewise.
35323         * modules/priv-set-tests (Files): Likewise.
35324         * modules/quotearg-tests (Files): Likewise.
35325         * modules/random_r-tests (Files): Likewise.
35326         * modules/rawmemchr-tests (Files): Likewise.
35327         * modules/rbtree-list-tests (Files): Likewise.
35328         * modules/rbtree-oset-tests (Files): Likewise.
35329         * modules/rbtreehash-list-tests (Files): Likewise.
35330         * modules/readlink-tests (Files): Likewise.
35331         * modules/remove-tests (Files): Likewise.
35332         * modules/rename-tests (Files): Likewise.
35333         * modules/renameat-tests (Files): Likewise.
35334         * modules/rmdir-tests (Files): Likewise.
35335         * modules/round-tests (Files): Likewise.
35336         * modules/roundf-tests (Files): Likewise.
35337         * modules/roundl-tests (Files): Likewise.
35338         * modules/safe-alloc-tests (Files): Likewise.
35339         * modules/setenv-tests (Files): Likewise.
35340         * modules/sigaction-tests (Files): Likewise.
35341         * modules/signbit-tests (Files): Likewise.
35342         * modules/sleep-tests (Files): Likewise.
35343         * modules/snprintf-posix-tests (Files): Likewise.
35344         * modules/snprintf-tests (Files): Likewise.
35345         * modules/sprintf-posix-tests (Files): Likewise.
35346         * modules/stat-tests (Files): Likewise.
35347         * modules/stat-time-tests (Files): Likewise.
35348         * modules/strcasestr-tests (Files): Likewise.
35349         * modules/strchrnul-tests (Files): Likewise.
35350         * modules/strerror-tests (Files): Likewise.
35351         * modules/striconv-tests (Files): Likewise.
35352         * modules/striconveh-tests (Files): Likewise.
35353         * modules/striconveha-tests (Files): Likewise.
35354         * modules/strsignal-tests (Files): Likewise.
35355         * modules/strstr-tests (Files): Likewise.
35356         * modules/strtod-tests (Files): Likewise.
35357         * modules/strverscmp-tests (Files): Likewise.
35358         * modules/symlink-tests (Files): Likewise.
35359         * modules/symlinkat-tests (Files): Likewise.
35360         * modules/trunc-tests (Files): Likewise.
35361         * modules/truncf-tests (Files): Likewise.
35362         * modules/truncl-tests (Files): Likewise.
35363         * modules/uname-tests (Files): Likewise.
35364         * modules/unicase/cased-tests (Files): Likewise.
35365         * modules/unicase/ignorable-tests (Files): Likewise.
35366         * modules/unicase/locale-language-tests (Files): Likewise.
35367         * modules/unicase/tolower-tests (Files): Likewise.
35368         * modules/unicase/totitle-tests (Files): Likewise.
35369         * modules/unicase/toupper-tests (Files): Likewise.
35370         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35371         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35372         * modules/unicase/u8-casefold-tests (Files): Likewise.
35373         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35374         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35375         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35376         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35377         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35378         * modules/unicase/u8-tolower-tests (Files): Likewise.
35379         * modules/unicase/u8-totitle-tests (Files): Likewise.
35380         * modules/unicase/u8-toupper-tests (Files): Likewise.
35381         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35382         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35383         * modules/unicase/u16-casefold-tests (Files): Likewise.
35384         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35385         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35386         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35387         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35388         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35389         * modules/unicase/u16-tolower-tests (Files): Likewise.
35390         * modules/unicase/u16-totitle-tests (Files): Likewise.
35391         * modules/unicase/u16-toupper-tests (Files): Likewise.
35392         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35393         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35394         * modules/unicase/u32-casefold-tests (Files): Likewise.
35395         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35396         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35397         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35398         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35399         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35400         * modules/unicase/u32-tolower-tests (Files): Likewise.
35401         * modules/unicase/u32-totitle-tests (Files): Likewise.
35402         * modules/unicase/u32-toupper-tests (Files): Likewise.
35403         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35404         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35405         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35406         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35407         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35408         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35409         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35410         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35411         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35412         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35413         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35414         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35415         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35416         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35417         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35418         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35419         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35420         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35421         * modules/unictype/block-list-tests (Files): Likewise.
35422         * modules/unictype/block-of-tests (Files): Likewise.
35423         * modules/unictype/block-test-tests (Files): Likewise.
35424         * modules/unictype/category-C-tests (Files): Likewise.
35425         * modules/unictype/category-Cc-tests (Files): Likewise.
35426         * modules/unictype/category-Cf-tests (Files): Likewise.
35427         * modules/unictype/category-Cn-tests (Files): Likewise.
35428         * modules/unictype/category-Co-tests (Files): Likewise.
35429         * modules/unictype/category-Cs-tests (Files): Likewise.
35430         * modules/unictype/category-L-tests (Files): Likewise.
35431         * modules/unictype/category-Ll-tests (Files): Likewise.
35432         * modules/unictype/category-Lm-tests (Files): Likewise.
35433         * modules/unictype/category-Lo-tests (Files): Likewise.
35434         * modules/unictype/category-Lt-tests (Files): Likewise.
35435         * modules/unictype/category-Lu-tests (Files): Likewise.
35436         * modules/unictype/category-M-tests (Files): Likewise.
35437         * modules/unictype/category-Mc-tests (Files): Likewise.
35438         * modules/unictype/category-Me-tests (Files): Likewise.
35439         * modules/unictype/category-Mn-tests (Files): Likewise.
35440         * modules/unictype/category-N-tests (Files): Likewise.
35441         * modules/unictype/category-Nd-tests (Files): Likewise.
35442         * modules/unictype/category-Nl-tests (Files): Likewise.
35443         * modules/unictype/category-No-tests (Files): Likewise.
35444         * modules/unictype/category-P-tests (Files): Likewise.
35445         * modules/unictype/category-Pc-tests (Files): Likewise.
35446         * modules/unictype/category-Pd-tests (Files): Likewise.
35447         * modules/unictype/category-Pe-tests (Files): Likewise.
35448         * modules/unictype/category-Pf-tests (Files): Likewise.
35449         * modules/unictype/category-Pi-tests (Files): Likewise.
35450         * modules/unictype/category-Po-tests (Files): Likewise.
35451         * modules/unictype/category-Ps-tests (Files): Likewise.
35452         * modules/unictype/category-S-tests (Files): Likewise.
35453         * modules/unictype/category-Sc-tests (Files): Likewise.
35454         * modules/unictype/category-Sk-tests (Files): Likewise.
35455         * modules/unictype/category-Sm-tests (Files): Likewise.
35456         * modules/unictype/category-So-tests (Files): Likewise.
35457         * modules/unictype/category-Z-tests (Files): Likewise.
35458         * modules/unictype/category-Zl-tests (Files): Likewise.
35459         * modules/unictype/category-Zp-tests (Files): Likewise.
35460         * modules/unictype/category-Zs-tests (Files): Likewise.
35461         * modules/unictype/category-and-not-tests (Files): Likewise.
35462         * modules/unictype/category-and-tests (Files): Likewise.
35463         * modules/unictype/category-byname-tests (Files): Likewise.
35464         * modules/unictype/category-name-tests (Files): Likewise.
35465         * modules/unictype/category-none-tests (Files): Likewise.
35466         * modules/unictype/category-of-tests (Files): Likewise.
35467         * modules/unictype/category-or-tests (Files): Likewise.
35468         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35469         * modules/unictype/combining-class-tests (Files): Likewise.
35470         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35471         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35472         * modules/unictype/ctype-blank-tests (Files): Likewise.
35473         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35474         * modules/unictype/ctype-digit-tests (Files): Likewise.
35475         * modules/unictype/ctype-graph-tests (Files): Likewise.
35476         * modules/unictype/ctype-lower-tests (Files): Likewise.
35477         * modules/unictype/ctype-print-tests (Files): Likewise.
35478         * modules/unictype/ctype-punct-tests (Files): Likewise.
35479         * modules/unictype/ctype-space-tests (Files): Likewise.
35480         * modules/unictype/ctype-upper-tests (Files): Likewise.
35481         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35482         * modules/unictype/decimal-digit-tests (Files): Likewise.
35483         * modules/unictype/digit-tests (Files): Likewise.
35484         * modules/unictype/mirror-tests (Files): Likewise.
35485         * modules/unictype/numeric-tests (Files): Likewise.
35486         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35487         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35488         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35489         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35490         Likewise.
35491         * modules/unictype/property-bidi-block-separator-tests (Files):
35492         Likewise.
35493         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35494         Likewise.
35495         * modules/unictype/property-bidi-common-separator-tests (Files):
35496         Likewise.
35497         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35498         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35499         Likewise.
35500         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35501         Likewise.
35502         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35503         Likewise.
35504         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35505         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35506         Likewise.
35507         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35508         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35509         Likewise.
35510         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35511         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35512         * modules/unictype/property-bidi-segment-separator-tests (Files):
35513         Likewise.
35514         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35515         * modules/unictype/property-byname-tests (Files): Likewise.
35516         * modules/unictype/property-combining-tests (Files): Likewise.
35517         * modules/unictype/property-composite-tests (Files): Likewise.
35518         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35519         * modules/unictype/property-dash-tests (Files): Likewise.
35520         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35521         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35522         Likewise.
35523         * modules/unictype/property-deprecated-tests (Files): Likewise.
35524         * modules/unictype/property-diacritic-tests (Files): Likewise.
35525         * modules/unictype/property-extender-tests (Files): Likewise.
35526         * modules/unictype/property-format-control-tests (Files): Likewise.
35527         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35528         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35529         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35530         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35531         * modules/unictype/property-hyphen-tests (Files): Likewise.
35532         * modules/unictype/property-id-continue-tests (Files): Likewise.
35533         * modules/unictype/property-id-start-tests (Files): Likewise.
35534         * modules/unictype/property-ideographic-tests (Files): Likewise.
35535         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35536         * modules/unictype/property-ids-trinary-operator-tests (Files):
35537         Likewise.
35538         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35539         * modules/unictype/property-iso-control-tests (Files): Likewise.
35540         * modules/unictype/property-join-control-tests (Files): Likewise.
35541         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35542         * modules/unictype/property-line-separator-tests (Files): Likewise.
35543         * modules/unictype/property-logical-order-exception-tests (Files):
35544         Likewise.
35545         * modules/unictype/property-lowercase-tests (Files): Likewise.
35546         * modules/unictype/property-math-tests (Files): Likewise.
35547         * modules/unictype/property-non-break-tests (Files): Likewise.
35548         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35549         * modules/unictype/property-numeric-tests (Files): Likewise.
35550         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35551         * modules/unictype/property-other-default-ignorable-code-point-tests
35552         (Files): Likewise.
35553         * modules/unictype/property-other-grapheme-extend-tests (Files):
35554         Likewise.
35555         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35556         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35557         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35558         * modules/unictype/property-other-math-tests (Files): Likewise.
35559         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35560         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35561         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35562         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35563         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35564         * modules/unictype/property-private-use-tests (Files): Likewise.
35565         * modules/unictype/property-punctuation-tests (Files): Likewise.
35566         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35567         * modules/unictype/property-radical-tests (Files): Likewise.
35568         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35569         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35570         * modules/unictype/property-space-tests (Files): Likewise.
35571         * modules/unictype/property-terminal-punctuation-tests (Files):
35572         Likewise.
35573         * modules/unictype/property-test-tests (Files): Likewise.
35574         * modules/unictype/property-titlecase-tests (Files): Likewise.
35575         * modules/unictype/property-unassigned-code-value-tests (Files):
35576         Likewise.
35577         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35578         * modules/unictype/property-uppercase-tests (Files): Likewise.
35579         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35580         * modules/unictype/property-white-space-tests (Files): Likewise.
35581         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35582         * modules/unictype/property-xid-start-tests (Files): Likewise.
35583         * modules/unictype/property-zero-width-tests (Files): Likewise.
35584         * modules/unictype/scripts-tests (Files): Likewise.
35585         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35586         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35587         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35588         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35589         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35590         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35591         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35592         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35593         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35594         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35595         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35596         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35597         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35598         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35599         * modules/uninorm/composition-tests (Files): Likewise.
35600         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35601         * modules/uninorm/decomposition-tests (Files): Likewise.
35602         * modules/uninorm/filter-tests (Files): Likewise.
35603         * modules/uninorm/nfc-tests (Files): Likewise.
35604         * modules/uninorm/nfd-tests (Files): Likewise.
35605         * modules/uninorm/nfkc-tests (Files): Likewise.
35606         * modules/uninorm/nfkd-tests (Files): Likewise.
35607         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35608         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35609         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35610         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35611         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35612         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35613         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35614         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35615         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35616         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35617         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35618         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35619         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35620         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35621         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35622         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35623         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35624         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35625         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35626         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35627         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35628         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35629         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35630         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35631         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35632         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35633         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35634         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35635         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35636         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35637         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35638         * modules/uniwidth/u8-width-tests (Files): Likewise.
35639         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35640         * modules/uniwidth/u16-width-tests (Files): Likewise.
35641         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35642         * modules/uniwidth/u32-width-tests (Files): Likewise.
35643         * modules/uniwidth/width-tests (Files): Likewise.
35644         * modules/unlink-tests (Files): Likewise.
35645         * modules/unsetenv-tests (Files): Likewise.
35646         * modules/usleep-tests (Files): Likewise.
35647         * modules/utimens-tests (Files): Likewise.
35648         * modules/utimensat-tests (Files): Likewise.
35649         * modules/vasnprintf-posix-tests (Files): Likewise.
35650         * modules/vasnprintf-tests (Files): Likewise.
35651         * modules/vasprintf-posix-tests (Files): Likewise.
35652         * modules/vasprintf-tests (Files): Likewise.
35653         * modules/vdprintf-posix-tests (Files): Likewise.
35654         * modules/vfprintf-posix-tests (Files): Likewise.
35655         * modules/vprintf-posix-tests (Files): Likewise.
35656         * modules/vsnprintf-posix-tests (Files): Likewise.
35657         * modules/vsnprintf-tests (Files): Likewise.
35658         * modules/vsprintf-posix-tests (Files): Likewise.
35659         * modules/wcrtomb-tests (Files): Likewise.
35660         * modules/wcsnrtombs-tests (Files): Likewise.
35661         * modules/wcsrtombs-tests (Files): Likewise.
35662         * modules/wctype-tests (Files): Likewise.
35663         * modules/wcwidth-tests (Files): Likewise.
35664         * modules/xmemdup0-tests (Files): Likewise.
35665         * modules/xprintf-posix-tests (Files): Likewise.
35666         * modules/xvasprintf-tests (Files): Likewise.
35667
35668 2009-12-24  Eric Blake  <ebb9@byu.net>
35669
35670         test-nanosleep: fix typo
35671         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35672         patch.
35673         Reported by Bruno Haible.
35674
35675 2009-12-24  Bruno Haible  <bruno@clisp.org>
35676
35677         Reduce namespace pollution on glibc systems.
35678         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35679         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35680         systems.
35681         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35682         <getopt.h> on glibc systems.
35683         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35684         systems.
35685         * lib/fcntl.c: Include <unistd.h> here instead.
35686
35687 2009-12-24  Bruno Haible  <bruno@clisp.org>
35688
35689         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35690
35691 2009-12-24  Eric Blake  <ebb9@byu.net>
35692
35693         tests: add signature checks
35694         * tests/signature.h (SIGNATURE_CHECK): New file.
35695         * modules/atexit-tests (Files): Use it.
35696         * modules/btowc-tests (Files): Likewise.
35697         * modules/canonicalize-lgpl-tests (Files): Likewise.
35698         * modules/ceilf-tests (Files): Likewise.
35699         * modules/ceill-tests (Files): Likewise.
35700         * modules/chown-tests (Files): Likewise.
35701         * modules/dprintf-posix-tests (Files): Likewise.
35702         * modules/dup2-tests (Files): Likewise.
35703         * modules/dup3-tests (Files): Likewise.
35704         * modules/duplocale-tests (Files): Likewise.
35705         * modules/fchdir-tests (Files): Likewise.
35706         * modules/fcntl-tests (Files): Likewise.
35707         * modules/fdopendir-tests (Files): Likewise.
35708         * modules/fflush-tests (Files): Likewise.
35709         * modules/flock-tests (Files): Likewise.
35710         * modules/floorf-tests (Files): Likewise.
35711         * modules/floorl-tests (Files): Likewise.
35712         * modules/fnmatch-tests (Files): Likewise.
35713         * modules/fopen-tests (Files): Likewise.
35714         * modules/fprintf-posix-tests (Files): Likewise.
35715         * modules/freopen-tests (Files): Likewise.
35716         * modules/frexp-nolibm-tests (Files): Likewise.
35717         * modules/frexp-tests (Files): Likewise.
35718         * modules/frexpl-nolibm-tests (Files): Likewise.
35719         * modules/frexpl-tests (Files): Likewise.
35720         * modules/fseek-tests (Files): Likewise.
35721         * modules/fseeko-tests (Files): Likewise.
35722         * modules/fsync-tests (Files): Likewise.
35723         * modules/ftell-tests (Files): Likewise.
35724         * modules/ftello-tests (Files): Likewise.
35725         * modules/futimens-tests (Files): Likewise.
35726         * modules/getaddrinfo-tests (Files): Likewise.
35727         * modules/getcwd-tests (Files): Likewise.
35728         * modules/getdelim-tests (Files): Likewise.
35729         * modules/getdtablesize-tests (Files): Likewise.
35730         * modules/getgroups-tests (Files): Likewise.
35731         * modules/gethostname-tests (Files): Likewise.
35732         * modules/getline-tests (Files): Likewise.
35733         * modules/getopt-posix-tests (Files): Likewise.
35734         * modules/gettimeofday-tests (Files): Likewise.
35735         * modules/glob-tests (Files): Likewise.
35736         * modules/iconv-tests (Files): Likewise.
35737         * modules/inet_ntop-tests (Files): Likewise.
35738         * modules/inet_pton-tests (Files): Likewise.
35739         * modules/isblank-tests (Files): Likewise.
35740         * modules/lchown-tests (Files): Likewise.
35741         * modules/ldexpl-tests (Files): Likewise.
35742         * modules/link-tests (Files): Likewise.
35743         * modules/linkat-tests (Files): Likewise.
35744         * modules/lseek-tests (Files): Likewise.
35745         * modules/lstat-tests (Files): Likewise.
35746         * modules/mbrtowc-tests (Files): Likewise.
35747         * modules/mbsinit-tests (Files): Likewise.
35748         * modules/mbsnrtowcs-tests (Files): Likewise.
35749         * modules/mbsrtowcs-tests (Files): Likewise.
35750         * modules/memchr-tests (Files): Likewise.
35751         * modules/memcmp-tests (Files): Likewise.
35752         * modules/memmem-tests (Files): Likewise.
35753         * modules/memrchr-tests (Files): Likewise.
35754         * modules/mkdir-tests (Files): Likewise.
35755         * modules/mkfifo-tests (Files): Likewise.
35756         * modules/mkfifoat-tests (Files): Likewise.
35757         * modules/mknod-tests (Files): Likewise.
35758         * modules/nanosleep-tests (Files): Likewise.
35759         * modules/nl_langinfo-tests (Files): Likewise.
35760         * modules/obstack-printf-tests (Files): Likewise.
35761         * modules/open-tests (Files): Likewise.
35762         * modules/openat-tests (Files): Likewise.
35763         * modules/perror-tests (Files): Likewise.
35764         * modules/pipe2-tests (Files): Likewise.
35765         * modules/poll-tests (Files): Likewise.
35766         * modules/popen-tests (Files): Likewise.
35767         * modules/posix_spawn-tests (Files): Likewise.
35768         * modules/posix_spawnp-tests (Files): Likewise.
35769         * modules/pread-tests (Files): Likewise.
35770         * modules/printf-posix-tests (Files): Likewise.
35771         * modules/pty-tests (Files): Likewise.
35772         * modules/random_r-tests (Files): Likewise.
35773         * modules/rawmemchr-tests (Files): Likewise.
35774         * modules/readlink-tests (Files): Likewise.
35775         * modules/remove-tests (Files): Likewise.
35776         * modules/rename-tests (Files): Likewise.
35777         * modules/renameat-tests (Files): Likewise.
35778         * modules/rmdir-tests (Files): Likewise.
35779         * modules/round-tests (Files): Likewise.
35780         * modules/roundf-tests (Files): Likewise.
35781         * modules/roundl-tests (Files): Likewise.
35782         * modules/select-tests (Files): Likewise.
35783         * modules/setenv-tests (Files): Likewise.
35784         * modules/sigaction-tests (Files): Likewise.
35785         * modules/sleep-tests (Files): Likewise.
35786         * modules/snprintf-posix-tests (Files): Likewise.
35787         * modules/snprintf-tests (Files): Likewise.
35788         * modules/sprintf-posix-tests (Files): Likewise.
35789         * modules/stat-tests (Files): Likewise.
35790         * modules/strcasestr-tests (Files): Likewise.
35791         * modules/strchrnul-tests (Files): Likewise.
35792         * modules/strerror-tests (Files): Likewise.
35793         * modules/strsignal-tests (Files): Likewise.
35794         * modules/strstr-tests (Files): Likewise.
35795         * modules/strtod-tests (Files): Likewise.
35796         * modules/strverscmp-tests (Files): Likewise.
35797         * modules/symlink-tests (Files): Likewise.
35798         * modules/symlinkat-tests (Files): Likewise.
35799         * modules/times-tests (Files): Likewise.
35800         * modules/trunc-tests (Files): Likewise.
35801         * modules/truncf-tests (Files): Likewise.
35802         * modules/truncl-tests (Files): Likewise.
35803         * modules/tsearch-tests (Files): Likewise.
35804         * modules/uname-tests (Files): Likewise.
35805         * modules/unlink-tests (Files): Likewise.
35806         * modules/unsetenv-tests (Files): Likewise.
35807         * modules/usleep-tests (Files): Likewise.
35808         * modules/utimensat-tests (Files): Likewise.
35809         * modules/vasprintf-tests (Files): Likewise.
35810         * modules/vdprintf-posix-tests (Files): Likewise.
35811         * modules/vfprintf-posix-tests (Files): Likewise.
35812         * modules/vprintf-posix-tests (Files): Likewise.
35813         * modules/vsnprintf-posix-tests (Files): Likewise.
35814         * modules/vsnprintf-tests (Files): Likewise.
35815         * modules/vsprintf-posix-tests (Files): Likewise.
35816         * modules/wcrtomb-tests (Files): Likewise.
35817         * modules/wcsnrtombs-tests (Files): Likewise.
35818         * modules/wcsrtombs-tests (Files): Likewise.
35819         * modules/wcwidth-tests (Files): Likewise.
35820         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35821         * tests/test-isinf.c (isinf): Likewise.
35822         * tests/test-isnan.c (isnan): Likewise.
35823         * tests/test-signbit.c (signbit): Likewise.
35824         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35825         declaration, either as macro or with correct signature.
35826         (select): Ensure function under test is declared with correct
35827         signature in correct header.
35828         * tests/test-atexit.c (atexit): Likewise.
35829         * tests/test-btowc.c (btowc): Likewise.
35830         * tests/test-canonicalize-lgpl.c (realpath)
35831         (canonicalize_file_name): Likewise.
35832         * tests/test-ceilf1.c (ceilf): Likewise.
35833         * tests/test-ceill.c (ceill): Likewise.
35834         * tests/test-chown.c (chown): Likewise.
35835         * tests/test-dprintf-posix.c (dprintf): Likewise.
35836         * tests/test-dup2.c (dup2): Likewise.
35837         * tests/test-dup3.c (dup3): Likewise.
35838         * tests/test-duplocale.c (duplocale): Likewise.
35839         * tests/test-fchdir.c (fchdir): Likewise.
35840         * tests/test-fchownat.c (fchownat): Likewise.
35841         * tests/test-fcntl.c (fcntl): Likewise.
35842         * tests/test-fdopendir.c (fdopendir): Likewise.
35843         * tests/test-fflush.c (fflush): Likewise.
35844         * tests/test-flock.c (flock): Likewise.
35845         * tests/test-floorf1.c (floorf): Likewise.
35846         * tests/test-floorl.c (floorl): Likewise.
35847         * tests/test-fnmatch.c (fnmatch): Likewise.
35848         * tests/test-fopen.c (fopen): Likewise.
35849         * tests/test-fprintf-posix.c (fprintf): Likewise.
35850         * tests/test-freopen.c (freopen): Likewise.
35851         * tests/test-frexp.c (frexp): Likewise.
35852         * tests/test-frexpl.c (frexpl): Likewise.
35853         * tests/test-fseek.c (fseek): Likewise.
35854         * tests/test-fseeko.c (fseeko): Likewise.
35855         * tests/test-fstatat.c (fstatat): Likewise.
35856         * tests/test-fsync.c (fsync): Likewise.
35857         * tests/test-ftell.c (ftell): Likewise.
35858         * tests/test-ftello.c (ftello): Likewise.
35859         * tests/test-futimens.c (futimens): Likewise.
35860         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
35861         (gai_strerror): Likewise.
35862         * tests/test-getcwd.c (getcwd): Likewise.
35863         * tests/test-getdelim.c (getdelim): Likewise.
35864         * tests/test-getdtablesize.c (getdtablesize): Likewise.
35865         * tests/test-getgroups.c (getgroups): Likewise.
35866         * tests/test-gethostname.c (gethostname): Likewise.
35867         * tests/test-getline.c (getline): Likewise.
35868         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
35869         Likewise.
35870         * tests/test-gettimeofday.c (gettimeofday): Likewise.
35871         * tests/test-glob.c (glob, globfree): Likewise.
35872         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
35873         * tests/test-inet_ntop.c (inet_ntop): Likewise.
35874         * tests/test-inet_pton.c (inet_pton): Likewise.
35875         * tests/test-isblank.c (isblank): Likewise.
35876         * tests/test-lchown.c (lchown): Likewise.
35877         * tests/test-ldexpl.c (ldexpl): Likewise.
35878         * tests/test-link.c (link): Likewise.
35879         * tests/test-linkat.c (linkat): Likewise.
35880         * tests/test-lseek.c (lseek): Likewise.
35881         * tests/test-lstat.c (lstat): Likewise.
35882         * tests/test-mbrtowc.c (mbrtowc): Likewise.
35883         * tests/test-mbsinit.c (mbsinit): Likewise.
35884         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
35885         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
35886         * tests/test-memchr.c (memchr): Likewise.
35887         * tests/test-memcmp.c (memcmp): Likewise.
35888         * tests/test-memmem.c (memmem): Likewise.
35889         * tests/test-memrchr.c (memrchr): Likewise.
35890         * tests/test-mkdir.c (mkdir): Likewise.
35891         * tests/test-mkdirat.c (mkdirat): Likewise.
35892         * tests/test-mkfifo.c (mkfifo): Likewise.
35893         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
35894         * tests/test-mknod.c (mknod): Likewise.
35895         * tests/test-nanosleep.c (nanosleep): Likewise.
35896         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
35897         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
35898         Likewise.
35899         * tests/test-open.c (open): Likewise.
35900         * tests/test-openat.c (openat): Likewise.
35901         * tests/test-perror.c (perror): Likewise.
35902         * tests/test-pipe2.c (pipe2): Likewise.
35903         * tests/test-poll.c (poll): Likewise.
35904         * tests/test-popen.c (popen, pclose): Likewise.
35905         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
35906         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
35907         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
35908         (posix_spawn_file_actions_destroy)
35909         (posix_spawn_file_actions_addclose)
35910         (posix_spawn_file_actions_addopen)
35911         (posix_spawn_file_actions_adddup2): Likewise.
35912         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
35913         * tests/test-pread.c (pread): Likewise.
35914         * tests/test-printf-posix.c (printf): Likewise.
35915         * tests/test-pty.c (openpty, forkpty): Likewise.
35916         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
35917         (random_r): Likewise.
35918         * tests/test-rawmemchr.c (rawmemchr): Likewise.
35919         * tests/test-readlink.c (readlink): Likewise.
35920         * tests/test-remove.c (remove): Likewise.
35921         * tests/test-rename.c (rename): Likewise.
35922         * tests/test-renameat.c (renameat): Likewise.
35923         * tests/test-rmdir.c (rmdir): Likewise.
35924         * tests/test-round1.c (round): Likewise.
35925         * tests/test-roundf1.c (roundf): Likewise.
35926         * tests/test-roundl.c (roundl): Likewise.
35927         * tests/test-setenv.c (setenv): Likewise.
35928         * tests/test-sigaction.c (sigaction): Likewise.
35929         * tests/test-sleep.c (sleep): Likewise.
35930         * tests/test-snprintf.c (snprintf): Likewise.
35931         * tests/test-sprintf-posix.c (sprintf): Likewise.
35932         * tests/test-stat.c (stat): Likewise.
35933         * tests/test-stpncpy.c (stpncpy): Likewise.
35934         * tests/test-strcasestr.c (strcasestr): Likewise.
35935         * tests/test-strchrnul.c (strchrnul): Likewise.
35936         * tests/test-strerror.c (strerror): Likewise.
35937         * tests/test-strsignal.c (strsignal): Likewise.
35938         * tests/test-strstr.c (strstr): Likewise.
35939         * tests/test-strtod.c (strtod): Likewise.
35940         * tests/test-strverscmp.c (strverscmp): Likewise.
35941         * tests/test-symlink.c (symlink): Likewise.
35942         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
35943         * tests/test-times.c (times): Likewise.
35944         * tests/test-trunc1.c (trunc): Likewise.
35945         * tests/test-truncf1.c (truncf): Likewise.
35946         * tests/test-truncl.c (truncl): Likewise.
35947         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
35948         Likewise.
35949         * tests/test-uname.c (uname): Likewise.
35950         * tests/test-unlink.c (unlink): Likewise.
35951         * tests/test-unlinkat.c (unlinkat): Likewise.
35952         * tests/test-unsetenv.c (unsetenv): Likewise.
35953         * tests/test-usleep.c (usleep): Likewise.
35954         * tests/test-utimensat.c (utimensat): Likewise.
35955         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
35956         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
35957         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
35958         * tests/test-vprintf-posix.c (vprintf): Likewise.
35959         * tests/test-vsnprintf.c (vsnprintf): Likewise.
35960         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
35961         * tests/test-wcrtomb.c (wcrtomb): Likewise.
35962         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
35963         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
35964         * tests/test-wcwidth.c (wcwidth): Likewise.
35965
35966         build: pull in conditional headers during GNULIB_POSIXCHECK
35967         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
35968         definitions from any conditionally-included headers.
35969         * lib/stdlib.in.h (includes): Likewise.
35970         * lib/unistd.in.h (includes): Likewise.
35971
35972 2009-12-24  Bruno Haible  <bruno@clisp.org>
35973
35974         * tests/test-argv-iter.c: Include header file being tested immediately
35975         after config.h.
35976         * tests/test-base64.c: Likewise.
35977         * tests/test-flock.c: Likewise.
35978         * tests/test-fsync.c: Likewise.
35979         * tests/test-getdate.c: Likewise.
35980         * tests/test-getndelim2.c: Likewise.
35981         * tests/test-isfinite.c: Likewise.
35982         * tests/test-isinf.c: Likewise.
35983         * tests/test-strerror.c: Likewise.
35984         * tests/test-strsignal.c: Likewise.
35985
35986 2009-12-23  Eric Blake  <ebb9@byu.net>
35987
35988         unistd: work around cygwin bug
35989         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
35990         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
35991         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35992
35993 2009-12-23  Bruno Haible  <bruno@clisp.org>
35994
35995         localename: More tests.
35996         * tests/test-localename.c (SIZEOF): New macro.
35997         (categories): New variable.
35998         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
35999         test_locale_name_default): Add test w.r.t. thread locale.
36000         (test_locale_name_thread): New function.
36001         (main): Invoke it.
36002
36003         localename: Make aware of thread locale.
36004         * lib/localename.h (gl_locale_name_thread): New declaration.
36005         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36006         behaviour with respect to thread locale.
36007         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36008         <langinfo.h>, glthread/lock.h.
36009         (SIZE_BITS): New macro.
36010         (string_hash): New function.
36011         (struct hash_node): New type.
36012         (HASH_TABLE_SIZE): New macro.
36013         (struniq_hash_table, struniq_lock): New variables.
36014         (struniq): New function.
36015         (gl_locale_name_thread): New function.
36016         (gl_locale_name): Invoke it.
36017         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36018         * modules/localename (Depends-on): Add lock.
36019         Reported by Mike Gran <spk121@yahoo.com>.
36020
36021 2009-12-23  Eric Blake  <ebb9@byu.net>
36022
36023         va-args: new module
36024         * modules/va-args: New file.
36025         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36026         * MODULES.html.sh (Core language properties): Mention it.
36027
36028         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36029         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36030         named alias for __attribute__((__unused__)).
36031         * lib/chown.c: Update client.
36032         * lib/fchmodat.c: Likewise.
36033         * lib/fts.c: Likewise.
36034         * lib/getdate.y: Likewise.
36035         * lib/getgroups.c: Likewise.
36036         * lib/getopt.c: Likewise.
36037         * lib/getugroups.c: Likewise.
36038         * lib/mkdir.c: Likewise.
36039         * lib/mkfifo.c: Likewise.
36040         * lib/mkfifoat.c: Likewise.
36041         * lib/mknod.c: Likewise.
36042         * lib/mknodat.c: Likewise.
36043         * lib/readlink.c: Likewise.
36044         * lib/se-context.in.h: Likewise.
36045         * lib/se-selinux.in.h: Likewise.
36046         * lib/sockets.c: Likewise.
36047         * lib/symlink.c: Likewise.
36048         * lib/symlinkat.c: Likewise.
36049         * lib/unicodeio.c: Likewise.
36050         * lib/unistr.h: Likewise.
36051         * tests/test-areadlink.c: Likewise.
36052         * tests/test-areadlinkat.c: Likewise.
36053         * tests/test-filenamecat.c: Likewise.
36054         * tests/test-fseeko.c: Likewise.
36055         * tests/test-ftello.c: Likewise.
36056         * tests/test-getdate.c: Likewise.
36057         * tests/test-getgroups.c: Likewise.
36058         * tests/test-gethostname.c: Likewise.
36059         * tests/test-quotearg.c: Likewise.
36060         * tests/test-version-etc.c: Likewise.
36061         * tests/test-xalloc-die.c: Likewise.
36062         * tests/test-xfprintf-posix.c: Likewise.
36063         * tests/test-xprintf-posix.c: Likewise.
36064         * tests/test-xvasprintf.c: Likewise.
36065
36066         tests: avoid compiler warnings
36067         * tests/test-fcntl.c (main): Delete unused parameters.
36068         * tests/test-freopen-safer.c (main): Likewise.
36069         * tests/test-xalloc-die.c (main): Mark unused parameters.
36070         * tests/test-fseeko.c (main): Likewise.
36071         * tests/test-ftello.c (main): Likewise.
36072         * tests/test-nanosleep.c (main): Avoid declaration warning.
36073         * tests/test-sleep.c (main): Likewise.
36074         * tests/test-unsetenv.c (main): Silence warning about string
36075         literal.
36076         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36077
36078 2009-12-23  Bruno Haible  <bruno@clisp.org>
36079
36080         * tests/test-localename.c (test_locale_name): New function, extracted
36081         from main. Also test mixed situations.
36082         (test_locale_name_posix, test_locale_name_environ,
36083         test_locale_name_default): New functions.
36084         (main): Invoke them all.
36085         * modules/localename-tests (configure.ac): Test for newlocale.
36086
36087 2009-12-23  Bruno Haible  <bruno@clisp.org>
36088
36089         unistd: Ensure getcwd gets declared before being overridden.
36090         * lib/unistd.in.h: Conditionally include <io.h>.
36091
36092 2009-12-22  Bruno Haible  <bruno@clisp.org>
36093
36094         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36095         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36096         (gl_WCHAR_H): Invoke it.
36097         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36098         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36099         Reported by Karl Berry <karl@freefriends.org>.
36100
36101 2009-12-22  Eric Blake  <ebb9@byu.net>
36102
36103         math, unistd: avoid redundant includes
36104         * lib/math.in.h (isnan): No need to re-include <math.h>.
36105         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36106
36107         getsubopt: work around cygwin bug
36108         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36109         avoid conflicting with system getsubopt.
36110         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36111         bug.
36112
36113         getopt: synchronize from glibc
36114         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36115         parameter order.  Adjust all callers.
36116         (_getopt_internal_r, main): Adjust quoting in error messages.
36117         Drop considerations for outdated POSIX 1003.2 error message.
36118         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36119         callers.
36120         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36121
36122         test-getopt: test stderr behavior
36123         * modules/getopt-posix-tests (Depends-on): Add dup2.
36124         * tests/test-getopt.c (ASSERT): Avoid stderr.
36125         (main): Move stderr to a temporary file.
36126         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36127         Instead, add parameter to inform caller if output occurred.
36128         (test_getopt): Adjust all existing tests to expect silence, and
36129         add new tests of leading ":".
36130         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36131         glibc shortcomings with leading "-:" or "+:" in optstring.
36132         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36133         Likewise.
36134         * doc/posix-functions/getopt.texi (getopt): Likewise.
36135
36136         test-getopt: enhance test
36137         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36138         supports optind=0.
36139         * tests/test-getopt.c (OPTIND_MIN): Move...
36140         * tests/test-getopt.h (OPTIND_MIN): ...here.
36141         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36142         Require that optind=0 works, since modern BSD supports it in
36143         addition to optreset, and since coreutils expects it.
36144         (test_getopt_long_only): New test.
36145         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36146         glibc shortcomings with 'W;', and enforcement of optind=0.
36147         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36148         Likewise.
36149
36150 2009-12-21  Bruno Haible  <bruno@clisp.org>
36151
36152         localename: Improvements for MacOS X and Cygwin.
36153         * lib/localename.h (gl_locale_name_environ): New declaration.
36154         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36155         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36156         (gl_locale_name_posix): Invoke it.
36157         (gl_locale_name_default): Add comments. Use Windows native API also on
36158         Cygwin.
36159
36160 2009-12-21  Bruno Haible  <bruno@clisp.org>
36161
36162         Update list of Win32 locale ids.
36163         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36164         (LANG_SAMI): Renamed from LANG_SAAMI.
36165         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36166         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36167         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36168         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36169         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36170         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36171         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36172         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36173         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36174         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36175         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36176         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36177         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36178         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36179         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36180         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36181         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36182         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36183         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36184         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36185         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36186         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36187         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36188         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36189         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36190         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36191         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36192         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36193         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36194         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36195         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36196         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36197         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36198         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36199         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36200         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36201         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36202         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36203         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36204         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36205         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36206         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36207         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36208         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36209         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36210         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36211         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36212         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36213         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36214         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36215         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36216         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36217         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36218         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36219         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36220         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36221         Add more languages and countries for Sami, Sorbian. Add more countries
36222         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36223         for Pashto. Change country for Syriac, Tswana.
36224
36225 2009-12-21  Eric Blake  <ebb9@byu.net>
36226
36227         test-utimens: avoid spurious failure
36228         * tests/test-chown.h (nap): Factor...
36229         * tests/nap.h: ...into new file.
36230         * tests/test-lchown.h (nap): Avoid duplication.
36231         * tests/test-utimens-common.h (nap): Use shared implementation,
36232         necessary on file systems with 1-second resolution.
36233         * modules/chown-tests (Files): Include new file.
36234         * modules/fdutimensat-tests (Files): Likewise.
36235         * modules/futimens-tests (Files): Likewise.
36236         * modules/lchown-tests (Files): Likewise.
36237         * modules/openat-tests (Files): Likewise.
36238         * modules/utimens-tests (Files): Likewise.
36239         * modules/utimensat-tests (Files): Likewise.
36240
36241 2009-12-19  Eric Blake  <ebb9@byu.net>
36242
36243         futimens, utimensat: work around Linux bug
36244         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36245         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36246         * lib/utimensat.c (rpl_utimensat): Work around it.
36247         * lib/futimens.c (rpl_futimens): Adjust comment.
36248
36249         utimens: work around Linux ctime bug
36250         * lib/utimens.c (detect_ctime_bug): New helper function.
36251         (update_timespec): Differentiate between workaround needed for
36252         this bug vs. what is needed for systems that lack utimensat.
36253         (fdutimens, lutimens): Work around bug.
36254
36255         utimens: check for ctime update
36256         * tests/test-utimens-common.h (check_ctime): Define.
36257         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36258         * tests/test-futimens.h (test_futimens): Likewise.
36259         * tests/test-lutimens.h (test_lutimens): Likewise.
36260         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36261         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36262
36263 2009-12-19  Bruno Haible  <bruno@clisp.org>
36264
36265         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36266         * tests/test-dprintf-posix2.sh: New file.
36267         * tests/test-dprintf-posix2.c: New file.
36268         * modules/dprintf-posix-tests (Files): Add them.
36269         (configure.ac): Check for getrlimit and setrlimit.
36270         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36271
36272 2009-12-19  Bruno Haible  <bruno@clisp.org>
36273
36274         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36275         * tests/test-fprintf-posix3.sh: New file.
36276         * tests/test-fprintf-posix3.c: New file.
36277         * modules/fprintf-posix-tests (Files): Add them.
36278         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36279
36280 2009-12-19  Eric Blake  <ebb9@byu.net>
36281
36282         dirfd: fix prototype
36283         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36284         * lib/dirfd.c (dirfd): Likewise.
36285
36286         canonicalize: reduce memory usage
36287         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36288         allocation to size.
36289         Reported by Solar Designer <solar@openwall.com>.
36290
36291 2009-12-19  Bruno Haible  <bruno@clisp.org>
36292
36293         New module attribute 'Applicability'.
36294         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36295         * gnulib-tool: New option --extract-applicability.
36296         (func_usage): Document it.
36297         (sed_extract_prog): Recognize it.
36298         (func_get_applicability): New function.
36299         (func_import): Generalize handling of 'link-warning' module.
36300         * modules/link-warning (Applicability): New section.
36301         * modules/arg-nonnull (Applicability): New section.
36302         Repoted by Simon Josefsson <simon@josefsson.org>.
36303
36304 2009-12-19  Bruno Haible  <bruno@clisp.org>
36305
36306         fflush: tweak
36307         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36308         * lib/fseeko.c (rpl_fseeko): Likewise.
36309
36310 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36311
36312         * lib/gl_list.h: Fix typo in comment.
36313
36314 2009-12-16  Eric Blake  <ebb9@byu.net>
36315
36316         fcntl: use to simplify other modules
36317         * modules/cloexec (Depends-on): Add fcntl.
36318         * modules/fchdir (Depends-on): Likewise.
36319         * modules/fd-safer-flag (Depends-on): Likewise.
36320         * modules/unistd-safer (Depends-on): Likewise.
36321         * modules/dup3 (configure.ac): Set module indicator.
36322         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36323         missing.
36324         * lib/fchdir.c (_gl_register_dup): Fix comment.
36325         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36326         * lib/dup-safer.c (dup_safer): Likewise.
36327         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36328         * lib/dup3.c (dup3): Likewise.
36329         * tests/test-fchdir.c (main): Enhance test.
36330         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36331
36332         fcntl: port portions of fcntl to mingw
36333         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36334         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36335         replacement for mingw.
36336         * modules/fcntl (Description): Update.
36337         (Depends-on): Add dup2.
36338         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36339         * modules/fcntl-h (Makefile.am): Substitute it.
36340         * lib/fcntl.in.h (fcntl): Update declaration.
36341         (F_DUPFD, F_GETFD): New macros, when needed.
36342         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36343         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36344         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36345         we now guarantee.
36346
36347         fcntl: work around cygwin bug in F_DUPFD
36348         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36349         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36350         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36351         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36352         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36353
36354         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36355         * modules/fcntl (Files): List new files.
36356         (configure.ac): Run a test.
36357         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36358         * lib/fcntl.c (rpl_fcntl): Likewise.
36359         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36360         (gl_FCNTL_H): Always replace fcntl.h.
36361         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36362         * lib/fcntl.in.h (fcntl): Declare replacement.
36363         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36364         needed, plus a witness.
36365         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36366         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36367         * tests/test-fcntl.c: New file.
36368         * modules/fcntl-tests: Likewise.
36369
36370         binary-io: avoid potential compilation warning
36371         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36372         directives.
36373
36374         fflush: avoid compilation error on NetBSD
36375         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36376         between off_t and fpos_t, since the latter is sometimes a struct.
36377         * lib/fseeko.c (rpl_fseeko): Likewise.
36378         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36379
36380 2009-12-15  Eric Blake  <ebb9@byu.net>
36381
36382         fcntl-h, stdio, sys_ioctl: fix declarations
36383         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36384         function must not take arguments.
36385         * lib/sys_ioctl.in.h (ioctl): Likewise.
36386         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36387         (open): Add a link warning.
36388
36389 2009-12-15  Jim Meyering  <meyering@redhat.com>
36390
36391         areadlink, areadlink-with-size: relax license to LGPLv2+
36392         * modules/areadlink (License): Relax to LGPLv2+.
36393         * modules/areadlink-with-size (License): Likewise.
36394
36395 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36396             Bruno Haible  <bruno@clisp.org>
36397
36398         *printf: Fix memory leak.
36399         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36400         * lib/vfprintf.c (vfprintf): Likewise.
36401         * lib/dprintf.c (dprintf): Likewise.
36402         * lib/vdprintf.c (vdprintf): Likewise.
36403
36404 2009-12-14  Eric Blake  <ebb9@byu.net>
36405
36406         accept4: adjust module dependencies
36407         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36408
36409         utimens: one more try at avoiding compiler warning
36410         * lib/utimens.c (lutimens): Lower scope of result.
36411
36412 2009-12-13  Bruno Haible  <bruno@clisp.org>
36413
36414         Move the malloc checking from module 'list' to new module 'xlist'.
36415         * modules/xlist: New file.
36416         * lib/gl_xlist.h: New file.
36417         * lib/gl_xlist.c: New file.
36418         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36419         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36420         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36421         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36422         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36423         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36424         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36425         gl_sortedlist_nx_add): New declarations.
36426         (struct gl_list_implementation): Rename and change methods accordingly.
36427         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36428         (gl_list_nx_create): Renamed from gl_list_create.
36429         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36430         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36431         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36432         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36433         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36434         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36435         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36436         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36437         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36438         gl_list_create_empty.
36439         (gl_list_nx_create): Renamed from gl_list_create.
36440         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36441         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36442         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36443         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36444         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36445         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36446         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36447         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36448         * lib/gl_array_list.c: Don't include xalloc.h.
36449         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36450         NULL upon out-of-memory.
36451         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36452         out-of-memory.
36453         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36454         Change return type to 'int'.
36455         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36456         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36457         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36458         upon out-of-memory.
36459         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36460         upon out-of-memory.
36461         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36462         upon out-of-memory.
36463         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36464         upon out-of-memory.
36465         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36466         out-of-memory.
36467         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36468         Update.
36469         (gl_array_list_implementation): Update.
36470         * lib/gl_carray_list.c: Don't include xalloc.h.
36471         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36472         Return NULL upon out-of-memory.
36473         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36474         out-of-memory.
36475         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36476         Change return type to 'int'.
36477         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36478         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36479         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36480         upon out-of-memory.
36481         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36482         upon out-of-memory.
36483         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36484         out-of-memory.
36485         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36486         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36487         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36488         Update.
36489         (gl_carray_list_implementation): Update.
36490         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36491         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36492         gl_linked_create_empty. Return NULL upon out-of-memory.
36493         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36494         out-of-memory.
36495         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36496         Change return type to 'int'. Return -1 upon out-of-memory.
36497         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36498         out-of-memory.
36499         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36500         upon out-of-memory.
36501         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36502         upon out-of-memory.
36503         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36504         NULL upon out-of-memory.
36505         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36506         upon out-of-memory.
36507         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36508         out-of-memory.
36509         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36510         Update.
36511         * lib/gl_linked_list.c: Don't include xalloc.h.
36512         (gl_linked_list_implementation): Update.
36513         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36514         (add_to_bucket): Change return type to 'int'.
36515         (gl_linkedhash_list_implementation): Update.
36516         * lib/gl_anytree_list1.h (free_subtree): New function.
36517         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36518         gl_tree_create_empty. Return NULL upon out-of-memory.
36519         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36520         Change return type to 'int'. Return -1 upon out-of-memory.
36521         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36522         out-of-memory.
36523         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36524         (gl_tree_remove_node): New function, moved here from
36525         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36526         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36527         Update.
36528         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36529         malloc, not xmalloc. Return NULL upon out-of-memory.
36530         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36531         out-of-memory.
36532         (gl_tree_remove_node_from_tree): New function, extracted from
36533         gl_tree_remove_node.
36534         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36535         upon out-of-memory.
36536         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36537         out-of-memory.
36538         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36539         upon out-of-memory.
36540         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36541         upon out-of-memory.
36542         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36543         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36544         not xmalloc. Return NULL upon out-of-memory.
36545         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36546         out-of-memory.
36547         (gl_tree_remove_node_from_tree): New function, extracted from
36548         gl_tree_remove_node.
36549         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36550         upon out-of-memory.
36551         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36552         out-of-memory.
36553         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36554         upon out-of-memory.
36555         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36556         upon out-of-memory.
36557         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36558         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36559         gl_anytree_list1.h before gl_anyavltree_list2.h.
36560         (gl_avltree_list_implementation): Update.
36561         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36562         gl_anytree_list1.h before gl_anyavltree_list2.h.
36563         (gl_rbtree_list_implementation): Update.
36564         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36565         Change return type to 'int'. Return -1 upon out-of-memory. Use
36566         __builtin_expect.
36567         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36568         (gl_avltreehash_list_implementation): Update.
36569         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36570         (gl_rbtreehash_list_implementation): Update.
36571         * modules/array-list (Depends-on): Remove xalloc.
36572         * modules/carray-list (Depends-on): Likewise.
36573         * modules/linked-list (Depends-on): Likewise.
36574         * modules/linkedhash-list (Depends-on): Likewise.
36575         * modules/avltree-list (Depends-on): Likewise.
36576         * modules/rbtree-list (Depends-on): Likewise.
36577         * modules/avltreehash-list (Depends-on): Likewise.
36578         * modules/rbtreehash-list (Depends-on): Likewise.
36579
36580         * modules/xsublist: New file.
36581         * lib/gl_xsublist.h: New file.
36582         * lib/gl_xsublist.c: New file.
36583         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36584         (gl_sublist_nx_create): New declaration.
36585         * lib/gl_sublist.c: Don't include xalloc.h.
36586         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36587         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36588         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36589         Change return type to 'int'. Return -1 upon out-of-memory.
36590         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36591         upon out-of-memory.
36592         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36593         NULL upon out-of-memory.
36594         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36595         upon out-of-memory.
36596         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36597         NULL upon out-of-memory.
36598         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36599         NULL upon out-of-memory.
36600         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36601         upon out-of-memory.
36602         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36603         (gl_sublist_list_implementation): Update.
36604         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36605         upon out-of-memory.
36606         * modules/sublist (Depends-on): Remove xalloc.
36607
36608         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36609         * tests/test-carray_list.c: Likewise.
36610         * tests/test-linked_list.c: Likewise.
36611         * tests/test-linkedhash_list.c: Likewise.
36612         * tests/test-avltree_list.c: Likewise.
36613         * tests/test-rbtree_list.c: Likewise.
36614         * tests/test-avltreehash_list.c: Likewise.
36615         * tests/test-rbtreehash_list.c: Likewise.
36616         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36617         * modules/carray-list-tests (Makefile.am): Likewise.
36618         * modules/linked-list-tests (Makefile.am): Likewise.
36619         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36620         * modules/avltree-list-tests (Makefile.am): Likewise.
36621         * modules/rbtree-list-tests (Makefile.am): Likewise.
36622         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36623         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36624
36625         * NEWS: Mention the changes.
36626
36627         * lib/clean-temp.c: Include gl_xlist.h.
36628         * modules/clean-temp (Depends-on): Add xlist.
36629
36630         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36631         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36632
36633         * tests/test-array_oset.c: Include gl_xlist.h.
36634         * modules/array-oset-tests (Depends-on): Add xlist.
36635
36636         Reported by José E. Marchesi <jemarch@gnu.org>.
36637
36638 2009-12-13  Bruno Haible  <bruno@clisp.org>
36639
36640         Move the malloc checking from module 'oset' to new module 'xoset'.
36641         * modules/xoset: New file.
36642         * lib/gl_xoset.h: New file.
36643         * lib/gl_xoset.c: New file.
36644         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36645         declarations.
36646         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36647         (struct gl_oset_implementation): Rename and change methods accordingly.
36648         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36649         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36650         'int'. Mark as __warn_unused_result__.
36651         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36652         gl_oset_create_empty.
36653         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36654         'int'.
36655         * lib/gl_array_oset.c: Don't include xalloc.h.
36656         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36657         malloc, not xmalloc.
36658         (grow): Change return type to 'int'. Don't call xalloc_die.
36659         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36660         to 'int'.
36661         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36662         'int'.
36663         (gl_array_oset_implementation): Update.
36664         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36665         gl_tree_create_empty.
36666         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36667         'int'.
36668         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36669         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36670         xmalloc.
36671         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36672         not xmalloc.
36673         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36674         xmalloc.
36675         (gl_avltree_oset_implementation): Update.
36676         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36677         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36678         xmalloc.
36679         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36680         not xmalloc.
36681         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36682         xmalloc.
36683         (gl_rbtree_oset_implementation): Update.
36684         * modules/array-oset (Depends-on): Remove xalloc.
36685         * modules/avltree-oset (Depends-on): Likewise.
36686         * modules/rbtree-oset (Depends-on): Likewise.
36687         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36688         * tests/test-avltree_oset.c: Likewise.
36689         * tests/test-rbtree_oset.c: Likewise.
36690         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36691         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36692         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36693         * NEWS: Mention the change.
36694
36695 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36696
36697         maint.mk: allow a project to override release-prep commands
36698         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36699         commands into a new rule.
36700         (release-prep): New rule.
36701         (release-prep-hook): New overridable variable.
36702
36703 2009-12-13  Bruno Haible  <bruno@clisp.org>
36704
36705         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36706
36707 2009-12-13  Jim Meyering  <meyering@redhat.com>
36708
36709         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36710         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36711
36712 2009-12-12  Bruno Haible  <bruno@clisp.org>
36713
36714         duplocale: Tweak.
36715         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36716
36717 2009-12-12  Karl Berry  <karl@gnu.org>
36718
36719         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36720
36721 2009-12-12  Bruno Haible  <bruno@clisp.org>
36722
36723         * m4/po.m4: Undo incorrect untabification.
36724
36725 2009-12-12  Bruno Haible  <bruno@clisp.org>
36726
36727         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36728         * modules/c-strtod (Depends-on): Add locale.
36729         * modules/c-strtold (Depends-on): Likewise.
36730
36731 2009-12-12  Bruno Haible  <bruno@clisp.org>
36732
36733         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36734
36735 2009-12-11  Eric Blake  <ebb9@byu.net>
36736
36737         setenv: relax requirement in light of POSIX ruling
36738         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36739         not NULL.
36740         * tests/test-setenv.c (main): Relax test.
36741         * tests/test-unsetenv.c (main): Likewise.
36742         * doc/posix-functions/setenv.texi (setenv): Document this.
36743         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36744
36745 2009-12-11  Bruno Haible  <bruno@clisp.org>
36746
36747         New module 'fd-safer-flag'.
36748         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36749         * lib/dup-safer.c (dup_safer_flag): Remove function.
36750         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36751         * lib/fd-safer.c (fd_safer_flag): Remove function.
36752         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36753         * modules/cloexec (configure.ac): Drop indicator macro.
36754         * modules/fd-safer-flag: New file.
36755         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36756         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36757         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36758
36759 2009-12-11  Bruno Haible  <bruno@clisp.org>
36760
36761         Tests for module 'nl_langinfo'.
36762         * modules/nl_langinfo-tests: New file.
36763         * tests/test-nl_langinfo.sh: New file.
36764         * tests/test-nl_langinfo.c: New file.
36765
36766         New module 'nl_langinfo'.
36767         * lib/nl_langinfo.c: New file.
36768         * m4/nl_langinfo.m4: New file.
36769         * modules/nl_langinfo: New file.
36770         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36771
36772 2009-12-11  Bruno Haible  <bruno@clisp.org>
36773
36774         Tests for module 'langinfo'.
36775         * modules/langinfo-tests: New file.
36776         * tests/test-langinfo.c: New file.
36777
36778         New module 'langinfo'.
36779         * lib/langinfo.in.h: New file.
36780         * m4/langinfo_h.m4: New file.
36781         * modules/langinfo: New file.
36782         * doc/posix-headers/langinfo.texi: Mention the new module.
36783
36784 2009-12-11  Bruno Haible  <bruno@clisp.org>
36785
36786         * lib/config.charset: Untabify.
36787
36788 2009-12-11  Bruno Haible  <bruno@clisp.org>
36789
36790         * modules/unistd-safer (configure.ac): Drop indicator macro.
36791
36792 2009-12-11  Bruno Haible  <bruno@clisp.org>
36793
36794         Move pipe2-safer code to its own file.
36795         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36796         * lib/pipe-safer.c (pipe2_safer): Remove function.
36797         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36798         (Makefile.am): Add it to lib_SOURCES.
36799
36800 2009-12-10  Bruno Haible  <bruno@clisp.org>
36801
36802         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36803
36804 2009-12-10  Bruno Haible  <bruno@clisp.org>
36805
36806         Declare which arguments expect non-NULL values, for GCC and clang.
36807         * build-aux/arg-nonnull.h: New file.
36808         * modules/arg-nonnull: New file.
36809         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36810         (inet_ntop, inet_pton): Use it.
36811         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36812         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36813         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36814         (open, openat): Use it.
36815         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36816         (fnmatch): Use it.
36817         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36818         (getopt, getopt_long, getopt_long_only): Use it.
36819         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36820         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36821         Use it.
36822         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36823         (iconv_open): Use it.
36824         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36825         (strtoimax, strtoumax): Use it.
36826         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
36827         (duplocale): Use it.
36828         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
36829         (frexp, frexpl): Use it.
36830         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
36831         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
36832         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
36833         (tsearch, tfind, tdelete, twalk): Use it.
36834         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
36835         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36836         sigpending): Use it.
36837         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
36838         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36839         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36840         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36841         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36842         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36843         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36844         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36845         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36846         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36847         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36848         Use it.
36849         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
36850         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
36851         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
36852         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
36853         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
36854         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
36855         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
36856         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
36857         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
36858         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
36859         strtoull, unsetenv): Use it.
36860         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
36861         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36862         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36863         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36864         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36865         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
36866         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
36867         (strcasecmp, strncasecmp): Use it.
36868         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
36869         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
36870         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
36871         rpl_setsockopt): Use it.
36872         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
36873         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
36874         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
36875         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
36876         (gettimeofday): Use it.
36877         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
36878         (times): Use it.
36879         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
36880         (uname): Use it.
36881         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
36882         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
36883         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
36884         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
36885         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
36886         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
36887         unlinkat, write): Use it.
36888         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
36889         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
36890         * lib/argv-iter.h: Include arg-nonnull.h.
36891         (_ATTRIBUTE_NONNULL_): Remove macro.
36892         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
36893         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
36894         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
36895         optimization.
36896         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
36897         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
36898         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
36899         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
36900         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
36901         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
36902         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
36903         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
36904         * modules/arpa_inet (Depends-on): Add arg-nonnull.
36905         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
36906         * modules/dirent (Depends-on): Add arg-nonnull.
36907         (Makefile.am): Insert arg-nonnull.h into dirent.h.
36908         * modules/fcntl-h (Depends-on): Add arg-nonnull.
36909         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
36910         * modules/fnmatch (Depends-on): Add arg-nonnull.
36911         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
36912         * modules/getopt-posix (Depends-on): Add arg-nonnull.
36913         (Makefile.am): Insert arg-nonnull.h into getopt.h.
36914         * modules/glob (Depends-on): Add arg-nonnull.
36915         (Makefile.am): Insert arg-nonnull.h into glob.h.
36916         * modules/iconv_open (Depends-on): Add arg-nonnull.
36917         (Makefile.am): Insert arg-nonnull.h into iconv.h.
36918         * modules/inttypes (Depends-on): Add arg-nonnull.
36919         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
36920         * modules/locale (Depends-on): Add arg-nonnull.
36921         (Makefile.am): Insert arg-nonnull.h into locale.h.
36922         * modules/math (Depends-on): Add arg-nonnull.
36923         (Makefile.am): Insert arg-nonnull.h into math.h.
36924         * modules/netdb (Depends-on): Add arg-nonnull.
36925         (Makefile.am): Insert arg-nonnull.h into netdb.h.
36926         * modules/search (Depends-on): Add arg-nonnull.
36927         (Makefile.am): Insert arg-nonnull.h into search.h.
36928         * modules/signal (Depends-on): Add arg-nonnull.
36929         (Makefile.am): Insert arg-nonnull.h into signal.h.
36930         * modules/spawn (Depends-on): Add arg-nonnull.
36931         (Makefile.am): Insert arg-nonnull.h into spawn.h.
36932         * modules/stdio (Depends-on): Add arg-nonnull.
36933         (Makefile.am): Insert arg-nonnull.h into stdio.h.
36934         * modules/stdlib (Depends-on): Add arg-nonnull.
36935         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
36936         * modules/string (Depends-on): Add arg-nonnull.
36937         (Makefile.am): Insert arg-nonnull.h into string.h.
36938         * modules/strings (Depends-on): Add arg-nonnull.
36939         (Makefile.am): Insert arg-nonnull.h into strings.h.
36940         * modules/sys_socket (Depends-on): Add arg-nonnull.
36941         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
36942         * modules/sys_stat (Depends-on): Add arg-nonnull.
36943         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
36944         * modules/sys_time (Depends-on): Add arg-nonnull.
36945         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
36946         * modules/sys_times (Depends-on): Add arg-nonnull.
36947         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
36948         * modules/sys_utsname (Depends-on): Add arg-nonnull.
36949         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
36950         * modules/time (Depends-on): Add arg-nonnull.
36951         (Makefile.am): Insert arg-nonnull.h into time.h.
36952         * modules/unistd (Depends-on): Add arg-nonnull.
36953         (Makefile.am): Insert arg-nonnull.h into unistd.h.
36954         * modules/wchar (Depends-on): Add arg-nonnull.
36955         (Makefile.am): Insert arg-nonnull.h into wchar.h.
36956         * modules/argv-iter (Depends-on): Add arg-nonnull.
36957         * tests/test-canonicalize.c (null_ptr): New function.
36958         (main): Use it.
36959         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
36960         (main): Use it.
36961         * tests/test-memmem.c (null_ptr): New function.
36962         (main): Use it.
36963         Reported by Jim Meyering.
36964
36965 2009-12-10  Bruno Haible  <bruno@clisp.org>
36966
36967         Use spaces for indentation, not tabs.
36968         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
36969         * m4/*.m4: Untabify.
36970         * build-aux/*.h: Untabify.
36971         * tests/**/*.[hc]: Untabify.
36972         * README: New section "Indent with spaces, not TABs", based on
36973         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
36974         * NEWS: Mention the change.
36975
36976 2009-12-10  Bruno Haible  <bruno@clisp.org>
36977
36978         pty test: Fix link error.
36979         * modules/pty-tests (Makefile.am): Add the default LDADD value to
36980         test_pty_LDADD.
36981
36982 2009-12-07  Simon Josefsson  <simon@josefsson.org>
36983
36984         * modules/pty: New file.
36985         * modules/pty-tests: New file.
36986         * m4/pty.m4: New file.
36987         * tests/test-pty.c: New file.
36988         * doc/glibc-headers/pty.texi: Modified.
36989         * doc/glibc-functions/forkpty.texi: Modified.
36990         * doc/glibc-functions/openpty.texi: Modified.
36991
36992 2009-12-10  Bruno Haible  <bruno@clisp.org>
36993
36994         Avoid syntax error in C++ mode.
36995         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
36996
36997 2009-12-10  Bruno Haible  <bruno@clisp.org>
36998
36999         Use sed with option -e.
37000         * gnulib-tool (func_version, func_emit_copyright_notice,
37001         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37002         option -e to sed.
37003         * modules/link-warning (Makefile.am): Likewise.
37004
37005 2009-12-10  Jim Meyering  <meyering@redhat.com>
37006
37007         mgetgroups: do not write bytes beyond end of malloc'd buffer
37008         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37009         username, we call getgroups with a one-element-shorter buffer,
37010         but still told it the length was original, max_n_groups.
37011
37012 2009-12-09  Eric Blake  <ebb9@byu.net>
37013
37014         cloexec: relax license
37015         * modules/cloexec (Maintainer): Add myself.
37016         (License): Use LGPL, not GPL.
37017
37018         link-warning: optimize generation
37019         * modules/link-warning (Makefile.am): Reduce process usage.
37020
37021 2009-12-09  Bruno Haible  <bruno@clisp.org>
37022
37023         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37024         workaround was added on 2009-11-17.
37025
37026 2009-12-09  Jim Meyering  <meyering@redhat.com>
37027             Bruno Haible  <bruno@clisp.org>
37028
37029         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37030         * modules/link-warning (Makefile.am): Make the comment-removing sed
37031         command more robust in the face of bootstrap-prepended comment lines.
37032
37033 2009-12-09  Bruno Haible  <bruno@clisp.org>
37034
37035         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37036         most one group.
37037
37038 2009-12-09  Simon Josefsson <simon@josefsson.org>
37039             Bruno Haible  <bruno@clisp.org>
37040
37041         * build-aux/link-warning.h: Add copyright notice.
37042         * modules/link-warning (Makefile.am): Generate link-warning.h from
37043         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37044         * NEWS: Mention change in link-warning module.
37045         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37046         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37047         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37048         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37049         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37050         * modules/math (Makefile.am): Add dependency to math.h.
37051         * modules/search (Makefile.am): Add dependency to search.h.
37052         * modules/signal (Makefile.am): Add dependency to signal.h.
37053         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37054         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37055         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37056         * modules/string (Makefile.am): Add dependency to string.h.
37057         * modules/strings (Makefile.am): Add dependency to strings.h.
37058         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37059         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37060         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37061         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37062         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37063         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37064         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37065         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37066         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37067
37068 2009-12-09  Bruno Haible  <bruno@clisp.org>
37069
37070         fchdir: Optimize away rpl_fstat when possible.
37071         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37072         REPLACE_OPEN_DIRECTORY.
37073         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37074
37075 2009-12-09  Bruno Haible  <bruno@clisp.org>
37076
37077         * lib/fchdir.c: Update comment.
37078
37079 2009-12-09  Bruno Haible  <bruno@clisp.org>
37080
37081         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37082
37083 2009-12-08  Eric Blake  <ebb9@byu.net>
37084
37085         fchdir: avoid memory leak on re-registration.
37086         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37087
37088 2009-12-08  Jim Meyering  <meyering@redhat.com>
37089
37090         init.sh: avoid Solaris 10 /bin/sh portability problem
37091         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37092         sourced script:
37093           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37094           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37095           bar
37096         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37097         and two tests used that idiom.
37098         * tests/init.sh: Update suggested usage comments.
37099         (path_prepend_): New function, to be used in place
37100         of the --src-path=DIR option.
37101         (setup_): Move PATH-prepending code into path_prepend_.
37102         * tests/test-pread.sh: Adapt to new usage.
37103         * tests/test-xalloc-die.sh: Likewise.
37104
37105 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37106
37107         * doc/gnulib.texi (Glibc pty.h): Add.
37108         * doc/glibc-functions/forkpty.texi: Add.
37109         * doc/glibc-functions/openpty.texi: Add.
37110         Suggested by Bruno Haible.
37111
37112 2009-12-08  Eric Blake  <ebb9@byu.net>
37113
37114         fchdir: fix logic bugs
37115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37116         * tests/test-fchdir.c (main): Enhance test.
37117         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37118         is in use.
37119
37120         dup2: fix logic bugs
37121         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37122         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37123         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37124         exists.
37125         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37126
37127 2009-12-07  Eric Blake  <ebb9@byu.net>
37128
37129         unlink: fix m4 detection
37130         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37131
37132         unistd-safer: add unit test
37133         * modules/unistd-safer-tests: New file.
37134         * tests/test-dup-safer.c: Likewise.
37135         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37136         * tests/test-dup2.c (setmode): Likewise.
37137         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37138
37139         cloexec: preserve text vs. binary across dup_cloexec
37140         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37141         mode.
37142         * modules/dup2-tests (Depends-on): Add binary-io.
37143         * modules/cloexec-tests (Depends-on): Likewise.
37144         * tests/test-dup2.c (setmode, is_mode): New helpers.
37145         (main): Add tests that translation mode is preserved.
37146         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37147         Reported by Bruno Haible.
37148
37149         mgetgroups: reduce duplicate listings
37150         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37151         resulting array.
37152         * tests/test-chown.h (test_chown): Simplify client.
37153         * tests/test-lchown.h (test_lchown): Likewise.
37154
37155 2009-12-06  Bruno Haible  <bruno@clisp.org>
37156
37157         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37158         value.
37159
37160 2009-12-06  Bruno Haible  <bruno@clisp.org>
37161
37162         * lib/progname.c: Include stdio.h, stdlib.h.
37163         (set_program_name): Reject a NULL argument.
37164
37165 2009-12-05  Eric Blake  <ebb9@byu.net>
37166
37167         pipe2-safer: new module
37168         * modules/pipe2-safer: New file.
37169         * lib/unistd-safer.h (pipe2_safer): New prototype.
37170         * lib/unistd--.h (pipe2): New wrapper.
37171         * lib/pipe-safer.c (pipe2_safer): New function.
37172         * modules/pipe (Depends-on): Add pipe2-safer.
37173         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37174
37175         stdlib-safer: preserve cloexec flag for mkostemp[s]
37176         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37177         fd_safer_flag.
37178
37179         unistd-safer: allow preservation of cloexec status via flag
37180         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37181         prototypes.
37182         * lib/dup-safer.c (dup_safer_flag): New function.
37183         * lib/fd-safer.c (fd_safer_flag): Likewise.
37184         * modules/cloexec (configure.ac): Set witness.
37185
37186         test-dup2: enhance test
37187         * modules/dup2-tests (Depends-on): Add cloexec.
37188         * tests/test-dup2.c (main): Enhance test.
37189
37190         cloexec: add dup_cloexec
37191         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37192         header and comments.
37193         * lib/cloexec.c (set_cloexec_flag): Add comments.
37194         (dup_cloexec): New function, with mingw implementation borrowed
37195         from...
37196         * lib/w32spawn.h (dup_noinherit): ...here.
37197         * modules/execute (Depends-on): Add cloexec.
37198         * modules/pipe (Depends-on): Likewise.
37199         * modules/cloexec (Depends-on): Add dup2.
37200         * modules/cloexec-tests (Files): New file.
37201         * tests/test-cloexec.c: Likewise.
37202
37203         test-xalloc-die: fix test for mingw
37204         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37205         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37206         directory and .exe suffix off argv[0] output.
37207
37208         test-fseeko: fix test for mingw
37209         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37210         than undefining fseek, so test will pass on mingw.
37211
37212 2009-12-05  Bruno Haible  <bruno@clisp.org>
37213
37214         * lib/progname.h (set_program_name): Clarify specification.
37215         * lib/progname.c (set_program_name): Likewise.
37216         Reported by Jim Meyering.
37217
37218 2009-12-05  Jim Meyering  <meyering@redhat.com>
37219
37220         maint.mk: backslash-escape parens in default regexp
37221         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37222         backslash-escape the literal parentheses.
37223
37224         maint.mk: news-date-check: use grep -E
37225         * top/maint.mk (today): Define a Make variable, not a...
37226         (news-date-check): ...shell variable.
37227         (news-date-regexp): Use the Make variable.
37228         Use grep's -E option.  Change the failing diagnostic to mention
37229         the variable, $(news-date-regexp).
37230
37231 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37232
37233         maintainer-makefile: allow customization of NEWS entry format
37234         * top/maint.mk (news-date-regexp): New overridable variable.
37235         (news-date-check): Use it.
37236
37237 2009-12-04  Eric Blake  <ebb9@byu.net>
37238
37239         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37240         * lib/mgetgroups.h (xgetgroups): New prototype.
37241         * lib/mgetgroups.c (xgetgroups): New wrapper.
37242         (mgetgroups): Handle ENOSYS.
37243         * modules/mgetgroups (Depends-on): Add realloc.
37244         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37245
37246         mgetgroups: avoid argument promotion issues with -1
37247         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37248         for invalid gid_t.
37249         * tests/test-chown.h (getegid, test_chown): Likewise.
37250         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37251
37252 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37253
37254         exclude: Fix header file problems.
37255         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37256
37257 2009-12-01  Jim Meyering  <meyering@redhat.com>
37258
37259         fts: fts_open: do not let an empty string cause immediate failure
37260         This is required in support of GNU rm, for which the command
37261         "rm A '' B" must process and remove both A and B, in spite of
37262         the empty string argument.
37263         * lib/fts.c (fts_open): Do not let the presence of an empty string
37264         cause fts_open to fail immediately.  Most fts-using tools must be
37265         able to process all arguments, in order, and can be expected to
37266         diagnose such arguments themselves.
37267
37268 2009-11-30  Eric Blake  <ebb9@byu.net>
37269
37270         utimens: fix compilation error
37271         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37272         Declare variable at right scope.
37273
37274 2009-11-29  Jim Meyering  <meyering@redhat.com>
37275
37276         bootstrap: handle perl-5.11's changed --version output
37277         * build-aux/bootstrap (get_version): Handle perl separately,
37278         since perl-5.11's --version output is different.
37279
37280 2009-11-28  Jim Meyering  <meyering@redhat.com>
37281
37282         userspec: depend on the inttostr module, too
37283         * modules/userspec (Depends-on): Add inttostr.
37284
37285         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37286         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37287         number of MAXUID when it evaluates to (uid_t) -1.
37288         Likewise for group ID.  Reported by Matt McCutchen in
37289         <http://savannah.gnu.org/bugs/?28113>
37290
37291         userspec: reformat to use spaces, not TABs
37292         * lib/userspec.c: Expand TABs to spaces.
37293         Add Emacs' "indent-tabs-mode: nil" hint.
37294
37295 2009-11-27  Eric Blake  <ebb9@byu.net>
37296
37297         getopt-gnu: flush out another BSD bug
37298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37299         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37300         flush out BSD bug.
37301         * tests/test-getopt.h (test_getopt): End lists with NULL.
37302         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37303         (test_getopt_long_posix): Enhance test.
37304         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37305         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37306         getopt-gnu.
37307         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37308         Likewise.
37309
37310 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37311
37312         * modules/idpriv-droptemp-tests (Notice): Fix text.
37313
37314 2009-11-27  Jim Meyering  <meyering@redhat.com>
37315
37316         test-xalloc-die: avoid spurious failure due to libtool argv difference
37317         In a libtool-enabled project, this test would fail due to a difference
37318         in the emitted program name, e.g.,
37319         -test-xalloc-die: memory exhausted
37320         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37321         Use program to avoid that.
37322         * modules/xalloc-die-tests (Depends-on): Add progname.
37323         * tests/test-xalloc-die.c: Include progname.h".
37324         (program_name): Remove decl.
37325         (main): Call set_program_name.
37326         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37327
37328 2009-11-26  Richard Jones  <rjones@redhat.com>
37329
37330         w32sock: leave win32 error in place.
37331         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37332
37333 2009-11-26  Eric Blake  <ebb9@byu.net>
37334
37335         init.sh: suggest to use skip_ and fail_ functions in comments
37336         * tests/init.sh: Add a sentence.
37337
37338 2009-11-25  Bruno Haible  <bruno@clisp.org>
37339
37340         init.sh: add documentation in comments
37341         * tests/init.sh: Add some developer and user documentation.
37342
37343 2009-11-26  Jim Meyering  <meyering@redhat.com>
37344
37345         init.sh: accommodate even those who specify bogus srcdir manually
37346         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37347         configure-time tests to be sanitized, so that there is no need to
37348         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37349         (with no double quotes) suffices.  However, since tests may be
37350         invoked manually, and since you may explicitly set srcdir to the
37351         name of a directory containing spaces, do quote its uses here.
37352         * tests/test-pread.sh: Likewise.
37353         Suggested by Bruno Haible.
37354
37355         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37356         * tests/test-pread.sh: Write no data into the pipe, because
37357         test-pread actually reads none.  This avoids a diagnostic,
37358         "bash: echo: write error: Broken pipe", that arises in the unusual
37359         event something is ignoring SIGPIPE, and might be interpreted
37360         as some sort of failure.  Reported by Bruno Haible.
37361
37362 2009-11-25  Jim Meyering  <meyering@redhat.com>
37363
37364         test-pread: cover failure with ESPIPE and EINVAL
37365         * tests/test-pread.c (main): Test for failure, too.
37366         * tests/test-pread.sh: Invoke with stdin on a pipe.
37367         Suggested by Eric Blake.
37368
37369         pread: improvement and fix
37370         * modules/pread (Depends-on): Depend on lseek, for portability to
37371         e.g., mingw.  Suggested by Eric Blake.
37372         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37373
37374         unistd.in.h: correct declaration of pread
37375         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37376         Reported by Richard W.M. Jones.
37377
37378         test-pread.sh: distribute the test script
37379         * modules/pread-tests (Files): Include test-pread.sh.
37380
37381         test-pread.sh: clean up
37382         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37383         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37384         That is unnecessary, since it's always ".".
37385         Suggestion from Eric Blake.
37386
37387         test-pread.sh: make executable
37388         * tests/test-pread.sh: Set executable bit.
37389         Reported by Eric Blake.
37390
37391         correct typo in test-pread.sh
37392         * tests/test-pread.sh: Add #! line.
37393
37394         test pread
37395         * tests/test-pread.c: New file.
37396         * tests/test-pread.sh: Likewise.
37397         * modules/pread-tests: Likewise.
37398
37399         pread: new module
37400         * modules/pread: New file.
37401         * lib/unistd.in.h (pread): Define/declare.
37402         * lib/pread.c (pread): New file.
37403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37404         * modules/unistd (Makefile.am): Substitute witnesses.
37405         * doc/posix-functions/pread.texi (pread): Update.
37406         * MODULES.html.sh: Add pread.
37407
37408 2009-11-25  Jim Meyering  <meyering@redhat.com>
37409
37410         tests/init.sh: new file to be used via most *.sh tests
37411         * tests/init.sh: New file.
37412
37413 2009-11-25  Eric Blake  <ebb9@byu.net>
37414
37415         utimens: work around older Linux failure with symlinks
37416         * lib/utimens.c (lutimensat_works_really): New variable.
37417         (fdutimens, lutimens): Use it to manage kernels that support
37418         nanosecond times on files, but not on symlinks.
37419         Reported by OndÅ™ej Vašík.
37420
37421         utimes: fix configure grammar
37422         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37423
37424 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37425
37426         regex: Fix fastmap for multibyte character ranges.
37427         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37428         characters when a multibyte character range is included.
37429
37430 2009-11-22  Andy Wingo  <wingo@pobox.com>
37431
37432         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37433         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37434
37435 2009-11-24  Bruno Haible  <bruno@clisp.org>
37436
37437         doc: Most *_l functions exist in MacOS X 10.5.
37438         * doc/posix-functions/duplocale.texi: Update platforms list.
37439         * doc/posix-functions/freelocale.texi: Likewise.
37440         * doc/posix-functions/newlocale.texi: Likewise.
37441         * doc/posix-functions/uselocale.texi: Likewise.
37442         * doc/posix-functions/isalnum_l.texi: Likewise.
37443         * doc/posix-functions/isalpha_l.texi: Likewise.
37444         * doc/posix-functions/isblank_l.texi: Likewise.
37445         * doc/posix-functions/iscntrl_l.texi: Likewise.
37446         * doc/posix-functions/isdigit_l.texi: Likewise.
37447         * doc/posix-functions/isgraph_l.texi: Likewise.
37448         * doc/posix-functions/islower_l.texi: Likewise.
37449         * doc/posix-functions/isprint_l.texi: Likewise.
37450         * doc/posix-functions/ispunct_l.texi: Likewise.
37451         * doc/posix-functions/isspace_l.texi: Likewise.
37452         * doc/posix-functions/isupper_l.texi: Likewise.
37453         * doc/posix-functions/iswalnum_l.texi: Likewise.
37454         * doc/posix-functions/iswalpha_l.texi: Likewise.
37455         * doc/posix-functions/iswblank_l.texi: Likewise.
37456         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37457         * doc/posix-functions/iswctype_l.texi: Likewise.
37458         * doc/posix-functions/iswdigit_l.texi: Likewise.
37459         * doc/posix-functions/iswgraph_l.texi: Likewise.
37460         * doc/posix-functions/iswlower_l.texi: Likewise.
37461         * doc/posix-functions/iswprint_l.texi: Likewise.
37462         * doc/posix-functions/iswpunct_l.texi: Likewise.
37463         * doc/posix-functions/iswspace_l.texi: Likewise.
37464         * doc/posix-functions/iswupper_l.texi: Likewise.
37465         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37466         * doc/posix-functions/isxdigit_l.texi: Likewise.
37467         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37468         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37469         * doc/posix-functions/strcoll_l.texi: Likewise.
37470         * doc/posix-functions/strfmon_l.texi: Likewise.
37471         * doc/posix-functions/strftime_l.texi: Likewise.
37472         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37473         * doc/posix-functions/strxfrm_l.texi: Likewise.
37474         * doc/posix-functions/tolower_l.texi: Likewise.
37475         * doc/posix-functions/toupper_l.texi: Likewise.
37476         * doc/posix-functions/towctrans_l.texi: Likewise.
37477         * doc/posix-functions/towlower_l.texi: Likewise.
37478         * doc/posix-functions/towupper_l.texi: Likewise.
37479         * doc/posix-functions/wcscoll_l.texi: Likewise.
37480         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37481         * doc/posix-functions/wctrans_l.texi: Likewise.
37482         * doc/posix-functions/wctype_l.texi: Likewise.
37483         * doc/glibc-functions/strptime_l.texi: Likewise.
37484         * doc/glibc-functions/strtod_l.texi: Likewise.
37485         * doc/glibc-functions/strtof_l.texi: Likewise.
37486         * doc/glibc-functions/strtol_l.texi: Likewise.
37487         * doc/glibc-functions/strtold_l.texi: Likewise.
37488         * doc/glibc-functions/strtoll_l.texi: Likewise.
37489         * doc/glibc-functions/strtoul_l.texi: Likewise.
37490         * doc/glibc-functions/strtoull_l.texi: Likewise.
37491         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37492         * doc/glibc-functions/wcstod_l.texi: Likewise.
37493         * doc/glibc-functions/wcstof_l.texi: Likewise.
37494         * doc/glibc-functions/wcstol_l.texi: Likewise.
37495         * doc/glibc-functions/wcstold_l.texi: Likewise.
37496         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37497         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37498         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37499
37500 2009-11-24  Bruno Haible  <bruno@clisp.org>
37501
37502         duplocale: Fix logic bug.
37503         * lib/duplocale.c: Don't include <langinfo.h>.
37504         (_NL_LOCALE_NAME): Remove macro.
37505         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37506         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37507
37508 2009-11-23  Jim Meyering  <meyering@redhat.com>
37509
37510         test-update-copyright: don't hard-code /usr/bin/perl
37511         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37512         perl to print the current year.  Gilles Espinasse reported that
37513         the replaced use of perl was hard-coded as /usr/bin/perl.
37514
37515 2009-11-23  Bruno Haible  <bruno@clisp.org>
37516
37517         duplocale: Add support for glibc 2.3.x.
37518         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37519
37520 2009-11-22  Bruno Haible  <bruno@clisp.org>
37521
37522         vasnprintf: Tiny optimization.
37523         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37524         MacOS X.
37525
37526 2009-11-22  Bruno Haible  <bruno@clisp.org>
37527
37528         Tests for module 'duplocale'.
37529         * modules/duplocale-tests: New file.
37530         * tests/test-duplocale.c: New file.
37531
37532         New module 'duplocale'.
37533         * m4/duplocale.m4: New file.
37534         * lib/locale.in.h (duplocale): New declaration.
37535         * lib/duplocale.c: New file.
37536         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37537         gl_LOCALE_H_DEFAULTS): New macros.
37538         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37539         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37540         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37541         REPLACE_DUPLOCALE.
37542         * modules/duplocale: New file.
37543         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37544
37545 2009-11-22  Bruno Haible  <bruno@clisp.org>
37546
37547         * modules/locale-tests (configure.ac): Test for newlocale function.
37548         * tests/test-locale.c: When the system has extended locale functions,
37549         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37550
37551         locale: Make locale_t available when possible.
37552         * lib/locale.in.h: Include <xlocale.h> when it exists.
37553         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37554         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37555         * modules/locale (Depends-on): Add extensions.
37556         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37557         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37558
37559 2009-11-22  Bruno Haible  <bruno@clisp.org>
37560
37561         Add comments.
37562         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37563         invocation.
37564         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37565         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37566         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37567
37568 2009-11-22  Bruno Haible  <bruno@clisp.org>
37569
37570         error: account for the possibility of freopen (stdout).
37571         * lib/error.c: Include <unistd.h>.
37572         (flush_stdout): New function, extracted from error and error_at_line.
37573         Determine stdout's fd dynamically.
37574         (error, error_at_line): Invoke flush_stdout.
37575         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37576         * modules/error (Depends-on): Add unistd.
37577
37578 2009-11-22  Bruno Haible  <bruno@clisp.org>
37579
37580         diffseq: Add comment.
37581         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37582
37583 2009-11-22  Jim Meyering  <meyering@redhat.com>
37584
37585         c-stack: avoid defining an unused static function
37586         * lib/c-stack.c (find_stack_direction): Do not define this function
37587         when it will not be used.
37588
37589         diffseq: avoid spurious gcc warnings
37590         * lib/diffseq.h (IF_LINT2): Define.
37591         (compareseq): Use it to initialize two members of "part".
37592         This avoids two used-uninitialized warnings.
37593
37594 2009-11-21  Jim Meyering  <meyering@redhat.com>
37595
37596         c-stack: avoid "ignoring return value of `write'" warning
37597         * lib/c-stack.c: Include "ignore-value.h".
37598         (die): Explicitly ignore each write return value.
37599         * modules/c-stack (Depends-on): Add ignore-value.
37600
37601 2009-11-21  Bruno Haible  <bruno@clisp.org>
37602
37603         diffseq: reduce scope of variable 'best'.
37604         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37605         variable, earlier used for two different purposes.
37606
37607 2009-11-21  Jim Meyering  <meyering@redhat.com>
37608
37609         diffseq: remove useless assignment to "best"
37610         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37611         assignment.  At that point "best" is already guaranteed to be zero.
37612
37613 2009-11-20  Eric Blake  <ebb9@byu.net>
37614
37615         build: mention ftp redirector in release announcements
37616         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37617         values that used to come from cfg.mk; mention FTP redirect URL.
37618         * build-aux/announce-gen: Mention the mirror list.
37619         Suggested by Karl Berry.
37620
37621         nanosleep: improve port to mingw
37622         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37624         LIB_NANOSLEEP, but only when needed.
37625         * modules/select (Link): Document LIBSOCKET.
37626         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37627         enough.
37628
37629         nanosleep: work around cygwin bug
37630         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37631         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37632         bug.
37633         (getnow): Delete, not needed.
37634         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37635         LIB_CLOCK_GETTIME.
37636         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37637         clock-time, gettime.
37638         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37639         bug.
37640         * modules/nanosleep-tests: New test.
37641         * tests/test-nanosleep.c: New file.
37642
37643         sleep: work around cygwin bug
37644         * lib/sleep.c (rpl_sleep): Work around the bug.
37645         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37646         (gl_PREREQ_SLEEP): Delete unused macro.
37647         * modules/sleep (Depends-on): Add verify.
37648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37649         * modules/unistd (Makefile.am): Substitute witness.
37650         * lib/unistd.in.h (sleep): Update prototype.
37651         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37652         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37653         * modules/sleep-tests (Depends-on): Check for alarm.
37654
37655 2009-11-20  Jim Meyering  <meyering@redhat.com>
37656
37657         maint.mk: improve sc_prohibit_magic_number_exit
37658         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37659         so it does not match uses like System.exit(1).
37660         Add comments showing how to correct all offenders.
37661
37662 2009-11-19  Eric Blake  <ebb9@byu.net>
37663
37664         xalloc-die-tests: add missing library
37665         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37666
37667         test-xvasprintf: silence compiler warnings
37668         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37669         empty string from gcc.
37670
37671 2009-11-19  Jim Meyering  <meyering@redhat.com>
37672
37673         xfreopen: new module, from coreutils
37674         * modules/xfreopen: New module.
37675         * lib/xfreopen.c: New file.
37676         * lib/xfreopen.h: New file.
37677         * MODULES.html.sh (File stream based Input/Output"): Add it.
37678
37679 2009-11-19  Eric Blake  <ebb9@byu.net>
37680
37681         manywarnings: depend on warnings
37682         * modules/manywarnings (Depends-on): Add warnings.
37683
37684         build: avoid compiler warnings
37685         * lib/select.c (rpl_select): Delete unused variable.
37686         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37687
37688 2009-11-18  Eric Blake  <ebb9@byu.net>
37689
37690         tests: avoid false negative with --with-packager
37691         * tests/test-version-etc.sh: Discard packager information.
37692         * tests/test-argp-version-etc-1.sh: Likewise.
37693         Reported by Mike Frysinger.
37694
37695         utimens: fix regression on Solaris
37696         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37697         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37698         can only change fd timestamps via futimesat.  Instead, use an
37699         additional witness macro to avoid BSD bug.
37700         Reported by Jim Meyering.
37701
37702 2009-11-17  Eric Blake  <ebb9@byu.net>
37703
37704         usleep: use it to simplify tests
37705         * modules/stat-time-tests (Depends-on): Add usleep.
37706         (configure.ac): Drop usleep check.
37707         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37708         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37709         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37710         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37711         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37712         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37713         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37714         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37715         Likewise.
37716         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37717         * tests/test-lchown.h (nap): Likewise.
37718         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37719         * tests/test-stat-time.c (nap): Likewise.
37720         * tests/test-utimens-common.h (nap): Update comments.
37721
37722         usleep: new module
37723         * modules/usleep: New file.
37724         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37725         * lib/usleep.c (usleep): Likewise.
37726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37727         * modules/unistd (Makefile.am): Substitute witnesses.
37728         * lib/unistd.in.h (usleep): Add declaration.
37729         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37730         * MODULES.html.sh (Date and time): Likewise.
37731         * modules/usleep-tests (Depends-on): New test.
37732         * tests/test-usleep.c: New file.
37733
37734         chown: work around OpenBSD bug
37735         * lib/chown.c (rpl_chown): Work around the bug.
37736         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37737         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37738         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37739         * modules/chown (Depends-on): Add stdbool.
37740         * modules/lchown (Depends-on): Likewise.
37741         * doc/posix-functions/chown.texi (chown): Document the bug.
37742         * doc/posix-functions/lchown.texi (lchown): Likewise.
37743         * tests/test-lchown.h (test_chown): Relax test.
37744
37745         mkstemp: avoid conflict with C++ keyword template
37746         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37747         * lib/mkostemp.c (mkostemp): Likewise.
37748         * lib/mkostemps.c (mkostemps): Likewise.
37749         * lib/mkstemp.c (mkstemp): Likewise.
37750         * lib/mkstemps.c (mkstemps): Likewise.
37751
37752         xalloc-die-tests: optimize
37753         * tests/test-xalloc-die.sh: Reduce number of processes.
37754
37755 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37756
37757         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37758         patch from ludo@gnu.org (Ludovic Courtès).
37759
37760 2009-11-17  Jim Meyering  <meyering@redhat.com>
37761
37762         version-etc: use proper license string
37763         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37764         * modules/version-etc-fsf: Likewise.
37765
37766 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37767
37768         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37769         printed to stdout.  Deal with EOL differences.
37770
37771 2009-11-17  Eric Blake  <ebb9@byu.net>
37772
37773         unsetenv: work around Solaris bug
37774         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37775         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37776         Reported by Jim Meyering.
37777
37778         vasnprintf: avoid compiler warnings
37779         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37780         variables.
37781         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37782
37783 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37784
37785         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37786         settings since xalloc-die is no longer the self test,
37787         xalloc-die.sh is.
37788
37789 2009-11-17  Jim Meyering  <meyering@redhat.com>
37790
37791         test-xalloc-die.sh: make the code agree with the commit log
37792         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37793         at the end, just in case you happen to have a test-xalloc-die
37794         program in some other PATH directory.
37795
37796         test-xalloc-die.sh: fix a portability bug
37797         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37798         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37799         Otherwise, argv[0] (as often seen in diagnostics) would be too
37800         system-dependent, sometimes with, and sometimes without the leading "./".
37801
37802         version-etc-fsf: relax license to LGPLv3+
37803         * modules/version-etc-fsf (License): Relax license.
37804
37805 2009-11-16  Eric Blake  <ebb9@byu.net>
37806
37807         xalloc-die-tests: avoid printing null pointer
37808         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37809         shell script.
37810         * tests/test-xalloc-die.c (program_name): Declare.
37811         * tests/test-xalloc-die.sh (tmpfiles): New file.
37812
37813         setenv, unsetenv: work around various bugs
37814         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37815         (setenv) [HAVE_SETENV]: Work around bugs.
37816         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37817         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37818         for bugs.
37819         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37820         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37821         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37822         * modules/stdlib (Makefile.am): Update substitutions.
37823         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37824         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37825         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37826         * modules/setenv-tests: New test.
37827         * modules/unsetenv-tests: Likewise.
37828         * tests/test-setenv.c: New file.
37829         * tests/test-unsetenv.c: Likewise.
37830
37831 2009-11-16  Jim Meyering  <meyering@redhat.com>
37832
37833         version-etc: relax license to LGPLv3+
37834         * modules/version-etc (License): Relax license.
37835
37836         better AC_REQUIRE expanded-before-required-warning avoidance
37837         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
37838         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
37839         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
37840         which is no longer needed.
37841
37842 2009-11-16  Eric Blake  <ebb9@byu.net>
37843
37844         test-freading: clean up temporary file
37845         * tests/test-freading.c (main): Remove file on success, and use
37846         ASSERT more liberally.
37847         Reported by Jim Meyering.
37848
37849 2009-11-16  Jim Meyering  <meyering@redhat.com>
37850
37851         avoid new AC_REQUIRE expanded-before-required warnings
37852         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
37853         merely using it.
37854         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
37855         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
37856
37857 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37858
37859         * tests/test-xalloc-die.c: New file.
37860         * modules/xalloc-die-tests: New file.
37861         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
37862         XFAIL_TESTS so it can be appended by modules.
37863
37864 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37865
37866         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
37867         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
37868
37869 2009-11-14  Eric Blake  <ebb9@byu.net>
37870
37871         fnmatch: avoid compiler warning
37872         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
37873         to silence compiler warning about mismatch signedness in ?:.
37874         Reported by Robert Millan.
37875
37876         intprops: add double-inclusion guard
37877         * lib/intprops.h: Allow idempotent includes.
37878         Suggested by Bruce Korb.
37879
37880         openat: detect Solaris fchownat bug
37881         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
37882         penalizing glibc chownat when only lchownat is broken.
37883         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
37884         trailing slash bugs.
37885         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
37886         * modules/openat-tests (Files): Include more files.
37887         (Depends-on): Add mgetgroups, sleep, stat-time.
37888         (configure.ac): Add additional checks.
37889         (Makefile.am): Build new test.
37890         * tests/test-fchownat.c: New file.
37891
37892         lchown: detect Solaris and FreeBSD bug
37893         * lib/lchown.c (rpl_lchown): Work around bug.
37894         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
37895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37896         * modules/unistd (Makefile.am): Populate it.
37897         * lib/unistd.in.h (lchown): Update declaration.
37898         * doc/posix-functions/lchown.texi (lchown): Document the bug.
37899         * modules/lchown-tests: New file.
37900         * tests/test-lchown.h (test_lchown): Likewise.
37901         * tests/test-lchown.c (main): Likewise.
37902
37903         chown: detect Solaris and FreeBSD bug
37904         * lib/chown.c (rpl_chown): Work around bug.
37905         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
37906         (gl_PREREQ_CHOWN): Delete.
37907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37908         * modules/unistd (Makefile.am): Populate it.
37909         * lib/unistd.in.h (chown): Update declaration.
37910         * lib/lchown.c (chown): Update client.
37911         * modules/lchown (Depends-on): Add lstat.
37912         * doc/posix-functions/chown.texi (chown): Document the bug.
37913         * doc/posix-functions/getgroups.texi (getgroups): Document
37914         getgroups pitfall.
37915         * modules/chown-tests: New file.
37916         * tests/test-chown.h (test_chown): Likewise.
37917         * tests/test-chown.c (main): Likewise.
37918
37919 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
37920
37921         gnulib-tool: correctly detect absence of m4 directories
37922         * gnulib-tool: Avoid extra newline on data passed to wc -l.
37923
37924 2009-11-14  Jim Meyering  <meyering@redhat.com>
37925
37926         maint.mk: Prohibit inclusion of "xalloc.h" without use.
37927         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37928
37929 2009-11-14  John W. Eaton  <jwe@gnu.org>
37930
37931         strftime.h: wrap funtion declaration in extern "C" block
37932         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
37933
37934 2009-11-13  Eric Blake  <ebb9@byu.net>
37935
37936         getgroups: avoid compiler warning
37937         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
37938
37939         getgroups: work around FreeBSD bug
37940         * lib/getgroups.c (rpl_getgroups): Work around the bug.
37941         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
37942         * doc/posix-functions/getgroups.texi (getgroups): Document it.
37943         * tests/test-getgroups.c (main): Fix buffer overrun.
37944
37945         getgroups: avoid compilation failure
37946         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
37947         * modules/getgroups (Depends-on): Add stdint.
37948
37949 2009-11-13  Jim Meyering  <meyering@redhat.com>
37950
37951         test-getgroups: avoid compilation failure
37952         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
37953
37954 2009-11-13  Eric Blake  <ebb9@byu.net>
37955
37956         mgetgroups: new module, taken from coreutils
37957         * modules/mgetgroups: New file.
37958         * lib/mgetgroups.h: Likewise.
37959         * lib/mgetgroups.c (mgetgroups): Likewise.
37960         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
37961         * MODULES.html.sh (Users and groups): Mention it.
37962
37963         getgroups: don't expose GETGROUPS_T to user
37964         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
37965         an element at a time if GETGROUPS_T is wrong size.
37966         * lib/getugroups.h (getugroups): Change signature.
37967         * lib/unistd.in.h (getgroups): Likewise.
37968         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
37969         signature needs fixing.
37970         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
37971         AC_TYPE_GETGROUPS.
37972         * modules/group-member (Depends-on): Add getgroups.
37973         * lib/group-member.c (group_info, get_group_info): Use gid_t.
37974         (group_member): Rely on getgroups replacement.
37975         * lib/getugroups.c (getugroups): Use gid_t.
37976         * tests/test-getgroups.c (main): Likewise.
37977         * NEWS: Mention the signature change.
37978         * doc/posix-functions/getgroups.texi (getgroups): Mention the
37979         problem with signature.
37980         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
37981         GETGROUPS_T is still useful for setgroups.
37982
37983         getgroups, getugroups: provide stubs for mingw
37984         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
37985         * lib/getugroups.c (getugroups): Likewise.
37986         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
37987         function.  Modernize replacement scheme.
37988         (gl_PREREQ_GETGROUPS): Delete.
37989         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
37990         * modules/getgroups (configure.ac): Declare witness.
37991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37992         * modules/unistd (Depends-on): Substitute witness.
37993         * lib/unistd.in.h (getgroups): Declare replacement.
37994
37995         getgroups: avoid calling exit
37996         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
37997         drop xalloc.
37998         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
37999         dependencies.
38000         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38001         exiting, in the rare case of malloc failure.
38002
38003         getgroups: fix logic error
38004         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38005         has more than 20 groups.
38006         * modules/getgroups-tests: New test.
38007         * tests/test-getgroups.c: New file.
38008
38009 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38010
38011         * tests/test-base64.c: Improve.
38012
38013 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38014
38015         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38016         Blake <ebb9@byu.net>.
38017
38018 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38019
38020         * tests/test-xvasprintf.c: Add %s%s related checks.
38021
38022 2009-11-12  Eric Blake  <ebb9@byu.net>
38023
38024         version-etc: match standards.texi style
38025         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38026         and use <> only for URLs.
38027
38028 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38029
38030         fts: do not fail on a submount during traversal
38031         * lib/fts.c (fts_build): Read the stat info again after opening
38032         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38033         Original report at http://bugzilla.redhat.com/501848.
38034
38035 2009-11-12  Jim Meyering  <meyering@redhat.com>
38036
38037         bootstrap: sync from coreutils
38038         * build-aux/bootstrap (bootstrap_epilogue): New function.
38039         Use git_modules_config in one more place.  This make bootstrap's
38040         --gnulib-srcdir option more useful for testing.
38041
38042         bootstrap: generalize autoheader check
38043         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38044         AC_CONFIG_HEADERS.
38045
38046 2009-11-11  Eric Blake  <ebb9@byu.net>
38047
38048         mkfifoat: use new modules for Solaris and BSD bugs
38049         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38050         * lib/mkfifoat.c (mknodat): Split...
38051         * lib/mknodat.c (mknodat): ...into new file.
38052         * modules/mkfifoat (Files): Ship new file.
38053         (Depends-on): Add mkfifo, mknod.
38054         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38055         (Depends-on): Add symlink.
38056         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38057         redundant with test_mkfifo.h.
38058         (do_mkfifoat, do_mknodat): New helpers.
38059
38060         mknod: new module
38061         * modules/mknod: New file.
38062         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38063         * lib/mknod.c (mknod): Likewise.
38064         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38065         defaults.
38066         * modules/sys_stat (Makefile.am): Substitute them.
38067         * lib/sys_stat.in.h (mknod): Declare replacement.
38068         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38069         Document it.
38070         * doc/posix-functions/mknod.texi (mknod): Likewise.
38071         * modules/mknod-tests: New test.
38072         * tests/test-mknod.c: Likewise.
38073
38074         mkfifo: new module
38075         * modules/mkfifo: New file.
38076         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38077         * lib/mkfifo.c (mkfifo): Likewise.
38078         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38079         defaults.
38080         * modules/sys_stat (Makefile.am): Substitute them.
38081         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38082         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38083         Document it.
38084         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38085         * modules/mkfifo-tests: New test.
38086         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38087         from test-mkfifoat.c.
38088         * tests/test-mkfifo.c: New file.
38089
38090         readlink: detect FreeBSD bug
38091         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38092         slash on symlink.
38093         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38094         * tests/test-readlink.h (test_readlink): Enhance test.
38095
38096         symlink: detect FreeBSD bug
38097         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38098         slash on symlink.
38099         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38100         * tests/test-symlink.h (test_symlink): Enhance test.
38101
38102 2009-11-10  Eric Blake  <ebb9@byu.net>
38103
38104         link: detect FreeBSD bug
38105         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38106         symlink.
38107         * doc/posix-functions/link.texi (link): Document the bug.
38108         * tests/test-link.h (test_link): Enhance test.
38109         * tests/test-linkat.c (main): Update caller.
38110
38111         unlink, remove: detect FreeBSD bug
38112         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38113         slash on symlink.
38114         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38115         * doc/posix-functions/remove.texi (remove): Likewise.
38116         * tests/test-unlink.h (test_unlink): Enhance test.
38117         * tests/test-remove.c (main): Likewise.
38118
38119 2009-11-09  Eric Blake  <ebb9@byu.net>
38120
38121         rename: detect FreeBSD bug
38122         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38123         slash on symlink.
38124         * modules/renameat-tests (Depends-on): Add filenamecat.
38125         * tests/test-rename.h (test_rename): Allow one more errno.
38126         * tests/test-renameat.c (main): Likewise.
38127         * doc/posix-functions/rename.texi (rename): Document the bug.
38128
38129         open: detect FreeBSD bug
38130         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38131         symlink.
38132         * doc/posix-functions/open.texi (open): Document the bug.
38133         * doc/posix-functions/utimes.texi (utimes): Likewise.
38134         * tests/test-open.h (test_open): Add parameters, and test symlink
38135         handling.
38136         * tests/test-open.c (main): Adjust caller.
38137         * tests/test-fcntl-safer.c (main): Likewise.
38138         * modules/open-tests (Depends-on): Add stdbool, symlink.
38139         * modules/fcntl-safer-tests (Depends-on): Likewise.
38140         * tests/test-openat.c (main): Add test-open tests.
38141
38142         stat: detect FreeBSD bug
38143         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38144         symlink.
38145         * doc/posix-functions/stat.texi (stat): Document the bug.
38146         * tests/test-stat.h (test_stat_func): Add argument.
38147         * tests/test-stat.c (main): Adjust caller.
38148         * tests/test-fstatat.c (main): Likewise.
38149         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38150         Reported by Jim Meyering.
38151
38152 2009-11-09  James Youngman  <jay@gnu.org>
38153
38154         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38155         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38156
38157 2009-11-08  Jim Meyering  <meyering@redhat.com>
38158
38159         utimens: remove invalid futimesat call
38160         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38161         It used the file descriptor of the target file as the DIR_FD
38162         parameter and NULL as the file name.  That caused failure with
38163         errno == EFAULT on FreeBSD-8.0-rc2
38164
38165 2009-11-07  Eric Blake  <ebb9@byu.net>
38166
38167         fflush, freadseek: use fseeko, not fseek
38168         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38169         (clear_ungetc_buffer): Avoid potential problems on large files.
38170         * lib/freadseek.c (freadseek): Likewise.
38171         * modules/freadseek (Depends-on): Add fseeko.
38172         * modules/fseek (configure.ac): Set a witness.
38173         * tests/test-fflush.c (main): Use fseeko.
38174         * tests/test-fpurge.c (fseek): Disable link warning.
38175         * tests/test-freadable.c (fseek): Likewise.
38176         * tests/test-freading.c (fseek): Likewise.
38177         * tests/test-fseeko.c (fseek): Likewise.
38178         * tests/test-ftell.c (fseek): Likewise.
38179         * tests/test-ftello.c (fseek): Likewise.
38180         * tests/test-fwritable.c (fseek): Likewise.
38181         * tests/test-fwriting.c (fseek): Likewise.
38182
38183 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38184
38185         * modules/memchr (Depends-on): Drop getpagesize dependency.
38186
38187 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38188
38189         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38190         Reported by Ludovic Courtès.
38191         * build-aux/pmccabe2html: Improve example usage.
38192         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38193
38194 2009-11-06  Jim Meyering  <meyering@redhat.com>
38195
38196         do-release-commit-and-tag: New module.
38197         Automate the release-commit and tag process.
38198         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38199         * modules/do-release-commit-and-tag: New file.
38200         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38201
38202 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38203
38204         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38205         because test-select.c uses inet_pton.
38206
38207 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38208
38209         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38210         GETADDRINFO_LIB.  Bump serial number.
38211         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38212         Suggested by Eric Blake <ebb9@byu.net>.
38213
38214 2009-11-05  Eric Blake  <ebb9@byu.net>
38215
38216         strtod: detect darwin bug
38217         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38218         Reported by Leo Davis.
38219
38220         freopen-safer: new module
38221         * modules/freopen-safer: New module.
38222         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38223         * lib/freopen-safer.c (freopen_safer): New file.
38224         * lib/stdio-safer.h (freopen_safer): New declaration.
38225         * lib/stdio--.h (freopen): New override.
38226         * MODULES.html.sh (File stream based Input/Output): Mention it.
38227         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38228         freopen-safer module.
38229         * doc/posix-functions/stderr.texi (stderr): Likewise.
38230         * doc/posix-functions/stdin.texi (stdin): Likewise.
38231         * doc/posix-functions/stdout.texi (stdout): Likewise.
38232         * modules/freopen-safer-tests: New test.
38233         * tests/test-reopen-safer.c: New file.
38234
38235 2009-11-05  Jim Meyering  <meyering@redhat.com>
38236
38237         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38238         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38239
38240 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38241
38242         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38243
38244 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38245
38246         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38247
38248 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38249
38250         Fix link error.
38251         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38252         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38253
38254 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38255
38256         * tests/test-func.c: Also test value of __func__.
38257
38258 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38259
38260         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38261         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38262
38263 2009-11-05  Bruno Haible  <bruno@clisp.org>
38264
38265         Fix link error.
38266         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38267         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38268         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38269
38270 2009-11-05  Bruno Haible  <bruno@clisp.org>
38271
38272         Tests for module 'inet_pton'.
38273         * modules/inet_pton-tests: New file.
38274         * tests/test-inet_pton.c: New file.
38275
38276 2009-11-05  Bruno Haible  <bruno@clisp.org>
38277
38278         Tests for module 'inet_ntop'.
38279         * modules/inet_ntop-tests: New file.
38280         * tests/test-inet_ntop.c: New file.
38281
38282 2009-11-04  Eric Blake  <ebb9@byu.net>
38283
38284         stdlib-safer: wrap all mkstemp variants
38285         * modules/mkostemp (configure.ac): Set witness.
38286         * modules/mkostemps (configure.ac): Likewise.
38287         * modules/mkstemps (configure.ac): Likewise.
38288         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38289         (mkstemps_safer): Wrap more functions.
38290         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38291         wrapping.
38292         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38293         (mkstemps_safer): Implement the wrappers.
38294
38295         mkstemps, mkostemps: new modules
38296         * modules/mkostemps: New module.
38297         * modules/mkstemps: Likewise.
38298         * lib/mkostemps.c (mkostemps): New file.
38299         * lib/mkstemps.c (mkstemps): Likewise.
38300         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38301         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38303         * modules/stdlib (Makefile.am): Substitute them.
38304         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38305         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38306         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38307         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38308         * MODULES.html.sh (File system functions): Mention them.
38309
38310         tempname: resync from glibc
38311         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38312         same values for __GT_FILE as glibc.  Abort even when assertions
38313         are disabled.
38314         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38315         match its value otherwise.  Allow idempotent inclusion.
38316         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38317         * lib/mkostemp.c (mkostemp): Likewise.
38318         * lib/mkstemp.c (mkstemp): Likewise.
38319         * lib/tmpfile.c (tmpfile): Likewise.
38320         * NEWS: Document this.
38321
38322         utimens: fix use of futimens on older Linux
38323         * lib/utimens.c (fdutimens): Use updated, rather than original,
38324         timespec to avoid bug in older Linux kernel.
38325         Reported by Simon Josefsson.
38326
38327 2009-11-04  Bruno Haible  <bruno@clisp.org>
38328
38329         Make num_processors more flexible and consistent.
38330         * lib/nproc.h (enum nproc_query): New type.
38331         (num_processors): Add a 'query' argument.
38332         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38333         (num_processors): Add a 'query' argument. Test the value of the
38334         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38335         mingw, count the number of CPUs available for the current process.
38336         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38337         Check for sched_getaffinity and sched_getaffinity_np.
38338         * modules/nproc (Depends-on): Add c-ctype, extensions.
38339         * NEWS: Mention the change.
38340
38341 2009-11-03  Bruno Haible  <bruno@clisp.org>
38342
38343         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38344
38345 2009-11-03  Jim Meyering  <meyering@redhat.com>
38346
38347         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38348         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38349         if it is defined.
38350
38351 2009-11-02  Eric Blake  <ebb9@byu.net>
38352
38353         mktime, timegm: share common declaration
38354         * lib/mktime-internal.h: New file.
38355         * lib/mktime.c: Use it rather than open-coding a declaration.
38356         * lib/timegm.c: Likewise.
38357         * modules/mktime (Files): Ship it.
38358         * modules/timegm (Files): Likewise.
38359         Suggested by Bruno Haible.
38360
38361         test-update-copyright: update test to match script changes
38362         * tests/test-update-copyright.sh: Avoid hard-coding perl
38363         location.  Don't update *.bak created by earlier runs.
38364
38365 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38366             Simon Josefsson  <simon@josefsson.org>
38367             Bruno Haible  <bruno@clisp.org>
38368
38369         Fix link error on Solaris 8.
38370         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38371         also in libnsl. Define also INET_PTON_LIB.
38372         * modules/inet_pton (Link): New section.
38373
38374 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38375             Bruno Haible  <bruno@clisp.org>
38376
38377         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38378         * modules/inet_ntop (Link): New section.
38379         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38380
38381 2009-11-02  Eric Blake  <ebb9@byu.net>
38382
38383         maint: avoid compiler warnings in m4 macros
38384         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38385         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38386
38387 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38388
38389         * m4/pmccabe2html.m4: Remove file.
38390         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38391         function.  Change maintainer.
38392         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38393         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38394         Courtès).
38395
38396 2009-10-31  Eric Blake  <ebb9@byu.net>
38397
38398         fseeko: fix m4 regression
38399         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38400         regression from 2009-10-27.
38401         Reported by Ralf Wildenhues.
38402
38403 2009-10-31  Jim Meyering  <meyering@redhat.com>
38404
38405         inttostr: aesthetics and improved (compile-time) safety
38406         Define inttype_is_signed rather than inttype_is_unsigned,
38407         since the sole use is via "#if inttype_is_signed".
38408         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38409         inttype_is_unsigned.
38410         * lib/offtostr.c (inttype_is_signed): Likewise.
38411         * lib/uinttostr.c (inttype_is_signed): Likewise.
38412         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38413         * lib/inttostr.c (inttostr): Use verify to cross-check the
38414         inttype_is_signed value and the signedness of the actual type.
38415         * modules/inttostr (Depends-on): Add verify.
38416
38417 2009-10-30  Eric Blake  <ebb9@byu.net>
38418
38419         build: avoid compiler warnings
38420         * lib/fchmodat.c (lchmod): Mark unused variables.
38421         * lib/getopt.c (_getopt_initialize): Likewise.
38422         * lib/mktime.c (__mktime_internal): Provide prototype.
38423         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38424         older gcc that do not understand #pragma GCC diagnostic.
38425         * lib/uinttostr.c (inttype_is_unsigned): Define.
38426         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38427
38428 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38429
38430         stat: fix compilation on AIX
38431         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38432         only see struct stat64.
38433
38434 2009-10-30  Eric Blake  <ebb9@byu.net>
38435
38436         exclude: make more robust
38437         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38438         rather than masking a coding bug.
38439         Suggested by Bruno Haible.
38440
38441 2009-10-30  Jim Meyering  <meyering@redhat.com>
38442
38443         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38444         Rather than putting #!/usr/bin/perl on the first line,
38445         start with a variant of what's recommended by "man perlrun" that
38446         invokes the first "perl" program from your shell's search path.
38447         * build-aux/gitlog-to-changelog: Replace #!... as above.
38448         Add a "Local Variables" perl mode setting.
38449         Prompted by a patch from Ludovic Courtès.
38450         Improved by Eric Blake.
38451         * build-aux/useless-if-before-free: Likewise.
38452         * build-aux/announce-gen: Likewise.
38453         * build-aux/update-copyright: Likewise.
38454
38455 2009-10-29  Eric Blake  <ebb9@byu.net>
38456
38457         filenamecat-lgpl: adjust clients
38458         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38459         filenamecat.
38460         * modules/renameat (Depends-on): Likewise.
38461
38462         filenamecat: split into filenamecat-lgpl
38463         * modules/filenamecat-lgpl: New module.
38464         * modules/filenamecat (Files): Move library-safe files into
38465         filenamecat-lgpl.
38466         (Depends-on): Add filenamecat-lgpl.
38467         (configure.ac): Declare witness.
38468         * lib/filenamecat.h (file_name_concat): Only declare when using
38469         GPL module.
38470         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38471         Move...
38472         * lib/filenamecat-lgpl.c: ...into new file.
38473         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38474         (gl_FILE_NAME_CONCAT): Use it.
38475         * MODULES.html.sh (File system functions): Mention new module.
38476
38477         argp: avoid memory leak
38478         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38479         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38480         base_name, since the latter malloc()s and can call exit().
38481         Leak introduced 2006-07-03.
38482
38483         dirname-lgpl: adjust clients that don't need full dirname
38484         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38485         * modules/filenamecat (Depends-on): Likewise.
38486         * modules/linkat (Depends-on): Likewise.
38487         * modules/mkancesdirs (Depends-on): Likewise.
38488         * modules/mkdir (Depends-on): Likewise.
38489         * modules/openat (Depends-on): Likewise.
38490         * modules/savewd (Depends-on): Likewise.
38491         * modules/rename (Depends-on): Likewise.
38492         (License): Relax license.
38493         * modules/mkdir-tests (Depends-on): Drop progname.
38494         (Makefile.am): Delete unneeded LDADD.
38495         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38496
38497         dirname: split into dirname-lgpl
38498         * modules/dirname-lgpl: New module.
38499         * modules/dirname (Files): Move library-safe files into
38500         dirname-lgpl.
38501         (Depends-on): Add dirname-lgpl.
38502         (configure.ac): Declare witness.
38503         * modules/double-slash-root (License): Relax license.
38504         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38505         module.
38506         * lib/dirname.c (dir_len, mdir_name): Move...
38507         * lib/dirname-lgpl.c: ...into new file.
38508         * lib/basename.c (last_component, base_len): Move...
38509         * lib/basename-lgpl.c: ...into new file.
38510         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38511         (gl_DIRNAME): Use it.
38512         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38513         Mention new module.
38514         * modules/dirname-tests (Depends-on): Add progname.
38515         * tests/test-dirname.c (program_name): Delete.
38516
38517         mkdir: make safe for libraries
38518         * modules/mkdir (Depends-on): Drop xalloc.
38519         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38520         exit.
38521
38522         tests: avoid some compiler warnings
38523         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38524         literals.
38525         * tests/test-memchr.c (main): Avoid type mismatch.
38526         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38527         * tests/test-base64.c (main): Likewise.
38528         * tests/test-getdelim.c (main): Likewise.
38529         * tests/test-gethostname.c (main): Likewise.
38530         * tests/test-getline.c (main): Likewise.
38531         * tests/test-netinet_in.c (main): Likewise.
38532         * tests/test-select.c (open_server_socket, main): Likewise.
38533         * tests/test-select-stdin.c (main): Likewise.
38534         * tests/test-sockets.c (main): Likewise.
38535         * tests/test-strsignal.c (main): Likewise.
38536         * tests/test-sys_select.c (main): Likewise.
38537         * tests/test-sys_socket.c (main): Likewise.
38538         * tests/test-u64.c (main): Likewise.
38539         * tests/test-xfprintf-posix.c (main): Likewise.
38540         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38541
38542         sockets: avoid compiler warning
38543         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38544
38545         maint: detect usage(1) and other suspicious exits
38546         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38547
38548 2009-10-29  Jim Meyering  <meyering@redhat.com>
38549
38550         timespec: long-to-int truncation could make timespec_cmp malfunction
38551         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38552         a multiple of 2^32 nanoseconds as no difference.
38553
38554 2009-10-28  Jim Meyering  <meyering@redhat.com>
38555
38556         fprintftime: wrap macro code argument in "do {...} while(0)"
38557         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38558         cpy macro must be a statement that can be followed by a semicolon.
38559         Now that the else clause contains a comment and is hence longer
38560         than one line, I require curly braces.  That in turn requires
38561         that we wrap this code block in the standard do...while(0).
38562
38563         fprintftime: remove stray semicolon from previous change
38564         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38565
38566         fprintftime: avoid a warning about ignored fwrite return value
38567         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38568         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38569         that is unsafe.
38570         * modules/fprintftime (Depends-on): Add ignore-value.
38571
38572         exclude: avoid an unwarranted warning
38573         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38574
38575 2009-10-27  Eric Blake  <ebb9@byu.net>
38576
38577         fseek: avoid compilation failure when fflush is replaced
38578         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38579         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38580         module is in use.
38581         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38582         module is not in use; since REPLACE_FSEEK worked otherwise.
38583         (GNULIB_FTELLO): Likewise for ftell.
38584         Reported by Ian Beckwith and others.
38585
38586 2009-10-27  Bruno Haible  <bruno@clisp.org>
38587
38588         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38589         Reported by Jim Meyering.
38590
38591 2009-10-27  Jim Meyering  <jim@meyering.net>
38592             Bruno Haible  <bruno@clisp.org>
38593
38594         Avoid warning despite dropping the return value of fwrite.
38595         * lib/unicodeio.c: Include ignore-value.h.
38596         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38597         * modules/unicodeio (Depends-on): Add ignore-value.
38598
38599 2009-10-26  Eric Blake  <ebb9@byu.net>
38600
38601         areadlinkat: fix fallback path
38602         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38603         pointer and zero.
38604
38605 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38606
38607         Use a better IO block size for modern systems
38608         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38609         * lib/md2.c: Likewise.
38610         * lib/md4.c: Likewise.
38611         * lib/md5.c: Likewise.
38612         * lib/sha1.c: Likewise.
38613         * lib/sha256.c: Likewise.
38614         * lib/sha512.c: Likewise.
38615
38616 2009-10-22  Eric Blake  <ebb9@byu.net>
38617
38618         tests: avoid several compiler warnings
38619         * tests/test-getcwd.c (main): Avoid buffer underflow.
38620         * tests/test-getdate.c (main): String literals are not safe with
38621         putenv, so use setenv.  Declare unused argument.
38622         * modules/getdate-tests (Depends-on): Add setenv.
38623         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38624         problems with string literals in char *.
38625         * tests/test-hash.c (main): Avoid shadowing declaration.
38626         (insert_new): Treat string literals as char const *.
38627         * tests/test-getopt.h (test_getopt): Likewise.
38628         (getopt_loop): Alter types to minimize casting elsewhere.
38629         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38630         (test_getopt_long_posix): Likewise.
38631         (do_getopt_long): Add wrapper to minimize casting.
38632         * tests/test-atexit.c (clear_temp_file): Use void.
38633         * tests/test-areadlink-with-size.c (main): Declare unused
38634         arguments.
38635         * tests/test-areadlink.c (main): Likewise.
38636         * tests/test-areadlinkat-with-size.c (main): Likewise.
38637         * tests/test-areadlinkat.c (main): Likewise.
38638         * tests/test-canonicalize-lgpl.c (main): Likewise.
38639         * tests/test-canonicalize.c (main): Likewise.
38640         * tests/test-dirent-safer.c (main): Likewise.
38641         * tests/test-dirname.c (main): Likewise.
38642         * tests/test-dup2.c (main): Likewise.
38643         * tests/test-fchdir.c (main): Likewise.
38644         * tests/test-fcntl-h.c (main): Likewise.
38645         * tests/test-fcntl-safer.c (main): Likewise.
38646         * tests/test-fdopendir.c (main): Likewise.
38647         * tests/test-fdutimensat.c (main): Likewise.
38648         * tests/test-fflush.c (main): Likewise.
38649         * tests/test-filenamecat.c (main): Likewise.
38650         * tests/test-filevercmp.c (main): Likewise.
38651         * tests/test-fopen-safer.c (main): Likewise.
38652         * tests/test-fopen.c (main): Likewise.
38653         * tests/test-fpending.c (main): Likewise.
38654         * tests/test-fpurge.c (main): Likewise.
38655         * tests/test-freading.c (main): Likewise.
38656         * tests/test-fstatat.c (main): Likewise.
38657         * tests/test-fsync.c (main): Likewise.
38658         * tests/test-futimens.c (main): Likewise.
38659         * tests/test-getndelim2.c (main): Likewise.
38660         * tests/test-gettimeofday.c (main): Likewise.
38661         * tests/test-getopt.c (main): Likewise.
38662         * tests/test-i-ring.c (main): Likewise.
38663         * tests/test-inttypes.c (main): Likewise.
38664         * tests/test-link.c (main): Likewise.
38665         * tests/test-lstat.c (main): Likewise.
38666         * tests/test-math.c (main): Likewise.
38667         * tests/test-md5.c (main): Likewise.
38668         * tests/test-memchr2.c (main): Likewise.
38669         * tests/test-memrchr.c (main): Likewise.
38670         * tests/test-mkdir.c (main): Likewise.
38671         * tests/test-mkdirat.c (main): Likewise.
38672         * tests/test-mkfifoat.c (main): Likewise.
38673         * tests/test-open.c (main): Likewise.
38674         * tests/test-openat-safer.c (main): Likewise.
38675         * tests/test-openat.c (main): Likewise.
38676         * tests/test-quotearg.c (main): Likewise.
38677         * tests/test-rawmemchr.c (main): Likewise.
38678         * tests/test-readlink.c (main): Likewise.
38679         * tests/test-remove.c (main): Likewise.
38680         * tests/test-rename.c (main): Likewise.
38681         * tests/test-renameat.c (main): Likewise.
38682         * tests/test-rmdir.c (main): Likewise.
38683         * tests/test-sha1.c (main): Likewise.
38684         * tests/test-signal.c (main): Likewise.
38685         * tests/test-sigaction.c (main): Likewise.
38686         * tests/test-stat.c (main): Likewise.
38687         * tests/test-stat-time.c (main): Likewise.
38688         * tests/test-stddef.c (main): Likewise.
38689         * tests/test-stdint.c (main): Likewise.
38690         * tests/test-stdio.c (main): Likewise.
38691         * tests/test-stdlib.c (main): Likewise.
38692         * tests/test-strchrnul.c (main): Likewise.
38693         * tests/test-strerror.c (main): Likewise.
38694         * tests/test-string.c (main): Likewise.
38695         * tests/test-strtod.c (main): Likewise.
38696         * tests/test-strverscmp.c (main): Likewise.
38697         * tests/test-symlink.c (main): Likewise.
38698         * tests/test-symlinkat.c (main): Likewise.
38699         * tests/test-sys_stat.c (main): Likewise.
38700         * tests/test-sys_time.c (main): Likewise.
38701         * tests/test-time.c (main): Likewise.
38702         * tests/test-unistd.c (main): Likewise.
38703         * tests/test-unlink.c (main): Likewise.
38704         * tests/test-unlinkat.c (main): Likewise.
38705         * tests/test-utimens.c (main): Likewise.
38706         * tests/test-utimensat.c (main): Likewise.
38707         * tests/test-version-etc.c (main): Likewise.
38708         * tests/test-wchar.c (main): Likewise.
38709         * tests/test-wctype.c (main): Likewise.
38710         * tests/test-xprintf-posix.c (main): Likewise.
38711         * tests/test-posixtm.c (main): Likewise.
38712         (STREQ): Delete unused macro.
38713         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38714         shadowed variables.
38715         * tests/test-memchr.c (main): Likewise.
38716
38717 2009-10-21  Eric Blake  <ebb9@byu.net>
38718
38719         areadlinkat: avoid failure on older glibc
38720         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38721         rather than mis-comparing 0 against FUNC_RESULT of char*.
38722
38723 2009-10-21  Bruno Haible  <bruno@clisp.org>
38724
38725         * modules/stpncpy (License): Relicense under LGPLv2+.
38726         Reported by David Lutterkort <lutter@redhat.com>.
38727
38728 2009-10-20  Eric Blake  <ebb9@byu.net>
38729
38730         utimensat: work around Solaris 9 bug
38731         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38732         has trailing slash bugs.
38733         * tests/test-lutimens.h (test_lutimens): Enhance test.
38734         * tests/test-utimens.h (test_utimens): Likewise.
38735         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38736         * doc/posix-functions/utimes.texi (utimes): Likewise.
38737         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38738         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38739         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38740         * doc/posix-functions/futimens.texi (futimens): Likewise.
38741
38742         fdutimensat: new module
38743         * modules/fdutimensat: New file.
38744         * lib/fdutimensat.c (fdutimensat): Likewise.
38745         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38746         * MODULES.html.sh (File system functions): Mention module.
38747         * modules/fdutimensat-tests: New test.
38748         * tests/test-fdutimensat.c: Likewise.
38749
38750         doc: regenerate INSTALL
38751         * doc/INSTALL: Reflect recent autoconf update.
38752         * doc/INSTALL.ISO: Likewise.
38753         * doc/INSTALL.UTF-8: Likewise.
38754
38755 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38756
38757         acl: warn if ACL support is not detected
38758         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38759
38760 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38761
38762         * lib/nproc.h: Add extern "C" block for C++.
38763
38764 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38765             Bruno Haible  <bruno@clisp.org>
38766
38767         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38768         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38769         * doc/posix-functions/isalpha.texi: Likewise.
38770         * doc/posix-functions/isblank.texi: Likewise.
38771         * doc/posix-functions/iscntrl.texi: Likewise.
38772         * doc/posix-functions/isdigit.texi: Likewise.
38773         * doc/posix-functions/isgraph.texi: Likewise.
38774         * doc/posix-functions/islower.texi: Likewise.
38775         * doc/posix-functions/isprint.texi: Likewise.
38776         * doc/posix-functions/ispunct.texi: Likewise.
38777         * doc/posix-functions/isspace.texi: Likewise.
38778         * doc/posix-functions/isupper.texi: Likewise.
38779         * doc/posix-functions/isxdigit.texi: Likewise.
38780
38781 2009-10-18  Bruno Haible  <bruno@clisp.org>
38782
38783         Tests for module 'isblank'.
38784         * modules/isblank-tests: New file.
38785         * tests/test-isblank.c: New file.
38786
38787         New module 'isblank'.
38788         * lib/isblank.c: New file.
38789         * m4/isblank.m4: New file.
38790         * modules/isblank: New file.
38791         * doc/posix-functions/isblank.texi: Mention the new module.
38792
38793 2009-10-18  Bruno Haible  <bruno@clisp.org>
38794
38795         New module 'ctype'.
38796         * lib/ctype.in.h: New file.
38797         * m4/ctype.m4: New file.
38798         * modules/ctype: New file.
38799         * doc/posix-headers/ctype.texi: Mention the new module.
38800
38801 2009-10-18  Jim Meyering  <meyering@redhat.com>
38802
38803         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38804         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38805         right after its initialization, rather than farther down.
38806         Keeping these in close proximity makes it easier to ensure
38807         that each such variable is initialized.  E.g.,
38808
38809             LIB_CLOCK_GETTIME=
38810             AC_SUBST([LIB_CLOCK_GETTIME])
38811
38812         This change also increments these serial numbers.
38813         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38814         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38815         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38816
38817 2009-10-18  Bruno Haible  <bruno@clisp.org>
38818
38819         Don't let environment variables perturb build.
38820         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38821         (gl_PREREQ_GETHRXTIME): ... not here.
38822
38823 2009-10-18  Bruno Haible  <bruno@clisp.org>
38824
38825         Avoid symlink attack in localcharset module.
38826         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
38827         (O_NOFOLLOW): Define fallback.
38828         (get_charset_aliases): Don't open the file if it is a symbolic link.
38829         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
38830         gl_FCNTL_H.
38831         (gl_FCNTL_H): Require it.
38832         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
38833         * modules/localcharset (Files): Add m4/fcntl_h.m4.
38834         Reported by Fergal Glynn <fglynn@veracode.com>.
38835
38836 2009-10-18  Bruno Haible  <bruno@clisp.org>
38837
38838         Implement nproc for mingw.
38839         * lib/nproc.c: Include <windows.h>
38840         (num_processors): On native Windows platforms, try GetSystemInfo.
38841
38842 2009-10-18  Bruno Haible  <bruno@clisp.org>
38843
38844         Implement nproc for IRIX.
38845         * lib/nproc.c: Include <sys/sysmp.h>.
38846         (num_processors): On IRIX systems, try sysmp.
38847         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
38848
38849 2009-10-18  Bruno Haible  <bruno@clisp.org>
38850
38851         Implement nproc for HP-UX.
38852         * lib/nproc.c: Include <sys/pstat.h>
38853         (num_processors): On HP-UX systems, try pstat_getdynamic.
38854         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
38855         pstat_getdynamic.
38856
38857 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
38858             Bruno Haible  <bruno@clisp.org>
38859
38860         Implement nproc for NetBSD, OpenBSD.
38861         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
38862         (ARRAY_SIZE): New macro.
38863         (num_processors): On BSD systems, try sysctl of HW_NCPU.
38864         * m4/nproc.m4: New file.
38865         * modules/nproc (Files): Add m4/nproc.m4.
38866         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
38867         (Makefile.am): Instead, augment lib_SOURCES.
38868
38869 2009-10-18  Bruno Haible  <bruno@clisp.org>
38870
38871         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
38872         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
38873         sys/param.h.
38874
38875 2009-10-16  Eric Blake  <ebb9@byu.net>
38876
38877         utimensat: new module
38878         * modules/utimensat: New file.
38879         * lib/utimensat.c (utimensat): Likewise.
38880         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38881         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
38882         so we can work around Linux bugs.
38883         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38884         * modules/sys_stat (Makefile.am): Substitute them.
38885         * lib/sys_stat.in.h (utimensat): Declare it.
38886         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38887         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38888         * modules/utimensat-tests: New test.
38889         * tests/test-utimensat.c: Likewise.
38890
38891         utimens: let lutimens work on non-symlinks
38892         * lib/utimens.c (lutimens): Fall back to utimens rather than
38893         failing with ENOSYS, when file is not a symlink.
38894         (utimens): Reduce redirection.
38895         * tests/test-lutimens.h (test_lutimens): Update test to cover
38896         non-symlinks.
38897         * tests/test-utimens.h (test_utimens): Update test to cover
38898         symlinks.
38899         * tests/test-utimens.c (main): Update caller.
38900
38901         utimens: cache whether utimensat syscall works
38902         * lib/utimens.c (utimensat_works_really): New cache variable.
38903         (fdutimens, lutimens): Use it to avoid failing syscall.
38904
38905         test-stat-time, test-utimens: improve portability
38906         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
38907         ext4 on alpha, and for cygwin.
38908         * tests/test-utimens-common.h: New file.
38909         (nap): Factor delays into single function.
38910         * tests/test-lutimens.h (test_lutimens): Use new header.
38911         * tests/test-futimens.h (test_futimens): Likewise.
38912         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
38913         timestamps to occur from same machine, as was done previously for
38914         test_utimens.
38915         * modules/utimens-tests (Files): Ship new file.
38916         * modules/futimens-tests (Files): Likewise.
38917         Reported in part by Jim Meyering.
38918
38919         sys_stat: sort replacement declarations
38920         * lib/sys_stat.in.h: Sort declarations.
38921         * lib/futimens.c (futimens): Fix typo.
38922
38923 2009-10-15  Jim Meyering  <meyering@redhat.com>
38924
38925         don't let environment settings perturb build
38926         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
38927         could cause a configure-time and/or build-time malfunction.
38928         Typically, a configure-time function-in-library test is performed
38929         via code like this:
38930
38931           LIB_VAR=
38932           AC_SUBST([LIB_VAR])
38933           prefix_saved_LIBS=$LIBS
38934             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
38935                        [test "$ac_cv_search_FUNC" = "none required" ||
38936                         LIB_VAR=$ac_cv_search_FUNC])
38937           LIBS=$prefix_saved_LIBS
38938
38939         However, in each of the files affected by this change, the LIB_VAR=
38940         initialization was omitted.  Thus, when set in the environment, its
38941         value would propagate into generated Makefiles when FUNC is not found
38942         in LIB_NAME.
38943         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
38944         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38945         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38946
38947 2009-10-14  Eric Blake  <ebb9@byu.net>
38948
38949         fchdir: avoid infinite recursion in mingw
38950         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
38951         recursing.
38952
38953         test-stat-time: port to mingw
38954         * tests/test-stat-time.c (force_unlink): Return a value.
38955         (test_ctime) [W32]: Fix compilation error.
38956         (nap): Don't call usleep with too large an argument.  Use
38957         force_unlink.
38958         * doc/pastposix-functions/usleep.texi (usleep): Document the
38959         portability issue.
38960
38961 2009-10-13  Jim Meyering  <meyering@redhat.com>
38962
38963         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
38964         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
38965         * modules/pipe-filter-ii: Likewise.
38966         * modules/sys_socket-tests: Likewise.
38967         * modules/tsearch-tests: Likewise.
38968         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
38969         (check): Depend on it.
38970
38971 2009-10-12  Eric Blake  <ebb9@byu.net>
38972
38973         utimens-tests: port to NFS file systems
38974         * tests/test-utimens.h (test_utimens): Refactor utimecmp
38975         comparisons to avoid spurious failures from timestamp drift
38976         between NFS machines.
38977
38978 2009-10-12  Eric Blake  <ebb9@byu.net>
38979
38980         stat-time-tests: minor cleanups
38981         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
38982         * tests/test-stat-time.c (nap): Separate assignment from call.
38983         Suggested by Paolo Bonzini and Bruno Haible.
38984
38985         sys_stat: guarantee struct timespec
38986         * lib/sys_stat.in.h (includes): Always include <time.h>
38987         * modules/sys_stat (Depends-on): Add time.
38988         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
38989         mode_t permission values.
38990         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
38991         get at subsecond timestamps.
38992
38993 2009-10-10  Eric Blake  <ebb9@byu.net>
38994
38995         futimens: new module
38996         * modules/futimens: New file.
38997         * lib/futimens.c (futimens): Likewise.
38998         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
38999         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39000         we can work around Linux bugs.
39001         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39002         * modules/sys_stat (Makefile.am): Substitute them.
39003         * lib/sys_stat.in.h (futimens): Declare it.
39004         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39005         * doc/posix-functions/futimens.texi (futimens): Likewise.
39006         * modules/futimens-tests: New test.
39007         * tests/test-futimens.c: Likewise.
39008
39009         utimens: introduce fdutimens
39010         * lib/utimens.h (fdutimens): New prototype.
39011         * lib/utimens.c (gl_futimens): Move guts...
39012         (fdutimens): ...to new interface.
39013         * tests/test-utimens.c (do_fdutimens): Use it.
39014
39015         utimens: add UTIME_NOW and UTIME_OMIT support
39016         * lib/utimens.c (validate_timespec, update_timespec): New helper
39017         functions.
39018         (gl_futimens, lutimens): Use them.
39019         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39020         stdbool, sys_stat.
39021         (Link): Mention resulting library dependency.
39022         * modules/utimecmp (Link): Likewise.
39023         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39024         (Makefile.am): Pick up library dependency.
39025         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39026         definition.
39027         * tests/test-sys_stat.c: Test the definitions.
39028         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39029         * NEWS: Document library dependency.
39030
39031         utimecmp: support symlink timestamps
39032         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39033         hashing when possible.  Use pathconf when available.
39034         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39035         * modules/utimecmp (Depends-on): Add lstat.
39036
39037         utimens: add lutimens interface
39038         * lib/utimens.c (lutimens): New function.
39039         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39040         * lib/utimens.h (lutimens): Declare new interface.
39041         * tests/test-utimens.c (main): Enhance test.
39042         * tests/test-lutimens.h (test_lutimens): New file.
39043         * modules/utimens-tests (Files): Distribute it.
39044         (Depends-on): Add symlink.
39045         (configure.ac): Check for usleep.
39046
39047         utimens: validate futimens usage
39048         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39049         fewer syscalls on failure later on.  Avoid compiler warning on
39050         mingw.
39051         * modules/utimens (Depends-on): Add dup2.
39052
39053         utimens: add test
39054         * modules/utimens-tests: New test.
39055         * tests/test-utimens.h: New file.
39056         * tests/test-futimens.h: Likewise.
39057         * tests/test-utimens.c: Likewise.
39058
39059         doc: mention timestamp portability issues
39060         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39061         instead.
39062         * doc/posix-functions/utime.texi (utime): Likewise.
39063         * doc/posix-functions/utimes.texi (utimes): Likewise.
39064         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39065         instead.
39066         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39067         module.
39068         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39069         Mention weakness with symlink timestamps.
39070         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39071         to utimensat/futimens instead.
39072         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39073
39074         test-dup2: enhance test
39075         * tests/test-dup2.c (main): Also check AT_FDCWD.
39076
39077         test-stat-time: avoid more spurious failures
39078         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39079         xfs; and avoid race if the two timestamps cross quantization edge.
39080
39081         relocatable: prefer 'file system' over 'filesystem'
39082         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39083         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39084         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39085         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39086         * lib/relocatable.c (compute_curr_prefix): Likewise.
39087
39088 2009-10-10  Jim Meyering  <meyering@redhat.com>
39089
39090         stat-time-tests: check for the usleep function
39091         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39092
39093 2009-10-10  Bruno Haible  <bruno@clisp.org>
39094
39095         * modules/xnanosleep: Put the Link section after the Include section.
39096
39097 2009-10-09  Eric Blake  <ebb9@byu.net>
39098
39099         dup2: work around FreeBSD 6.1 bug
39100         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39101         * doc/posix-functions/dup2.texi (dup2): Document it.
39102         Reported by Nelson H. F. Beebe and Jim Meyering.
39103
39104         test-stat-time: port to buggy NFS clients
39105         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39106         (test_ctime): Also skip test if mtime and ctime are skewed.
39107
39108         maint: prefer 'file system' over 'filesystem'
39109         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39110         * doc/posix-functions/lstat.texi (lstat): Likewise.
39111         * lib/file-has-acl.c (file_has_acl): Likewise.
39112         * lib/fwriteerror.c [TEST]: Likewise.
39113         * tests/test-areadlink.h (test_areadlink): Likewise.
39114         * tests/test-areadlinkat-with-size.c (main): Likewise.
39115         * tests/test-areadlinkat.c (main): Likewise.
39116         * tests/test-canonicalize-lgpl.c (main): Likewise.
39117         * tests/test-canonicalize.c (main): Likewise.
39118         * tests/test-fstatat.c (main): Likewise.
39119         * tests/test-linkat.c (main): Likewise.
39120         * tests/test-lstat.h (test_lstat_func): Likewise.
39121         * tests/test-mkdir.h (test_mkdir): Likewise.
39122         * tests/test-readlink.h (test_readlink): Likewise.
39123         * tests/test-remove.c (main): Likewise.
39124         * tests/test-rename.h (test_rename): Likewise.
39125         * tests/test-renameat.c (main): Likewise.
39126         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39127         * tests/test-symlink.h (test_symlink): Likewise.
39128         * tests/test-symlinkat.c (main): Likewise.
39129         * tests/test-unlink.h (test_unlink_func): Likewise.
39130         * tests/test-unlinkat.c (main): Likewise.
39131
39132         maint: make realtime library usage explicit
39133         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39134         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39135         * modules/settime (Link): Likewise.
39136         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39137
39138         test-stat-time: speed up execution
39139         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39140         warning on mingw.
39141         (nap): New helper function.
39142         (prepare_test): Use it to reduce sleep time.
39143         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39144         execution.
39145         * modules/stat-time-tests (configure.ac): Check for usleep.
39146
39147 2009-10-09  Jim Meyering  <meyering@redhat.com>
39148
39149         selinux-h: always use getfilecon wrappers
39150         * lib/getfilecon.c: New file.
39151         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39152         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39153         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39154         (fgetfilecon): Provide a stub.
39155         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39156         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39157         file unconditionally.
39158         When <selinux/selinux.h> is found, arrange to use wrappers.
39159         * modules/selinux-h (Files): Add getfilecon.c.
39160         (Makefile.am): Substitute include-next-related bits
39161         into the now-always-generated selinux/selinux.h file.
39162         * doc/glibc-functions/lgetfilecon.texi: New file.
39163         * doc/glibc-functions/fgetfilecon.texi: New file.
39164         * doc/glibc-functions/getfilecon.texi: New file.
39165         * doc/glibc-functions/getfilecon-desc.texi: New file.
39166         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39167         which to pull in the new files.
39168         * MODULES.html.sh (Misc): Add selinux-h.
39169
39170 2009-10-08  Jim Meyering  <meyering@redhat.com>
39171
39172         unistd: fix comment typo
39173         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39174
39175 2009-10-08  Eric Blake  <ebb9@byu.net>
39176
39177         areadlink: use SIZE_MAX consistently
39178         * modules/areadlink (Depends-on): Add stdint.
39179         * modules/areadlink-with-size (Depends-on): Likewise.
39180         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39181         gives NULL; drop sys/types, since unistd gives size_t; and add
39182         stdint for SIZE_MAX.
39183         (SIZE_MAX): Rely on headers.
39184         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39185         and add stdint.
39186         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39187         (SIZE_MAX): Likewise.
39188         (INITIAL_BUF_SIZE): Turn into enum.
39189         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39190
39191 2009-10-08  Jim Meyering  <meyering@redhat.com>
39192
39193         areadlinkat: avoid compilation failure
39194         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39195         Fix typo in comment.
39196
39197 2009-10-07  Eric Blake  <ebb9@byu.net>
39198
39199         areadlinkat-with-size: new module
39200         * modules/areadlinkat-with-size: New module.
39201         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39202         * lib/areadlink.h (areadlinkat): Declare it.
39203         * MODULES.html.sh (File system functions): Mention it.
39204         * modules/areadlinkat-with-size-tests: New test.
39205         * tests/test-areadlinkat-with-size.c: New file.
39206
39207         xreadlinkat: new module
39208         * modules/xreadlinkat: New module.
39209         * lib/xreadlinkat.c (xreadlinkat): New file.
39210         * lib/xreadlink.h (xreadlinkat): Declare it.
39211         * MODULES.html.sh (File system functions): Mention it.
39212
39213         areadlinkat: new module
39214         * lib/at-func.c (FUNC_FAIL): New define.
39215         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39216         * modules/areadlinkat: New module.
39217         * lib/linkat.c (areadlinkat): Move...
39218         * lib/areadlinkat.c (areadlinkat): ...to new file.
39219         * lib/areadlink.h (areadlinkat): Declare it.
39220         * modules/linkat (Depends-on): Add areadlinkat.
39221         * MODULES.html.sh (File system functions): Mention it.
39222         * modules/areadlinkat-tests: New test.
39223         * tests/test-areadlinkat.c: New file.
39224
39225         areadlink, areadlink-with-size: add tests
39226         * modules/areadlink-tests: New test.
39227         * modules/areadlink-with-size-tests: Likewise.
39228         * tests/test-areadlink.h: New file.
39229         * tests/test-areadlink.c: Likewise.
39230         * tests/test-areadlink-with-size.c: Likewise.
39231
39232         maint: minor cleanups
39233         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39234         _UNUSED_PARAMETER_ instead.
39235         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39236         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39237         * modules/linkat-tests (Files): Distribute test-link.h.
39238
39239         openat, utimens: whitespace cleanup
39240         * lib/openat.c: Prefer space throughout, rather than mix of 8
39241         spaces vs. tabs.
39242         * lib/at-func.c: Likewise.
39243         * lib/utimens.c: Likewise.
39244
39245         openat: avoid using wrong fd
39246         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39247         working directory chooses same fd.
39248         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39249
39250         mkdir, mkdirat: fix cygwin 1.5.x bug
39251         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39252         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39253         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39254         bug.
39255         (gl_PREREQ_MKDIR): Delete unused macro.
39256         * modules/mkdir (Files): Track file rename.
39257         (configure.ac): Update macro name.
39258         * modules/openat (Depends-on): Add mkdir.
39259         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39260
39261         mkdir, mkdirat: add tests
39262         * modules/mkdir-tests: New test.
39263         * tests/test-mkdir.h: New file.
39264         * tests/test-mkdir.c: Likewise.
39265         * tests/test-mkdirat.c: Likewise.
39266         * modules/openat-tests (Files): Add new files.
39267         (Makefile.am): Run new test.
39268
39269 2009-10-06  Eric Blake  <ebb9@byu.net>
39270
39271         doc: tweak *at function documentation
39272         * doc/posix-functions/faccessat.texi (faccessat): Mention
39273         known issue with replacement.
39274         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39275         * doc/posix-functions/linkat.texi (linkat): Likewise.
39276         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39277         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39278         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39279         * doc/posix-functions/renameat.texi (renameat): Likewise.
39280         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39281
39282         openat: fix GNU/Hurd bug in unlinkat
39283         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39284         broken.
39285         * doc/posix-functions/unlink.texi (unlink): Document this.
39286         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39287
39288         fdopendir: fix GNU/Hurd bug
39289         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39290         allowing non-directory fds.
39291         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39292         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39293         * modules/dirent (Makefile.am): Substitute it.
39294         * lib/dirent.in.h (fdopendir): Declare replacement.
39295         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39296         * tests/test-fdopendir.c (main): Test something other than
39297         /dev/null, since on Hurd that behaves like a directory.
39298
39299         test-symlink: port to GNU/Hurd
39300         * tests/test-symlink.h (test_symlink): Relax expected errno.
39301
39302         doc: tweak more cygwin information
39303         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39304         now compatible with glibc.
39305         * doc/posix-functions/getopt.texi (getopt): Likewise.
39306
39307         getopt-gnu: add another test
39308         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39309         guarantee behavior relied on by m4.
39310         * tests/test-getopt.c (main): Use it.
39311         * modules/getopt-posix-tests (Depends-on): Add setenv.
39312         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39313
39314         getopt: fix compilation on darwin
39315         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39316         include.
39317         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39318         Reported by Ludovic Courtès.
39319
39320 2009-10-06  Bruno Haible  <bruno@clisp.org>
39321
39322         * modules/size_max (Description): Discourage its use.
39323         Reported by Simon Josefsson.
39324
39325 2009-10-06  Jim Meyering  <meyering@redhat.com>
39326
39327         linkat: avoid compilation failure
39328         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39329
39330 2009-10-05  Eric Blake  <ebb9@byu.net>
39331
39332         linkat: support Linux 2.6.17
39333         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39334         linkat on Linux, but allow cache variable override.
39335         * lib/linkat.c (rpl_linkat): Define override.
39336         * modules/linkat (Depends-on): Add symlinkat.
39337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39338         * modules/unistd (Makefile.am): Substitute it.
39339         * lib/unistd.in.h (linkat): Declare replacement.
39340         Reported by Pádraig Brady.
39341
39342         quotearg: port test to systems with C.UTF-8 locale
39343         * tests/test-quotearg.c (struct result_strings): Add another
39344         member, differentiating between C.ASCII and C.UTF-8 handling.
39345         (compare_strings): Add parameter.
39346         (main): Adjust all callers.
39347
39348         getopt: avoid clash with FreeBSD _getopt_internal
39349         * lib/getopt.in.h (_getopt_internal): Override the name.
39350         * lib/getopt_int.h (includes): Pick up any overrides.
39351         Reported by Reuben Thomas.
39352
39353         hash: allow C89 compilation
39354         * lib/hash.c (check_tuning): Move declaration before statement.
39355         Reported by Reuben Thomas.
39356
39357 2009-10-05  Karl Berry  <karl@gnu.org>
39358
39359         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39360
39361 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39362             Bruno Haible  <bruno@clisp.org>
39363
39364         * lib/uname.c (uname): Use a table-driven algorithm to compute
39365         Windows NT versions.
39366
39367 2009-10-04  Bruno Haible  <bruno@clisp.org>
39368
39369         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39370         program_invocation_short_name.
39371         * modules/progname (configure.ac): Test for presence of
39372         program_invocation_short_name.
39373         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39374
39375 2009-10-04  Bruno Haible  <bruno@clisp.org>
39376
39377         * lib/progname.c (set_program_name): Fix comment.
39378         Reported by Jim Meyering.
39379
39380 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39381             Bruno Haible  <bruno@clisp.org>
39382
39383         * lib/uname.c: Include <string.h>.
39384         (uname): Do only one call to GetVersionEx in the common case.
39385
39386 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39387             Bruno Haible  <bruno@clisp.org>
39388
39389         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39390         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39391         (uname): Add support for Windows CE and various non-x86 CPU types.
39392
39393 2009-10-03  Bruno Haible  <bruno@clisp.org>
39394
39395         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39396         invocation to tests/configure.ac.
39397         Reported by Ian Beckwith <ianb@erislabs.net>.
39398
39399 2009-10-02  Eric Blake  <ebb9@byu.net>
39400
39401         fchdir: avoid compiler warning
39402         * lib/fchdir.c (canonicalize_file_name)
39403         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39404
39405         test-open: support mingw errno values
39406         * tests/test-open.h (test_open): Relax test.
39407         * tests/test-fopen.h (test_fopen): Likewise.
39408         * tests/test-openat-safer.c (main): Likewise.
39409
39410         open: fix opening directory on mingw
39411         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39412
39413         test-open: on GNU/Hurd, /dev/null is a directory
39414         * tests/test-fopen.h (main): Rename...
39415         (test_fopen): ...to this.  Use a guaranteed non-directory when
39416         confirming open behavior on trailing slash.
39417         * tests/test-openat-safer.c (main): Likewise.
39418         * tests/test-open.h (main): Likewise....
39419         (test_open): ...to this.
39420         * tests/test-fopen.c (main): Adjust caller.
39421         * tests/test-fopen-safer.c (main): Likewise.
39422         * tests/test-open.c (main): Likewise.
39423         * tests/test-fcntl-safer.c (main): Likewise.
39424         Reported by Samuel Thibault.
39425
39426         rename, fchdir: don't ignore chdir failure
39427         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39428         * lib/rename.c (rpl_rename) [W32]: Likewise.
39429         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39430         an empty destination directory if source cannot be renamed,
39431         although there is still possibility for failure.
39432         * doc/posix-functions/rename.texi (rename): Document the race.
39433         Reported by Jim Meyering.
39434
39435         maint: cleanup whitespace in recent commits
39436         * lib/rename.c (rpl_rename): Remove tabs.
39437         * tests/test-link.h (test_link): Likewise.
39438         * lib/fchdir.c (get_name): Likewise.
39439         Reported by Jim Meyering.
39440
39441 2009-10-02  Ben Pfaff  <blp@gnu.org>
39442
39443         relocatable-prog-wrapper: Add missing dependency on
39444         double-slash-root.
39445         * modules/relocatable-prog-wrapper: Add dependency.
39446         Reported by Ian Beckwith <ianb@erislabs.net>.
39447
39448 2009-10-02  Eric Blake  <ebb9@byu.net>
39449
39450         renameat: fix Solaris bugs
39451         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39452         needed fixing.
39453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39454         * modules/stdio (Makefile.am): Substitute it.
39455         * lib/stdio.in.h (renameat): Declare replacement.
39456         * lib/renameat.c (rpl_renameat): Implement fix.
39457
39458         renameat: new module
39459         * modules/renameat: New file.
39460         * lib/renameat.c (renameat): Likewise.
39461         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39463         * modules/stdio (Makefile.am): Substitute them.
39464         * lib/stdio.in.h (renameat): Declare it.
39465         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39466         * doc/posix-functions/renameat.texi (renameat): Likewise.
39467         * modules/renameat-tests: New test.
39468         * tests/test-renameat.c: Likewise.
39469
39470         rename: fix mingw bugs
39471         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39472         directory overwrite bugs.
39473
39474         rename: fix another cygwin 1.5 bug
39475         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39476         checks.
39477         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39478         unnecessary cygwin workarounds.  Also work around bug with moving
39479         full directory onto an empty one.
39480         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39481
39482         rename-dest-slash: merge into rename module
39483         * modules/rename-dest-slash (Status): Mark obsolete.
39484         (Depends-on): Add rename.
39485         (Files): Let rename do it all.
39486         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39487         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39488         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39489         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39490         * lib/rename.c (rpl_rename): Update comments.
39491
39492         rename: fix cygwin 1.5.x bugs
39493         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39494         * lib/rename.c (rpl_rename): Work around them.
39495         * modules/rename (Depends-on): Add same-inode.
39496
39497         rename: fix Solaris 10 bug
39498         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39499         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39500         was the only bug.
39501
39502         rename: fix Solaris 9 bug
39503         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39504         on non-directory.  Avoid calling exit.
39505         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39506         strdup.
39507         * modules/rename-tests (Depends-on): Drop lstat.
39508         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39509         (gl_PREREQ_RENAME): Delete unused macro.
39510
39511         rename-dest-slash: fix NetBSD bug
39512         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39513         links.
39514         * modules/rename-dest-slash (Depends-on): Add same-inode.
39515
39516         rename-tests: new test, exposes several platform bugs
39517         * modules/rename-tests: New file.
39518         * tests/test-rename.h: Likewise.
39519         * tests/test-rename.c: Likewise.
39520         * doc/posix-functions/rename.texi (rename): Improve documentation,
39521         including bugs that will eventually be fixed in gnulib.
39522
39523 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39524
39525         * lib/uname.c: Include <stdlib.h>
39526         (uname): Assume version info is available.
39527
39528 2009-10-02  Jim Meyering  <meyering@redhat.com>
39529
39530         gnu-web-doc-update: correct --help output
39531         * build-aux/gnu-web-doc-update: Make --help output relevant.
39532
39533         gnu-web-doc-update: add standard options
39534         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39535
39536         gnu-web-doc-update: New module.
39537         Use this script to automatically update the on-line web documentation
39538         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39539         * modules/gnu-web-doc-update: New file, from coreutils.
39540         * build-aux/gnu-web-doc-update: New script.
39541
39542 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39543
39544         link: LoadLibrary is not needed.
39545         * lib/link.c: Use GetModuleHandle.
39546
39547 2009-10-01  Eric Blake  <ebb9@byu.net>
39548
39549         getopt: bump serial number
39550         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39551         change.
39552
39553         tests: tighten link, rmdir, and remove tests
39554         * tests/test-link.h (includes): No need to use <config.h> here.
39555         Clean up if directory hard link was created, otherwise test for
39556         trailing '.'.
39557         * tests/test-linkat.c (main): Simplify.
39558         * tests/test-remove.c (main): Enhance test for trailing '.'.
39559         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39560
39561 2009-10-01  Jim Meyering  <meyering@redhat.com>
39562
39563         maint.mk: requiring "make major" was annoying, for a "minor" release.
39564         What is intended is "stable", to contrast with alpha and beta,
39565         so require "make stable", not "make major".
39566         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39567         (get_tool_versions): Likewise.
39568         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39569
39570 2009-09-30  Ben Pfaff  <blp@gnu.org>
39571
39572         Fix broken build of replacement for Windows tmpfile().
39573         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39574         flags argument added along with the 'mkostemp' module.
39575
39576 2009-09-28  Bruno Haible  <bruno@clisp.org>
39577
39578         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39579         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39580         to 'remove_elt'.
39581         (gl_list_remove): Update.
39582         * lib/gl_list.c (gl_list_remove): Update.
39583         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39584         to 'remove_elt'.
39585         (gl_oset_remove): Update.
39586         * lib/gl_list.c (gl_oset_remove): Update.
39587         Reported by Eric Blake.
39588
39589 2009-09-28  Eric Blake  <ebb9@byu.net>
39590
39591         doc: mention yet more cygwin 1.7 status
39592         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39593         cygwin.
39594         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39595         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39596
39597         argp: fix test failure
39598         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39599         that are not upper-case.  Pass correct range to tolower.
39600
39601 2009-09-27  Jim Meyering  <meyering@redhat.com>
39602
39603         test-yesno: work around sparc-dash here-document infelicity
39604         Without this change, the literal \177 byte in a here document
39605         would make dash 0.5.5.1-3 access uninitialized memory.
39606         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39607         Instead, use a marker, "@", and filter through tr to create the desired
39608         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39609
39610 2009-09-27  Bruno Haible  <bruno@clisp.org>
39611
39612         Disable untested support for new flavours of ACLs on AIX.
39613         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39614         progress.
39615         * lib/set-mode-acl.c (qset_acl): Likewise.
39616
39617 2008-12-07  Bruno Haible  <bruno@clisp.org>
39618
39619         Add support for new flavours of ACLs on AIX. (Untested.)
39620         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39621         (file_has_acl): Add support for newer AIX.
39622         * lib/set-mode-acl.c (qset_acl): Likewise.
39623         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39624         Rainer Tammer <tammer@tammer.net>.
39625
39626 2009-09-26  Eric Blake  <ebb9@byu.net>
39627
39628         argp: fix compilation of getopt
39629         * lib/getopt.in.h (includes): Use different guard than glibc.
39630         Reported by Sergey Poznyakoff.
39631
39632         doc: mention more cygwin 1.7 status
39633         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39634         bug.
39635         * doc/posix-functions/execl.texi (execl): Likewise.
39636         * doc/posix-functions/execle.texi (execle): Likewise.
39637         * doc/posix-functions/execlp.texi (execlp): Likewise.
39638         * doc/posix-functions/execv.texi (execv): Likewise.
39639         * doc/posix-functions/execve.texi (execve): Likewise.
39640         * doc/posix-functions/execvp.texi (execvp): Likewise.
39641         * doc/glibc-functions/canonicalize_file_name.texi
39642         (canonicalize_file_name): Cygwin 1.7 now provides this.
39643         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39644         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39645         on AT_SYMLINK_NOFOLLOW.
39646
39647 2009-09-24  Eric Blake  <ebb9@byu.net>
39648
39649         test-linkat: make test more robust
39650         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39651
39652         getopt: fix inclusion guards for cygwin
39653         * modules/getopt-posix (Depends-on): Add include-next.
39654         (Makefile.am): Substitute more items in replacement header.
39655         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39656         <getopt.h>.
39657         * lib/getopt.in.h (includes): Use split inclusion guard, and
39658         prefer <getopt.h> over include <unistd.h> when one is present.
39659         (option): Also override name of 'struct option'.
39660
39661         same-inode: revert prior change; it is not yet ready
39662         * NEWS: Undo mention of this change.
39663         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39664         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39665         * lib/cycle-check.c (cycle_check): Likewise.
39666         * lib/same.c (same_name): Likewise.
39667         * lib/at-func2.c (at_func2): Likewise.
39668
39669 2009-09-23  Eric Blake  <ebb9@byu.net>
39670
39671         linkat: new module
39672         * modules/linkat: New file.
39673         * lib/at-func2.c (at_func2): Likewise.
39674         * lib/linkat.c (linkat): Likewise.
39675         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39676         * lib/openat-priv.h (at_func2): Add declaration.
39677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39678         * modules/unistd (Makefile.am): Substitute them.
39679         * lib/unistd.in.h (linkat): Declare it.
39680         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39681         * doc/posix-functions/linkat.texi (linkat): Likewise.
39682         * doc/posix-functions/link.texi (link): Tweak wording.
39683         * tests/test-link.c (main): Move guts...
39684         * tests/test-link.h (test_link): ...into new file.
39685         * modules/linkat-tests: New test.
39686         * tests/test-linkat.c: Likewise.
39687         * modules/link-tests (Files): Ship new file.
39688         (Depends-on): Add stdbool.
39689
39690         dirname: add library-safe mdir_name
39691         * lib/dirname.h (mdir_name): New prototype.
39692         * lib/dirname.c (dir_name): Move guts...
39693         (mdir_name): ...to new function that avoids xalloc_die.
39694
39695         fchdir: another mingw fix
39696         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39697         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39698         on mingw (where it has not yet been ported), and make it optional
39699         elsewhere.
39700         (_gl_register_fd): Use it.
39701
39702         same-inode: make SAME_INODE tri-state, to port to mingw
39703         * NEWS: Mention this change.
39704         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39705         st_ino always being 0.
39706         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39707         * lib/cycle-check.c (cycle_check): Likewise.
39708         * lib/same.c (same_name): Likewise.
39709
39710         lstat: avoid mingw compilation error
39711         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39712         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39713         lstat ourselves.
39714         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39715         was adequate.
39716         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39717         the checks for lstat.
39718         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39719
39720         link: fix test failure on Solaris 9
39721         * lib/link.c (rpl_link): Don't assume link will catch bogus
39722         trailing slash on source.
39723
39724         test-symlinkat: enhance test
39725         * tests/test-readlink.c (main): Move guts...
39726         * tests/test-readlink.h (test_readlink): ...into new file.
39727         * tests/test-symlink.c (main): Move guts...
39728         * tests/test-symlink.h (test_symlink): ...into new file.
39729         * tests/test-symlinkat.c (main): Use new files for further
39730         coverage.
39731         (do_symlink, do_readlink): New helper functions.
39732         * modules/symlink-tests (Files): Ship new file.
39733         (Depends-on): Add stdbool.
39734         * modules/readlink-tests (Files): Ship new file.
39735         (Depends-on): Add stdbool.
39736         * modules/symlinkat-tests (Files): Use new files.
39737
39738 2009-09-23  Eric Blake  <ebb9@byu.net>
39739
39740         readlink: document portability issue with symlink length
39741         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39742         systems have bogus st_size on symlinks, and mention the
39743         areadlink-with-size module.
39744         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39745         * doc/posix-functions/readlink.texi (readlink): Mention the
39746         areadlink module, and ERANGE failure.
39747         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39748         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39749
39750         readlink: fix Solaris 9 bug with trailing slash
39751         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39752         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39753         * doc/posix-functions/readlink.texi (readlink): Document this.
39754         * modules/readlink-tests: New test.
39755         * tests/test-readlink.c: Likewise.
39756
39757         readlink: fix cygwin 1.5.x bug with return type
39758         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39759         * lib/unistd.in.h (readlink): Use ssize_t.
39760         * lib/readlink.c (readlink): Likewise.
39761         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39762         * modules/unistd (Makefile.am): Substitute it.
39763         * lib/unistd.in.h (readlink): Declare replacement.
39764         * doc/posix-functions/readlink.texi (readlink): Document this.
39765
39766         symlink: use throughout gnulib
39767         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39768         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39769         symlink is not used.
39770         * modules/symlinkat (Depends-on): Add symlink.
39771         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39772         * modules/canonicalize-tests (Depends-on): Likewise.
39773         * modules/lstat-tests (Depends-on): Likewise.
39774         * modules/openat-tests (Depends-on): Likewise.
39775         * modules/remove-tests (Depends-on): Likewise.
39776         * modules/rmdir-tests (Depends-on): Likewise.
39777         * modules/unlink-tests (Depends-on): Likewise.
39778         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39779         * tests/test-canonicalize.c (symlink): Likewise.
39780         * tests/test-fstatat.c (symlink): Likewise.
39781         * tests/test-lstat.c (symlink): Likewise.
39782         * tests/test-remove.c (symlink): Likewise.
39783         * tests/test-rmdir.c (symlink): Likewise.
39784         * tests/test-unlink.c (symlink): Likewise.
39785         * tests/test-unlinkat.c (symlink): Likewise.
39786
39787         symlink: new module, for Solaris 9 bug
39788         * modules/symlink: New file.
39789         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39790         * lib/symlink.c: Likewise.
39791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39792         * modules/unistd (Makefile.am): Substitute them.
39793         * lib/unistd.in.h (symlink): Declare replacement.
39794         * MODULES.html.sh (File system functions): Mention it.
39795         * doc/posix-functions/symlink.texi (symlink): Likewise.
39796         * modules/symlink-tests: New test.
39797         * tests/test-symlink.c: Likewise.
39798
39799 2009-09-23  Bruno Haible  <bruno@clisp.org>
39800
39801         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39802         when needed.
39803         Test case: gnulib-tool --import --with-tests atexit inttypes.
39804         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39805
39806 2009-09-23  Bruno Haible  <bruno@clisp.org>
39807
39808         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39809         subcommand, not in a subshell.
39810
39811 2009-09-22  Eric Blake  <ebb9@byu.net>
39812
39813         unistd: sort replacement declarations
39814         * lib/unistd.in.h: Sort declarations.
39815
39816         open, openat: minor optimization
39817         * lib/open.c (open): If open succeeded, len is non-zero.
39818         * lib/openat.c (rpl_openat): Likewise.
39819
39820         link-follow: ensure correct result
39821         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39822         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39823         distinguish between possible failures.
39824
39825 2009-09-21  Eric Blake  <ebb9@byu.net>
39826
39827         fts: avoid compiler warning
39828         * lib/fts.c (dirent_inode_sort_may_be_useful)
39829         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
39830
39831 2009-09-19  Bruno Haible  <bruno@clisp.org>
39832
39833         * lib/progreloc.c (canonicalize_file_name): New declaration.
39834
39835 2009-09-19  Eric Blake  <ebb9@byu.net>
39836
39837         link: fix quoting
39838         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
39839
39840         openat: fix openat bugs on Solaris 9
39841         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
39842         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
39843         * modules/openat (Depends-on): Add open.
39844         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
39845         * modules/fcntl-h (Makefile.am): Substitute it.
39846         * lib/fcntl.in.h (openat): Declare replacement.
39847         * doc/posix-functions/openat.texi (openat): Document this.
39848
39849         openat: move fstatat and unlinkat into correct files
39850         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
39851         compiled.
39852         * lib/openat.c (fstatat, unlinkat): Move...
39853         * lib/fstatat.c (fstatat): ...into correct files.
39854         * lib/unlinkat.c (unlinkat): Likewise.
39855
39856         openat: fix unlinkat bugs on Solaris 9
39857         * lib/unlinkat.c (unlinkat): New file.
39858         * modules/openat (Depends-on): Add unlink.
39859         (Files): Distribute it.
39860         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
39861         trailing slash behavior is broken.
39862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39863         * modules/unistd (Makefile.am): Substitute it.
39864         * lib/unistd.in.h (unlinkat): Declare replacement.
39865         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
39866
39867         openat: fix fstatat bugs on Solaris 9
39868         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
39869         stat.
39870         * doc/posix-functions/fstatat.texi (fstatat): Document this.
39871
39872         test-unlinkat: enhance test, to expose Solaris 9 bug
39873         * tests/test-unlink.c (main): Factor guts...
39874         * tests/test-unlink.h (test_rmdir_func): ...into new file.
39875         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
39876         * tests/test-rmdir.c (main): Adjust caller.
39877         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
39878         (unlinker): New helper function.
39879         (rmdirat): Enhance check.
39880         * modules/rmdir-tests (Depends-on): Add stdbool.
39881         * modules/unlink-tests (Depends-on): Likewise.
39882         (Files): Add test-unlink.h.
39883         * modules/openat-tests (Files): Likewise.
39884         (Depends-on): Add unlinkdir.
39885
39886         test-fstatat: new test, to expose Solaris 9 bugs
39887         * tests/test-stat.c (main): Factor guts...
39888         * tests/test-stat.h (test_stat_func): ...into new file.
39889         * tests/test-lstat.c (main): Factor guts...
39890         * tests/test-lstat.h (test_lstat_func): ...into new file.
39891         * tests/test-fstatat.c: New file.
39892         * modules/stat-tests (Files): Add test-stat.h.
39893         * modules/lstat-tests (Files): Add test-lstat.h.
39894         (Depends-on): Add stdbool.
39895         * modules/openat-tests (Depends-on): Add pathmax.
39896         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
39897         (Makefile.am): Run new test.
39898
39899         remove: new module, for mingw and Solaris 9 bugs
39900         * modules/remove: New file.
39901         * lib/remove.c: Likewise.
39902         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
39903         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39904         * modules/stdio (Makefile.am): Use them.
39905         * lib/stdio.in.h (remove): Declare replacement.
39906         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39907         * doc/posix-functions/remove.texi (remove): Likewise.
39908         * modules/remove-tests: New test.
39909         * tests/test-remove.c: Likewise.
39910
39911         unlink: new module, for Solaris 9 bug
39912         * modules/unlink: New file.
39913         * lib/unlink.c: Likewise.
39914         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39916         * modules/unistd (Makefile.am): Use them.
39917         * lib/unistd.in.h (stat): Declare replacement.
39918         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39919         * doc/posix-functions/unlink.texi (unlink): Likewise.
39920         * modules/unlink-tests: New test.
39921         * tests/test-unlink.c: Likewise.
39922
39923         lstat: fix Solaris 9 bug
39924         * lib/lstat.c (lstat): Also check for trailing slash on
39925         non-symlink, non-directories.  Use stat module to simplify logic.
39926         * doc/posix-functions/lstat.texi (lstat): Document it.
39927         * modules/lstat-tests (Depends-on): Add errno, same-inode.
39928         (configure.ac): Check for symlink.
39929         * tests/test-lstat.c (main): Add more tests.
39930
39931         stat: add as dependency to other modules
39932         * modules/chown (Depends-on): Add stat.
39933         * modules/euidaccess (Depends-on): Likewise.
39934         * modules/fchdir (Depends-on): Likewise.
39935         * modules/isdir (Depends-on): Likewise.
39936         * modules/link (Depends-on): Likewise.
39937         * modules/lstat (Depends-on): Likewise.
39938         * modules/mkdir-p (Depends-on): Likewise.
39939         * modules/modechange (Depends-on): Likewise.
39940         * modules/open (Depends-on): Likewise.
39941         * modules/readlink (Depends-on): Likewise.
39942         * modules/same (Depends-on): Likewise.
39943
39944         stat: fix Solaris 9 bug
39945         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
39946         slash.
39947         * lib/stat.c (rpl_stat): Work around it.
39948         * doc/posix-functions/stat.texi (stat): Update documentation.
39949
39950         stat: new module, for mingw bug
39951         * modules/stat: New file.
39952         * lib/stat.c: Likewise.
39953         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39955         * modules/sys_stat (Makefile.am): Use them.
39956         * lib/sys_stat.in.h (stat): Declare replacement.
39957         * lib/openat.c (fstatat): Deal with lstat and stat being function
39958         macros.
39959         * modules/openat (Depends-on): Add inline.
39960         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39961         * doc/posix-functions/stat.texi (stat): Likewise.
39962         * modules/stat-tests: New test.
39963         * tests/test-stat.c: Likewise.
39964
39965 2009-09-19  Jim Meyering  <meyering@redhat.com>
39966
39967         syntax-check: detect unnecessary inclusion of canonicalize.h
39968         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
39969
39970 2009-09-19  Eric Blake  <ebb9@byu.net>
39971
39972         canonicalize-lgpl: adjust clients to use correct header
39973         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39974         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
39975         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
39976         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
39977         * lib/progreloc.c (includes): Likewise.
39978
39979 2009-09-19  Jim Meyering  <meyering@redhat.com>
39980
39981         test-posixtm.c: correct a comment
39982         * tests/test-posixtm.c: Correct first-line comment.
39983         Spotted by Eric Blake.
39984
39985 2009-09-16  Jim Meyering  <meyering@redhat.com>
39986
39987         posixtm-tests: make T const-correct; add a test case
39988         * tests/test-posixtm.c (T): Declare const.
39989         Add a test for -(2^31+1).
39990         Remove useless can-succeed-only-in-2002 test.
39991
39992         posixtm-tests: adjust the sole failing test
39993         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
39994         expected output matches what mktime now produces.  Cross-checked via
39995         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
39996
39997         posixtm: move #ifdef'd tests into a new module
39998         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
39999         * tests/test-posixtm.c: ... this new file.
40000         * modules/posixtm-tests: New module.
40001
40002 2009-09-19  Eric Blake  <ebb9@byu.net>
40003
40004         openat: simplify use of at-func.c
40005         * lib/at-func.c (includes): Include prerequisites here, to
40006         simplify requirements on client files.
40007         * lib/openat-priv.h: Add double-inclusion guard.
40008         * lib/faccessat.c (includes): Simplify.
40009         * lib/fchmodat.c (includes): Likewise.
40010         * lib/fchownat.c (includes): Likewise.
40011         * lib/mkdirat.c (includes): Likewise.
40012         * lib/mkfifoat.c (includes): Likewise.
40013         * lib/symlinkat.c (includes): Likewise.
40014
40015         openat: allow return of fd 0
40016         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40017         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40018         unistd-safer.
40019         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40020         <fcntl.h>; this module does not leak fds.
40021         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40022         must be allowed to return 0, leaving openat_safer to add the
40023         safety.
40024         (openat_permissive): Avoid writing to just-opened fd 2 if
40025         restoring the current directory fails.
40026         * lib/openat-die.c (openat_restore_fail): Add comment.
40027         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40028         (save_cwd): Guarantee safe fd, but without use of open_safer.
40029         * tests/test-openat.c: New test.
40030         * modules/openat-tests (Files, Makefile.am): Distribute and build
40031         new file.
40032
40033         relocatable-prog-wrapper: fix build
40034         * modules/relocatable-prog-wrapper (Files): Update name of
40035         canonicalize m4 file, broken on 2009-09-17.
40036         Reported by emad hajjar <aleppos@hotmail.com>.
40037
40038 2009-09-19  Bruno Haible  <bruno@clisp.org>
40039
40040         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40041         * lib/safe-alloc.c: Likewise.
40042         Reported by Ian Beckwith <ianb@erislabs.net>.
40043
40044 2009-09-18  Bruno Haible  <bruno@clisp.org>
40045
40046         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40047         Reported by <erobles@sensacd.com.mx>.
40048
40049 2009-09-17  Eric Blake  <ebb9@byu.net>
40050
40051         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40052         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40053         slashes when checking if last component is missing.
40054         * tests/test-canonicalize.c (main): Test this.
40055
40056         canonicalize, canonicalize-lgpl: honor // if distinct from /
40057         * modules/canonicalize (Files): Add double-slash-root.m4.
40058         * modules/canonicalize-lgpl (Files): Likewise.
40059         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40060         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40061         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40062         fallback definition.
40063         (canonicalize_filename_mode): Use it to protect //.
40064         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40065         (__realpath): Likewise.
40066         * tests/test-canonicalize.c (main): Test this.
40067         * tests/test-canonicalize-lgpl.c (main): Likewise.
40068         * modules/canonicalize-tests (Depends-on): Add same-inode.
40069         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40070
40071         canonicalize-lgpl: fix glibc bug with trailing slash
40072         * m4/canonicalize-lgpl.m4: Move contents...
40073         * m4/canonicalize.m4: ...here.
40074         (gl_CANONICALIZE_LGPL): Factor realpath check...
40075         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40076         glibc 2.3.5 bug, fixed 2005-04-27.
40077         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40078         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40079         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40080         * modules/canonicalize-lgpl (Files): Manage file rename.
40081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40082         * modules/stdlib (Makefile.am): Substitute witness.
40083         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40084         is needed.
40085         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40086         replacement is required.
40087         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40088         * doc/glibc-functions/canonicalize_file_name.texi
40089         (canonicalize_file_name): Document this.
40090         * doc/posix-functions/realpath.texi (realpath): Likewise.
40091
40092         canonicalize-lgpl: reject non-directory with trailing slash
40093         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40094         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40095         catches failures in glibc 2.3.5.
40096         * tests/test-canonicalize.c (main): Likewise.
40097
40098         canonicalize-lgpl: use native realpath if it works
40099         * lib/canonicalize-lgpl.c (realpath): Guard with
40100         FUNC_REALPATH_WORKS.
40101         * lib/stdlib.in.h (realpath): Make declaration optional based on
40102         HAVE_REALPATH.
40103         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40104         native realpath works.
40105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40106         * modules/stdlib (Makefile.am): Substitute witness.
40107
40108         canonicalize, canonicalize-lgpl: use <stdlib.h>
40109         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40110         (Include): Mention <stdlib.h>.
40111         (configure.ac): Mention functions we provide.
40112         * modules/canonicalize (configure.ac): Likewise.
40113         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40114         realpath if canonicalize_file_name is missing.
40115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40116         * modules/stdlib (Makefile.am): Substitute witnesses.
40117         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40118         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40119         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40120         * NEWS: Document this.
40121         * doc/glibc-functions/canonicalize_file_name.texi
40122         (canonicalize_file_name): Likewise.
40123         * doc/posix-functions/realpath.texi (realpath): Likewise.
40124         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40125
40126         test-canonicalize: consolidate into single C program
40127         * tests/test-canonicalize.sh: Delete; move setup into...
40128         * tests/test-canonicalize.c (main): ...the program, making it
40129         easier to run in debugger.  Add some tests.
40130         * modules/canonicalize-tests (Files): Remove unused file.
40131         (Depends-on): Add progname.
40132         (configure.ac, Makefile.am): Simplify.
40133
40134         test-canonicalize-lgpl: consolidate into single C program
40135         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40136         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40137         easier to run in debugger.  Add some tests.
40138         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40139         (configure.ac, Makefile.am): Simplify.
40140
40141         canonicalize: avoid resolvepath
40142         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40143         unnecessary checks.
40144         * lib/canonicalize.c (includes): Simplify.
40145         (canonicalize_file_name): Drop resolvepath implementation.
40146         * modules/canonicalize (Depends-on): Drop filenamecat.
40147
40148         canonicalize: don't lose errno
40149         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40150         over calls to free.
40151
40152         canonicalize: simplify errno handling
40153         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40154         assignment.
40155
40156         canonicalize, canonicalize-lgpl: update module dependencies
40157         * modules/canonicalize (Depends-on): Add extensions, lstat,
40158         pathmax, stdlib.
40159         (Files): Drop pathmax.h.
40160         (configure.ac): Adjust macro name.
40161         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40162         lstat, stdlib, sys_stat.
40163         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40164         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40165         extensions.
40166         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40167         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40168         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40169         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40170         declaration, if available.
40171         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40172         we can rely on the readlink module.
40173         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40174         (includes): Use <unistd.h> unconditionally.
40175
40176 2009-09-17  Eric Blake  <ebb9@byu.net>
40177
40178         maint: make Include sections of modules consistent
40179         * modules/alloca: Use only header name; no need to list #include.
40180         * modules/alloca-opt: Likewise.
40181         * modules/arpa_inet: Likewise.
40182         * modules/canon-host: Likewise.
40183         * modules/configmake: Likewise.
40184         * modules/dirent: Likewise.
40185         * modules/eealloc: Likewise.
40186         * modules/environ: Likewise.
40187         * modules/fchdir: Likewise.
40188         * modules/fcntl: Likewise.
40189         * modules/fcntl-h: Likewise.
40190         * modules/gethrxtime: Likewise.
40191         * modules/gettime: Likewise.
40192         * modules/ignore-value: Likewise.
40193         * modules/inet_ntop: Likewise.
40194         * modules/inet_pton: Likewise.
40195         * modules/inttypes: Likewise.
40196         * modules/isnand-nolibm: Likewise.
40197         * modules/isnanf-nolibm: Likewise.
40198         * modules/mbchar: Likewise.
40199         * modules/mbfile: Likewise.
40200         * modules/mbiter: Likewise.
40201         * modules/mbuiter: Likewise.
40202         * modules/netdb: Likewise.
40203         * modules/netinet_in: Likewise.
40204         * modules/nproc: Likewise.
40205         * modules/pagealign_alloc: Likewise.
40206         * modules/poll: Likewise.
40207         * modules/printf-frexp: Likewise.
40208         * modules/pthread: Likewise.
40209         * modules/putenv: Likewise.
40210         * modules/random_r: Likewise.
40211         * modules/relocatable-prog: Likewise.
40212         * modules/search: Likewise.
40213         * modules/select: Likewise.
40214         * modules/selinux-h: Likewise.
40215         * modules/settime: Likewise.
40216         * modules/signal: Likewise.
40217         * modules/size_max: Likewise.
40218         * modules/socklen: Likewise.
40219         * modules/ssize_t: Likewise.
40220         * modules/stdarg: Likewise.
40221         * modules/stdbool: Likewise.
40222         * modules/stddef: Likewise.
40223         * modules/stdint: Likewise.
40224         * modules/stdio: Likewise.
40225         * modules/stdlib: Likewise.
40226         * modules/string: Likewise.
40227         * modules/strings: Likewise.
40228         * modules/sys_file: Likewise.
40229         * modules/sys_ioctl: Likewise.
40230         * modules/sys_select: Likewise.
40231         * modules/sys_socket: Likewise.
40232         * modules/sys_stat: Likewise.
40233         * modules/sys_time: Likewise.
40234         * modules/sys_times: Likewise.
40235         * modules/sys_utsname: Likewise.
40236         * modules/sys_wait: Likewise.
40237         * modules/sysexits: Likewise.
40238         * modules/time: Likewise.
40239         * modules/times: Likewise.
40240         * modules/tmpfile: Likewise.
40241         * modules/trim: Likewise.
40242         * modules/unistd: Likewise.
40243         * modules/wchar: Likewise.
40244         * modules/wctype: Likewise.
40245
40246 2009-09-17  Bruno Haible  <bruno@clisp.org>
40247
40248         Make getdate.y compile on QNX and NetBSD 5 / i386.
40249         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40250         TIME_T_FITS_IN_LONG_INT.
40251         * lib/getdate.y (long_time_t): New type.
40252         (relative_time): Change type of 'seconds' field to long_time_t.
40253         (get_date): Update types of local variables. Check against overflow
40254         during conversion from long_time_t to time_t.
40255         Reported by Matt Kraai <kraai@ftbfs.org>
40256         and Hasso Tepper <hasso@netbsd.org>.
40257
40258 2009-09-17  Bruno Haible  <bruno@clisp.org>
40259
40260         * modules/COPYING: Update copyright years.
40261         * modules/README: Likeiwse.
40262         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40263         Reported by Ian Beckwith <ianb@erislabs.net>.
40264
40265 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40266
40267         * users.txt: Update references for gnuit package.
40268
40269 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40270
40271         * m4/getdelim.m4: Fix typo in copyright line.
40272
40273 2009-09-17  Bruno Haible  <bruno@clisp.org>
40274
40275         * lib/atoll.c: Use the standard header with GPL copyright.
40276         * lib/argz.in.h: Likewise.
40277         * lib/glob.c: Likewise.
40278         * lib/glob-libc.h: Likewise.
40279         * lib/random_r.c: Likewise.
40280         * lib/siglist.h: Likewise.
40281         * lib/strsignal.c: Likewise.
40282         Reported by Ian Beckwith <ianb@erislabs.net>.
40283
40284 2009-09-17  Eric Blake  <ebb9@byu.net>
40285
40286         rmdir: ensure correct dependency order
40287         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40288
40289 2009-09-17  Bruno Haible  <bruno@clisp.org>
40290
40291         Disable assertion that fails on NetBSD 5 / i386.
40292         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40293         Reported by Sam Steingold <sds@gnu.org>
40294         and Hasso Tepper <hasso@netbsd.org>.
40295
40296 2009-09-16  Eric Blake  <ebb9@byu.net>
40297
40298         unlinkdir: port to mingw
40299         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40300         on which no one can unlink a directory.
40301
40302         stdlib: sort witness names
40303         * modules/stdlib (Makefile.am): Sort replacements.
40304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40305         * lib/stdlib.in.h: Likewise.
40306
40307         parse-duration-tests: avoid link failure
40308         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40309         LIBINTL.
40310         Reported by Tom G. Christensen.
40311
40312         openat-tests: ensure unlinkat behaves like rmdir
40313         * tests/test-rmdir.c (main): Factor guts...
40314         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40315         * modules/rmdir-tests (Files): Ship new file.
40316         * modules/openat-tests: New test.
40317         * tests/test-unlinkat.c: Likewise.
40318
40319         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40320         * modules/rmdir-errno (Status, Notice): Now obsolete.
40321
40322         rmdir: work around cygwin 1.5.x and mingw bugs
40323         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40324         * lib/rmdir.c (rmdir): Work around it.
40325         * modules/rmdir (Status, Notice): No longer obsolete.
40326         (Files): Add dos.m4.
40327         (Depends-on): Add unistd.
40328         (configure.ac): Set witnesses.
40329         (License): Relax to LGPLv2+.
40330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40331         * modules/unistd (Makefile.am): Substitute witnesses.
40332         * lib/unistd.in.h (rmdir): Declare replacement.
40333         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40334         * modules/rmdir-tests: New tests.
40335         * tests/test-rmdir.c: Likewise.
40336
40337 2009-09-15  Eric Blake  <ebb9@byu.net>
40338
40339         fchdir: improve use of replacement functions
40340         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40341         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40342         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40343         REPLACE_CLOSEDIR.
40344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40345         * modules/sys_stat (Makefile.am): Substitute correct witness.
40346         * modules/dirent (Makefile.am): Likewise.
40347         * modules/unistd (Makefile.am): Likewise.
40348         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40349         * lib/unistd.in.h (dup): Likewise.
40350         * lib/sys_stat.in.h (fstat): Likewise.
40351
40352         maint: ignore gnulib-tool temp files
40353         * .gitignore: Ignore files created during gnulib-tool --test.
40354
40355 2009-09-13  Jim Meyering  <meyering@redhat.com>
40356
40357         posixtm: don't reject a time that specify "60" as the number of seconds
40358         * lib/posixtm.c (posixtime): The code to reject invalid dates
40359         would also reject a time specified with the .60 suffix.
40360         But POSIX allows that, in order to accommodate leap seconds.
40361         So don't reject it.
40362         (main): Adjust tests accordingly.
40363         * modules/posixtm (Depends-on): Add stpcpy.
40364
40365 2009-09-11  Jim Meyering  <meyering@redhat.com>
40366
40367         announce-gen: include [$release_type] in emitted Subject:
40368         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40369         e.g., [stable] in the emitted Subject: line.
40370
40371 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40372
40373         Remove obsolete macros from several modules.
40374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40375         obsolete Autoconf macros with their modern counterparts.
40376         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40377         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40378         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40379         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40380         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40381         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40382         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40383         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40384         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40385         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40386         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40387         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40388         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40389         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40390         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40391         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40392         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40393         * m4/time_r.m4 (gl_TIME_R): Likewise.
40394         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40395         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40396         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40397
40398         Fix copyright header in build-aux scripts.
40399         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40400         recommendation.
40401         * build-aux/ncftpput-ftp: Likewise.
40402         * build-aux/update-copyright: Likewise.
40403
40404 2009-09-09  Eric Blake  <ebb9@byu.net>
40405
40406         test-link: allow Linux choice of errno
40407         * tests/test-link.c (main): Relax test for alternate error.
40408
40409         strndup: fix improper m4 caching
40410         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40411         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40412         (gl_PREREQ_STRNDUP): Delete.
40413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40414         * modules/string (Makefile.am): Substitute it.
40415         * lib/string.in.h (strndup): Modernize prototype.
40416
40417         getcwd: port to mingw
40418         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40419         different from the POSIX assumptions made throughout the getcwd
40420         module; fortunately, the mingw getcwd does not need replacement.
40421         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40422         * modules/getcwd-tests: New test.
40423         * tests/test-getcwd.c: Likewise.
40424
40425         link: fix platform bugs
40426         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40427         * lib/link.c (link): Work around them.  Fix related mingw bug.
40428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40429         * modules/unistd (Makefile.am): Substitute it.
40430         * lib/unistd.in.h (link): Declare replacement.
40431         * doc/posix-functions/link.texi (link): Document this.
40432         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40433
40434         test-link: consolidate into single C program, test more cases
40435         * tests/test-link.sh: Delete.
40436         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40437         at least Cygwin and Solaris.
40438         * modules/link-tests (Files): Remove unused file.
40439         (Depends-on): Add errno, sys_stat.
40440         (Makefile.am): Simplify.
40441
40442 2009-09-08  Bruno Haible  <bruno@clisp.org>
40443
40444         Work around towlower, towupper bug on mingw.
40445         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40446         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40447         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40448         * doc/posix-functions/towupper.texi: Likewise.
40449         Reported by Eric Blake.
40450
40451 2009-09-08  Jim Meyering  <meyering@redhat.com>
40452
40453         build: don't try to run autoheader if we don't use it
40454         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40455         is not used in configure.ac.
40456
40457 2009-09-08  Eric Blake  <ebb9@byu.net>
40458
40459         euidaccess: fix compilation error
40460         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40461
40462         rawmemchr: relax license
40463         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40464         okay.
40465         Reported by Jim Meyering.
40466
40467         mkfifoat: new module
40468         * modules/mkfifoat: New file.
40469         * lib/mkfifoat.c: Likewise.
40470         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40471         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40472         * modules/sys_stat (Makefile.am): Use them.
40473         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40474         * MODULES.html.sh (File system functions): Mention module.
40475         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40476         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40477         * modules/mkfifoat-tests: New test.
40478         * tests/test-mkfifoat.c: Likewise.
40479
40480         strchrnul: relax license
40481         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40482         okay.
40483         Reported by Jim Meyering.
40484
40485 2009-09-08  Eric Blake  <ebb9@byu.net>
40486
40487         fstatat: fix compilation on Solaris
40488         * lib/fstatat.c (includes): Add fcntl.h.
40489         Reported by Pádraig Brady.
40490
40491 2009-09-07  Eric Blake  <ebb9@byu.net>
40492
40493         rename: modernize replacement
40494         * modules/rename (Depends-on): Add stdio.
40495         (configure.ac): Declare witness.
40496         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40497         stdio take care of replacement.
40498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40499         * modules/stdio (Makefile.am): Substitute them.
40500         * lib/stdio.in.h (rename): Declare replacement.
40501         * lib/rename.c (includes): Allow cross-compilation to non-windows
40502         machines.
40503         * doc/posix-functions/rename.texi (rename): Improve
40504         documentation.
40505
40506         stdio: sort witness names
40507         * modules/stdio (Makefile.am): Sort replacements.
40508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40509         * lib/stdio.in.h: Likewise.
40510
40511         getcwd: minor cleanups
40512         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40513         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40514
40515         openat: provide more convenience names
40516         * modules/faccessat (configure.ac): Add C witness.
40517         * lib/unistd.in.h (readlinkat): Fix typo.
40518         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40519         convenience wrappers.
40520         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40521         wrappers in syntax checks.
40522
40523 2009-09-06  Eric Blake  <ebb9@byu.net>
40524
40525         doc: fix comments in recent patches
40526         * lib/faccessat.c: Mention correct function.
40527         * lib/fchmodat.c: Likewise.
40528         * lib/fchownat.c: Likewise.
40529         * lib/symlinkat.c: Likewise.
40530         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40531         constants.
40532
40533         faccessat, symlinkat: continue cleanup of previous patch
40534         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40535         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40536         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40537         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40538         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40539         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40540         set.
40541
40542 2009-09-06  Bruno Haible  <bruno@clisp.org>
40543
40544         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40545         (fstatat): Declare if GNULIB_FSTATAT is set.
40546         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40547         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40548         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40549         * modules/fcntl-h (Files): Remove m4/openat.m4.
40550         * modules/sys_stat (Files): Remove m4/openat.m4.
40551         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40552         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40553         * modules/unistd (Files): Remove m4/openat.m4.
40554         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40555         GNULIB_OPENAT.
40556         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40557         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40558         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40559         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40560         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40561         gl_OPENAT_DEFAULTS.
40562         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40563         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40564         Don't require gl_OPENAT_DEFAULTS.
40565         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40566         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40567         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40568         (gl_OPENAT_DEFAULTS): Remove macro.
40569
40570 2009-09-06  Bruno Haible  <bruno@clisp.org>
40571
40572         * modules/openat (configure.ac): Remove unneeded witness.
40573
40574 2009-09-06  Bruno Haible  <bruno@clisp.org>
40575
40576         Set errno to ENOSYS when a function is entirely unsupported.
40577         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40578         EOPNOTSUPP.
40579         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40580         * modules/chown (Depends-on): Remove errno.
40581
40582 2009-09-06  Bruno Haible  <bruno@clisp.org>
40583
40584         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40585
40586 2009-09-06  Bruno Haible  <bruno@clisp.org>
40587
40588         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40589
40590 2009-09-06  Ben Pfaff  <blp@gnu.org>
40591             Bruno Haible  <bruno@clisp.org>
40592
40593         Work around a glibc bug in strtok_r.
40594         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40595         Undefine if UNDEFINE_STRTOK_R is set.
40596         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40597         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40598         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40599         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40600         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40601         UNDEFINE_STRTOK_R.
40602         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40603
40604 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40605
40606         exclude: minor fix
40607         * lib/exclude.c: Include wctype.h
40608
40609 2009-09-06  Akim Demaille  <demaille@gostai.com>
40610
40611         bootstrap: improve error message
40612         * build-aux/bootstrap (find_tool): Upon failure, report the list
40613         of candidates.
40614         Honor the initial value of the envvar.
40615
40616 2009-09-05  Eric Blake  <ebb9@byu.net>
40617
40618         symlinkat: new module
40619         * modules/symlinkat: New file.
40620         * lib/symlinkat.c: Likewise.
40621         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40623         * modules/unistd (Makefile.am): Use them.
40624         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40625         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40626         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40627         * MODULES.html.sh (File system functions): Mention module.
40628         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40629         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40630         * modules/symlinkat-tests: New test.
40631         * tests/test-symlinkat.c: Likewise.
40632
40633         test-openat-safer: add more checks
40634         * tests/test-openat-safer.c (main): Check more code paths.
40635
40636 2009-09-05  Jim Meyering  <meyering@redhat.com>
40637
40638         syntax-check: detect unnecessary inclusion of openat.h
40639         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40640
40641 2009-09-05  Bruno Haible  <bruno@clisp.org>
40642
40643         Support towlower, towupper.
40644         * doc/posix-functions/towlower.texi: Mention module wctype.
40645         * doc/posix-functions/towupper.texi: Likewise.
40646         * lib/wctype.in.h (towlower, towupper): New functions.
40647         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40648         (ASSERT): New macro.
40649         (e): New variable.
40650         (main): Test also towlower, towupper. Test WEOF argument.
40651         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40652
40653 2009-09-05  Bruno Haible  <bruno@clisp.org>
40654
40655         Fix conversion behaviour when the input is invalid.
40656         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40657         mark occurring in first pass of indirect conversion.
40658         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40659         input.
40660         Found by clang's static analyzer.
40661
40662 2009-09-05  Bruno Haible  <bruno@clisp.org>
40663
40664         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40665         where direct conversion is possible.
40666
40667 2009-09-04  Eric Blake  <ebb9@byu.net>
40668
40669         openat: fail with ENOENT on empty name
40670         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40671         buffer.
40672
40673         link-follow: fix logic bug in prior patch
40674         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40675         reversed sense of yes and no in prior patch.  Avoid confusing
40676         compilation failure with desired semantics.
40677
40678         link-follow: accomodate mingw and cross-compilation
40679         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40680         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40681         cross-compilation results to -1, to make linkat easier to
40682         implement when cross-compiling.  Trivially support mingw.
40683         * modules/link-follow (configure.ac): Call new name.
40684         * NEWS: Mention this.
40685
40686 2009-09-03  Eric Blake  <ebb9@byu.net>
40687
40688         faccessat: compile replacement
40689         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40690         needed.
40691
40692         fts: fix compilation error
40693         * lib/fts.c (includes): Re-add "openat.h", for
40694         openat_needs_fchdir.
40695
40696         faccessat: new module
40697         * modules/faccessat: New file.
40698         * lib/faccessat.c: Likewise.
40699         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40701         * modules/unistd (Makefile.am): Use it.
40702         * lib/unistd.in.h (faccessat): Declare it.
40703         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40704         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40705         * MODULES.html.sh (File system functions): Mention it.
40706         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40707         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40708
40709         euidaccess: prefer POSIX over non-standard implementation
40710         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40711         * lib/euidaccess.c (euidaccess): Use it if available.
40712
40713         openat: make template easier to use
40714         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40715         AT_FUNC_F2 to be undefined.
40716         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40717         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40718         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40719         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40720         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40721         Likewise.
40722         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40723         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40724         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40725         Likewise.
40726
40727         openat: declare in POSIX headers
40728         * NEWS: Mention this.
40729         * modules/openat (configure.ac): Declare witnesses.
40730         (Depends-on): Add fcntl-h, sys_stat, unistd.
40731         (Include): Mention correct headers.
40732         * modules/fcntl-h (Depends-on): Add link-warning.
40733         (Files): Add openat.m4.
40734         (Makefile.am): Substitute witnesses.
40735         * modules/sys_stat (Files, Makefile.am): Likewise.
40736         * modules/unistd (Files, Makefile.am): Likewise.
40737         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40738         (gl_OPENAT_DEFAULTS): New macro.
40739         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40741         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40742         (SYS_STAT_H): Remove unused variable.
40743         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40744         * lib/fcntl--.h (includes): Remove unneeded header.
40745         * lib/openat-safer.c (includes): Likewise.
40746         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40747         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40748         appropriate headers.
40749         (__OPENAT_PREFIX): Delete.
40750         * lib/fcntl.in.h (openat): Provide declaration.
40751         (AT_FDCWD): Fix Solaris bug.
40752         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40753         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40754         * lib/fchmodat.c (includes):  Adjust to find declaration.
40755         * lib/fchownat.c (includes): Likewise.
40756         * lib/mkdirat.c (includes): Likewise.
40757         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40758         still visible.
40759
40760 2009-09-02  Eric Blake  <ebb9@byu.net>
40761
40762         errno: use consistently
40763         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40764         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40765         * lib/canonicalize.c (ELOOP): Likewise.
40766         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40767         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40768         * lib/lchown.c (EOPNOTSUPP): Likewise.
40769         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40770         * lib/savewd.c (ESTALE): Likewise.
40771         * lib/settime.c (ENOSYS): Likewise.
40772         * lib/utimens.c (ENOSYS): Likewise.
40773         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40774         * lib/chdir-safer.c (ELOOP): Likewise.
40775         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40776         * modules/c-stack (Depends-on): Add errno.
40777         * modules/canonicalize (Depends-on): Likewise.
40778         * modules/chdir-safer (Depends-on): Likewise.
40779         * modules/fdopendir (Depends-on): Likewise.
40780         * modules/inet_ntop (Depends-on): Likewise.
40781         * modules/inet_pton (Depends-on): Likewise.
40782         * modules/lchown (Depends-on): Likewise.
40783         * modules/openat (Depends-on): Likewise.
40784         * modules/savewd (Depends-on): Likewise.
40785         * modules/settime (Depends-on): Likewise.
40786         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40787
40788         fts: avoid leaking fds
40789         * modules/fts (Depends-on): Add cloexec.
40790         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40791         flag.
40792
40793         fts: make directory fds more robust
40794         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40795         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40796
40797         backupfile, chdir-long, fts, savedir: make safer
40798         * lib/backupfile.c (includes): Use "dirent--.h", since
40799         numbered_backup can write to stderr during readdir.
40800         * lib/savedir.c (includes): Likewise.
40801         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40802         emulation can write to stderr on failure.
40803         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40804         * lib/getcwd.c: Document why opendir_safer is unused.
40805         * lib/glob.c: Likewise.
40806         * lib/scandir.c: Likewise.
40807         * lib/openat-proc.c: Likewise, for open_safer.
40808         * modules/backupfile (Depends-on): Add dirent-safer.
40809         * modules/savedir (Depends-on): Likewise.
40810         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40811         * modules/chdir-long (Depends-on): Add openat-safer.
40812
40813         openat-safer: new module
40814         * modules/openat-safer: New file.
40815         * lib/openat-safer.c: Likewise.
40816         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40817         * lib/fcntl-safer.h (openat_safer): Declare.
40818         * lib/fcntl--.h (openat): Override.
40819         * MODULES.html.sh (File descriptor based I/O): Mention it.
40820         * lib/openat.h: Add double-inclusion guards.
40821         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40822         "fcntl--.h", so we can implement openat.
40823         * modules/openat-safer-tests: New test.
40824         * tests/test-openat-safer.c: New file.
40825
40826         dirent-safer: new module
40827         * modules/dirent-safer: New file.
40828         * lib/dirent--.h: Likewise.
40829         * lib/dirent-safer.h: Likewise.
40830         * lib/opendir-safer.c: Likewise.
40831         * m4/dirent-safer.m4: Likewise.
40832         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
40833         * modules/dirent-safer-tests: New test.
40834         * tests/test-dirent-safer.c: New file.
40835         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
40836
40837         fdopendir: optimize on mingw
40838         * lib/unistd.in.h (_gl_directory_name): New prototype.
40839         * lib/fchdir.c (_gl_directory_name): Implement it.
40840         (fchdir): Use it to simplify implementation.
40841         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
40842         fchdir, when available, to avoid calling [f]chdir().
40843
40844         fdopendir: split into its own module
40845         * lib/openat.c (fdopendir): Move...
40846         * lib/fdopendir.c: ...into new file.
40847         * modules/fdopendir: New module.
40848         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
40849         * modules/openat (Depends-on): Add fdopendir.
40850         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
40851         fdopendir here.
40852         * modules/savedir (Depends-on): Only need fdopendir, not full
40853         openat.
40854         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
40855         * lib/openat.h (fdopendir): Drop prototype.
40856         * lib/dirent.in.h (fdopendir): Provide prototype.
40857         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
40858         * modules/dirent (Makefile.am): Substitute them.
40859         * MODULES.html.sh (File system functions): Mention it.
40860         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
40861         * modules/fdopendir-tests: New file.
40862         * tests/test-fdopendir.c: Likewise.
40863
40864         fchdir: use more consistent macro convention
40865         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
40866         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
40867         REPLACE_FCHDIR, rather than relying on config.h macros.
40868         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
40869         inside a single make-time REPLACE_FCHDIR block, rather than using
40870         the config.h FCHDIR_REPLACEMENT.
40871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
40872         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
40873         Manage fstat replacement.
40874         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
40875         REPLACE_FCHDIR.
40876         * modules/sys_stat (Files): Add m4/unistd_h.m4.
40877         (Makefile.am): Substitute REPLACE_FCHDIR.
40878         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
40879         FCHDIR_REPLACEMENT.
40880         * lib/dup-safer.c (dup_safer): Likewise.
40881         * lib/dup2.c (rpl_dup2): Likewise.
40882         * lib/dup3.c (rpl_dup3): Likewise.
40883         * lib/open.c (rpl_open): Likewise.
40884
40885         fchdir: simplify error handling, and support dup3
40886         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
40887         stdbool, malloc-posix, realloc-posix.
40888         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
40889         (ensure_dirs_slot): Return false on allocation failure.
40890         (rpl_dup2): Delete.
40891         (_gl_register_dup): New function.
40892         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
40893         (_gl_register_fd): Close fd on allocation failure.
40894         * lib/fcntl.in.h (_gl_register_fd): Update signature.
40895         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
40896         prototype.
40897         (rpl_dup2_fchdir): Delete prototype.
40898         * lib/open.c (open): Update caller.
40899         * lib/dup2.c (dup2): Track fchdir metadata.
40900         * lib/dup3.c (dup3): Likewise.
40901         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
40902         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
40903
40904 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40905
40906         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
40907         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
40908         don't pass arguments to AC_OUTPUT.
40909
40910 2009-09-02  Bruno Haible  <bruno@clisp.org>
40911
40912         * modules/mkdtemp (License): Relicense under LGPLv2+.
40913         Reported by Paolo Bonzini.
40914
40915 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40916
40917         Replace uses of obsolete autoconf macros in Jim's modules.
40918         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
40919         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
40920         can evoke a warning from autoconf when run with -Wobsolete
40921         enabled.  They were declared obsolete for good reasons (see
40922         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
40923         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
40924         should not continue using the deprecated macros.
40925         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
40926         obsolete Autoconf macros with modern counterparts.
40927         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40928         * m4/dos.m4 (gl_AC_DOS): Likewise.
40929         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
40930         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40931         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
40932         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
40933         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
40934         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
40935         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
40936         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
40937         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40938         Likewise.
40939         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40940         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40941         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
40942         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
40943         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40944         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40945
40946 2009-09-01  Eric Blake  <ebb9@byu.net>
40947
40948         fchdir: fix off-by-one bug in previous patch
40949         * lib/fchdir.c (rpl_fstat): Use correct bounds.
40950         (_gl_unregister_fd): Delete useless if.
40951
40952 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
40953
40954         maint.mk: sort the list of syntax-check rules
40955         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
40956         easier to get a sense of progress when the rules are run sequentially
40957         and take a long time.
40958
40959 2009-09-01  Simon Josefsson  <simon@josefsson.org>
40960
40961         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
40962         * modules/netinet_in: Likewise.
40963         * modules/sys_file: Likewise.
40964         * modules/sys_ioctl: Likewise.
40965         * modules/sys_select: Likewise.
40966         * modules/sys_socket: Likewise.
40967         * modules/sys_stat: Likewise.
40968         * modules/sys_time: Likewise.
40969         * modules/sys_times: Likewise.
40970         * modules/sys_utsname: Likewise.
40971         * modules/sys_wait: Likewise.
40972
40973 2009-09-01  Jim Meyering  <meyering@redhat.com>
40974
40975         fts: help ensure that return values are not ignored
40976         * lib/fts_.h (__GNUC_PREREQ): Define.
40977         (__attribute_warn_unused_result__): Define.
40978         (fts_children, fts_close, fts_open, fts_read): Declare with
40979         __attribute_warn_unused_result__.
40980
40981         fts: fts_close now fails also when closing a dir file descriptor fails
40982         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
40983         and propagate to caller, along with errno.
40984
40985         announce-gen: correct formatting in --help output
40986         * build-aux/announce-gen (usage): Move the one-line description in
40987         --help output "up", to where it belongs, just after Usage:.
40988
40989 2009-08-31  Eric Blake  <ebb9@byu.net>
40990
40991         fchdir: port to mingw
40992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
40993         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
40994         opened, then use a substitute.
40995         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
40996         replacement.
40997         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
40998         (_gl_register_fd): No need to check stat if open already filters
40999         all directories.
41000         (fchdir): Fix error condition to match POSIX.
41001         * modules/fchdir (Depends-on): Add sys_stat.
41002         * doc/posix-functions/open.texi (open): Document the limitation.
41003         * modules/fchdir-tests: New file.
41004         * tests/test-fchdir.c: Likewise.
41005
41006         canonicalize: allow cross-testing from cygwin to mingw
41007         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41008         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41009         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41010         Likewise.
41011         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41012         target does not support symlinks.
41013         * tests/test-canonicalize-lgpl.sh: Likewise.
41014
41015         chown: avoid compilation warning on mingw
41016         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41017         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41018         mingw.
41019         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41020         * modules/chown (Depends-on): Add errno.
41021
41022 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41023
41024         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41025         command.
41026
41027 2009-08-31  Jim Meyering  <meyering@redhat.com>
41028
41029         canonicalize: remove useless initialization
41030         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41031         initialization of local, "end".
41032
41033 2009-08-30  Bruno Haible  <bruno@clisp.org>
41034
41035         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41036         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41037         ENOSYS.
41038
41039 2009-08-30  Bruno Haible  <bruno@clisp.org>
41040
41041         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41042         /usr/xpg4/bin/tr when it exists.
41043         * tests/test-pipe-filter-gi1.sh: Likewise.
41044
41045 2009-08-30  Bruno Haible  <bruno@clisp.org>
41046
41047         Work around deficient /usr/bin/id program on Solaris.
41048         * tests/test-file-has-acl.sh (ID): New variable.
41049         * tests/test-set-mode-acl.sh (ID): Likewise.
41050         * tests/test-copy-acl.sh (ID): Likewise.
41051         * tests/test-copy-file.sh (ID): Likewise.
41052
41053 2009-08-30  Bruno Haible  <bruno@clisp.org>
41054
41055         New module 'xstriconveh'.
41056         * lib/xstriconveh.h: New file.
41057         * lib/xstriconveh.c: New file.
41058         * modules/xstriconveh: New file.
41059
41060 2009-08-30  Bruno Haible  <bruno@clisp.org>
41061
41062         Make it easier to use mem_cd_iconveh.
41063         * lib/striconveh.h (iconveh_t): New type.
41064         (iconveh_open, iconveh_close): New declarations.
41065         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41066         with a single 'const iconveh_t *' argument.
41067         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41068         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41069         with a single 'const iconveh_t *' argument.
41070         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41071         * tests/test-striconveh.c (main): Update.
41072         * NEWS: Mention the change.
41073
41074 2009-08-30  Bruno Haible  <bruno@clisp.org>
41075
41076         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41077         problem.
41078
41079 2009-08-30  Bruno Haible  <bruno@clisp.org>
41080
41081         Work around iconv_open problem on Solaris.
41082         * lib/iconv_open-solaris.gperf: New file.
41083         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41084         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41085         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41086         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41087         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41088         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41089
41090 2009-08-29  Jim Meyering  <meyering@redhat.com>
41091
41092         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41093         * top/maint.mk (cvs-check): Remove target; it was just an alias
41094         to the better-named vc-diff-check.
41095         (maintainer-distcheck): Remove rule.  It was used only from
41096         the (alpha/beta/major) target, and all of its commands but one
41097         were coreutils-specific.
41098         (vc-dist): Remove rule.
41099         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41100         Run vc-diff-check, not vc-dist.
41101         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41102
41103 2009-08-27  Bruno Haible  <bruno@clisp.org>
41104
41105         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41106         of 0.
41107
41108 2009-08-27  Bruno Haible  <bruno@clisp.org>
41109
41110         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41111         compilers.
41112         * doc/func.texi: Document the SunPRO C bug.
41113
41114 2009-08-27  Bruno Haible  <bruno@clisp.org>
41115
41116         Fix link error on Solaris.
41117         * tests/test-parse-duration.c (xstrdup): Remove function.
41118
41119 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41120
41121         ignore-value: handle pointer types, too
41122         * lib/ignore-value.h (__attribute__): Remove definition.
41123         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41124         of a more concise and more-often effective "(void) i" statement.
41125         (ignore_ptr): New function to suppress warnings from functions that
41126         return pointers, and to make it explicit that one function doesn't
41127         handle all cases.
41128
41129 2009-08-25  Bruno Haible  <bruno@clisp.org>
41130
41131         dup2: work around a Linux bug.
41132         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41133         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41134         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41135         Reported by Simon Josefsson.
41136
41137 2009-08-25  Jim Meyering  <meyering@redhat.com>
41138
41139         libguestfs uses gnulib
41140         * users.txt: Add libguestfs.
41141
41142 2009-08-24  Eric Blake  <ebb9@byu.net>
41143
41144         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41145         * lib/pipe2.c (includes): Add binary-io.h.
41146         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41147
41148 2009-08-24  Bruno Haible  <bruno@clisp.org>
41149
41150         Tolerate declared but missing accept4 syscall.
41151         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41152         available.
41153         * lib/sys_socket.in.h (accept4): If the function is already present,
41154         override it.
41155         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41156         * modules/accept4 (Makefile.am): Compile accept4.c always.
41157         Reported by Paolo Bonzini and Eric Blake.
41158
41159 2009-08-23  Bruno Haible  <bruno@clisp.org>
41160
41161         New module 'accept4'.
41162         * lib/sys_socket.in.h (accept4): New declaration.
41163         * lib/accept4.c: New file.
41164         * m4/accept4.m4: New file.
41165         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41166         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41167         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41168         HAVE_ACCEPT4.
41169         * modules/accept4: New file.
41170         * doc/glibc-functions/accept4.texi: Mention the new module.
41171
41172 2009-08-24  Jim Meyering  <meyering@redhat.com>
41173
41174         progname: also set global program_invocation_name, when possible
41175         Before this change, a libtool-enabled program that calls glibc's
41176         error function would report the program name as
41177         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41178         * modules/progname (configure.ac): Check for a declaration of
41179         program_invocation_name.
41180         * lib/progname.c:  Include <errno.h>.
41181         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41182         Set program_invocation_name.
41183
41184 2009-08-23  Bruno Haible  <bruno@clisp.org>
41185
41186         * lib/dup3.c: Include <string.h>.
41187
41188 2009-08-23  Bruno Haible  <bruno@clisp.org>
41189
41190         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41191         * lib/pipe2.c (pipe2): Likewise.
41192         Suggested by Eric Blake.
41193
41194 2009-08-23  Bruno Haible  <bruno@clisp.org>
41195
41196         Tolerate declared but missing dup3 syscall.
41197         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41198         * lib/unistd.in.h (dup3): If the function is already present,
41199         override it.
41200         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41201         * modules/dup3 (Makefile.am): Compile dup3.c always.
41202         Reported by Paolo Bonzini.
41203
41204 2009-08-23  Bruno Haible  <bruno@clisp.org>
41205
41206         Tolerate declared but missing pipe2 syscall.
41207         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41208         available.
41209         * lib/unistd.in.h (pipe2): If the function is already present,
41210         override it.
41211         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41212         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41213         Reported by Paolo Bonzini.
41214
41215 2009-08-23  Bruno Haible  <bruno@clisp.org>
41216
41217         * lib/pipe2.c (pipe2): Move #ifs inside function.
41218
41219 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41220
41221         quotearg: document limitations of quote_these_too
41222         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41223         those limitations are created.
41224         * lib/quotearg.h (set_char_quoting): Document that digits and
41225         letters that are special after backslash are not permitted.
41226         (quotearg_char): Cross-reference set_char_quoting documentation.
41227
41228 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41229
41230         quotearg: implement custom_quoting_style
41231         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41232         right_quote fields.
41233         (set_custom_quoting): New public function.
41234         (quotearg_buffer_restyled): Add left_quote and right_quote
41235         arguments, handle them very much like locale quoting, and update
41236         all uses.
41237         (quotearg_n_custom): New public function.
41238         (quotearg_n_custom_mem): New public function.
41239         (quotearg_custom): New public function.
41240         (quotearg_custom_mem): New public function.
41241         * lib/quotearg.h: Prototype and document new public functions.
41242         (enum quoting_style): For escape_quoting_style and
41243         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41244         ignored even though they're otherwise like c_quoting_style.
41245         Add custom_quoting_style member and document with comparison to
41246         clocale_quoting_style.
41247         * tests/test-quotearg.c (custom_quotes): New array.
41248         (custom_results): New array.
41249         (main): Extend to test custom quoting.
41250
41251 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41252
41253         quotearg: fix right quote escaping when it's in quote_these_too
41254         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41255         quote, be sure to prepend only one backslash.
41256         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41257         (main): Test it.
41258
41259 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41260
41261         quotearg-tests: test escaping of embedded locale quotes
41262         * tests/test-quotearg.c (struct result_strings): Add member for
41263         new input.
41264         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41265         (inputs): Add new input.
41266         (results_g): Add expected results.
41267         (flag_results): Likewise.
41268         (locale_results): Likewise.
41269         (compare_strings): Check those.
41270
41271 2009-08-23  Bruno Haible  <bruno@clisp.org>
41272
41273         Tests for module 'dup3'.
41274         * modules/dup3-tests: New file.
41275         * tests/test-dup3.c: New file.
41276
41277         New module 'dup3'.
41278         * lib/unistd.in.h (dup3): New declaration.
41279         * lib/dup3.c: New file.
41280         * m4/dup3.m4: New file.
41281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41282         HAVE_DUP3.
41283         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41284         * modules/dup3: New file.
41285         * doc/glibc-functions/dup3.texi: Mention the new module.
41286
41287 2009-08-23  Bruno Haible  <bruno@clisp.org>
41288
41289         Tweak the dup2 test.
41290         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41291         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41292         the test file is still empty. Fix argument order of lseek.
41293
41294 2009-08-23  Bruno Haible  <bruno@clisp.org>
41295
41296         Avoid test link errors when the modules getopt-gnu, gettext are used.
41297         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41298         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41299
41300 2009-08-23  Bruno Haible  <bruno@clisp.org>
41301
41302         Fix getdtablesize() on mingw.
41303         * lib/getdtablesize.c (getdtablesize): Implement differently.
41304         * lib/unistd.in.h (getdtablesize): Improve comment.
41305
41306 2009-08-23  Bruno Haible  <bruno@clisp.org>
41307
41308         New module 'mkostemp'.
41309         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41310         * lib/stdlib.in.h (mksotemp): New declaration.
41311         * lib/mkostemp.c: New file, from glibc with modifications.
41312         * lib/tempname.h (GT_FILE): Remove outdated comment.
41313         (gen_tempname): Add flags argument.
41314         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41315         (__GT_FILE): Map to 1.
41316         (small_open, large_open): Remove macros.
41317         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41318         * lib/mkstemp.c (mkstemp): Update.
41319         * lib/mkdtemp.c (mkdtemp): Likewise.
41320         * m4/mkostemp.m4: New file.
41321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41322         HAVE_MKOSTEMP.
41323         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41324         HAVE_MKOSTEMP.
41325         * modules/mkostemp: New file, based on modules/mkstemp.
41326         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41327         * NEWS: Mention the change.
41328
41329 2009-08-23  Bruno Haible  <bruno@clisp.org>
41330
41331         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41332         Reported by Eric Blake.
41333
41334 2009-08-23  Bruno Haible  <bruno@clisp.org>
41335
41336         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41337         Reported by Eric Blake.
41338
41339 2009-08-23  Bruno Haible  <bruno@clisp.org>
41340
41341         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41342         * modules/pipe2 (Depends-on): Likewise.
41343
41344 2009-08-23  Eric Blake  <ebb9@byu.net>
41345
41346         fcntl-h: add O_TTY_INIT support
41347         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41348         * tests/test-fcntl-h.c (o): Test it.
41349         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41350
41351         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41352         * modules/fcntl: Move <fcntl.h> header replacement...
41353         * modules/fcntl-h: ...to new name, so as not to collide with
41354         like-named function.
41355         * tests/test-fcntl.c: Rename...
41356         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41357         * modules/fcntl-tests: Rename...
41358         * modules/fcntl-h-tests: ...to this.  Update test file name.
41359         * modules/chdir-long (Depends-on): Update clients.
41360         * modules/chdir-safer (Depends-on): Likewise.
41361         * modules/fcntl-safer (Depends-on): Likewise.
41362         * modules/fts (Depends-on): Likewise.
41363         * modules/mkancesdirs (Depends-on): Likewise.
41364         * modules/mkdir-p (Depends-on): Likewise.
41365         * modules/open (Depends-on): Likewise.
41366         * modules/savewd (Depends-on): Likewise.
41367         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41368         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41369
41370 2009-08-22  Bruno Haible  <bruno@clisp.org>
41371
41372         * modules/binary-io (License): Relicense under LGPL.
41373         * modules/pipe2 (License): Likewise.
41374
41375 2009-08-22  Bruno Haible  <bruno@clisp.org>
41376
41377         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41378         return value.
41379         * lib/pipe-filter-gi.c (filter_init): Likewise.
41380         Reported by Eric Blake.
41381
41382 2009-08-22  Bruno Haible  <bruno@clisp.org>
41383
41384         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41385         * modules/pipe (Depends-on): Add pipe2.
41386
41387 2009-08-22  Bruno Haible  <bruno@clisp.org>
41388
41389         Tests for module 'pipe2'.
41390         * modules/pipe2-tests: New file.
41391         * tests/test-pipe2.c: New file.
41392
41393         New module 'pipe2'.
41394         * lib/unistd.in.h (pipe2): New declaration.
41395         * lib/pipe2.c: New file.
41396         * m4/pipe2.m4: New file.
41397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41398         HAVE_PIPE2.
41399         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41400         * modules/pipe2: New file.
41401         * doc/glibc-functions/pipe2.texi: Mention the new module.
41402
41403 2009-08-22  Bruno Haible  <bruno@clisp.org>
41404
41405         Reference some new glibc functions.
41406         * doc/glibc-functions/accept4.texi: New file.
41407         * doc/glibc-functions/dup3.texi: New file.
41408         * doc/glibc-functions/mkostemp.texi: New file.
41409         * doc/glibc-functions/pipe2.texi: New file.
41410         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41411         (Glibc sys/socket.h): Refer to accept4.
41412         (Glibc unistd.h): Refer to dup3, pipe2.
41413         Reported by Eric Blake.
41414
41415 2009-08-22  Jim Meyering  <meyering@redhat.com>
41416             Bruno Haible  <bruno@clisp.org>
41417
41418         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41419         This makes it so packages using automake-1.11's silent-rules option
41420         can print e.g., a single "GEN    configmake.h" line, rather than
41421         the 30+ statements that perform the job.  If you want to see the
41422         actual commands, you can still run "make V=1".
41423         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41424         so that make output is abbreviated when those variables are defined
41425         appropriately.
41426         * modules/argz: Likewise.
41427         * modules/arpa_inet: Likewise.
41428         * modules/byteswap: Likewise.
41429         * modules/configmake: Likewise.
41430         * modules/dirent: Likewise.
41431         * modules/errno: Likewise.
41432         * modules/fcntl: Likewise.
41433         * modules/float: Likewise.
41434         * modules/fnmatch: Likewise.
41435         * modules/getopt-posix: Likewise.
41436         * modules/glob: Likewise.
41437         * modules/iconv_open: Likewise.
41438         * modules/inttypes: Likewise.
41439         * modules/localcharset: Likewise.
41440         * modules/locale: Likewise.
41441         * modules/math: Likewise.
41442         * modules/netdb: Likewise.
41443         * modules/netinet_in: Likewise.
41444         * modules/poll: Likewise.
41445         * modules/posix_spawnp-tests: Likewise.
41446         * modules/sched: Likewise.
41447         * modules/search: Likewise.
41448         * modules/selinux-h: Likewise.
41449         * modules/signal: Likewise.
41450         * modules/spawn: Likewise.
41451         * modules/stdarg: Likewise.
41452         * modules/stdbool: Likewise.
41453         * modules/stddef: Likewise.
41454         * modules/stdint: Likewise.
41455         * modules/stdio: Likewise.
41456         * modules/stdlib: Likewise.
41457         * modules/string: Likewise.
41458         * modules/strings: Likewise.
41459         * modules/sys_file: Likewise.
41460         * modules/sys_ioctl: Likewise.
41461         * modules/sys_select: Likewise.
41462         * modules/sys_socket: Likewise.
41463         * modules/sys_stat: Likewise.
41464         * modules/sys_time: Likewise.
41465         * modules/sys_times: Likewise.
41466         * modules/sys_utsname: Likewise.
41467         * modules/sys_wait: Likewise.
41468         * modules/sysexits: Likewise.
41469         * modules/time: Likewise.
41470         * modules/unistd: Likewise.
41471         * modules/wchar: Likewise.
41472         * modules/wctype: Likewise.
41473
41474 2009-08-22  Jim Meyering  <meyering@redhat.com>
41475
41476         announce-gen: detect write failure
41477         * build-aux/announce-gen: Add Coda at end.
41478         Remove equivalent-but-more-verbose block at top.
41479
41480 2009-08-19  Akim Demaille  <demaille@gostai.com>
41481
41482         bootstrap: --help to stdout.
41483         * bootstrap (usage): Don't send --help to stderr.
41484         Use a here doc instead of a long string.
41485
41486 2009-08-21  Eric Blake  <ebb9@byu.net>
41487
41488         test-popen-safer: split from test-popen
41489         * tests/test-popen.c (main): Move...
41490         * tests/test-popen.h: ...into new file.
41491         * tests/test-popen-safer2.c: New file.
41492         * modules/popen-tests (Files): Add test-popen.h.
41493         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41494         Suggested by Bruno Haible.
41495
41496         test-fcntl-safer: split from test-open
41497         * tests/test-open.c (main): Move...
41498         * tests/test-open.h: ...into new file.
41499         * tests/test-fcntl-safer.c: New file.
41500         * modules/open-tests (Files): Add test-open.h.
41501         * modules/fcntl-safer-tests: New file.
41502         Suggested by Bruno Haible.
41503
41504         test-fopen-safer: split from test-fopen
41505         * tests/test-fopen.c (main): Move...
41506         * tests/test-fopen.h: ...into new file.
41507         * tests/test-fopen-safer.c: New file.
41508         * modules/fopen-tests (Files): Add test-fopen.h.
41509         * modules/fopen-safer-tests: New file.
41510         Suggested by Bruno Haible.
41511
41512 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41513
41514         popen-safer: test O_CLOEXEC at run-time.
41515         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41516
41517 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41518
41519         fcntl: move more flags to the header
41520         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41521         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41522         * lib/fcntl.in.h: Do both things here.
41523
41524 2009-08-21  Jim Meyering  <meyering@redhat.com>
41525
41526         consistently remove $@-t before redirecting to it
41527         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41528         * modules/alloca-opt: Likewise.
41529         * modules/byteswap: Likewise.
41530         * modules/fnmatch: Likewise.
41531         * modules/getopt-posix: Likewise.
41532         * modules/glob: Likewise.
41533         * modules/poll: Likewise.
41534         * modules/posix_spawnp-tests: Likewise.
41535         * modules/sys_socket: Likewise.
41536         * modules/sysexits: Likewise.
41537
41538 2009-08-21  Eric Blake  <ebb9@byu.net>
41539
41540         popen: simplify access to original popen
41541         * lib/popen.c (rpl_popen): No need to worry about popen being a
41542         macro.
41543         Reported by Bruno Haible.
41544
41545 2009-08-20  Eric Blake  <ebb9@byu.net>
41546
41547         build: avoid some compiler warnings
41548         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41549         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41550         type.
41551         (new_exclude_segment, excluded_file_pattern_p)
41552         (excluded_file_name_p): Reduce scope.
41553         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41554         old-style declaration.
41555
41556 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41557
41558         * tests/test-exclude1.sh: Handle Windows EOL.
41559         * tests/test-exclude2.sh: Likewise.
41560         * tests/test-exclude3.sh: Likewise.
41561         * tests/test-exclude4.sh: Likewise.
41562         * tests/test-exclude5.sh: Likewise.
41563         * tests/test-exclude6.sh: Likewise.
41564         * tests/test-exclude7.sh: Likewise.
41565
41566 2009-08-19  Akim Demaille  <demaille@gostai.com>
41567
41568         bootstrap: find sha1sum when named gsha1sum.
41569         * bootstrap (find_tool): New.
41570         ($SHA1SUM): New.
41571         Use it.
41572
41573 2009-08-20  Jim Meyering  <meyering@redhat.com>
41574
41575         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41576         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41577         expression that converts "." in a file name to "\." in the resulting
41578         regexp.  Start with a dummy statement, so that prior shell variable
41579         definitions are expanded portably.  Reported by Simon Josefsson.
41580
41581 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41582
41583         Fix polling for writeability of a screen buffer.
41584         * lib/poll.c: Distinguish input and screen buffers for the
41585         Win32 implementation.
41586         * lib/select.c: Likewise.
41587
41588 2009-08-19  Eric Blake  <ebb9@byu.net>
41589
41590         popen-safer: prevent popen from clobbering std descriptors
41591         * modules/popen-safer: New file.
41592         * lib/popen-safer.c: Likewise.
41593         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41594         * lib/stdio--.h (popen): Provide override.
41595         * lib/stdio-safer.h (popen_safer): Provide declaration.
41596         * tests/test-popen.c (includes): Partially test this.
41597         * modules/popen-safer-tests: New file, for more tests.
41598         * tests/test-popen-safer.c: Likewise.
41599         * MODULES.html.sh (file stream based Input/Output): Mention it.
41600
41601         tests: test some of the *-safer modules
41602         * modules/fopen-safer (Depends-on): Add fopen.
41603         * modules/fcntl-safer (Depends-on): Add fcntl.
41604         * modules/stdlib-safer (Depends-on): Add stdlib.
41605         (configure.ac): Set indicator.
41606         * modules/unistd-safer (configure.ac): Likewise.
41607         * modules/tmpfile-safer (configure.ac): Likewise.
41608         (Depends-on): Add tmpfile.
41609         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41610         active.
41611         * tests/test-fopen.c (includes): Test safer versions when they are
41612         in use.
41613         * tests/test-open.c (includes): Likewise.
41614
41615         popen: fix cygwin 1.5 bug when stdin closed
41616         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41617         * modules/popen: New file.
41618         * modules/popen-tests: Likewise.
41619         * tests/test-popen.c: Likewise.
41620         * m4/popen.m4: Likewise.
41621         * lib/popen.c: Likewise.
41622         * lib/stdio.in.h (popen): New declaration.
41623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41624         * modules/stdio (Makefile.am): Likewise.
41625         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41626
41627 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41628
41629         maint.mk: give full control over update-copyright exclusions
41630         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41631         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41632         (update-copyright): Don't force inclusion of top-level
41633         ChangeLog.  Don't force exclusion of all COPYING files, but make
41634         them the default exclusion instead.
41635
41636 2009-08-16  Bruno Haible  <bruno@clisp.org>
41637
41638         Fix test failures on Solaris 10.
41639         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41640         tests when Solaris iconv() is used.
41641         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41642         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41643         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41644         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41645         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41646
41647 2009-08-16  Bruno Haible  <bruno@clisp.org>
41648
41649         Fix test failures on Solaris 10.
41650         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41651         'tr' program and pass it as first argument.
41652         * tests/test-pipe-filter-gi1.sh: Likewise.
41653         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41654         program as first argument.
41655         * tests/test-pipe-filter-gi1.c (main): Likewise.
41656
41657 2009-08-16  Eric Blake  <ebb9@byu.net>
41658
41659         fpurge: fix previous commits
41660         * modules/fpurge (Makefile.am): Make replacement conditional,
41661         partially reverting 2007-04-29 change; missed in previous
41662         attempt.
41663         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41664         is missing.
41665
41666 2009-08-16  Bruno Haible  <bruno@clisp.org>
41667
41668         Clarify fpurge's effect on the file position.
41669         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41670         * tests/test-fpurge.c (main): Make a second pass for checking the file
41671         position.
41672
41673 2009-08-16  Bruno Haible  <bruno@clisp.org>
41674
41675         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41676         declaration of fpurge is missing.
41677         * tests/test-fpurge.c (main): Check that the file has not more contents
41678         than expected. Close the file before removing it.
41679
41680 2009-08-15  Eric Blake  <ebb9@byu.net>
41681
41682         fpurge: don't wrap working cygwin implementation
41683         * lib/fpurge.c (fpurge): Fix comment typo.
41684         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41685         1.7 to avoid replacement.
41686         * tests/test-fpurge.c (main): Enhance test.
41687
41688 2009-08-15  Eric Blake  <ebb9@byu.net>
41689         and Jim Meyering  <meyering@redhat.com>
41690
41691         test-update-copyright: skip if perl is insufficient
41692         * tests/test-update-copyright.sh: Failure to run maintainer tool
41693         should not cause testsuite failure on cygwin 1.5.
41694
41695 2009-08-14  Eric Blake  <ebb9@byu.net>
41696
41697         doc: mention more functions added in cygwin 1.7.0
41698         * doc/posix-headers/limits.texi (limits.h): Update for recent
41699         cygwin additions.
41700         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41701         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41702         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41703         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41704         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41705
41706 2009-08-14  Eric Blake  <ebb9@byu.net>
41707
41708         maint.mk: simplify update-copyright rule
41709         * top/maint.mk (update-copyright-local): Delete, and document how
41710         to do it in cfg.mk instead.
41711         (update-copyright-exclude-regexp): Delete, and document how to do
41712         it in .x-update-copyright instead.
41713         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41714         exclude ChangeLog.
41715
41716 2009-08-14  Bruno Haible  <bruno@clisp.org>
41717
41718         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41719
41720 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41721
41722         maint.mk: support update-copyright-env
41723         * top/maint.mk (update-copyright-env): Define place-holder.
41724         (update-copyright): Expand $(update-copyright-env) before
41725         invoking update-copyright.
41726
41727 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41728
41729         update-copyright: implement forced reformatting
41730         * build-aux/update-copyright: Implement and document
41731         UPDATE_COPYRIGHT_FORCE.
41732         * tests/test-update-copyright.sh: Test it.
41733
41734 2009-08-14  Eric Blake  <ebb9@byu.net>
41735         and Bruno Haible  <bruno@clisp.org>
41736
41737         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41738         * tests/test-locale.c: Revert previous patch related to NULL.
41739         * tests/test-stdio.c: Likewise.
41740         * tests/test-stdlib.c: Likewise.
41741         * tests/test-string.c: Likewise.
41742         * tests/test-unistd.c: Likewise.
41743         * modules/time-tests (Depends-on): Add verify.
41744         * modules/wchar-tests (Depends-on): Likewise.
41745         * tests/test-time.c: Test for NULL compliance.
41746         * tests/test-wchar.c: Likewise.
41747         * modules/locale (Depends-on): Add stddef.
41748         * modules/stdio (Depends-on): Likewise.
41749         * modules/stdlib (Depends-on): Likewise.
41750         * modules/string (Depends-on): Likewise.
41751         * modules/time (Depends-on): Likewise.
41752         * modules/unistd (Depends-on): Likewise.
41753         * modules/wchar (Depends-on): Likewise.
41754         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41755         * lib/stdlib.in.h (includes): Likewise.
41756         * lib/string.in.h (includes): Likewise.
41757         * lib/time.in.h (includes): Likewise.
41758         * lib/unistd.in.h (includes): Likewise.
41759         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41760         replaced.
41761         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41762         * m4/stddef_h.m4: New file.
41763         * modules/stddef: Likewise.
41764         * lib/stddef.in.h: Likewise.
41765         * modules/stddef-tests: Likewise.
41766         * tests/test-stddef.c: Likewise.
41767         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41768         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41769         * doc/posix-headers/locale.texi (locale.h): Likewise.
41770         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41771         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41772         * doc/posix-headers/string.texi (string.h): Likewise.
41773         * doc/posix-headers/time.texi (time.h): Likewise.
41774         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41775         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41776
41777 2009-08-14  Eric Blake  <ebb9@byu.net>
41778
41779         doc: improve git diff of texinfo files
41780         * .gitattributes: Add rule for *.texi files, with hint on how to
41781         use it.
41782         Copied from m4, and based on a report by Bruno Haible.
41783
41784 2009-08-14  Bruno Haible  <bruno@clisp.org>
41785
41786         Disable multithread support by default on Cygwin 1.5.x for real.
41787         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41788
41789 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41790
41791         update-copyright: much ado about intervals
41792         * build-aux/update-copyright: Implement and document
41793         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41794         of copyright year intervals.
41795         Also, document UPDATE_COPYRIGHT_YEAR.
41796         * tests/test-update-copyright.sh: Test it.
41797
41798         update-copyright: convert 2-digit to 4-digit years
41799         * build-aux/update-copyright: Implement and document.
41800         * tests/test-update-copyright.sh: Update.
41801
41802 2009-08-14  Jim Meyering  <meyering@redhat.com>
41803
41804         test-exclude: avoid coreutils "make check" failure
41805         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41806         just as in test-argmatch.c.
41807
41808 2009-08-13  Eric Blake  <ebb9@byu.net>
41809
41810         test-dup2: fix bad assumption
41811         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41812         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41813
41814         test-version-etc: fix CRLF portability issue
41815         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41816         recognize \r.
41817         * tests/test-argp-version-etc-1.sh: Likewise.
41818
41819         getopt: update client modules
41820         * modules/argp (Depends-on): Use getopt-gnu.
41821         * modules/git-merge-changelog (Depends-on): Likewise.
41822         * modules/long-options (Depends-on): Likewise.
41823         * modules/xstrtol (Depends-on): Likewise.
41824
41825 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41826
41827         * tests/test-version-etc.sh: Don't fail on different
41828         project/version.  Don't fail on CRLF differences.  Rewrite to use
41829         multiple -e instead of multiple sed forks, suggested by Eric Blake
41830         <ebb9@byu.net>.
41831         * tests/test-argp-version-etc-1.sh: Likewise.
41832
41833 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41834
41835         * tests/test-version-etc.sh: Don't fail on different
41836         project/version.
41837
41838 2009-08-12  Bruno Haible  <bruno@clisp.org>
41839
41840         Tests for modules 'getopt-posix', 'getopt-gnu'.
41841         * modules/getopt-posix-tests: New file.
41842         * tests/test-getopt.c: New file.
41843         * tests/test-getopt.h: New file.
41844         * tests/test-getopt_long.h: New file.
41845
41846         New modules 'getopt-posix', 'getopt-gnu'.
41847         * modules/getopt-gnu: New file, renamed from modules/getopt.
41848         * modules/getopt-posix: New file.
41849         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
41850         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
41851         (gl_GETOPT): Remove macro.
41852         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
41853         Disable the test against BSD systems that declare optreset. Test
41854         against mingw bug. Test against lack of support of optional arguments
41855         on many platforms.
41856         * doc/glibc-headers/getopt.texi: Update module name and list of
41857         relevant platforms.
41858         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
41859         'getopt-gnu' and more portability problems.
41860         * NEWS: Mention the changes.
41861
41862 2009-08-12  Bruno Haible  <bruno@clisp.org>
41863
41864         Ensure that optarg etc. get declared by <unistd.h>.
41865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
41866         AC_USE_SYSTEM_EXTENSIONS.
41867         * modules/getopt (Depends-on): Add 'extensions'.
41868
41869 2009-08-12  Bruno Haible  <bruno@clisp.org>
41870
41871         Avoid test link errors.
41872         * modules/pipe-filter-ii-tests (Makefile.am): Define
41873         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
41874         * modules/pipe-filter-gi-tests (Makefile.am): Define
41875         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
41876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41877
41878 2009-08-12  Bruno Haible  <bruno@clisp.org>
41879
41880         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
41881         gl_GETOPT_SUBSTITUTE before.
41882         (gl_GETOPT): Use it.
41883         * m4/argp.m4 (gl_ARGP): Update.
41884         Reported by Sergey Poznyakoff.
41885
41886         * m4/getopt.m4: Reorder macros.
41887         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
41888         (gl_GETOPT_SUBSTITUTE): Remove macro.
41889
41890 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41891
41892         Minor improvement in gitlog-to-changelog
41893
41894         * build-aux/gitlog-to-changelog: New option `--format' makes
41895         output format string configurable.
41896
41897 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41898
41899         Optimize exclude: use hash tables for non-wildcard patterns.
41900
41901         * lib/exclude.c: Include hash.h and mbuiter.h
41902         (struct exclude_pattern, exclude_segment): New data types.
41903         (struct exclude): Rewrite.
41904         (fnmatch_pattern_has_wildcards): New function.
41905         (new_exclude_segment, free_exclude_segment): New functions.
41906         (excluded_file_pattern_p, excluded_file_name_p): New functions.
41907         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
41908         * lib/exclude.h (is_fnmatch_pattern): New prototype.
41909         * modules/exclude: Depend on hash and mbuiter.
41910
41911         * modules/exclude-tests: New file.
41912         * tests/test-exclude.c: New file.
41913         * tests/test-exclude1.sh: New file.
41914         * tests/test-exclude2.sh: New file.
41915         * tests/test-exclude3.sh: New file.
41916         * tests/test-exclude4.sh: New file.
41917         * tests/test-exclude5.sh: New file.
41918         * tests/test-exclude6.sh: New file.
41919         * tests/test-exclude7.sh: New file.
41920
41921 2009-08-12  Bruno Haible  <bruno@clisp.org>
41922
41923         Ensure that getopt() gets declared by <unistd.h>.
41924         * lib/unistd.in.h: Conditionally include getopt.h.
41925         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
41926         Set GNULIB_UNISTD_H_GETOPT.
41927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41928         GNULIB_UNISTD_H_GETOPT.
41929         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
41930
41931 2009-08-12  Bruno Haible  <bruno@clisp.org>
41932
41933         Clarify logic.
41934         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
41935         gl_replace_getopt instead of GETOPT_H.
41936
41937 2009-08-12  Bruno Haible  <bruno@clisp.org>
41938
41939         * m4/getopt.m4: Add comments.
41940
41941 2009-08-12  Bruno Haible  <bruno@clisp.org>
41942
41943         Disable multithread support by default on Cygwin 1.5.x.
41944         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
41945         set gl_use_threads=no if not specified otherwise.
41946
41947 2009-08-11  Bruno Haible  <bruno@clisp.org>
41948
41949         Avoid compilation error on NetBSD 5.0.
41950         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
41951         * tests/test-stdio.c: Likewise.
41952         * tests/test-stdlib.c: Likewise.
41953         * tests/test-string.c: Likewise.
41954         * tests/test-unistd.c: Likewise.
41955         Reported by Greg Troxel <gdt@ir.bbn.com>
41956         at <https://savannah.gnu.org/support/?106973>.
41957
41958 2009-08-11  Bruno Haible  <bruno@clisp.org>
41959
41960         * modules/dup2-tests (Depends-on): Remove close.
41961
41962         Undo 2009-07-19 commit.
41963         * modules/acl-tests (Depends-on): Remove close.
41964         * modules/binary-io-tests (Depends-on): Likewise.
41965         * modules/closein-tests (Depends-on): Likewise.
41966         * modules/flock-tests (Depends-on): Likewise.
41967         * modules/fsync-tests (Depends-on): Likewise.
41968         * modules/lseek-tests (Depends-on): Likewise.
41969         * modules/pipe-tests (Depends-on): Likewise.
41970         * modules/posix_spawn-tests (Depends-on): Likewise.
41971         * modules/posix_spawnp-tests (Depends-on): Likewise.
41972         * modules/stat-time-tests (Depends-on): Likewise.
41973         * modules/yesno-tests (Depends-on): Likewise.
41974
41975 2009-08-10  Bruno Haible  <bruno@clisp.org>
41976
41977         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
41978
41979 2009-08-10  Bruno Haible  <bruno@clisp.org>
41980
41981         Fix a gcc warning.
41982         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
41983
41984 2009-08-10  Bruno Haible  <bruno@clisp.org>
41985
41986         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
41987         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
41988         not only the first time.
41989         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
41990         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
41991         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
41992         is 1, not only the the first time.
41993
41994 2009-08-10  Bruno Haible  <bruno@clisp.org>
41995
41996         Make it possible to use module 'gethostname' without module 'close'.
41997         * lib/unistd.in.h (close): Evoke a link error only if
41998         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42000         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42001         * modules/unistd (Makefile.am): Substitute
42002         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42003         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42004         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42005         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42006         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42007         * modules/sys_ioctl (Makefile.am): Substitute
42008         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42009         * modules/socket (configure.ac): On native Windows, set
42010         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42011         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42012         Reported by Sam Steingold <sds@gnu.org>.
42013
42014 2009-08-10  Bruno Haible  <bruno@clisp.org>
42015
42016         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42017         * modules/ioctl (configure.ac): Likewise.
42018
42019 2009-08-10  Bruno Haible  <bruno@clisp.org>
42020
42021         Avoid collision between gnulib wrapper and libintl wrapper.
42022         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42023         already defined in intl/printf.c.
42024         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42025         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42026
42027 2009-08-09  Bruno Haible  <bruno@clisp.org>
42028
42029         Make <sys/select.h> really self-contained, also on Solaris 10.
42030         * lib/sys_select.in.h: Include <string.h>.
42031         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42032         Solaris 10 problem.
42033         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42034         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42035         Reported by Jim Meyering.
42036
42037 2009-08-09  Bruno Haible  <bruno@clisp.org>
42038
42039         Avoid warnings from 'aclocal' that are due to a use of macro name
42040         AM_XGETTEXT_OPTION that is not defined in automake.
42041         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42042         automake.
42043         * modules/error (configure.ac): Likewise.
42044         * modules/propername (configure.ac): Likewise.
42045         * modules/vasprintf (configure.ac): Likewise.
42046         * modules/verror (configure.ac): Likewise.
42047         * modules/xprintf (configure.ac): Likewise.
42048         * modules/xvasprintf (configure.ac): Likewise.
42049
42050 2009-08-08  Bruno Haible  <bruno@clisp.org>
42051
42052         Avoid compilation error in C++ mode.
42053         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42054         Reported by Sam Steingold <sds@gnu.org>.
42055
42056 2009-08-08  Bruno Haible  <bruno@clisp.org>
42057
42058         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42059         for the various Unix platforms.
42060         * doc/posix-headers/limits.texi: Update platforms list regarding
42061         HOST_NAME_MAX.
42062         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42063
42064 2009-08-07  Jim Meyering  <meyering@redhat.com>
42065
42066         selinux-at: fix typo in a comment
42067         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42068         Spotted by Paolo Bonzini.
42069
42070         selinux-at: remove redundant m4 code, add documentation
42071         * modules/selinux-at (configure.ac): Remove redundant code.
42072         LIB_SELINUX is already set via the dependent module, selinux-h.
42073         (Include): Add quotes around selinux-at.h.
42074         * lib/selinux-at.h: Add documentation.
42075         Reported by Bruno Haible in
42076         http://marc.info/?l=gnulib-bug&m=124958988300749
42077
42078 2009-08-07  Bruno Haible  <bruno@clisp.org>
42079
42080         Avoid link error on MacOS X 10.3 and 10.4.
42081         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42082         on non-ELF systems.
42083         * lib/argp-pv.c (argp_program_version): Likewise.
42084         Reported by Simon Josefsson.
42085
42086 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42087
42088         * tests/test-version-etc.sh: Use $EXEEXT.
42089
42090 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42091
42092         update-copyright: update documentation to point to maint.mk
42093         * build-aux/update-copyright: Here.
42094
42095 2009-08-06  Jim Meyering  <meyering@redhat.com>
42096
42097         maint.mk: support update-copyright-local
42098         * top/maint.mk (update-copyright-local): Define place-holder.
42099         (update-copyright): Depend on $(update-copyright-local).
42100
42101 2009-08-06  Jim Meyering  <meyering@redhat.com>
42102
42103         selinux-at: new module
42104         Initially written for coreutils, this module will soon be
42105         used by findutils, too.
42106         * MODULES.html.sh [Misc]: Add selinux-at.
42107         * lib/selinux-at.h: New file, from coreutils.
42108         * lib/selinux-at.c: Likewise.
42109         * modules/selinux-at: Likewise.
42110         (License): Change from LGPL to GPL, since it depends
42111         on the GPL'd openat module.
42112
42113         doc: update README
42114         * README: Remove references to cogito.
42115         Remove cvs-repo-updating instructions from 2007.
42116         Don't imply that CVS is better if you have limited disk space.
42117
42118 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42119
42120         update-copyright: support C-style comments
42121         * build-aux/update-copyright: Implement and document.
42122         * tests/test-update-copyright.sh: Test.
42123
42124 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42125
42126         update-copyright: support omitted "(C)"
42127         * build-aux/update-copyright: Implement and document.  Also,
42128         allow variable whitespace before "(C)".
42129         * tests/test-update-copyright.sh: Test.
42130
42131 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42132
42133         update-copyright: don't trip on non-FSF copyright statements
42134         * build-aux/update-copyright: Fix so that the first correctly
42135         formatted FSF copyright statement is recognized no matter what
42136         appears before it.  Update documentation.
42137         * tests/test-update-copyright.sh: Test that.
42138
42139 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42140
42141         update-copyright: clean up code a little
42142         * build-aux/update-copyright: Append "_re" to the name of any
42143         variable holding a regular expression.
42144         Replace "old" and "new" with "stmt" in variable names.
42145         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42146         handled correctly.
42147         Format code more consistently.
42148
42149 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42150
42151         update-copyright-tests: improve portability
42152         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42153         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42154
42155 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42156
42157         update-copyright: support @copyright{} and &copy;
42158         * build-aux/update-copyright: Implement and document.
42159         * tests/test-update-copyright.sh: Test.
42160
42161 2009-08-04  Jim Meyering  <meyering@redhat.com>
42162
42163         update-copyright-tests: correctly test EOL=\r\n handling
42164         * tests/test-update-copyright.sh: Put \r at the end of some lines
42165         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42166
42167         maint.mk: make update-copyright exclusion list more configurable
42168         * top/maint.mk (update-copyright): Default to excluding COPYING,
42169         but allow an override, in case someone does want to update that file.
42170
42171         maint.mk: don't update copyright date in COPYING
42172         * top/maint.mk (update-copyright): Exclude COPYING.
42173
42174         maint.mk: add a copyright-updating rule
42175         * top/maint.mk (update-copyright): New rule.
42176         Derived from coreutils/Makefile.am.
42177
42178         update-copyright: rename some variables
42179         * build-aux/update-copyright: Rename a few variables for clarity.
42180         Tweak syntax.  List Joel E. Denny as coauthor.
42181
42182 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42183
42184         update-copyright: fix bug for 2-digit last year and add tests
42185         * build-aux/update-copyright: Fix bug.
42186         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42187         specified.
42188         * modules/update-copyright-tests: New
42189         * tests/test-update-copyright.sh: New.
42190
42191 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42192
42193         update-copyright: handle leading tabs in line prefix
42194         * build-aux/update-copyright: Count leading tabs as 8 spaces
42195         when computing margin.  This helps with the formatting of
42196         ChangeLogs, for example.
42197         Fix documentation a little.
42198
42199 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42200
42201         update-copyright: support EOL=\r\n
42202         * build-aux/update-copyright: Implement that.
42203
42204 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42205
42206         update-copyright: automatically format copyright statements
42207         * build-aux/update-copyright: Implement that.
42208         Also, be a little more predictable and safer by always failing
42209         when the full copyright format is not perfectly recognized as an
42210         unbroken whole.  Discussed at
42211         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42212         Rewrite documentation.
42213
42214 2009-08-03  Bruno Haible  <bruno@clisp.org>
42215
42216         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42217
42218 2009-08-02  Bruno Haible  <bruno@clisp.org>
42219
42220         Tests for module 'uname'.
42221         * modules/uname-tests: New file.
42222         * tests/test-uname.c: New file.
42223
42224         New module 'uname'.
42225         * lib/uname.c: New file.
42226         * m4/uname.m4: New file.
42227         * modules/uname: New file.
42228         * doc/posix-functions/uname.texi: Mention the new module.
42229
42230 2009-08-02  Bruno Haible  <bruno@clisp.org>
42231
42232         Tests for module 'sys_utsname'.
42233         * modules/sys_utsname-tests: New file.
42234         * tests/test-sys_utsname.c: New file.
42235
42236         New module 'sys_utsname'.
42237         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42238         * m4/sys_utsname_h.m4: New file.
42239         * modules/sys_utsname: New file.
42240         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42241
42242 2009-08-02  Bruno Haible  <bruno@clisp.org>
42243
42244         Implicitly initialize the sockets library.
42245         * lib/gethostname.c: Include sockets.h.
42246         (rpl_gethostname): Invoke gl_sockets_startup.
42247         * lib/socket.c: Include sockets.h.
42248         (rpl_socket): Invoke gl_sockets_startup.
42249         * modules/gethostname (Depends-on): Add sockets.
42250         * modules/socket (Depends-on): Likewise.
42251         * tests/test-poll.c: Don't include sockets.h.
42252         (main): Don't invoke gl_sockets_startup.
42253         * tests/test-select.c: Don't include sockets.h.
42254         (main): Don't invoke gl_sockets_startup.
42255
42256 2009-08-02  Bruno Haible  <bruno@clisp.org>
42257
42258         Allow multiple calls to gl_sockets_startup.
42259         * lib/sockets.c (initialized_sockets_version): New variable.
42260         (gl_sockets_startup): Do nothing if already called for this or a higher
42261         version.
42262         (gl_sockets_cleanup): Reset initialized_sockets_version.
42263
42264 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42265
42266         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42267         different project/version.
42268
42269 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42270             Bruno Haible  <bruno@clisp.org>
42271
42272         Tests for module 'pipe-filter-gi'.
42273         * modules/pipe-filter-gi-tests: New file.
42274         * tests/test-pipe-filter-gi1.sh: New file.
42275         * tests/test-pipe-filter-gi1.c: New file.
42276         * tests/test-pipe-filter-gi2.sh: New file.
42277         * tests/test-pipe-filter-gi2-main.c: New file.
42278         * tests/test-pipe-filter-gi2-child.c: New file.
42279
42280         New module 'pipe-filter-gi'.
42281         * lib/pipe-filter-gi.c: New file.
42282         * modules/pipe-filter-gi: New file.
42283
42284 2009-08-02  Bruno Haible  <bruno@clisp.org>
42285             Paolo Bonzini  <bonzini@gnu.org>
42286
42287         Tests for module 'pipe-filter-ii'.
42288         * modules/pipe-filter-ii-tests: New file.
42289         * tests/test-pipe-filter-ii1.sh: New file.
42290         * tests/test-pipe-filter-ii1.c: New file.
42291         * tests/test-pipe-filter-ii2.sh: New file.
42292         * tests/test-pipe-filter-ii2-main.c: New file.
42293         * tests/test-pipe-filter-ii2-child.c: New file.
42294
42295         New module 'pipe-filter-ii'.
42296         * lib/pipe-filter.h: New file.
42297         * lib/pipe-filter-ii.c: New file.
42298         * lib/pipe-filter-aux.h: New file.
42299         * modules/pipe-filter-ii: New file.
42300
42301 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42302
42303         * lib/gc-libgcrypt.c: Change copyright to FSF.
42304         * lib/gc-gnulib.c: Likewise.
42305
42306 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42307
42308         * lib/gethostname.c: Include limits.h.
42309
42310 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42311             Bruno Haible  <bruno@clisp.org>
42312
42313         Ensure HOST_NAME_MAX as part of the gethostname module.
42314         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42315         define also HOST_NAME_MAX.
42316         * tests/test-gethostname.c: Include <limits.h>.
42317         (main): Check also HOST_NAME_MAX.
42318         * doc/posix-headers/limits.texi: Document the mingw problem.
42319
42320 2009-08-02  Bruno Haible  <bruno@clisp.org>
42321
42322         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42323         Add comments.
42324
42325 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42326
42327         * lib/gethostname.c: Add Windows wrapper.
42328         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42329         * modules/gethostname: Depend on sys_socket & errno, for also
42330         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42331         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42332
42333 2009-07-31  Jim Meyering  <meyering@redhat.com>
42334
42335         getloadavg: fix symbol name in comment
42336         * lib/getloadavg.c: Correct a typo I introduced when adding
42337         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42338         Matt Kraai spotted the problem.
42339
42340 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42341
42342         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42343         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42344         code also if ! defined N_NAME_POINTER.
42345         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42346         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42347         but the n_name member is a 12-byte array.
42348
42349 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42350
42351         update-copyright: generalize comment handling
42352         * build-aux/update-copyright: Handle copyright statements
42353         within more comment styles.
42354         Document usage.
42355         Report any file with an external copyright holder or parse failure.
42356
42357 2009-07-29  Jim Meyering  <meyering@redhat.com>
42358
42359         mktime: correct setting of REPLACE_MKTIME
42360         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42361
42362         update-copyright: new module
42363         * modules/update-copyright: New file.
42364         * build-aux/update-copyright: New file.
42365         * MODULES.html.sh (maint+release support): Add update-copyright.
42366
42367 2009-07-27  Bruno Haible  <bruno@clisp.org>
42368
42369         Fix compilation error when <ctime> is used and mktime is replaced.
42370         * lib/time.in.h (mktime): New declaration.
42371         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42372         REPLACE_MKTIME instead of defining mktime in config.h.
42373         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42374         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42375         Reported by Ross McFarland <rwmcfa1@neces.com>.
42376
42377 2009-07-27  Bruno Haible  <bruno@clisp.org>
42378
42379         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42380         Reported by Matt Kraai <mkraai@beckman.com>.
42381
42382 2009-07-25  Jim Meyering  <meyering@redhat.com>
42383
42384         maint.mk: avoid warnings about missing files
42385         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42386         diagnostic when .prev-version does not exist.
42387         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42388         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42389         nonexistent cfg.mk.
42390         Suggestions from Simon Josefsson.
42391
42392 2009-07-25  Bruno Haible  <bruno@clisp.org>
42393
42394         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42395         defined as macros. Needed on QNX 6.4.1.
42396         Reported by Matt Kraai <mkraai@beckman.com>.
42397
42398 2009-07-23  Jim Meyering  <meyering@redhat.com>
42399
42400         maint.mk: invoke "make dist" with a working value of XZ_OPT
42401         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42402
42403 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42404
42405         Make fseeko.c compile on QNX.
42406         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42407
42408 2009-07-22  Peter Simons  <simons@cryp.to>
42409
42410         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42411         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42412         * lib/md4.h: Likewise.
42413         * lib/md5.h: Likewise.
42414         * lib/sha1.h: Likewise.
42415         * lib/sha256.h: Likewise.
42416         * lib/sha512.h: Likewise.
42417
42418         tests-sha1: don't assign literal string to 'char *' variable
42419         * tests/test-sha1.c (main): Declare locals with "const" to match
42420         attributes of the right hand side.
42421
42422 2009-07-21  Eric Blake  <ebb9@byu.net>
42423
42424         dup2: fix more mingw problems
42425         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42426         fd to itself.
42427         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42428         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42429         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42430         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42431         care of mingw bugs.
42432
42433 2009-07-21  Jim Meyering  <meyering@redhat.com>
42434
42435         vc-list-files: avoid failure when /bin/sh is dash
42436         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42437         On some Debian based systems, /bin/sh is a symlink to dash, and running
42438         this command would omit the "/" following each 'tests' prefix:
42439           dash -x build-aux/vc-list-files -C . tests
42440         That is because bash and dash work differently:
42441           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42442           bash ok
42443           dash odd
42444
42445 2009-07-21  Eric Blake  <ebb9@byu.net>
42446
42447         dup2-tests: test previous patch
42448         * modules/dup2-tests: New file.
42449         * tests/test-dup2.c: Likewise.
42450         * tests/test-open.c (main): Avoid unspecified behavior.
42451         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42452         test.
42453
42454         dup2: work around mingw and cygwin 1.5 bug
42455         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42457         * modules/unistd (Makefile.am): Substitute it.
42458         * lib/unistd.in.h (dup2): Declare the replacement.
42459         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42460         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42461         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42462         * modules/execute (Depends-on): Add dup2.
42463         * modules/fseterr (Depends-on): Likewise.
42464         * modules/pipe (Depends-on): Likewise.
42465         * modules/posix_spawn-internal (Depends-on): Likewise.
42466
42467 2009-07-21  Bruno Haible  <bruno@clisp.org>
42468
42469         * modules/.gitattributes: New file.
42470
42471 2009-07-20  Bruno Haible  <bruno@clisp.org>
42472
42473         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42474         (main): Use it.
42475
42476 2009-07-20  Eric Blake  <ebb9@byu.net>
42477
42478         test-pipe: make a bit more robust.
42479         * tests/test-pipe.c (myerr): Allow error messages regardless of
42480         what we do to stderr.
42481         (test_pipe): Rearrange to avoid deadlock.
42482         (child_main): Try a larger read, to ensure we avoided deadlock.
42483         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42484         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42485         if misused.
42486
42487 2009-07-19  Jim Meyering  <meyering@redhat.com>
42488
42489         fts: avoid false-positive cycle-detection
42490         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42491         for each new command line argument.
42492
42493 2009-07-19  Bruno Haible  <bruno@clisp.org>
42494
42495         Fix build error on mingw with the modules sys_select and unistd.
42496         * modules/acl-tests (Depends-on): Add close.
42497         * modules/binary-io-tests (Depends-on): Likewise.
42498         * modules/closein-tests (Depends-on): Likewise.
42499         * modules/flock-tests (Depends-on): Likewise.
42500         * modules/fsync-tests (Depends-on): Likewise.
42501         * modules/lseek-tests (Depends-on): Likewise.
42502         * modules/pipe-tests (Depends-on): Likewise.
42503         * modules/posix_spawn-tests (Depends-on): Likewise.
42504         * modules/posix_spawnp-tests (Depends-on): Likewise.
42505         * modules/stat-time-tests (Depends-on): Likewise.
42506         * modules/yesno-tests (Depends-on): Likewise.
42507
42508 2009-07-19  Bruno Haible  <bruno@clisp.org>
42509
42510         Unify conditionals.
42511         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42512         macros, not at the compiler macros.
42513         * lib/pipe.c: Likewise.
42514         * lib/execute.c: Likewise.
42515         * lib/spawni.c: Likewise.
42516
42517 2009-07-19  Bruno Haible  <bruno@clisp.org>
42518
42519         Fix handling of closed stdin/stdout/stderr on mingw.
42520         * lib/w32spawn.h: Include unistd.h.
42521         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42522         file descriptor with O_NOINHERIT flag.
42523         (fd_safer_noinherit): New function, based on fd-safer.c.
42524         (dup_safer_noinherit): New function, based on dup-safer.c.
42525         (undup_safer_noinherit): New function.
42526         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42527         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42528         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42529         instead of fd_safer.
42530         * tests/test-pipe.c: Include <windows.h>.
42531         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42532         result.
42533
42534         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42535         from main.
42536         (test_pipe): Pass an extra argument for disambiguation.
42537         (main): Invoke parent_main or child_main.
42538
42539         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42540         consistently.
42541
42542 2009-07-18  Eric Blake  <ebb9@byu.net>
42543
42544         test-pipe: fix mingw build
42545         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42546
42547 2009-07-18  Bruno Haible  <bruno@clisp.org>
42548
42549         * modules/pipe-tests (Makefile.am): Fix typo.
42550
42551 2009-07-18  Eric Blake  <ebb9@byu.net>
42552
42553         error: fix mingw build
42554         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42555         Reported by Bruno Haible.
42556
42557         error: avoid undefined use of stdout
42558         * lib/error.c (error, error_at_line): Check that fd 1 is open
42559         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42560         is handling faults and the close_stdout module wants to report the
42561         detection of closed stdout as an error.
42562
42563 2009-07-17  Eric Blake  <ebb9@byu.net>
42564
42565         pipe: be robust in face of closed fds
42566         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42567         should cause child to misbehave.
42568         * modules/pipe-tests: New module.
42569         * tests/test-pipe.c: New file.
42570         * tests/test-pipe.sh: New file.
42571         Reported by Akim Demaille.
42572
42573 2009-07-14  Bruno Haible  <bruno@clisp.org>
42574
42575         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42576         Reported by anonymous kc.
42577
42578 2009-07-07  Jim Meyering  <meyering@redhat.com>
42579
42580         maint.mk: don't look for translatable strings in *.m4 or *.mk
42581         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42582         when searching for translatable strings.
42583
42584 2009-07-05  Jim Meyering  <meyering@redhat.com>
42585
42586         remove superfluous parentheses in STREQ definition
42587         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42588         * lib/getugroups.c (STREQ): Likewise.
42589         * lib/fnmatch.c (STREQ): Likewise.
42590         Spotted by Bruno Haible.
42591
42592 2009-07-04  Jim Meyering  <meyering@redhat.com>
42593
42594         argv-iter: new module
42595         * MODULES.html.sh: Add argv-iter.
42596         * lib/argv-iter.c, lib/argv-iter.h: New files.
42597         * modules/argv-iter: New file.
42598         * modules/argv-iter-tests: New file.
42599         * tests/test-argv-iter.c: Test it.
42600
42601 2009-07-04  Bruno Haible  <bruno@clisp.org>
42602
42603         Fix assertion.
42604         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42605         contains more exact copies of a given entry than file2, leave the extra
42606         copies unpaired rather than aborting.
42607         Reported by Eric Blake.
42608
42609 2009-07-02  Bruno Haible  <bruno@clisp.org>
42610
42611         Speedup git-merge-changelog for git cherry-pick.
42612         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42613         (entries_mapping_get): New function, extracted from compute_mapping.
42614         (entries_mapping_reverse_get): New function.
42615         (compute_mapping): Add a 'full' argument. Return the result in a
42616         'struct entries_mapping'.
42617         (main): Update. Access the mappings through entries_mapping_get.
42618         Reported by Eric Blake.
42619
42620 2009-07-02  Bruno Haible  <bruno@clisp.org>
42621
42622         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42623         best_i.
42624
42625 2009-07-02  Bruno Haible  <bruno@clisp.org>
42626
42627         Speed up approximate search for matching ChangeLog entries.
42628         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42629         argument. Call fstrcmp_bounded instead of fstrcmp.
42630         (compute_mapping, try_split_merged_entry, main): Update callers.
42631
42632 2009-07-02  Bruno Haible  <bruno@clisp.org>
42633
42634         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42635
42636 2009-06-30  Bruno Haible  <bruno@clisp.org>
42637
42638         Reduce the number of uc_is_cased calls.
42639         * lib/unicase.h (casing_suffix_context_t): Add
42640         'first_char_except_ignorable' field.
42641         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42642         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42643         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42644         Update initializer.
42645         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42646         case-ignorable characters.
42647         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42648         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42649         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42650         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42651         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42652
42653 2009-06-30  Bruno Haible  <bruno@clisp.org>
42654
42655         Tests for module 'unicase/ignorable'.
42656         * modules/unicase/ignorable-tests: New file.
42657         * tests/unicase/test-ignorable.c: New file, generated by
42658         gen-uni-tables.
42659
42660         Tests for module 'unicase/cased'.
42661         * modules/unicase/cased-tests: New file.
42662         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42663         * tests/unicase/test-predicate-part1.h: New file, derived from
42664         tests/unictype/test-predicate-part1.h.
42665         * tests/unicase/test-predicate-part2.h: New file, same as
42666         tests/unictype/test-predicate-part2.h.
42667
42668         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42669         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42670         (output_casing_properties): New function.
42671         (main): Call it.
42672         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42673         * lib/unicase/cased.c: Include unictype/bitmap.h.
42674         (uc_is_cased): Define through a bitmap lookup.
42675         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42676         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42677         (uc_is_case_ignorable): Define through a bitmap lookup.
42678         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42679         lib/unictype/bitmap.h.
42680         (Depends-on): Add inline. Clean up.
42681         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42682         lib/unictype/bitmap.h.
42683         (Depends-on): Add inline. Clean up.
42684         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42685         recognition.
42686         * tests/unicase/test-u16-tolower.c (main): Likewise.
42687         * tests/unicase/test-u32-tolower.c (main): Likewise.
42688
42689 2009-06-30  Bruno Haible  <bruno@clisp.org>
42690
42691         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42692         * lib/unicase/u16-casemap.c: Likewise.
42693         * lib/unicase/u32-casemap.c: Likewise.
42694
42695 2009-06-29  Bruno Haible  <bruno@clisp.org>
42696
42697         Define u32_casefold as a wrapper around u32_ct_casefold.
42698         * lib/unicase/u32-casefold.c: Update.
42699         * modules/unicase/u32-casefold (Depends-on): Add
42700         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42701         unicase/empty-suffix-context. Clean up.
42702
42703         Define u16_casefold as a wrapper around u16_ct_casefold.
42704         * lib/unicase/u16-casefold.c: Update.
42705         * modules/unicase/u16-casefold (Depends-on): Add
42706         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42707         unicase/empty-suffix-context. Clean up.
42708
42709         Define u8_casefold as a wrapper around u8_ct_casefold.
42710         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42711         * lib/unicase/u8-casefold.c: Update.
42712         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42713         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42714
42715         Define u32_totitle as a wrapper around u32_ct_totitle.
42716         * lib/unicase/u32-totitle.c: Update.
42717         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42718         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42719
42720         Define u16_totitle as a wrapper around u16_ct_totitle.
42721         * lib/unicase/u16-totitle.c: Update.
42722         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42723         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42724
42725         Define u8_totitle as a wrapper around u8_ct_totitle.
42726         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42727         functions.
42728         (FUNC): Delegate to U_CT_TOTITLE.
42729         * lib/unicase/u8-totitle.c: Update.
42730         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42731         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42732
42733         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42734         invocation.
42735         * modules/unicase/u32-tolower (Depends-on): Add
42736         unicase/empty-prefix-context, unicase/empty-suffix-context.
42737
42738         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42739         invocation.
42740         * modules/unicase/u16-tolower (Depends-on): Add
42741         unicase/empty-prefix-context, unicase/empty-suffix-context.
42742
42743         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42744         * modules/unicase/u8-tolower (Depends-on): Add
42745         unicase/empty-prefix-context, unicase/empty-suffix-context.
42746
42747         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42748         invocation.
42749         * modules/unicase/u32-toupper (Depends-on): Add
42750         unicase/empty-prefix-context, unicase/empty-suffix-context.
42751
42752         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42753         invocation.
42754         * modules/unicase/u16-toupper (Depends-on): Add
42755         unicase/empty-prefix-context, unicase/empty-suffix-context.
42756
42757         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42758         * modules/unicase/u8-toupper (Depends-on): Add
42759         unicase/empty-prefix-context, unicase/empty-suffix-context.
42760
42761         New module 'unicase/u32-ct-casefold'.
42762         * lib/unicase/u32-ct-casefold.c: New file.
42763         * modules/unicase/u32-ct-casefold: New file.
42764
42765         New module 'unicase/u16-ct-casefold'.
42766         * lib/unicase/u16-ct-casefold.c: New file.
42767         * modules/unicase/u16-ct-casefold: New file.
42768
42769         New module 'unicase/u8-ct-casefold'.
42770         * lib/unicase/u8-ct-casefold.c: New file.
42771         * lib/unicase/u-ct-casefold.h: New file, derived from
42772         lib/unicase/u-casefold.h.
42773         * modules/unicase/u8-ct-casefold: New file.
42774
42775         New module 'unicase/u32-ct-totitle'.
42776         * lib/unicase/u32-ct-totitle.c: New file.
42777         * modules/unicase/u32-ct-totitle: New file.
42778
42779         New module 'unicase/u16-ct-totitle'.
42780         * lib/unicase/u16-ct-totitle.c: New file.
42781         * modules/unicase/u16-ct-totitle: New file.
42782
42783         New module 'unicase/u8-ct-totitle'.
42784         * lib/unicase/u8-ct-totitle.c: New file.
42785         * lib/unicase/u-ct-totitle.h: New file, derived from
42786         lib/unicase/u-totitle.h.
42787         * modules/unicase/u8-ct-totitle: New file.
42788
42789         New module 'unicase/u32-ct-tolower'.
42790         * lib/unicase/u32-ct-tolower.c: New file.
42791         * modules/unicase/u32-ct-tolower: New file.
42792
42793         New module 'unicase/u16-ct-tolower'.
42794         * lib/unicase/u16-ct-tolower.c: New file.
42795         * modules/unicase/u16-ct-tolower: New file.
42796
42797         New module 'unicase/u8-ct-tolower'.
42798         * lib/unicase/u8-ct-tolower.c: New file.
42799         * modules/unicase/u8-ct-tolower: New file.
42800
42801         New module 'unicase/u32-ct-toupper'.
42802         * lib/unicase/u32-ct-toupper.c: New file.
42803         * modules/unicase/u32-ct-toupper: New file.
42804
42805         New module 'unicase/u16-ct-toupper'.
42806         * lib/unicase/u16-ct-toupper.c: New file.
42807         * modules/unicase/u16-ct-toupper: New file.
42808
42809         New module 'unicase/u8-ct-toupper'.
42810         * lib/unicase/u8-ct-toupper.c: New file.
42811         * modules/unicase/u8-ct-toupper: New file.
42812
42813         Add context arguments to u*_casemap functions.
42814         * lib/unicase/unicasemap.h: Include unicase.h.
42815         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42816         suffix_context arguments.
42817         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42818         functions.
42819         (FUNC): Add prefix_context and suffix_context arguments. Use
42820         uc_is_cased and uc_is_case_ignorable.
42821         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42822         * lib/unicase/u16-casemap.c: Likewise.
42823         * lib/unicase/u32-casemap.c: Likewise.
42824         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42825         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42826         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
42827         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42828         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
42829         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42830
42831         New module 'unicase/u32-suffix-context'.
42832         * lib/unicase/u32-suffix-context.c: New file.
42833         * modules/unicase/u32-suffix-context: New file.
42834
42835         New module 'unicase/u16-suffix-context'.
42836         * lib/unicase/u16-suffix-context.c: New file.
42837         * modules/unicase/u16-suffix-context: New file.
42838
42839         New module 'unicase/u8-suffix-context'.
42840         * lib/unicase/u8-suffix-context.c: New file.
42841         * lib/unicase/u-suffix-context.h: New file.
42842         * modules/unicase/u8-suffix-context: New file.
42843
42844         New module 'unicase/empty-suffix-context'.
42845         * lib/unicase/empty-suffix-context.c: New file.
42846         * modules/unicase/empty-suffix-context: New file.
42847
42848         New module 'unicase/u32-prefix-context'.
42849         * lib/unicase/u32-prefix-context.c: New file.
42850         * modules/unicase/u32-prefix-context: New file.
42851
42852         New module 'unicase/u16-prefix-context'.
42853         * lib/unicase/u16-prefix-context.c: New file.
42854         * modules/unicase/u16-prefix-context: New file.
42855
42856         New module 'unicase/u8-prefix-context'.
42857         * lib/unicase/u8-prefix-context.c: New file.
42858         * lib/unicase/u-prefix-context.h: New file.
42859         * lib/unicase/context.h: New file.
42860         * modules/unicase/u8-prefix-context: New file.
42861
42862         New module 'unicase/empty-prefix-context'.
42863         * lib/unicase/empty-prefix-context.c: New file.
42864         * modules/unicase/empty-prefix-context: New file.
42865
42866         New module 'unicase/ignorable'.
42867         * lib/unicase/ignorable.c: New file.
42868         * modules/unicase/ignorable: New file.
42869
42870         New module 'unicase/cased'.
42871         * lib/unicase/caseprop.h: New file.
42872         * lib/unicase/cased.c: New file.
42873         * modules/unicase/cased: New file.
42874
42875         New functions for case mapping of substrings.
42876         * lib/unicase.h (casing_prefix_context_t): New type.
42877         (unicase_empty_prefix_context): New variable.
42878         (u8_casing_prefix_context, u16_casing_prefix_context,
42879         u32_casing_prefix_context, u8_casing_prefixes_context,
42880         u16_casing_prefixes_context, u32_casing_prefixes_context): New
42881         declarations.
42882         (casing_suffix_context_t): New type.
42883         (unicase_empty_suffix_context): New variable.
42884         (u8_casing_suffix_context, u16_casing_suffix_context,
42885         u32_casing_suffix_context, u8_casing_suffixes_context,
42886         u16_casing_suffixes_context, u32_casing_suffixes_context,
42887         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
42888         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
42889         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
42890         declarations.
42891
42892 2009-06-28  Jim Meyering  <meyering@redhat.com>
42893
42894         boostrap: indent only with spaces
42895         * build-aux/bootstrap: Indent only with spaces, never TABs.
42896
42897         bootstrap: split long lines
42898         * build-aux/bootstrap: Keep line length < 80.
42899
42900         bootstrap: sync from coreutils
42901         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
42902         just as autoreconf does.  Verify a list of prerequisite
42903         package-name,version-number pairs if defined in bootstrap.conf.
42904         Refer to README-prereq, if prerequisites are not satisfied.
42905
42906 2009-06-27  Eric Blake  <ebb9@byu.net>
42907
42908         tests: add test for bogus NULL definition
42909         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
42910         * tests/test-stdlib.c: Likewise.
42911         * tests/test-string.c: Likewise.
42912         * tests/test-locale.c: Likewise.
42913         * tests/test-unistd.c: Likewise.
42914         * modules/stdio-tests (Depends-on): Add verify.
42915         * modules/stdlib-tests (Depends-on): Likewise.
42916         * modules/string-tests (Depends-on): Likewise.
42917         * modules/locale-tests (Depends-on): Likewise.
42918         * modules/unistd-tests (Depends-on): Likewise.
42919
42920 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
42921
42922         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
42923         self-explaining comment.
42924         * m4/selinux-selinux-h: Update serial.
42925         (gl_LIBSELINUX): New macro, adding a warning for missing development
42926         packages to code extracted from...
42927         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
42928         Add warning for missing development packages here, too.
42929
42930 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
42931
42932         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
42933
42934 2009-06-25  Eric Blake  <ebb9@byu.net>
42935
42936         version-etc: fix regression
42937         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
42938         gcc.
42939         (version_etc): Use it, to catch bugs with trailing NULL.
42940         * lib/version-etc.c (version_etc_arn): Delete unused argument.
42941         (version_etc_va): Fix logic bug.
42942         * modules/version-etc-tests: Add test.
42943         * tests/test-version-etc.c: New file.
42944         * tests/test-version-etc.sh: Likewise.
42945
42946 2009-06-25  Sam Steingold  <sds@gnu.org>
42947
42948         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
42949         mbtowc declaration.
42950
42951 2009-06-25  Eric Blake  <ebb9@byu.net>
42952
42953         fpurge: migrate into <stdio.h>
42954         * lib/fpurge.h: Delete...
42955         * lib/stdio.in.h (fpurge): ...and declare here, instead.
42956         * lib/fpurge.c (fpurge): Change declaring header.
42957         * modules/fpurge (Files): Drop deleted file.
42958         (Depends-on): Add stdio.
42959         (configure.ac): Set witness.
42960         * modules/stdio (Makefile.am): Support fpurge macros.
42961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42962         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
42963         * lib/fflush.c: Update client.
42964         * tests/test-fpurge.c: Likewise.
42965         * NEWS: Mention the change.
42966
42967 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42968
42969         * lib/argp-version-etc.c (program_authors): Add const
42970         qualifier.
42971         * lib/version-etc.c: Fix typos in the comments.
42972         * modules/argp-version-etc: Depends on version-etc.
42973
42974 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42975
42976         argp-version-etc: new module.
42977
42978         * lib/argp-version-etc.c: New file.
42979         * lib/argp-version-etc.h: New file.
42980         * modules/argp-version-etc: New file.
42981         * modules/argp-version-etc-tests: New file.
42982         * tests/test-argp-version-etc.c: New test.
42983         * tests/test-argp-version-etc-1.sh: New test.
42984
42985 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42986
42987         Provide additional interfaces and documentation for version-etc
42988         module.
42989
42990         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
42991         interfaces.
42992         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
42993         prototypes.
42994
42995 2009-06-24  Bruno Haible  <bruno@clisp.org>
42996
42997         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
42998         HAVE_LIB${NAME} macro.
42999         Reported by Sam Steingold <sds@gnu.org>.
43000
43001 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43002
43003         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43004         needed.
43005
43006 2009-06-21  Bruno Haible  <bruno@clisp.org>
43007
43008         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43009         work.
43010         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43011         together with LIB${NAME}, LTLIB${NAME}.
43012         Reported by Sam Steingold <sds@gnu.org>.
43013
43014 2009-06-20  Jim Meyering  <meyering@redhat.com>
43015
43016         tests: make sc_require_test_exit_idiom more generic
43017         * top/maint.mk (Exit_witness_file): New overridable variable.
43018         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43019         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43020
43021 2009-06-19  Jim Meyering  <meyering@redhat.com>
43022
43023         hash: reverse order of src/dst parameters in an internal interface
43024         * lib/hash.c (transfer_entries): Reverse order of parameters to
43025         put DST before SRC.  Adjust callers.
43026
43027         tests: test-hash: avoid wholesale duplication
43028         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43029         Instead, use a loop and add a single conditional.
43030
43031         tests: test-hash: allow seed selection via a command line argument
43032         * tests/test-hash.c (get_seed): New function.
43033         (main): Use it.
43034
43035 2009-06-19  Eric Blake  <ebb9@byu.net>
43036
43037         hash: avoid memory leak on allocation failure
43038         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43039         failure.  Factor repeated algorithm...
43040         (transfer_entries): ...into new helper routine.
43041         (hash_delete): React to hash_rehash return value.
43042
43043         hash: reduce memory pressure in hash_rehash no-op case
43044         * lib/hash.c (next_prime): Avoid overflow.
43045         (hash_initialize): Factor bucket size computation...
43046         (compute_bucket_size): ...into new helper function.
43047         (hash_rehash): Use new function and open coding to reduce memory
43048         pressure, and avoid a memory leak in USE_OBSTACK code.
43049         Reported by Jim Meyering.
43050
43051 2009-06-18  Eric Blake  <ebb9@byu.net>
43052
43053         hash: make rotation more obvious
43054         * modules/hash (Depends-on): Add bitrotate and stdint.
43055         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43056         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43057         (SIZE_MAX): Rely on headers for definition.
43058         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43059         (raw_hasher): Use rotr_sz.
43060         Suggested by Jim Meyering.
43061
43062         hash: fix memory leak in last patch
43063         * lib/hash.c (hash_rehash): Avoid memory leak.
43064
43065         hash: avoid no-op rehashing
43066         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43067
43068         hash: provide default callback functions
43069         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43070         (hash_initialize): Use them as defaults.
43071         * tests/test-hash.c (main): Test this.
43072
43073         hash: minor optimization
43074         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43075         when possible.
43076         (hash_initialize): Document this promise.
43077         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43078         * tests/test-hash.c (hash_compare_strings): Test this.
43079
43080 2009-06-18  Bruno Haible  <bruno@clisp.org>
43081
43082         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43083         going to be replaced anyway.
43084
43085 2009-06-18  Bruno Haible  <bruno@clisp.org>
43086
43087         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43088         in one place.
43089         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43090         be replaced anyway.
43091
43092 2009-06-18  Eric Blake  <ebb9@byu.net>
43093
43094         hash: check for resize before insertion
43095         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43096         threshold before insertion, so that a pathological hash_rehash
43097         that fills every bucket can still trigger another rehash.
43098
43099 2009-06-18  Jim Meyering  <meyering@redhat.com>
43100
43101         hash-tests: add a loop around the small tests
43102         * tests/test-hash.c (main): Repeat small tests with selected
43103         small initial table sizes.
43104
43105 2009-06-17  Eric Blake  <ebb9@byu.net>
43106
43107         hash: minor cleanups
43108         * lib/hash.h (hash_entry): Make opaque, by moving...
43109         * lib/hash.c (hash_entry): ...here.
43110         (hash_insert): Clarify restrictions on what can be inserted.
43111         (hash_get_next): Clarify when it is safe to remove an element
43112         during traversal.
43113         (check_tuning): Skip verification when tuning is known safe.
43114         (hash_initialize): Clarify restrictions on tuning.
43115
43116 2009-06-17  Jim Meyering  <jim@meyering.net>
43117         and Eric Blake  <ebb9@byu.net>
43118
43119         hash-tests: new module
43120         * modules/hash-tests: New file.
43121         * tests/test-hash.c: New file.
43122
43123 2009-06-17  Eric Blake  <ebb9@byu.net>
43124
43125         strstr-simple: document new module
43126         * MODULES.html.sh: Document new module.
43127
43128         strstr, strcasestr: replace on platforms with broken memchr
43129         * modules/strstr: Split into...
43130         * modules/strstr-simple: ...new module that does not care about
43131         performance, but does care about glibc bug.
43132         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43133         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43134         if platform memchr is broken, per Debian bug 521737.
43135         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43136         memchr.
43137         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43138         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43139         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43140         * modules/mountlist (Depends-on): Add strstr-simple.
43141         * modules/gen-uni-tables (Depends-on): Likewise.
43142         * modules/argz (Depends-on): Add strstr.
43143
43144 2009-06-17  Bruno Haible  <bruno@clisp.org>
43145
43146         * modules/posix_spawn-internal (Depends-on): Add errno.
43147
43148 2009-06-17  Bruno Haible  <bruno@clisp.org>
43149
43150         Define missing ESTALE on Interix 3.5.
43151         * lib/errno.in.h (ESTALE): Assign a value if missing.
43152         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43153         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43154         missing.
43155         * doc/posix-headers/errno.texi: Mention the Interix bug.
43156         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43157
43158 2009-06-15  Eric Blake  <ebb9@byu.net>
43159
43160         memchr, memchr2: add valgrind exception
43161         * lib/memchr.valgrind: New file.
43162         * lib/memchr2.valgrind: New file.
43163         * modules/memchr (Files): Distribute valgrind file.
43164         * modules/memchr2 (Files): Likewise.
43165
43166         docs: memchr is no longer obsolete
43167         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43168         * lib/string.in.h (memchr): Simplify logic.
43169
43170 2009-06-14  Jim Meyering  <meyering@redhat.com>
43171
43172         link-follow: fix the "checking..." message to not mention trailing slash
43173         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43174         never considered trailing slashes.
43175
43176 2009-06-14  Bruno Haible  <bruno@clisp.org>
43177
43178         * m4/memchr.m4: Mention also the bug on IA-64.
43179         * doc/posix-functions/memchr.texi: Likewise.
43180
43181 2009-06-12  Eric Blake  <ebb9@byu.net>
43182
43183         memchr: detect broken x86_64 and alpha implementations
43184         * modules/memchr-tests (Depends-on): Move mmap detection...
43185         * modules/memchr (Depends-on): ...here.
43186         (configure.ac): Set indicator.
43187         * lib/string.in.h (memchr): Declare replacement.
43188         * modules/string (Makefile.am): Trigger replacement.
43189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43190         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43191         bugs.
43192         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43193         * modules/getpagesize (License): Relax license.
43194
43195 2009-06-11  Bruno Haible  <bruno@clisp.org>
43196
43197         * lib/idpriv.h: Add more references.
43198
43199 2009-06-08  Bruno Haible  <bruno@clisp.org>
43200
43201         Tests for module 'idpriv-droptemp'.
43202         * modules/idpriv-droptemp-tests: New file.
43203         * tests/test-idpriv-droptemp.sh: New file.
43204         * tests/test-idpriv-droptemp.su.sh: New file.
43205         * tests/test-idpriv-droptemp.c: New file.
43206
43207         New module 'idpriv-droptemp'.
43208         * lib/idpriv-droptemp.c: New file.
43209         * modules/idpriv-droptemp: New file.
43210
43211 2009-06-08  Bruno Haible  <bruno@clisp.org>
43212
43213         Tests for module 'idpriv-drop'.
43214         * modules/idpriv-drop-tests: New file.
43215         * tests/test-idpriv-drop.sh: New file.
43216         * tests/test-idpriv-drop.su.sh: New file.
43217         * tests/test-idpriv-drop.c: New file.
43218
43219         New module 'idpriv-drop'.
43220         * lib/idpriv.h: New file.
43221         * lib-idpriv-drop.c: New file.
43222         * m4/idpriv.m4: New file.
43223         * modules/idpriv-drop: New file.
43224
43225 2009-06-08  Bruno Haible  <bruno@clisp.org>
43226
43227         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43228         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43229         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43230         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43231         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43232         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43233         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43234
43235 2009-06-08  Eric Blake  <ebb9@byu.net>
43236
43237         test-strstr: use memory fence, when possible
43238         * tests/test-strstr.c (main): Use memory fence, in order to be
43239         more likely to trigger Debian bug 521737.
43240         * modules/strstr-tests (Files): Pull in additional files.
43241
43242         memchr: no longer obsolete, for wider field testing
43243         * modules/memchr (Status, Notice): Delete, this module is no
43244         longer obsolete.
43245         * modules/vasnprintf (Depends-on): Add memchr.
43246
43247 2009-06-07  Jim Meyering  <meyering@redhat.com>
43248
43249         hash: declare some functions with the warn_unused_result attribute
43250         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43251
43252 2009-06-07  Bruno Haible  <bruno@clisp.org>
43253
43254         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43255         Reported by Eric Blake.
43256
43257 2009-06-06  Eric Blake  <ebb9@byu.net>
43258
43259         test-alignof: fix typo with long double
43260         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43261         compiler error.
43262
43263 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43264
43265         Escape non-texinfo { and }s.
43266         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43267         markup error.
43268
43269 2009-06-04  Jim Meyering  <meyering@redhat.com>
43270
43271         gitlog-to-changelog: don't infloop on an empty commit log
43272         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43273         Reported by Boris Petersen <transacid@centerim.org>.
43274
43275 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43276
43277         version-etc: extend for packagers
43278         Add three new configure options, intended for packagers:
43279           --with-packager="packager name"
43280           --with-packager-version="packager-specific version"
43281           --with-packager-bug-reports="packager bug reporting"
43282         An example with coreutils:
43283           $ ./configure \
43284             --with-packager=Gentoo \
43285             --with-packager-bug-report=http://bugs.gentoo.org/ \
43286             --with-packager-version="patchset 1.6"
43287           $ ./src/ls --version | head -n2
43288           ls (GNU coreutils) 7.1-dirty
43289           Packaged by Gentoo (patchset 1.6)
43290         Note that the bug reporting info via --help doesn't show up because
43291         coreutils uses its own custom emit_bug_reporting_address() implementation
43292         in src/system.h.  If it didn't, it'd look like:
43293           $ ./src/ls --help | tail -n4
43294           Report bugs to <bug-coreutils@gnu.org>.
43295           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43296           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43297           General help using GNU software: <http://www.gnu.org/gethelp/>.
43298         * lib/version-etc.c: Print new information, if provided.
43299         * m4/version-etc.m4: New file.
43300         * modules/version-etc (Files): Add m4/version-etc.m4.
43301         (configure.ac): Add gl_VERSION_ETC.
43302
43303 2009-05-31  Bruno Haible  <bruno@clisp.org>
43304
43305         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43306         and 'int64_t'.
43307         * modules/alignof-tests (Dependencies): Add stdint.
43308         Reported by Eric Blake.
43309
43310 2009-05-31  Bruno Haible  <bruno@clisp.org>
43311
43312         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43313         restriction due to compiler bugs.
43314         Reported by Eric Blake.
43315
43316 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43317             Bruno Haible  <bruno@clisp.org>
43318
43319         Fix test-alignof failure.
43320         * lib/alignof.h (alignof_slot): New macro.
43321         (alignof_type): New macro, with the same semantics as the previous
43322         'alignof'.
43323         (alignof): Alias to alignof_slot.
43324         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43325         check that the results are usable as constant expressions.
43326
43327 2009-05-31  Bruno Haible  <bruno@clisp.org>
43328
43329         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43330         * tests/test-memchr.c (main): Check that memchr does not read past the
43331         first occurrence of the byte.
43332         * tests/test-strstr.c (main): Update comment.
43333         Suggested by Eric Blake.
43334
43335 2009-05-30  Bruno Haible  <bruno@clisp.org>
43336
43337         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43338         detail how to use dumpbin.
43339         Reported by David Byron <dbyron@dbyron.com>.
43340
43341 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43342
43343         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43344
43345 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43346
43347         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43348
43349 2009-05-28  Bruno Haible  <bruno@clisp.org>
43350
43351         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43352         build-aux/ files.
43353
43354 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43355
43356         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43357
43358 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43359
43360         * gnulib-tool (sed_transform_main_lib_file)
43361         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43362         regexps.
43363
43364 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43365
43366         * tests/test-strstr.c: Add another self-test.
43367         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43368         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43369
43370 2009-05-23  Bruno Haible  <bruno@clisp.org>
43371
43372         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43373         change.
43374
43375 2009-05-21  Bruno Haible  <bruno@clisp.org>
43376
43377         Simplify use of mode_t varargs.
43378         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43379         uses 'mode_t' or 'int'.
43380         * lib/openat.c (openat): Likewise.
43381         * lib/open-safer.c (open_safer): Likewise.
43382         * m4/mode_t.m4: New file.
43383         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43384         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43385         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43386         * modules/open (Files): Add m4/mode_t.m4.
43387         * modules/openat (Files): Likewise.
43388         * modules/fcntl-safer (Files): Likewise.
43389         Suggested by Eric Blake.
43390
43391 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43392
43393         * doc/glibc-functions/fallocate.texi: New file.
43394         * doc/gnulib.texi: Include it.
43395
43396 2009-05-21  Eric Blake  <ebb9@byu.net>
43397             Bruno Haible  <bruno@clisp.org>
43398
43399         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43400         invocations.
43401         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43402
43403 2009-05-21  Eric Blake  <ebb9@byu.net>
43404             Bruno Haible  <bruno@clisp.org>
43405
43406         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43407         include_next. Fix of 2008-11-20 commit.
43408         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43409         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43410         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43411         NEXT_MATH_H.
43412         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43413         instead of NEXT_MATH_H.
43414
43415 2009-05-21  Bruno Haible  <bruno@clisp.org>
43416
43417         Avoid redefinition warnings for SIZE_MAX.
43418         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43419         Reported by Simon Josefsson.
43420
43421 2009-05-21  Bruno Haible  <bruno@clisp.org>
43422
43423         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43424         AC_CACHE_VAL.
43425
43426 2009-05-20  Bruno Haible  <bruno@clisp.org>
43427
43428         Make zeroptr.h work on mingw.
43429         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43430         mprotect.
43431         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43432         * modules/memchr2-tests (configure.ac): Likewise.
43433         * modules/memcmp-tests (configure.ac): Likewise.
43434         * modules/memmem-tests (configure.ac): Likewise.
43435         * modules/memrchr-tests (configure.ac): Likewise.
43436         Reported by Simon Josefsson.
43437
43438 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43439
43440         * tests/test-glob.c: Include string.h for strcmp prototype.
43441
43442 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43443
43444         * modules/getdelim (Depends-on): Add explicit stdint, although it
43445         was implicitly already pulled in via realloc-posix.
43446         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43447
43448 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43449
43450         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43451         G. Christensen" <tgc@jupiterrise.com>.
43452         * m4/sys_socket_h.m4: Check for sa_family_t.
43453         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43454         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43455         * tests/test-sys_socket.c: Check that sa_family_t works.
43456
43457 2009-05-18  Eric Blake  <ebb9@byu.net>
43458
43459         maint.mk: allow gnulib_dir in VPATH build
43460         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43461
43462 2009-05-15  Jim Meyering  <meyering@redhat.com>
43463
43464         maint.mk: Give gnulib_dir a default definition.
43465         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43466         Thus, most packages no longer need to specify this variable in cfg.mk
43467
43468 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43469
43470         rename.m4: fix typos that would make non-mingw cross-configure fail
43471         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43472
43473 2009-05-13  Eric Blake  <ebb9@byu.net>
43474
43475         mmap-anon: avoid out-of-order autoconf expansion
43476         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43477         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43478         * modules/memchr-tests (Depends-on): Add extensions.
43479         * modules/memchr2-tests (Depends-on): Add extensions.
43480         * modules/memcmp-tests (Depends-on): Add extensions.
43481         * modules/memmem-tests (Depends-on): Add extensions.
43482         * modules/memrchr-tests (Depends-on): Add extensions.
43483
43484 2009-05-13  Bruno Haible  <bruno@clisp.org>
43485
43486         Make some tests ISO C 99 compliant.
43487         * tests/zerosize-ptr.h: New file.
43488         * tests/test-memchr.c: Include zerosize-ptr.h.
43489         (main): Use a zero-size object pointer instead of NULL.
43490         * tests/test-memchr2.c: Include zerosize-ptr.h.
43491         (main): Use a zero-size object pointer instead of NULL.
43492         * tests/test-memcmp.c: Include zerosize-ptr.h.
43493         (main): Use a zero-size object pointer instead of NULL.
43494         * tests/test-memmem.c: Include zerosize-ptr.h.
43495         (main): Use a zero-size object pointer instead of NULL.
43496         * tests/test-memrchr.c: Include zerosize-ptr.h.
43497         (main): Use a zero-size object pointer instead of NULL.
43498         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43499         m4/mmap-anon.m4.
43500         (Depends-on): Add getpagesize.
43501         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43502         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43503         m4/mmap-anon.m4.
43504         (Depends-on): Add getpagesize.
43505         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43506         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43507         m4/mmap-anon.m4.
43508         (Depends-on): Add getpagesize.
43509         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43510         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43511         m4/mmap-anon.m4.
43512         (Depends-on): Add getpagesize.
43513         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43514         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43515         m4/mmap-anon.m4.
43516         (Depends-on): Add getpagesize.
43517         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43518
43519 2009-05-12  Bruno Haible  <bruno@clisp.org>
43520
43521         Tests for module 'alignof'.
43522         * modules/alignof-tests: New file.
43523         * tests/test-alignof.c: New file.
43524
43525 2009-05-12  Bruno Haible  <bruno@clisp.org>
43526
43527         Fix alignof macro.
43528         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43529         vendor compilers that are always correct.
43530
43531 2009-05-12  Bruno Haible  <bruno@clisp.org>
43532
43533         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43534         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43535         not whether its fully works.
43536
43537 2009-05-12  Bruno Haible  <bruno@clisp.org>
43538
43539         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43540
43541 2009-05-12  Jim Meyering  <meyering@redhat.com>
43542
43543         * top/maint.mk: Adjust backslash alignment.
43544
43545 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43546
43547         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43548
43549 2009-05-11  Eric Blake  <ebb9@byu.net>
43550
43551         argp: avoid undefined behavior
43552         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43553         macros.
43554
43555 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43556
43557         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43558         user.name to prevent git commit from complaining.
43559
43560 2009-05-10  Bruno Haible  <bruno@clisp.org>
43561
43562         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43563         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43564         it rewrites every file name only once.
43565         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43566
43567 2009-05-08  Bruno Haible  <bruno@clisp.org>
43568
43569         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43570         instead of 'max'.
43571
43572 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43573
43574         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43575         sockaddr_storage test.
43576
43577 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43578
43579         * modules/sys_socket (Makefile.am): Substitute
43580         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43581         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43582         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43583         * tests/test-sys_socket.c: Check sockaddr_storage.
43584
43585 2009-05-08  Bruno Haible  <bruno@clisp.org>
43586
43587         New module 'alignof'.
43588         * lib/alignof.h: New file.
43589         * modules/alignof: New file.
43590
43591 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43592             Bruno Haible  <bruno@clisp.org>
43593
43594         Fix test-file-has-acl on FreeBSD.
43595         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43596         mask is implicitly added.
43597         * tests/test-file-has-acl.c: Include <signal.h>.
43598         (main): Terminate the test after 5 seconds.
43599         * modules/acl-tests (configure.ac): Check for alarm function.
43600
43601 2009-05-04  Bruno Haible  <bruno@clisp.org>
43602
43603         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43604         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43605         * modules/errno (configure.ac): Drop AC_REQUIRE.
43606         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43607         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43608
43609 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43610
43611         * modules/glob-tests: New module.
43612         * tests/test-glob.c: Add.
43613
43614 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43615
43616         * modules/fnmatch-tests: New module.
43617         * tests/test-fnmatch.c: Add.
43618
43619 2009-05-04  Eric Blake  <ebb9@byu.net>
43620
43621         maint: make the new no-submodule-changes rule VPATH-safe
43622         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43623
43624 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43625             Bruno Haible  <bruno@clisp.org>
43626
43627         acl: Fix infinite loop on FreeBSD.
43628         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43629         of return value from acl_get_entry.
43630         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43631         Likewise.
43632
43633 2009-05-03  Bruno Haible  <bruno@clisp.org>
43634
43635         * lib/acl-internal.h (acl_entries): Clarify return value.
43636         * lib/acl_entries.c (acl_entries): Likewise.
43637
43638 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43639
43640         Bug fix in acl module.
43641         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43642
43643 2009-05-03  Bruno Haible  <bruno@clisp.org>
43644
43645         Create gperf-generated file in the source dir, not in the build dir.
43646         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43647         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43648         * modules/unicase/locale-language (unicase/locale-languages.h):
43649         Likewise.
43650         * modules/unicase/special-casing (unicase/special-casing-table.h):
43651         Likewise.
43652         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43653         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43654         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43655         Reported by Ralf Wildenhues.
43656
43657 2009-05-03  Bruno Haible  <bruno@clisp.org>
43658
43659         * modules/fnmatch (Description, configure.ac): Taken from
43660         fnmatch-posix.
43661         * modules/fnmatch-posix: Turn into a symbolic reference to the
43662         'fnmatch' module, and deprecate.
43663         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43664
43665 2009-05-03  Bruno Haible  <bruno@clisp.org>
43666
43667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43668         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43669         Reported by Ralf Wildenhues.
43670
43671 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43672
43673         * m4/fnmatch.m4: Fix fnmatch re-define.
43674
43675 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43676
43677         priv-set: new module and tests; adapt write-any-file
43678         * lib/priv-set.c: New file.
43679         * lib/priv-set.h: New file.
43680         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43681         * lib/write-any-file.c: Simplify by using priv-set module.
43682         * m4/priv-set.m4: New file.
43683         * modules/priv-set: New file.
43684         * modules/unlinkdir: Add dependency on priv-set module.
43685         * modules/write-any-file: Likewise.
43686
43687         Tests for module 'priv-set'.
43688         * modules/priv-set-tests: New file.
43689         * tests/test-priv-set.c: New file.
43690
43691 2009-05-03  Jim Meyering  <meyering@redhat.com>
43692             Bruno Haible  <bruno@clisp.org>
43693
43694         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43695         use the converted UTF-8 variant of the name instead.
43696
43697 2009-05-03  Jim Meyering  <meyering@redhat.com>
43698
43699         tests: tighten some getdate tests
43700         * tests/test-getdate.c (main): Tighten tests: require equality,
43701         not just greater than.  Set TZ envvar to UTC0.
43702
43703 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43704
43705         getdate: correctly interpret "next monday" when run on a Monday
43706         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43707         that e.g., "next tues" (when run on a tuesday) results in a date
43708         that is one week in the future, and not today's date.
43709         I.e., add a week when the wday is the same as the current one.
43710         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43711         and earlier by Martin Bernreuther and Jan Minář.
43712         * tests/test-getdate.c (main): Check that "next DAY" is always in
43713         the future and that "last DAY" is always in the past.
43714
43715 2009-05-02  Jim Meyering  <meyering@redhat.com>
43716
43717         build: ensure that a release build fails when a submodule is unclean
43718         * top/maint.mk (no-submodule-changes): New rule.
43719         (alpha beta major): Depend on it.
43720
43721 2009-05-02  Bruno Haible  <bruno@clisp.org>
43722
43723         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43724         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43725         shell variable gl_fnmatch_required to detect which variant is
43726         requested.
43727         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43728         gl_FUNC_FNMATCH_POSIX.
43729         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43730         exclude fnmatch-posix.
43731
43732 2009-05-02  Bruno Haible  <bruno@clisp.org>
43733
43734         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43735         * modules/mbsrtowcs (License): Change to LGPLv2+.
43736         * modules/strnlen1 (License): Likewise.
43737         Reported by Simon Josefsson.
43738
43739 2009-05-02  Bruno Haible  <bruno@clisp.org>
43740
43741         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43742         "cross".
43743         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43744         gnulib-tool was called with option --source-base=lib.
43745
43746 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43747
43748         Use automake *-local hooks without commands, for extensibility.
43749         * modules/localcharset (Makefile.am): Rename install-exec-local
43750         rule to install-exec-localcharset, and make it a prerequisite of
43751         install-exec-local.  Likewise, rename the uninstall-local rule to
43752         uninstall-localcharset, and make it a prerequisite of the former.
43753
43754 2009-05-01  Bruno Haible  <bruno@clisp.org>
43755
43756         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43757         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43758         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43759         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43760         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43761         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43762         m4/locale-zh.m4, m4/codeset.m4.
43763
43764         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43765         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43766         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43767         m4/locale-zh.m4.
43768
43769         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43770         REPLACE_WCRTOMB if mbstate_t must be replaced.
43771         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43772         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43773
43774 2009-05-01  Bruno Haible  <bruno@clisp.org>
43775
43776         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43777         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43778         dngettext, dcngettext, textdomain, bindtextdomain,
43779         bind_textdomain_codeset): Undefine before redefining.
43780
43781 2009-04-30  Bruno Haible  <bruno@clisp.org>
43782
43783         Fix bug introduced on 2009-04-25.
43784         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43785         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43786         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43787         is defined.
43788         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43789         is defined.
43790         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43791         is defined.
43792         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43793
43794 2009-04-28  Bruno Haible  <bruno@clisp.org>
43795
43796         Comment tweaks.
43797         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43798         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43799         * lib/unicase.h (u*_casexfrm): Likewise.
43800         Reported by Paolo Bonzini.
43801
43802 2009-04-28  Bruno Haible  <bruno@clisp.org>
43803
43804         Fix a compilation error.
43805         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43806         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43807         Reported by Jim Meyering.
43808
43809 2009-04-27  Bruno Haible  <bruno@clisp.org>
43810
43811         New module 'libunistring'.
43812         * modules/libunistring: New file.
43813         * m4/libunistring.m4: New file.
43814         * MODULES.html.sh (Unicode string functions): Add it.
43815
43816 2009-04-27  Eric Blake  <ebb9@byu.net>
43817
43818         maint.mk: allow package-specific header to provide <config.h>
43819         * top/maint.mk (sc_require_config_h): New variable.
43820         (sc_require_config_h, sc_require_config_h_first): Use it.
43821
43822 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43823
43824         * top/maint.mk (sc_avoid_if_before_free): Except
43825         useless-if-before-free script.
43826
43827 2009-04-27  Eric Blake  <ebb9@byu.net>
43828
43829         maintainer-makefile: depend on all required helper scripts
43830         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
43831         useless-if-before-free.
43832         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
43833         version, rather than assuming gnulib checkout is available.
43834         Reported by Simen Josefsson.
43835
43836 2009-04-26  Bruno Haible  <bruno@clisp.org>
43837
43838         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
43839         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
43840         "../" or "..".
43841
43842 2009-04-26  Bruno Haible  <bruno@clisp.org>
43843
43844         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
43845         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
43846         AC_LIB_HAVE_LINKFLAGS.
43847
43848 2009-04-26  Bruno Haible  <bruno@clisp.org>
43849
43850         Simplify calling convention of u*_conv_from_encoding.
43851         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
43852         u32_conv_from_encoding): Expect a resultbuf argument and return the
43853         result directly as a pointer.
43854         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
43855         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
43856         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
43857         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
43858         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
43859         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43860         Update.
43861         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
43862         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
43863         * lib/vasnprintf.c (VASNPRINTF): Update.
43864         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
43865         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
43866         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
43867         * NEWS: Mention the change.
43868
43869 2009-04-26  Bruno Haible  <bruno@clisp.org>
43870
43871         Simplify calling convention of u*_conv_to_encoding.
43872         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43873         u32_conv_to_encoding): Expect a resultbuf argument and return the
43874         result directly as a pointer.
43875         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43876         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
43877         freeing scaled_offsets if mem_iconveha failed.
43878         * lib/unicase/u-casexfrm.h (FUNC): Update.
43879         * lib/uninorm/u-normxfrm.h (FUNC): Update.
43880         * lib/vasnprintf.c (VASNPRINTF): Update.
43881         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
43882         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
43883         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
43884         * NEWS: Mention the change.
43885
43886 2009-04-26  Bruno Haible  <bruno@clisp.org>
43887
43888         Avoid test failures on AIX and OSF/1.
43889         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
43890         malloc(0).
43891         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43892         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43893         Likewise.
43894         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
43895         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
43896         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
43897         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
43898         * doc/posix-functions/malloc.texi: Document the portability problem
43899         related to malloc(0).
43900
43901 2009-04-26  Bruno Haible  <bruno@clisp.org>
43902
43903         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
43904         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
43905         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
43906
43907 2009-04-25  Bruno Haible  <bruno@clisp.org>
43908
43909         Avoid link error when creating a namespace clean library.
43910         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
43911         as macro with arguments if already defined as an alias.
43912         * lib/signbitf.c (gl_signbitf): Don't undefine.
43913         * lib/signbitd.c (gl_signbitd): Don't undefine.
43914         * lib/signbitl.c (gl_signbitl): Don't undefine.
43915
43916 2009-04-25  Jim Meyering  <meyering@redhat.com>
43917
43918         vc-list-files: fix another quoting bug
43919         * build-aux/vc-list-files: Avoid sed backslash expansion
43920         of pathological directory names.
43921
43922 2009-04-25  Eric Blake  <ebb9@byu.net>
43923
43924         vc-list-files: fix shell quoting error
43925         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
43926         timestamp.
43927
43928 2009-04-25  Jim Meyering  <meyering@redhat.com>
43929
43930         vc-list-files: restore lost functionality with subdir argument
43931         * build-aux/vc-list-files: When given a non-"." sub-directory
43932         argument, substitute the $dir/ prefix back onto each resulting name.
43933         Otherwise, coreutils' root_tests check would fail.
43934
43935 2009-04-24  Eric Blake  <ebb9@byu.net>
43936
43937         vc-list-files: ignore git symlinks
43938         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
43939         than ls-files, to ignore git symlinks.
43940
43941         maint.mk: import improvements from m4
43942         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
43943         (move_if_change): Delete unused macro.
43944         (news-date-check, vc-diff-check): Support VPATH builds.
43945         (announcement): Likewise.  Split --bootstrap-tools list...
43946         (boostrap-tools): ...into separate list, which can be overridden
43947         in cfg.mk.
43948         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
43949         requiring dependency on useless-if-before-free module.
43950         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
43951         Support VPATH builds.
43952
43953 2009-04-24  Jim Meyering  <meyering@redhat.com>
43954
43955         maint.mk: remove coreutils-specific rules and variables
43956         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
43957         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
43958         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
43959
43960         maint.mk: remove obsolete rule
43961         * top/maint.mk (rel-check): Remove rule.
43962         (WGET, WGETFLAGS): Remove now-unused variables.
43963
43964 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43965
43966         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
43967         consistency.
43968
43969         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
43970         '$(PATH_SEPARATOR)' instead of ':'.
43971
43972 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43973
43974         * lib/getopt1.c (main): Use 'const' for static array.
43975
43976 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43977
43978         * top/maint.mk: Sync with coreutils.
43979         * NEWS: Explain incompatibilities.
43980
43981 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43982             Bruno Haible  <bruno@clisp.org>
43983
43984         Fix cross-compilation results.
43985         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
43986         statement, as third argument of AC_TRY_RUN.
43987         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43988         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
43989         Likewise.
43990         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43991         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43992         Likewise.
43993         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43994         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
43995         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
43996
43997 2009-04-20  Bruno Haible  <bruno@clisp.org>
43998
43999         Avoid test failure on mingw.
44000         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44001
44002 2009-04-20  Bruno Haible  <bruno@clisp.org>
44003
44004         Avoid compilation error on mingw.
44005         * modules/localename-tests (Depends-on): Add locale.
44006
44007 2009-04-19  Bruno Haible  <bruno@clisp.org>
44008
44009         Support for building a shared library on Windows platforms.
44010         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44011         (main): Test the presence of UNINORM_NFC here.
44012         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44013         (main): Test the presence of UNINORM_NFD here.
44014         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44015         (main): Test the presence of UNINORM_NFKC here.
44016         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44017         (main): Test the presence of UNINORM_NFKD here.
44018
44019 2009-04-19  Bruno Haible  <bruno@clisp.org>
44020
44021         Avoid a compiler warning.
44022         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44023         Change type of variable 'sequence'.
44024
44025 2009-04-19  Bruno Haible  <bruno@clisp.org>
44026
44027         * modules/configmake (Makefile.am): When the contents of configmake.h
44028         does not change, arrange to preserve its modification time.
44029
44030 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44031
44032         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44033         gettext domain.
44034
44035 2009-04-16  Jim Meyering  <meyering@redhat.com>
44036
44037         useless-if-before-free: improve conversion code
44038         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44039         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44040
44041 2009-04-14  Bruno Haible  <bruno@clisp.org>
44042
44043         * modules/fcntl (Depends-on): Add extensions.
44044         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44045
44046 2009-04-12  Ben Pfaff  <blp@gnu.org>
44047
44048         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44049         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44050
44051 2009-03-20  Ben Pfaff  <blp@gnu.org>
44052
44053         Make rename replace existing destinations on Windows.
44054         * m4/rename.m4: Add test for Mingw.
44055         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44056         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44057         * doc/posix-functions/rename.texi: Document.
44058
44059 2009-04-10  Bruno Haible  <bruno@clisp.org>
44060
44061         New include file "iconveh.h".
44062         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44063         * lib/striconveh.h: Include it.
44064         (enum iconv_ilseq_handler): Remove definition.
44065         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44066         striconveh.h.
44067         * lib/striconveha.c: Include striconveh.h.
44068         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44069         * modules/striconveh (Files): Add lib/iconveh.h.
44070         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44071         lib/striconveh.h.
44072
44073 2009-04-10  Bruno Haible  <bruno@clisp.org>
44074
44075         * lib/uniconv.h: Update comment.
44076
44077 2009-04-10  Bruno Haible  <bruno@clisp.org>
44078
44079         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44080         always.
44081         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44082         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44083         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44084         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44085         "unistring-notinline.h", so that the function gets defined always.
44086         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44087         * lib/unistr/u8-uctomb.c: Likewise.
44088         * lib/unistr/u16-mbtouc.c: Likewise.
44089         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44090         * lib/unistr/u16-uctomb.c: Likewise.
44091         * lib/unistr/u32-mbtouc.c: Likewise.
44092         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44093         * lib/unistr/u32-uctomb.c: Likewise.
44094
44095 2009-04-10  Bruno Haible  <bruno@clisp.org>
44096
44097         Mark 'utime' obsolete.
44098         * modules/utime (Status, Notice): New sections.
44099         Suggested by Jim Meyering.
44100
44101         Fix cross-compile guess for utime test.
44102         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44103         autoconf.
44104         * doc/posix-functions/utime.texi: Give more precisions.
44105         Reported by Jan <ipif@ymail.com>.
44106
44107 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44108
44109         filevercmp: correct today's change
44110         * lib/filevercmp.c: Also handle coreutils' test inputs.
44111         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44112
44113         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44114         for reporting it.
44115         * lib/filevercmp.c: Special handle for "", "." and "..".
44116         * tests/test-filevercmp.c: Enlarge the set suite.
44117
44118 2009-04-07  Jim Meyering  <meyering@redhat.com>
44119
44120         useless-if-before-free: show how to remove braced useless free, too
44121         * build-aux/useless-if-before-free: still only in a comment, though.
44122
44123 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44124
44125         maint.mk: import changes to syntax-check macros from coreutils
44126         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44127         Use them in the relevant macros.
44128
44129 2009-04-06  Bruno Haible  <bruno@clisp.org>
44130
44131         Fix unportable use of bit-fields.
44132         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44133         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44134         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44135
44136 2009-04-06  Bruno Haible  <bruno@clisp.org>
44137
44138         Avoid test failures on AIX and OSF/1.
44139         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44140         that malloc(0) = NULL.
44141         * tests/unicase/test-u8-tolower.c (check): Likewise.
44142         * tests/unicase/test-u8-totitle.c (check): Likewise.
44143         * tests/unicase/test-u8-toupper.c (check): Likewise.
44144         * tests/unicase/test-u16-casefold.c (check): Likewise.
44145         * tests/unicase/test-u16-tolower.c (check): Likewise.
44146         * tests/unicase/test-u16-totitle.c (check): Likewise.
44147         * tests/unicase/test-u16-toupper.c (check): Likewise.
44148         * tests/unicase/test-u32-casefold.c (check): Likewise.
44149         * tests/unicase/test-u32-tolower.c (check): Likewise.
44150         * tests/unicase/test-u32-totitle.c (check): Likewise.
44151         * tests/unicase/test-u32-toupper.c (check): Likewise.
44152         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44153         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44154         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44155         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44156         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44157         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44158         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44159         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44160         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44161         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44162         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44163         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44164
44165 2009-04-05  Bruno Haible  <bruno@clisp.org>
44166
44167         Work around an autoconf limitation.
44168         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44169         comment line if it would be longer than 3 KB.
44170
44171 2009-04-05  Bruno Haible  <bruno@clisp.org>
44172
44173         Avoid test failure with libiconv-1.13.
44174         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44175         of the expected test results.
44176
44177 2009-04-05  Bruno Haible  <bruno@clisp.org>
44178
44179         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44180         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44181         that it should be installed.
44182
44183 2009-04-05  Bruno Haible  <bruno@clisp.org>
44184
44185         * gnulib-tool: New option --copy-file.
44186         (func_usage): Document it.
44187         (func_dest_tmpfilename): Moved out of func_import.
44188         (func_add_file, func_update_file): New functions, extracted from
44189         func_import.
44190         (func_import): Update.
44191
44192 2009-04-05  Karl Berry  <karl@gnu.org>
44193
44194         * README: prominently mention gnulib-tool.
44195         Rearrange sections so getting the code is near the top.
44196
44197 2009-04-05  Bruno Haible  <bruno@clisp.org>
44198
44199         * lib/unicase.h: Mention u*_cmp2.
44200         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44201         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44202         * lib/unicase/ulc-casecmp.c: Likewise.
44203         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44204         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44205         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44206         unistr/u8-cmp.
44207         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44208         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44209         unistr/u16-cmp.
44210         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44211         unistr/u32-cmp.
44212
44213         * lib/uninorm.h: Mention u*_cmp2.
44214         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44215         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44216         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44217         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44218         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44219         unistr/u8-cmp.
44220         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44221         unistr/u16-cmp.
44222         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44223         unistr/u32-cmp.
44224
44225         New module 'unistr/u32-cmp2'.
44226         * lib/unistr/u32-cmp2.c: New file.
44227         * modules/unistr/u32-cmp2: New file.
44228
44229         New module 'unistr/u16-cmp2'.
44230         * lib/unistr/u16-cmp2.c: New file.
44231         * modules/unistr/u16-cmp2: New file.
44232
44233         New module 'unistr/u8-cmp2'.
44234         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44235         * lib/unistr/u8-cmp2.c: New file.
44236         * lib/unistr/u-cmp2.h: New file.
44237         * modules/unistr/u8-cmp2: New file.
44238
44239 2009-04-05  Bruno Haible  <bruno@clisp.org>
44240
44241         * lib/unictype.h (uc_property_is_valid): New macro.
44242         * tests/unictype/test-pr_byname.c (main): Use it.
44243
44244         * lib/unistr.h: Doc fixes.
44245         * lib/uniconv.h: Doc fixes.
44246         * lib/unictype.h: Doc fixes.
44247
44248 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44249
44250         Port coreutils 7.2 to Solaris 8.
44251
44252         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44253         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44254         for Solaris 8.  This is a bit of a hack, as it means it's the
44255         caller's responsibility to add -lnsl if needed, but most likely it
44256         won't be needed since only getaddrinfo uses this and getaddrinfo
44257         isn't needed on Solaris 8.
44258
44259         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44260         problem to Solaris 8 encountered with coreutils 7.2, which
44261         resulted in a message "fnmatch.c:292: warning: passing argument 4
44262         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44263         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44264
44265 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44266
44267         * m4/ld-version-script.m4: Add FIXME comment.
44268
44269 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44270
44271         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44272         SOVERSION variable.
44273
44274 2009-04-02  Bruno Haible  <bruno@clisp.org>
44275
44276         * Makefile (info, html, dvi, pdf): Combine the rules.
44277         Suggested by Jim Meyering.
44278
44279 2009-04-01  Bruno Haible  <bruno@clisp.org>
44280
44281         * Makefile (info, html, dvi, pdf): New targets.
44282         Reported by Reuben Thomas <rrt@sc3d.org>.
44283
44284 2009-04-01  Bruno Haible  <bruno@clisp.org>
44285
44286         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44287         can be put into PATH.
44288         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44289
44290 2009-04-01  Bruno Haible  <bruno@clisp.org>
44291
44292         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44293
44294 2009-04-01  Bruno Haible  <bruno@clisp.org>
44295
44296         Rename module 'visibility'.
44297         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44298         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44299         * doc/gnulib.texi: Update.
44300         * MODULES.html.sh (Misc): Update.
44301         * NEWS: Mention the change.
44302
44303 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44304
44305         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44306         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44307         Eric Blake <ebb9@byu.net> for review.
44308         * MODULES.html.sh: Add lib-msvc-compat.
44309         * doc/gnulib.texi: Link to new section.
44310         * m4/ld-output-def.m4: New file.
44311         * doc/ld-output-def.texi: New file.
44312
44313 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44314
44315         Rename ld-version-script to lib-symbol-versions.  Suggested by
44316         Bruno Haible <bruno@clisp.org>.
44317         * modules/ld-version-script: Renamed to lib-symbol-versions.
44318         * doc/ld-version-script.texi: Fix module name.
44319         * MODULES.html.sh: Add lib-symbol-versions.
44320
44321 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44322
44323         * modules/u64-tests: New file.
44324         * tests/test-u64.c: New file.
44325
44326 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44327
44328         * MODULES.html.sh: Mention u64.
44329         * modules/u64: New module.
44330         * modules/crypto/sha512: Depend on u64 module instead of providing
44331         u64.h.
44332
44333 2009-03-27  Eric Blake  <ebb9@byu.net>
44334
44335         test-strerror: make debugging EAI_SYSTEM easier
44336         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44337         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44338         failure was EAI_SYSTEM.
44339
44340 2009-03-25  Bruno Haible  <bruno@clisp.org>
44341
44342         Fix a problem with --enable-relocatable on Solaris 7.
44343         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44344         since 2008-02-24.
44345
44346 2009-03-25  Eric Blake  <ebb9@byu.net>
44347
44348         test-sockets: avoid gcc warning
44349         * tests/test-sockets.c (main): Silence compiler warning.
44350
44351 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44352
44353         New modules nproc, pthread, contributed by Glen Lenker.
44354
44355         * MODULES.html.sh: Add pthread, nproc.
44356         * lib/nproc.c: New file.
44357         * lib/nproc.h: New file.
44358         * lib/pthread.in.h: New file.
44359         * m4/pthread.m4: New file.
44360         * modules/nproc: New file.
44361         * modules/pthread: New file.
44362
44363 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44364
44365         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44366         New variable.
44367
44368 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44369
44370         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44371         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44372         * tests/test-filevercmp.c: Add tests for backup suffixes.
44373
44374 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44375
44376         * modules/stdlib (Depends-on): Add stdint, needed when defining
44377         struct random_data on, for example, HP-UX 10.20.  Reported by
44378         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44379
44380 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44381
44382         * lib/readline.c (readline): Call fflush on stdout after printing
44383         prompt.
44384
44385 2009-03-20  Bruno Haible  <bruno@clisp.org>
44386
44387         Remove dependency from 'close' module to -lws2_32 on native Windows.
44388         * lib/close-hook.h: New file.
44389         * lib/close-hook.c: New file.
44390         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44391         w32sock.h.
44392         (_gl_close_fd_maybe_socket): Remove function.
44393         (rpl_close): Invoke execute_all_close_hooks instead of
44394         _gl_close_fd_maybe_socket.
44395         * lib/sockets.c: Include close-hook.h, w32sock.h.
44396         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44397         (close_sockets_hook): New variable.
44398         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44399         (gl_sockets_cleanup): Unregister it.
44400         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44401         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44402         * modules/close-hook: New file.
44403         * modules/close (Files): Remove lib/w32sock.h.
44404         (Depends-on): Add close-hook.
44405         (Link): Remove section.
44406         * modules/sockets (Files): Add lib/w32sock.h.
44407         (Depends-on): Add close-hook.
44408         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44409         invocation.
44410         * NEWS: Mention that LIB_CLOSE is gone.
44411
44412 2009-03-23  Eric Blake  <ebb9@byu.net>
44413
44414         signal-tests: test previous patch
44415         * tests/test-signal.c: New file.
44416         * modules/signal-tests: Likewise.
44417
44418         signal.h: always support 'volatile sig_atomic_t'
44419         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44420         (gl_SIGNAL_H_DEFAULTS): Add a default.
44421         * modules/signal (Makefile.am): Substitute if needed.
44422         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44423         users can blindly add volatile.
44424         * doc/posix-headers/signal.texi (signal.h): Document it.
44425         Reported by Matthew Woehlke.
44426
44427 2009-03-23  Jim Meyering  <meyering@redhat.com>
44428
44429         pathmax: PATH_MAX: use pathconf only when available
44430         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44431         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44432         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44433         This avoids a link failure in a PSP cross-compilation environment
44434         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44435
44436         * lib/vasnprintf.c (divide): Fix typo in comment.
44437
44438 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44439
44440         * gnulib-tool (func_filter_filelist): Fix comment.
44441
44442 2009-03-20  Bruno Haible  <bruno@clisp.org>
44443
44444         Make sockets.h self-contained.
44445         * lib/sockets.c: Include sockets.h first.
44446         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44447
44448 2009-03-19  Eric Blake  <ebb9@byu.net>
44449
44450         doc: mention more functions added in cygwin 1.7.0
44451         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44452         addition.
44453         * doc/posix-functions/log2f.texi: Likewise.
44454
44455 2009-03-19  Jim Meyering  <meyering@redhat.com>
44456
44457         fsusage: avoid syntax error due to statement-before-declaration
44458         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44459         after all declarations.  Reported by Matthew Woehlke in
44460         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44461
44462 2009-03-18  Eric Blake  <ebb9@byu.net>
44463
44464         build-aux/compile: sync from automake
44465         * build-aux/compile: New file, from automake.
44466         * config/srclist.txt: Mention build-aux/compile.
44467
44468 2009-03-17  Bruno Haible  <bruno@clisp.org>
44469
44470         * lib/git-merge-changelog.c: Fix typo in comment.
44471         Reported by Reuben Thomas <rrt@sc3d.org>.
44472
44473 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44474
44475         * m4/regex.m4: update and improve help for
44476         --without-included-regex.
44477
44478 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44479
44480         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44481         failure on missing include files.
44482
44483 2009-03-17  Eric Blake  <ebb9@byu.net>
44484
44485         doc: mention more functions added in cygwin 1.7.0
44486         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44487         addition.
44488         * doc/posix-functions/fwscanf.texi: Likewise.
44489         * doc/posix-functions/swprintf.texi: Likewise.
44490         * doc/posix-functions/swscanf.texi: Likewise.
44491         * doc/posix-functions/vfwprintf.texi: Likewise.
44492         * doc/posix-functions/vfwscanf.texi: Likewise.
44493         * doc/posix-functions/vswprintf.texi: Likewise.
44494         * doc/posix-functions/vswscanf.texi: Likewise.
44495         * doc/posix-functions/vwprintf.texi: Likewise.
44496         * doc/posix-functions/vwscanf.texi: Likewise.
44497         * doc/posix-functions/wcscasecmp.texi: Likewise.
44498         * doc/posix-functions/wcsdup.texi: Likewise.
44499         * doc/posix-functions/wcsftime.texi: Likewise.
44500         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44501         * doc/posix-functions/wprintf.texi: Likewise.
44502         * doc/posix-functions/wscanf.texi: Likewise.
44503         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44504
44505 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44506
44507         maint.mk: really add $(AM_MAKEFLAGS)
44508         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44509         was inadvertently omitted in the last commit.
44510         Spotted by Bruno Haible.
44511
44512         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44513         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44514         $(AM_MAKEFLAGS)' rather than plain `make'.
44515
44516         gnulib-tool: execute $MAKE not make
44517         * gnulib-tool: Default $MAKE to 'make'.
44518         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44519         than make.  Initialize $MAKE in the do-autobuild script.
44520
44521         gnulib-tool: use $MAKE not make in generated files
44522         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44523         make, in generated files.  Initialize $MAKE in the do-autobuild
44524         script.
44525
44526         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44527
44528         GNUmakefile: disable parallelism only for multiple, recursive targets
44529         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44530         additions in the Makefile.
44531         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44532         by Automake.
44533         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44534         are listed on the command line and at least one of them is
44535         listed in $(ALL_RECURSIVE_TARGETS).
44536
44537 2009-03-14  Bruno Haible  <bruno@clisp.org>
44538
44539         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44540         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44541         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44542         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44543         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44544         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44545         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44546         unistr/u8-uctomb.
44547         * modules/unistr/u8-strchr (Depends-on): Likewise.
44548         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44549         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44550         unistr/u16-uctomb.
44551         * modules/unistr/u16-strchr (Depends-on): Likewise.
44552         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44553
44554 2009-03-12  Bruno Haible  <bruno@clisp.org>
44555
44556         Work around select() bug on Interix 3.5.
44557         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44558         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44559         * m4/select.m4: New file.
44560         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44561         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44562         * modules/select (Files): Add m4/select.m4.
44563         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44564         * modules/nanosleep (Depends-on): Add select.
44565         * modules/poll (Depends-on): Likewise.
44566         * doc/posix-functions/select.texi: Mention the Interix bug.
44567         Reported by Markus Duft <mduft@gentoo.org>.
44568
44569         * lib/select.c: Renamed from lib/winsock-select.c.
44570         * modules/select (Files): Add lib/select.c, remove
44571         lib/winsock-select.c.
44572         (configure.ac): Update.
44573
44574 2009-03-12  Jim Meyering  <meyering@redhat.com>
44575
44576         avoid gcc warnings about unused macro definitions
44577         * lib/readtokens.c (STREQ): Remove unused definition.
44578         * lib/xmalloc.c (SIZE_MAX): Likewise.
44579         * lib/openat-die.c (N_): Likewise.
44580         * lib/mountlist.c (SIZE_MAX): Remove definition.
44581         Instead, include <stdint.h>.
44582         * lib/readutmp.c: Likewise.
44583         * modules/readutmp (Depends-on): Add stdint.
44584         * modules/mountlist (Depends-on): Add stdint.
44585         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44586
44587 2009-03-10  Bruno Haible  <bruno@clisp.org>
44588
44589         Tests for module 'mbmemcasecoll'.
44590         * modules/mbmemcasecoll-tests: New file.
44591         * tests/test-mbmemcasecoll1.sh: New file.
44592         * tests/test-mbmemcasecoll2.sh: New file.
44593         * tests/test-mbmemcasecoll3.sh: New file.
44594         * tests/test-mbmemcasecoll.c: New file.
44595
44596         New module 'mbmemcasecoll'.
44597         * lib/mbmemcasecoll.h: New file.
44598         * lib/mbmemcasecoll.c: New file.
44599         * modules/mbmemcasecoll: New file.
44600
44601         * tests/test-mbmemcasecmp.h: New file, extracted from
44602         tests/test-mbmemcasecmp.c.
44603         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44604         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44605         (main): Update.
44606         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44607
44608 2009-03-09  Bruno Haible  <bruno@clisp.org>
44609
44610         Tests for module 'mbmemcasecmp'.
44611         * modules/mbmemcasecmp-tests: New file.
44612         * tests/test-mbmemcasecmp1.sh: New file.
44613         * tests/test-mbmemcasecmp2.sh: New file.
44614         * tests/test-mbmemcasecmp3.sh: New file.
44615         * tests/test-mbmemcasecmp.c: New file.
44616
44617         New module 'mbmemcasecmp'.
44618         * lib/mbmemcasecmp.h: New file.
44619         * lib/mbmemcasecmp.c: New file.
44620         * modules/mbmemcasecmp: New file.
44621
44622 2009-03-09  Bruno Haible  <bruno@clisp.org>
44623
44624         Tests for module 'unicase/ulc-casecoll'.
44625         * modules/unicase/ulc-casecoll-tests: New file.
44626         * tests/unicase/test-ulc-casecoll1.sh: New file.
44627         * tests/unicase/test-ulc-casecoll2.sh: New file.
44628         * tests/unicase/test-ulc-casecoll.c: New file.
44629
44630         New module 'unicase/ulc-casecoll'.
44631         * lib/unicase.h (ulc_casecoll): New declaration.
44632         * lib/unicase/ulc-casecoll.c: New file.
44633         * modules/unicase/ulc-casecoll: New file.
44634
44635         New module 'unicase/ulc-casexfrm'.
44636         * lib/unicase.h (ulc_casexfrm): New declaration.
44637         * lib/unicase/ulc-casexfrm.c: New file.
44638         * modules/unicase/ulc-casexfrm: New file.
44639
44640 2009-03-09  Bruno Haible  <bruno@clisp.org>
44641
44642         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44643         invocations.
44644
44645         * m4/mbscasecmp.m4: Remove file.
44646         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44647         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44648
44649         * m4/mbscasestr.m4: Remove file.
44650         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44651         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44652
44653         * m4/mbschr.m4: Remove file.
44654         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44655         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44656
44657         * m4/mbscspn.m4: Remove file.
44658         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44659         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44660
44661         * m4/mbslen.m4: Remove file.
44662         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44663         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44664
44665         * m4/mbsncasecmp.m4: Remove file.
44666         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44667         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44668
44669         * m4/mbsnlen.m4: Remove file.
44670         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44671         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44672
44673         * m4/mbspbrk.m4: Remove file.
44674         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44675         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44676
44677         * m4/mbspcasecmp.m4: Remove file.
44678         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44679         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44680
44681         * m4/mbsrchr.m4: Remove file.
44682         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44683         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44684
44685         * m4/mbssep.m4: Remove file.
44686         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44687         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44688
44689         * m4/mbsspn.m4: Remove file.
44690         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44691         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44692
44693         * m4/mbsstr.m4: Remove file.
44694         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44695         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44696
44697         * m4/mbstok_r.m4: Remove file.
44698         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44699         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44700
44701         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44702
44703         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44704         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44705
44706         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44707
44708 2009-03-08  Bruno Haible  <bruno@clisp.org>
44709
44710         Tests for module 'unicase/ulc-casecmp'.
44711         * modules/unicase/ulc-casecmp-tests: New file.
44712         * tests/unicase/test-ulc-casecmp1.sh: New file.
44713         * tests/unicase/test-ulc-casecmp2.sh: New file.
44714         * tests/unicase/test-ulc-casecmp.c: New file.
44715
44716         New module 'unicase/ulc-casecmp'.
44717         * lib/unicase.h (ulc_casecmp): New declaration.
44718         * lib/unicase/ulc-casecmp.c: New file.
44719         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44720         'const SRC_UNIT *'.
44721         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44722         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44723         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44724         * modules/unicase/ulc-casecmp: New file.
44725
44726         Tests for module 'unicase/u32-is-cased'.
44727         * modules/unicase/u32-is-cased-tests: New file.
44728         * tests/unicase/test-u32-is-cased.c: New file.
44729
44730         Tests for module 'unicase/u16-is-cased'.
44731         * modules/unicase/u16-is-cased-tests: New file.
44732         * tests/unicase/test-u16-is-cased.c: New file.
44733
44734         Tests for module 'unicase/u8-is-cased'.
44735         * modules/unicase/u8-is-cased-tests: New file.
44736         * tests/unicase/test-u8-is-cased.c: New file.
44737         * tests/unicase/test-is-cased.h: New file.
44738
44739         New module 'unicase/u32-is-cased'.
44740         * lib/unicase/u32-is-cased.c: New file.
44741         * modules/unicase/u32-is-cased: New file.
44742
44743         New module 'unicase/u16-is-cased'.
44744         * lib/unicase/u16-is-cased.c: New file.
44745         * modules/unicase/u16-is-cased: New file.
44746
44747         New module 'unicase/u8-is-cased'.
44748         * lib/unicase/u8-is-cased.c: New file.
44749         * lib/unicase/u-is-cased.h: New file.
44750         * modules/unicase/u8-is-cased: New file.
44751
44752         Tests for module 'unicase/u32-is-casefolded'.
44753         * modules/unicase/u32-is-casefolded-tests: New file.
44754         * tests/unicase/test-u32-is-casefolded.c: New file.
44755
44756         Tests for module 'unicase/u16-is-casefolded'.
44757         * modules/unicase/u16-is-casefolded-tests: New file.
44758         * tests/unicase/test-u16-is-casefolded.c: New file.
44759
44760         Tests for module 'unicase/u8-is-casefolded'.
44761         * modules/unicase/u8-is-casefolded-tests: New file.
44762         * tests/unicase/test-u8-is-casefolded.c: New file.
44763         * tests/unicase/test-is-casefolded.h: New file.
44764
44765         New module 'unicase/u32-is-casefolded'.
44766         * lib/unicase/u32-is-casefolded.c: New file.
44767         * modules/unicase/u32-is-casefolded: New file.
44768
44769         New module 'unicase/u16-is-casefolded'.
44770         * lib/unicase/u16-is-casefolded.c: New file.
44771         * modules/unicase/u16-is-casefolded: New file.
44772
44773         New module 'unicase/u8-is-casefolded'.
44774         * lib/unicase/u8-is-casefolded.c: New file.
44775         * modules/unicase/u8-is-casefolded: New file.
44776
44777         Tests for module 'unicase/u32-is-titlecase'.
44778         * modules/unicase/u32-is-titlecase-tests: New file.
44779         * tests/unicase/test-u32-is-titlecase.c: New file.
44780
44781         Tests for module 'unicase/u16-is-titlecase'.
44782         * modules/unicase/u16-is-titlecase-tests: New file.
44783         * tests/unicase/test-u16-is-titlecase.c: New file.
44784
44785         Tests for module 'unicase/u8-is-titlecase'.
44786         * modules/unicase/u8-is-titlecase-tests: New file.
44787         * tests/unicase/test-u8-is-titlecase.c: New file.
44788         * tests/unicase/test-is-titlecase.h: New file.
44789
44790         New module 'unicase/u32-is-titlecase'.
44791         * lib/unicase/u32-is-titlecase.c: New file.
44792         * modules/unicase/u32-is-titlecase: New file.
44793
44794         New module 'unicase/u16-is-titlecase'.
44795         * lib/unicase/u16-is-titlecase.c: New file.
44796         * modules/unicase/u16-is-titlecase: New file.
44797
44798         New module 'unicase/u8-is-titlecase'.
44799         * lib/unicase/u8-is-titlecase.c: New file.
44800         * modules/unicase/u8-is-titlecase: New file.
44801
44802         Tests for module 'unicase/u32-is-lowercase'.
44803         * modules/unicase/u32-is-lowercase-tests: New file.
44804         * tests/unicase/test-u32-is-lowercase.c: New file.
44805
44806         Tests for module 'unicase/u16-is-lowercase'.
44807         * modules/unicase/u16-is-lowercase-tests: New file.
44808         * tests/unicase/test-u16-is-lowercase.c: New file.
44809
44810         Tests for module 'unicase/u8-is-lowercase'.
44811         * modules/unicase/u8-is-lowercase-tests: New file.
44812         * tests/unicase/test-u8-is-lowercase.c: New file.
44813         * tests/unicase/test-is-lowercase.h: New file.
44814
44815         New module 'unicase/u32-is-lowercase'.
44816         * lib/unicase/u32-is-lowercase.c: New file.
44817         * modules/unicase/u32-is-lowercase: New file.
44818
44819         New module 'unicase/u16-is-lowercase'.
44820         * lib/unicase/u16-is-lowercase.c: New file.
44821         * modules/unicase/u16-is-lowercase: New file.
44822
44823         New module 'unicase/u8-is-lowercase'.
44824         * lib/unicase/u8-is-lowercase.c: New file.
44825         * modules/unicase/u8-is-lowercase: New file.
44826
44827         Tests for module 'unicase/u32-is-uppercase'.
44828         * modules/unicase/u32-is-uppercase-tests: New file.
44829         * tests/unicase/test-u32-is-uppercase.c: New file.
44830
44831         Tests for module 'unicase/u16-is-uppercase'.
44832         * modules/unicase/u16-is-uppercase-tests: New file.
44833         * tests/unicase/test-u16-is-uppercase.c: New file.
44834
44835         Tests for module 'unicase/u8-is-uppercase'.
44836         * modules/unicase/u8-is-uppercase-tests: New file.
44837         * tests/unicase/test-u8-is-uppercase.c: New file.
44838         * tests/unicase/test-is-uppercase.h: New file.
44839
44840         New module 'unicase/u32-is-uppercase'.
44841         * lib/unicase/u32-is-uppercase.c: New file.
44842         * modules/unicase/u32-is-uppercase: New file.
44843
44844         New module 'unicase/u16-is-uppercase'.
44845         * lib/unicase/u16-is-uppercase.c: New file.
44846         * modules/unicase/u16-is-uppercase: New file.
44847
44848         New module 'unicase/u8-is-uppercase'.
44849         * lib/unicase/u8-is-uppercase.c: New file.
44850         * modules/unicase/u8-is-uppercase: New file.
44851
44852         New module 'unicase/u32-is-invariant'.
44853         * lib/unicase/u32-is-invariant.c: New file.
44854         * modules/unicase/u32-is-invariant: New file.
44855
44856         New module 'unicase/u16-is-invariant'.
44857         * lib/unicase/u16-is-invariant.c: New file.
44858         * modules/unicase/u16-is-invariant: New file.
44859
44860         New module 'unicase/u8-is-invariant'.
44861         * lib/unicase/u8-is-invariant.c: New file.
44862         * lib/unicase/invariant.h: New file.
44863         * lib/unicase/u-is-invariant.h: New file.
44864         * modules/unicase/u8-is-invariant: New file.
44865
44866         Tests for module 'unicase/u32-casecoll'.
44867         * modules/unicase/u32-casecoll-tests: New file.
44868         * tests/unicase/test-u32-casecoll.c: New file.
44869
44870         Tests for module 'unicase/u16-casecoll'.
44871         * modules/unicase/u16-casecoll-tests: New file.
44872         * tests/unicase/test-u16-casecoll.c: New file.
44873
44874         Tests for module 'unicase/u8-casecoll'.
44875         * modules/unicase/u8-casecoll-tests: New file.
44876         * tests/unicase/test-u8-casecoll.c: New file.
44877
44878         New module 'unicase/u32-casecoll'.
44879         * lib/unicase/u32-casecoll.c: New file.
44880         * modules/unicase/u32-casecoll: New file.
44881
44882         New module 'unicase/u16-casecoll'.
44883         * lib/unicase/u16-casecoll.c: New file.
44884         * modules/unicase/u16-casecoll: New file.
44885
44886         New module 'unicase/u8-casecoll'.
44887         * lib/unicase/u8-casecoll.c: New file.
44888         * lib/unicase/u-casecoll.h: New file.
44889         * modules/unicase/u8-casecoll: New file.
44890
44891         New module 'unicase/u32-casexfrm'.
44892         * lib/unicase/u32-casexfrm.c: New file.
44893         * modules/unicase/u32-casexfrm: New file.
44894
44895         New module 'unicase/u16-casexfrm'.
44896         * lib/unicase/u16-casexfrm.c: New file.
44897         * modules/unicase/u16-casexfrm: New file.
44898
44899         New module 'unicase/u8-casexfrm'.
44900         * lib/unicase/u8-casexfrm.c: New file.
44901         * lib/unicase/u-casexfrm.h: New file.
44902         * modules/unicase/u8-casexfrm: New file.
44903
44904         Tests for module 'unicase/u32-casecmp'.
44905         * modules/unicase/u32-casecmp-tests: New file.
44906         * tests/unicase/test-u32-casecmp.c: New file.
44907
44908         Tests for module 'unicase/u16-casecmp'.
44909         * modules/unicase/u16-casecmp-tests: New file.
44910         * tests/unicase/test-u16-casecmp.c: New file.
44911
44912         Tests for module 'unicase/u8-casecmp'.
44913         * modules/unicase/u8-casecmp-tests: New file.
44914         * tests/unicase/test-u8-casecmp.c: New file.
44915         * tests/unicase/test-casecmp.h: New file.
44916
44917         New module 'unicase/u32-casecmp'.
44918         * lib/unicase/u32-casecmp.c: New file.
44919         * modules/unicase/u32-casecmp: New file.
44920
44921         New module 'unicase/u16-casecmp'.
44922         * lib/unicase/u16-casecmp.c: New file.
44923         * modules/unicase/u16-casecmp: New file.
44924
44925         New module 'unicase/u8-casecmp'.
44926         * lib/unicase/u8-casecmp.c: New file.
44927         * lib/unicase/u-casecmp.h: New file.
44928         * modules/unicase/u8-casecmp: New file.
44929
44930         Tests for module 'unicase/u32-casefold'.
44931         * modules/unicase/u32-casefold-tests: New file.
44932         * tests/unicase/test-u32-casefold.c: New file.
44933
44934         Tests for module 'unicase/u16-casefold'.
44935         * modules/unicase/u16-casefold-tests: New file.
44936         * tests/unicase/test-u16-casefold.c: New file.
44937
44938         Tests for module 'unicase/u8-casefold'.
44939         * modules/unicase/u8-casefold-tests: New file.
44940         * tests/unicase/test-u8-casefold.c: New file.
44941
44942         New module 'unicase/u32-casefold'.
44943         * lib/unicase/u32-casefold.c: New file.
44944         * modules/unicase/u32-casefold: New file.
44945
44946         New module 'unicase/u16-casefold'.
44947         * lib/unicase/u16-casefold.c: New file.
44948         * modules/unicase/u16-casefold: New file.
44949
44950         New module 'unicase/u8-casefold'.
44951         * lib/unicase/u8-casefold.c: New file.
44952         * lib/unicase/u-casefold.h: New file.
44953         * modules/unicase/u8-casefold: New file.
44954
44955         New module 'unicase/tocasefold'.
44956         * lib/unicase/casefold.h: New file.
44957         * lib/unicase/tocasefold.c: New file.
44958         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
44959         * modules/unicase/tocasefold: New file.
44960
44961         Tests for module 'unicase/u32-totitle'.
44962         * modules/unicase/u32-totitle-tests: New file.
44963         * tests/unicase/test-u32-totitle.c: New file.
44964
44965         Tests for module 'unicase/u16-totitle'.
44966         * modules/unicase/u16-totitle-tests: New file.
44967         * tests/unicase/test-u16-totitle.c: New file.
44968
44969         Tests for module 'unicase/u8-totitle'.
44970         * modules/unicase/u8-totitle-tests: New file.
44971         * tests/unicase/test-u8-totitle.c: New file.
44972
44973         New module 'unicase/u32-totitle'.
44974         * lib/unicase/u32-totitle.c: New file.
44975         * modules/unicase/u32-totitle: New file.
44976
44977         New module 'unicase/u16-totitle'.
44978         * lib/unicase/u16-totitle.c: New file.
44979         * modules/unicase/u16-totitle: New file.
44980
44981         New module 'unicase/u8-totitle'.
44982         * lib/unicase/u8-totitle.c: New file.
44983         * lib/unicase/u-totitle.h: New file.
44984         * modules/unicase/u8-totitle: New file.
44985
44986         Tests for module 'unicase/u32-tolower'.
44987         * modules/unicase/u32-tolower-tests: New file.
44988         * tests/unicase/test-u32-tolower.c: New file.
44989
44990         Tests for module 'unicase/u16-tolower'.
44991         * modules/unicase/u16-tolower-tests: New file.
44992         * tests/unicase/test-u16-tolower.c: New file.
44993
44994         Tests for module 'unicase/u8-tolower'.
44995         * modules/unicase/u8-tolower-tests: New file.
44996         * tests/unicase/test-u8-tolower.c: New file.
44997
44998         New module 'unicase/u32-tolower'.
44999         * lib/unicase/u32-tolower.c: New file.
45000         * modules/unicase/u32-tolower: New file.
45001
45002         New module 'unicase/u16-tolower'.
45003         * lib/unicase/u16-tolower.c: New file.
45004         * modules/unicase/u16-tolower: New file.
45005
45006         New module 'unicase/u8-tolower'.
45007         * lib/unicase/u8-tolower.c: New file.
45008         * modules/unicase/u8-tolower: New file.
45009
45010         Tests for module 'unicase/u32-toupper'.
45011         * modules/unicase/u32-toupper-tests: New file.
45012         * tests/unicase/test-u32-toupper.c: New file.
45013
45014         Tests for module 'unicase/u16-toupper'.
45015         * modules/unicase/u16-toupper-tests: New file.
45016         * tests/unicase/test-u16-toupper.c: New file.
45017
45018         Tests for module 'unicase/u8-toupper'.
45019         * modules/unicase/u8-toupper-tests: New file.
45020         * tests/unicase/test-u8-toupper.c: New file.
45021
45022         New module 'unicase/u32-toupper'.
45023         * lib/unicase/u32-toupper.c: New file.
45024         * modules/unicase/u32-toupper: New file.
45025
45026         New module 'unicase/u16-toupper'.
45027         * lib/unicase/u16-toupper.c: New file.
45028         * modules/unicase/u16-toupper: New file.
45029
45030         New module 'unicase/u8-toupper'.
45031         * lib/unicase/u8-toupper.c: New file.
45032         * modules/unicase/u8-toupper: New file.
45033
45034         New module 'unicase/u32-casemap'.
45035         * lib/unicase/u32-casemap.c: New file.
45036         * modules/unicase/u32-casemap: New file.
45037
45038         New module 'unicase/u16-casemap'.
45039         * lib/unicase/u16-casemap.c: New file.
45040         * modules/unicase/u16-casemap: New file.
45041
45042         New module 'unicase/u8-casemap'.
45043         * lib/unicase/unicasemap.h: New file.
45044         * lib/unicase/u8-casemap.c: New file.
45045         * lib/unicase/u-casemap.h: New file.
45046         * modules/unicase/u8-casemap: New file.
45047
45048         New module 'unicase/special-casing'.
45049         * lib/unicase/special-casing.h: New file.
45050         * lib/unicase/special-casing.c: New file.
45051         * lib/unicase/special-casing-table.gperf: New file, generated by
45052         gen-uni-tables.c.
45053         * modules/unicase/special-casing: New file.
45054
45055         Tests for module 'unicase/locale-language'.
45056         * modules/unicase/locale-language-tests: New file.
45057         * tests/unicase/test-locale-language.sh: New file.
45058         * tests/unicase/test-locale-language.c: New file.
45059
45060         New module 'unicase/locale-language'.
45061         * lib/unicase/locale-language.c: New file.
45062         * lib/unicase/locale-languages.gperf: New file.
45063         * modules/unicase/locale-language: New file.
45064
45065         Generate more tables for case conversion and case folding.
45066         * lib/gen-uni-tables.c (SCC_*): New enum items.
45067         (struct special_casing_rule): New type.
45068         (casing_rules, num_casing_rules, allocated_casing_rules): New
45069         variables.
45070         (add_casing_rule, fill_casing_rules): New functions.
45071         (struct casefold_rule): New type.
45072         (casefolding_rules, num_casefolding_rules,
45073         allocated_casefolding_rules): New variables.
45074         (fill_casefolding_rules): New function.
45075         (unicode_casefold): New variable.
45076         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45077         sort_casing_rules, output_casing_rules): New functions.
45078         (main): Accept to more arguments: SpecialCasing.txt and
45079         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45080         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45081         Output mapping for casefolding.
45082
45083         * lib/unicase.h: Include stdbool.h, uninorm.h.
45084         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45085         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45086         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45087         arguments.
45088         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45089         resultp arguments.
45090         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45091         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45092         resultp arguments.
45093         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45094         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45095         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45096         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45097         declarations.
45098         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45099
45100 2009-03-08  Bruno Haible  <bruno@clisp.org>
45101
45102         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45103         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45104         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45105         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45106
45107 2009-03-07  Bruno Haible  <bruno@clisp.org>
45108
45109         Adjust u*_normcmp, u*_normcoll API.
45110         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45111         u16_normcoll, u32_normcoll): Change failure conventions.
45112         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45113         errno and return -1.
45114         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45115
45116 2009-03-07  Bruno Haible  <bruno@clisp.org>
45117
45118         Tests for module 'uninorm/u32-normcoll'.
45119         * modules/uninorm/u32-normcoll-tests: New file.
45120         * tests/uninorm/test-u32-normcoll.c: New file.
45121
45122         Tests for module 'uninorm/u16-normcoll'.
45123         * modules/uninorm/u16-normcoll-tests: New file.
45124         * tests/uninorm/test-u16-normcoll.c: New file.
45125
45126         Tests for module 'uninorm/u8-normcoll'.
45127         * modules/uninorm/u8-normcoll-tests: New file.
45128         * tests/uninorm/test-u8-normcoll.c: New file.
45129
45130 2009-03-07  Bruno Haible  <bruno@clisp.org>
45131
45132         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45133         tests/uninorm/test-u32-normcmp.c.
45134         * tests/uninorm/test-u32-normcmp.c: Include it.
45135         (test_nonascii): New function, extracted from main. Add some more
45136         tests.
45137         (main): Invoke test_ascii and test_nonascii.
45138         * modules/uninorm/u32-normcmp-tests (Files): Add
45139         tests/uninorm/test-u32-normcmp.h.
45140         (Depends-on): Remove uninorm/u32-normcmp.
45141
45142         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45143         tests/uninorm/test-u16-normcmp.c.
45144         * tests/uninorm/test-u16-normcmp.c: Include it.
45145         (test_nonascii): New function, extracted from main. Add some more
45146         tests.
45147         (main): Invoke test_ascii and test_nonascii.
45148         * modules/uninorm/u16-normcmp-tests (Files): Add
45149         tests/uninorm/test-u16-normcmp.h.
45150         (Depends-on): Remove uninorm/u16-normcmp.
45151
45152         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45153         tests/uninorm/test-u8-normcmp.c.
45154         * tests/uninorm/test-u8-normcmp.c: Include it.
45155         (test_nonascii): New function, extracted from main. Add some more
45156         tests.
45157         (main): Invoke test_ascii and test_nonascii.
45158         * modules/uninorm/u8-normcmp-tests (Files): Add
45159         tests/uninorm/test-u8-normcmp.h.
45160         (Depends-on): Remove uninorm/u8-normcmp.
45161
45162 2009-03-07  Bruno Haible  <bruno@clisp.org>
45163
45164         New module 'uninorm/u32-normcoll'.
45165         * lib/uninorm/u32-normcoll.c: New file.
45166         * modules/uninorm/u32-normcoll: New file.
45167
45168         New module 'uninorm/u16-normcoll'.
45169         * lib/uninorm/u16-normcoll.c: New file.
45170         * modules/uninorm/u16-normcoll: New file.
45171
45172         New module 'uninorm/u8-normcoll'.
45173         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45174         declarations.
45175         * lib/uninorm/u8-normcoll.c: New file.
45176         * lib/uninorm/u-normcoll.h: New file.
45177         * modules/uninorm/u8-normcoll: New file.
45178
45179         New module 'uninorm/u32-normxfrm'.
45180         * lib/uninorm/u32-normxfrm.c: New file.
45181         * modules/uninorm/u32-normxfrm: New file.
45182
45183         New module 'uninorm/u16-normxfrm'.
45184         * lib/uninorm/u16-normxfrm.c: New file.
45185         * modules/uninorm/u16-normxfrm: New file.
45186
45187         New module 'uninorm/u8-normxfrm'.
45188         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45189         declarations.
45190         * lib/uninorm/u8-normxfrm.c: New file.
45191         * lib/uninorm/u-normxfrm.h: New file.
45192         * modules/uninorm/u8-normxfrm: New file.
45193
45194 2009-03-07  Bruno Haible  <bruno@clisp.org>
45195
45196         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45197         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45198         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45199
45200 2009-03-07  Bruno Haible  <bruno@clisp.org>
45201
45202         New module 'memxfrm'.
45203         * lib/memxfrm.h: New file.
45204         * lib/memxfrm.c: New file.
45205         * modules/memxfrm: New file.
45206
45207 2009-03-07  Bruno Haible  <bruno@clisp.org>
45208
45209         New module 'memcmp2'.
45210         * lib/memcmp2.h: New file.
45211         * lib/memcmp2.c: New file.
45212         * modules/memcmp2: New file.
45213
45214 2009-03-07  Bruno Haible  <bruno@clisp.org>
45215
45216         Tests for module 'uninorm/decomposing-form'.
45217         * modules/uninorm/decomposing-form-tests: New file.
45218         * tests/uninorm/test-decomposing-form.c: New file.
45219
45220         New module 'uninorm/decomposing-form'.
45221         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45222         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45223         Add 'decomposing_variant' field.
45224         * lib/uninorm/decomposing-form.c: New file.
45225         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45226         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45227         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45228         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45229         * modules/uninorm/decomposing-form: New file.
45230         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45231         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45232
45233 2009-03-07  Bruno Haible  <bruno@clisp.org>
45234
45235         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45236         strings.
45237
45238 2009-03-06  Bruno Haible  <bruno@clisp.org>
45239
45240         Tests for module 'uninorm/u32-normcmp'.
45241         * tests/uninorm/test-u32-normcmp.c: New file.
45242         * modules/uninorm/u32-normcmp-tests: New file.
45243
45244         Tests for module 'uninorm/u16-normcmp'.
45245         * tests/uninorm/test-u16-normcmp.c: New file.
45246         * modules/uninorm/u16-normcmp-tests: New file.
45247
45248         Tests for module 'uninorm/u8-normcmp'.
45249         * tests/uninorm/test-u8-normcmp.c: New file.
45250         * modules/uninorm/u8-normcmp-tests: New file.
45251
45252         New module 'uninorm/u32-normcmp'.
45253         * lib/uninorm/u32-normcmp.c: New file.
45254         * modules/uninorm/u32-normcmp: New file.
45255
45256         New module 'uninorm/u16-normcmp'.
45257         * lib/uninorm/u16-normcmp.c: New file.
45258         * modules/uninorm/u16-normcmp: New file.
45259
45260         New module 'uninorm/u8-normcmp'.
45261         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45262         declarations.
45263         * lib/uninorm/u8-normcmp.c: New file.
45264         * lib/uninorm/u-normcmp.h: New file.
45265         * modules/uninorm/u8-normcmp: New file.
45266
45267 2009-03-06  Bruno Haible  <bruno@clisp.org>
45268
45269         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45270         Reported by Eric Blake.
45271
45272 2009-03-06  Eric Blake  <ebb9@byu.net>
45273             Bruno Haible  <bruno@clisp.org>
45274
45275         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45276         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45277         condition.
45278         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45279         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45280         condition.
45281         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45282
45283 2009-03-06  Eric Blake  <ebb9@byu.net>
45284
45285         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45286         to avoid compiler warnings.
45287         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45288
45289 2009-03-05  Bruno Haible  <bruno@clisp.org>
45290
45291         * tests/test-ftell.c (main): Disable test beyond end of file on
45292         FreeMiNT.
45293         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45294
45295 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45296
45297         * lib/filevercmp.c: Move hidden files up in ordering.
45298         * tests/test-filevercmp.c: Add tests for hidden files.
45299
45300 2009-03-04  Bruno Haible  <bruno@clisp.org>
45301
45302         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45303         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45304         AM_CFLAGS.
45305         Reported by Simon Josefsson.
45306
45307 2009-03-03  Bruno Haible  <bruno@clisp.org>
45308
45309         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45310         Reported by Simon Josefsson.
45311
45312         * doc/ld-version-script.texi: Update node reference.
45313
45314 2009-03-03  Bruno Haible  <bruno@clisp.org>
45315
45316         * modules/visibility (License): Change to 'unlimited'.
45317         Suggested by Simon Josefsson.
45318
45319 2009-03-03  Jim Meyering  <meyering@redhat.com>
45320
45321         unlinkdir: cannot_unlink_dir may modify process state
45322         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45323         it's neither thread-safe nor appropriate for use in a library.
45324
45325 2009-03-03  Eric Blake  <ebb9@byu.net>
45326
45327         test-closein: silence test under Darwin
45328         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45329         care if it dies from EPIPE or EBADF.
45330
45331 2009-03-03  Bruno Haible  <bruno@clisp.org>
45332
45333         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45334         earlier.
45335         * doc/visibility.texi: Fix @node and @section.
45336
45337 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45338
45339         * doc/gnulib.texi: Link to sections for ld version script and
45340         visibility.
45341         * doc/visibility.texi: Add @node and @section.
45342         * modules/ld-version-script: New module.
45343         * m4/ld-version-script.m4: New file.
45344         * doc/ld-version-script.texi: New file.
45345
45346 2009-03-02  David Lutterkort  <lutter@redhat.com>
45347
45348         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45350
45351 2009-03-02  Bruno Haible  <bruno@clisp.org>
45352
45353         * doc/visibility.texi: Mention libtool's -export-symbols option.
45354
45355 2009-03-02  Jim Meyering  <meyering@redhat.com>
45356
45357         announce-gen: new option: --no-print-checksums
45358         * build-aux/announce-gen (usage): Describe it.
45359         (print_checksums): Print a newline here, not in the [*] footnote.
45360         (main): Honor it.
45361
45362 2009-03-01  Bruno Haible  <bruno@clisp.org>
45363
45364         Use socklen_t in the native Windows replacements prototypes.
45365         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45366         instead of 'int'.
45367         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45368         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45369         * modules/getsockopt (Depends-on): Add socklen.
45370         * modules/setsockopt (Depends-on): Add socklen.
45371
45372 2009-03-01  Bruno Haible  <bruno@clisp.org>
45373
45374         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45375         least 4.2.
45376
45377 2009-03-01  Eric Blake  <ebb9@byu.net>
45378             Bruno Haible  <bruno@clisp.org>
45379
45380         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45381         error messages.
45382         * lib/wait-process.c (wait_subprocess): Omit error message about
45383         deadly signal sent to the child of termsigp != NULL.
45384
45385 2009-03-01  Eric Blake  <ebb9@byu.net>
45386
45387         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45388
45389 2009-03-01  Bruno Haible  <bruno@clisp.org>
45390
45391         Avoid a gcc warning.
45392         * tests/test-sched.c (b): Make global.
45393         Reported by Eric Blake.
45394
45395 2009-01-19  Martin Lambers  <marlam@marlam.de>
45396
45397         Provide POSIX semantics for socket timeout options on W32.
45398         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45399         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45400         * modules/setsockopt: Depend on sys_time module for struct timeval.
45401         * modules/getsockopt: Depend on sys_time module for struct timeval.
45402
45403 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45404
45405         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45406         __USE_GNU, for consistency with netdb.in.h.
45407         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45408
45409 2009-03-01  Bruno Haible  <bruno@clisp.org>
45410
45411         More support for FreeMiNT.
45412         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45413         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45414
45415 2009-03-01  Bruno Haible  <bruno@clisp.org>
45416
45417         More support for FreeMiNT.
45418         * lib/fpurge.c (fpurge): Correct last commit.
45419         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45420
45421 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45422
45423         Fix unportable awk script in vc-list-files.
45424         * build-aux/vc-list-files: In the replacement awk script, use
45425         substr with a second argument of 1, not zero.
45426         Report by Simon Josefsson.
45427
45428 2009-02-28  Bruno Haible  <bruno@clisp.org>
45429
45430         More support for FreeMiNT.
45431         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45432         to FreeMiNT today.
45433         * lib/fwriting.c (fwriting): Likewise.
45434         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45435
45436 2009-02-28  Bruno Haible  <bruno@clisp.org>
45437
45438         * tests/test-freadseek.c (main): Disable test beyond end of file on
45439         FreeMiNT.
45440         * tests/test-ftello.c (main): Likewise.
45441         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45442
45443 2009-02-28  Bruno Haible  <bruno@clisp.org>
45444
45445         Add tentative support for FreeMiNT.
45446         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45447         * lib/fpurge.c (fpurge): Likewise.
45448         * lib/freadable.c (freadable): Likewise.
45449         * lib/freading.c (freading): Likewise.
45450         * lib/freadptr.c (freadptr): Likewise.
45451         * lib/freadseek.c (freadptrinc): Likewise.
45452         * lib/fseeko.c (rpl_fseeko): Likewise.
45453         * lib/fseterr.c (fseterr): Likewise.
45454         * lib/fwritable.c (fwritable): Likewise.
45455         * lib/fwriting.c (fwriting): Likewise.
45456         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45457         Hourihane.
45458         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45459
45460 2009-02-28  Bruno Haible  <bruno@clisp.org>
45461
45462         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45463         SIGCHLD.
45464         Reported by Jim Meyering.
45465
45466 2009-02-28  Bruno Haible  <bruno@clisp.org>
45467
45468         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45469         Mention the results of these tests on various platforms.
45470         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45471         order.
45472         * doc/posix-functions/printf.texi: Likewise.
45473         * doc/posix-functions/snprintf.texi: Likewise.
45474         * doc/posix-functions/sprintf.texi: Likewise.
45475         * doc/posix-functions/vfprintf.texi: Likewise.
45476         * doc/posix-functions/vprintf.texi: Likewise.
45477         * doc/posix-functions/vsnprintf.texi: Likewise.
45478         * doc/posix-functions/vsprintf.texi: Likewise.
45479         * doc/glibc-functions/obstack_printf.texi: Likewise.
45480         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45481
45482 2009-02-28  Bruno Haible  <bruno@clisp.org>
45483
45484         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45485         Reported by Loïc Minier <lool@dooz.org>.
45486
45487 2009-02-27  Bruno Haible  <bruno@clisp.org>
45488
45489         * gnulib-tool (func_import): Make the sed expression used to create the
45490         sed script for updating the .gitignore file POSIX compliant.
45491         Reported by Eric Blake.
45492
45493 2009-02-27  Bruno Haible  <bruno@clisp.org>
45494
45495         * gnulib-tool (sed): Don't alias as "sed --posix".
45496         Reported by Eric Blake.
45497
45498 2009-02-27  Bruno Haible  <bruno@clisp.org>
45499
45500         Avoid test link errors.
45501         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45502         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45503         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45504         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45505         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45506
45507 2009-02-27  Bruno Haible  <bruno@clisp.org>
45508
45509         Avoid spurious "(cached)" in configure output.
45510         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45511         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45512         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45513         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45514         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45515         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45516         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45517         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45518         Reported by Eric Blake.
45519
45520 2009-02-27  Eric Blake  <ebb9@byu.net>
45521
45522         printf: fix regression in previous patch
45523         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45524
45525 2009-02-27  Bruno Haible  <bruno@clisp.org>
45526
45527         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45528         value.
45529         * lib/stdint.in.h: Likewise.
45530         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45531
45532 2009-02-27  Eric Blake  <ebb9@byu.net>
45533
45534         doc: mention more functions added in cygwin 1.7.0
45535         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45536         addition.
45537         * doc/posix-functions/open_wmemstream.texi: Likewise.
45538         * doc/posix-functions/wcsnlen.texi: Likewise.
45539         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45540         * doc/posix-functions/wcstod.texi: Likewise.
45541         * doc/posix-functions/wcstof.texi: Likewise.
45542         * doc/posix-functions/wcstoimax.texi: Likewise.
45543         * doc/posix-functions/wcstok.texi: Likewise.
45544         * doc/posix-functions/wcstoumax.texi: Likewise.
45545
45546         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45547         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45548         * doc/posix-functions/fprintf.texi: Update.
45549         * doc/posix-functions/printf.texi: Update.
45550         * doc/posix-functions/snprintf.texi: Update.
45551         * doc/posix-functions/sprintf.texi: Update.
45552         * doc/posix-functions/vfprintf.texi: Update.
45553         * doc/posix-functions/vprintf.texi: Update.
45554         * doc/posix-functions/vsnprintf.texi: Update.
45555         * doc/posix-functions/vsprintf.texi: Update.
45556         * doc/glibc-functions/obstack_printf.texi: Update.
45557         * doc/glibc-functions/obstack_vprintf.texi: Update.
45558
45559 2009-02-26  Eric Blake  <ebb9@byu.net>
45560
45561         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45562         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45563         compilation bug by using runtime conversion.
45564         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45565         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45566         * modules/ceill-tests (Files): Use nan.h.
45567         * modules/floorl-tests (Files): Likewise.
45568         * modules/frexpl-tests (Files): Likewise.
45569         * modules/isnanl-tests (Files): Likewise.
45570         * modules/ldexpl-tests (Files): Likewise.
45571         * modules/roundl-tests (Files): Likewise.
45572         * modules/truncl-tests (Files): Likewise.
45573         * tests/test-ceill.c (main): Use a working NaN.
45574         * tests/test-floorl.c (main): Likewise.
45575         * tests/test-frexpl.c (main): Likewise.
45576         * tests/test-isnan.c (test_long_double): Likewise.
45577         * tests/test-isnanl.h (main): Likewise.
45578         * tests/test-ldexpl.h (main): Likewise.
45579         * tests/test-roundl.h (main): Likewise.
45580         * tests/test-truncl.h (main): Likewise.
45581         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45582
45583 2009-02-26  Eric Blake  <ebb9@byu.net>
45584             Bruno Haible  <bruno@clisp.org>
45585
45586         Work around a *printf bug with %ls on Solaris.
45587         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45588         precision is specified, sprintf stops converting the wide string
45589         argument when the number of bytes that have been produced by this
45590         conversion equals or exceeds the precision.
45591         * doc/posix-functions/fprintf.texi: Update.
45592         * doc/posix-functions/printf.texi: Update.
45593         * doc/posix-functions/snprintf.texi: Update.
45594         * doc/posix-functions/sprintf.texi: Update.
45595         * doc/posix-functions/vfprintf.texi: Update.
45596         * doc/posix-functions/vprintf.texi: Update.
45597         * doc/posix-functions/vsnprintf.texi: Update.
45598         * doc/posix-functions/vsprintf.texi: Update.
45599         * doc/glibc-functions/obstack_printf.texi: Update.
45600         * doc/glibc-functions/obstack_vprintf.texi: Update.
45601
45602 2009-02-26  Eric Blake  <ebb9@byu.net>
45603
45604         stdlib: favor compiler check of random.h
45605         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45606         to avoid an ObjC random.h installed by Swarm.
45607
45608 2009-02-26  Bruno Haible  <bruno@clisp.org>
45609
45610         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45611         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45612         Reported by Gary V. Vaughan <gary@gnu.org>.
45613
45614 2009-02-26  Bruno Haible  <bruno@clisp.org>
45615
45616         Fix *printf behaviour regarding the %ls directive.
45617         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45618         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45619         NEED_PRINTF_DIRECTIVE_LS.
45620         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45621         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45622         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45623         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45624         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45625         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45626         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45627         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45628         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45629         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45630         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45631         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45632         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45633         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45634         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45635         * doc/posix-functions/fprintf.texi: Update.
45636         * doc/posix-functions/printf.texi: Update.
45637         * doc/posix-functions/snprintf.texi: Update.
45638         * doc/posix-functions/sprintf.texi: Update.
45639         * doc/posix-functions/vfprintf.texi: Update.
45640         * doc/posix-functions/vprintf.texi: Update.
45641         * doc/posix-functions/vsnprintf.texi: Update.
45642         * doc/posix-functions/vsprintf.texi: Update.
45643         * doc/glibc-functions/obstack_printf.texi: Update.
45644         * doc/glibc-functions/obstack_vprintf.texi: Update.
45645         Reported by Eric Blake.
45646
45647 2009-02-25  Bruno Haible  <bruno@clisp.org>
45648
45649         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45650         with known value.
45651         Reported by Gary V. Vaughan <gary@gnu.org>.
45652
45653 2009-02-25  Bruno Haible  <bruno@clisp.org>
45654
45655         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45656         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45657         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45658         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45659         Reported by Gary V. Vaughan <gary@gnu.org>.
45660
45661 2009-02-25  Bruno Haible  <bruno@clisp.org>
45662
45663         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45664         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45665         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45666         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45667         Reported by Gary V. Vaughan <gary@gnu.org>.
45668
45669 2009-02-25  Eric Blake  <ebb9@byu.net>
45670
45671         tests: skip fseek/ftell tests if ungetc is broken
45672         * m4/ungetc.m4: New file.
45673         * modules/fseek-tests: Split test, so ungetc dependency is
45674         separate from rest of test.
45675         * modules/fseeko-tests: Likewise.
45676         * modules/ftell-tests: Likewise.
45677         * modules/ftello-tests: Likewise.
45678         * tests/test-fseek.c (main): Isolate ungetc dependency.
45679         * tests/test-fseeko.c (main): Likewise.
45680         * tests/test-ftell.c (main): Likewise.
45681         * tests/test-ftello.c (main): Likewise.
45682         * tests/test-fseek2.sh: New file.
45683         * tests/test-fseeko2.sh: Likewise.
45684         * tests/test-ftell2.sh: Likewise.
45685         * tests/test-ftello2.sh: Likewise.
45686
45687 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45688
45689         test-getaddrinfo: fix usage of skip return code 77
45690         * tests/test-gettaddrinfo.c: Return skip code 77 only
45691         for first occurance of skip (4x77 is not 77)
45692
45693 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45694
45695         strtod: avoid C99 decl-after-statement
45696         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45697
45698 2009-02-24  Eric Blake  <ebb9@byu.net>
45699
45700         strtod: detect HP-UX 11.31 bug
45701         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45702         Reported by Gary V. Vaughan.
45703
45704 2009-02-23  Bruno Haible  <bruno@clisp.org>
45705
45706         Fix invalid read past end of memory block.
45707         * lib/vasnprintf.c (DCHAR_SET): Define.
45708         (local_wcslen): Define only when needed.
45709         (local_strnlen, local_wcsnlen): New functions.
45710         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45711         directives that involve a conversion ourselves.
45712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45713         wcsnlen, mbrtowc, wcrtomb.
45714         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45715         * tests/test-vasprintf-posix.c (test_function): Likewise.
45716         * tests/test-snprintf-posix.h (test_function): Likewise.
45717         * tests/test-sprintf-posix.h (test_function): Likewise.
45718         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45719
45720 2009-02-22  Bruno Haible  <bruno@clisp.org>
45721
45722         Implement new clarified decomposition of Hangul syllables.
45723         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45724         of type LTV, return only a pairwise decomposition.
45725         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45726         Likewise.
45727         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45728         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45729         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45730
45731 2009-02-22  Bruno Haible  <bruno@clisp.org>
45732
45733         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45734         zero-length results and shrink excess allocated memory.
45735         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45736         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45737         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45738         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45739         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45740         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45741         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45742         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45743         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45744         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45745         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45746         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45747
45748 2009-02-21  Bruno Haible  <bruno@clisp.org>
45749
45750         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45751         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45752         spaces after a period. Put a space between a macro name and its
45753         argument list. Trivial rewordings.
45754         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45755         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45756         (main): Return 0 explicitly.
45757
45758 2009-02-21  Bruno Haible  <bruno@clisp.org>
45759
45760         Tests for module 'uninorm/filter'.
45761         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45762         * modules/uninorm/filter-tests: New file.
45763
45764         New module 'uninorm/filter'.
45765         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45766         uninorm_filter_flush, uninorm_filter_free): New declarations.
45767         * lib/uninorm/uninorm-filter.c: New file.
45768         * modules/uninorm/filter: New file.
45769
45770 2009-02-21  Bruno Haible  <bruno@clisp.org>
45771
45772         Tests for module 'uninorm/nfkc'.
45773         * tests/uninorm/test-nfkc.c: New file.
45774         * tests/uninorm/test-u8-nfkc.c: New file.
45775         * tests/uninorm/test-u16-nfkc.c: New file.
45776         * tests/uninorm/test-u32-nfkc.c: New file.
45777         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45778         * tests/uninorm/test-u32-nfkc-big.c: New file.
45779         * modules/uninorm/nfkc-tests: New file.
45780
45781         New module 'uninorm/nfkc'.
45782         * lib/uninorm/nfkc.c: New file.
45783         * modules/uninorm/nfkc: New file.
45784
45785         Tests for module 'uninorm/nfkd'.
45786         * tests/uninorm/test-nfkd.c: New file.
45787         * tests/uninorm/test-u8-nfkd.c: New file.
45788         * tests/uninorm/test-u16-nfkd.c: New file.
45789         * tests/uninorm/test-u32-nfkd.c: New file.
45790         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45791         * tests/uninorm/test-u32-nfkd-big.c: New file.
45792         * modules/uninorm/nfkd-tests: New file.
45793
45794         New module 'uninorm/nfkd'.
45795         * lib/uninorm/nfkd.c: New file.
45796         * modules/uninorm/nfkd: New file.
45797
45798         Tests for module 'uninorm/nfc'.
45799         * tests/uninorm/test-nfc.c: New file.
45800         * tests/uninorm/test-u8-nfc.c: New file.
45801         * tests/uninorm/test-u16-nfc.c: New file.
45802         * tests/uninorm/test-u32-nfc.c: New file.
45803         * tests/uninorm/test-u32-nfc-big.sh: New file.
45804         * tests/uninorm/test-u32-nfc-big.c: New file.
45805         * modules/uninorm/nfc-tests: New file.
45806
45807         New module 'uninorm/nfc'.
45808         * lib/uninorm/nfc.c: New file.
45809         * modules/uninorm/nfc: New file.
45810
45811         Tests for module 'uninorm/nfd'.
45812         * tests/uninorm/test-nfd.c: New file.
45813         * tests/uninorm/test-u8-nfd.c: New file.
45814         * tests/uninorm/test-u16-nfd.c: New file.
45815         * tests/uninorm/test-u32-nfd.c: New file.
45816         * tests/uninorm/test-u32-nfd-big.sh: New file.
45817         * tests/uninorm/test-u32-nfd-big.c: New file.
45818         * tests/uninorm/test-u32-normalize-big.h: New file.
45819         * tests/uninorm/test-u32-normalize-big.c: New file.
45820         * tests/uninorm/NormalizationTest.txt: New file, created from
45821         Unicode 5.1.0 NormalizationTest.txt.
45822         * modules/uninorm/nfd-tests: New file.
45823
45824         New module 'uninorm/nfd'.
45825         * lib/uninorm/nfd.c: New file.
45826         * modules/uninorm/nfd: New file.
45827
45828         New module 'uninorm/u32-normalize'.
45829         * lib/uninorm/u32-normalize.c: New file.
45830         * modules/uninorm/u32-normalize: New file.
45831
45832         New module 'uninorm/u16-normalize'.
45833         * lib/uninorm/u16-normalize.c: New file.
45834         * modules/uninorm/u16-normalize: New file.
45835
45836         New module 'uninorm/u8-normalize'.
45837         * lib/uninorm/u8-normalize.c: New file.
45838         * lib/uninorm/normalize-internal.h: New file.
45839         * lib/uninorm/u-normalize-internal.h: New file.
45840         * modules/uninorm/u8-normalize: New file.
45841
45842         New module 'uninorm/decompose-internal'.
45843         * lib/uninorm/decompose-internal.c: New file.
45844         * modules/uninorm/decompose-internal: New file.
45845
45846         Tests for module 'uninorm/composition'.
45847         * tests/uninorm/test-composition.c: New file.
45848         * modules/uninorm/composition-tests: New file.
45849
45850         New module 'uninorm/composition'.
45851         * lib/uninorm/composition.c: New file.
45852         * lib/uninorm/composition-table.gperf: New file, generated by
45853         gen-uni-tables.
45854         * modules/uninorm/composition: New file.
45855
45856         Tests for module 'uninorm/compat-decomposition'.
45857         * tests/uninorm/test-compat-decomposition.c: New file.
45858         * modules/uninorm/compat-decomposition-tests: New file.
45859
45860         New module 'uninorm/compat-decomposition'.
45861         * lib/uninorm/decompose-internal.h: New file.
45862         * lib/uninorm/compat-decomposition.c: New file.
45863         * modules/uninorm/compat-decomposition: New file.
45864
45865         Tests for module 'uninorm/canonical-decomposition'.
45866         * tests/uninorm/test-canonical-decomposition.c: New file.
45867         * modules/uninorm/canonical-decomposition-tests: New file.
45868
45869         New module 'uninorm/canonical-decomposition'.
45870         * lib/uninorm/canonical-decomposition.c: New file.
45871         * modules/uninorm/canonical-decomposition: New file.
45872
45873         Tests for module 'uninorm/decomposition'.
45874         * tests/uninorm/test-decomposition.c: New file.
45875         * modules/uninorm/decomposition-tests: New file.
45876
45877         New module 'uninorm/decomposition'.
45878         * lib/uninorm/decomposition.c: New file.
45879         * modules/uninorm/decomposition: New file.
45880
45881         New module 'uninorm/decomposition-table'.
45882         * lib/uninorm/decomposition-table.h: New file.
45883         * lib/uninorm/decomposition-table.c: New file.
45884         * lib/uninorm/decomposition-table1.h: New file, generated by
45885         gen-uni-tables.
45886         * lib/uninorm/decomposition-table2.h: New file, generated by
45887         gen-uni-tables.
45888         * modules/uninorm/decomposition-table: New file.
45889
45890         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
45891         (UC_DECOMP_*): New enumeration items.
45892         (get_decomposition): New function.
45893         (struct decomp_table): New type.
45894         (output_decomposition, output_decomposition_tables): New functions.
45895         (unicode_composition_exclusions): New variable.
45896         (fill_composition_exclusions, debug_output_composition_tables): New
45897         functions.
45898         (main): Accept one more argument. Invoke fill_composition_exclusions.
45899         Output decomposition and composition tables.
45900
45901         New module 'uninorm/base'.
45902         * lib/uninorm.h: New file.
45903         * lib/unictype.h: Update comment.
45904         * modules/uninorm/base: New file.
45905
45906 2009-02-21  David Lutterkort  <lutter@redhat.com>
45907
45908         Tests for module 'safe-alloc'.
45909         * tests/test-safe-alloc.c: New file.
45910         * modules/safe-alloc-tests: New file.
45911
45912         New module 'safe-alloc'.
45913         * lib/safe-alloc.h: New file.
45914         * lib/safe-alloc.c: New file.
45915         * m4/safe-alloc.m4: New file.
45916         * modules/safe-alloc: New file.
45917         * doc/safe-alloc.texi: New file.
45918         * doc/gnulib.texi: Include it.
45919         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45920         safe-alloc.
45921
45922 2009-02-18  Bruno Haible  <bruno@clisp.org>
45923
45924         Fix link error on non-glibc systems.
45925         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
45926         variable.
45927         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45928
45929 2009-02-18  Jim Meyering  <meyering@redhat.com>
45930
45931         fts: avoid used-uninitialized error due to recent change
45932         * lib/fts.c (fts_read): Guard uses of the new member,
45933         parent->fts_n_dirs_remaining, since it's not relevant for
45934         the parent of a directory specified on the command-line.
45935
45936 2009-02-17  James Youngman  <jay@gnu.org>
45937             Bruno Haible  <bruno@clisp.org>
45938
45939         * m4/include_next.m4: Reformulate comment.
45940
45941 2009-02-16  Jim Meyering  <meyering@redhat.com>
45942
45943         fts: add #if guards so that the fts_lgpl module still builds
45944         * lib/fts.c: Guard just-added hash-table-using parts with
45945         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
45946         Reported by Simon Josefsson.
45947
45948 2009-02-15  Bruno Haible  <bruno@clisp.org>
45949
45950         * modules/array-mergesort-tests: New file.
45951         * tests/test-array-mergesort.c: New file.
45952
45953         New module 'array-mergesort'.
45954         * modules/array-mergesort: New file.
45955         * lib/array-mergesort.h: New file.
45956
45957 2009-02-15  Bruno Haible  <bruno@clisp.org>
45958
45959         Fix 2009-02-07 commit.
45960         * lib/gen-uni-tables.c (output_predicate, output_category,
45961         output_combclass, output_bidi_category, output_decimal_digit,
45962         output_digit, output_numeric, output_mirror, output_scripts,
45963         output_ident_category, output_simple_mapping): Fix format directives.
45964         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
45965
45966 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
45967
45968         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
45969         fixes are available from IBM.
45970
45971 2009-02-13  Jim Meyering  <meyering@redhat.com>
45972
45973         fts: arrange not to stat non-directories in more cases
45974         This makes GNU find (when it doesn't need to stat each file)
45975         *much* more efficient at traversing reiserfs file systems.
45976         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
45977         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
45978         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
45979         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
45980         (leaf_optimization_applies): New function.
45981         (LCO_hash, LCO_compare): New helper functions.
45982         (link_count_optimize_ok): New function.
45983         (fts_stat): Initialize new member (if dir).
45984         (fts_read): Decrement parent's fts_n_dirs_remaining count if
45985         we've just stat'ed a directory.  Skip the stat call when possible.
45986         ---
45987         Note this AFS-related exchange:
45988         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
45989         and note find's pioctl call in find/fstype.c.
45990         But that is necessary only if you want to enable the
45991         optimization for AFS, and for now, I don't.
45992
45993         fts: move a function definition "up" (no semantic change)
45994         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
45995         "up" to precede upcoming use of a related function.
45996
45997 2009-02-11  Jim Meyering  <meyering@redhat.com>
45998
45999         fts: correct internal computation of nlinks (optimization-related)
46000         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46001         whether the current entry is a directory, so don't test it.
46002
46003 2009-02-10  Bruno Haible  <bruno@clisp.org>
46004
46005         Tests for module 'uniwbrk/ulc-wordbreaks'.
46006         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46007         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46008         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46009
46010         Tests for module 'uniwbrk/u32-wordbreaks'.
46011         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46012         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46013
46014         Tests for module 'uniwbrk/u16-wordbreaks'.
46015         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46016         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46017
46018         Tests for module 'uniwbrk/u8-wordbreaks'.
46019         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46020         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46021
46022 2009-02-10  Bruno Haible  <bruno@clisp.org>
46023
46024         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46025         property.
46026         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46027         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46028         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46029
46030 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46031
46032         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46033         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46034
46035 2009-02-10  Bruno Haible  <bruno@clisp.org>
46036
46037         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46038         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46039         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46040         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46041         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46042         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46043
46044 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46045
46046         * lib/sockets.h (gl_fd_to_handle): New function.
46047
46048         * tests/test-sockets.c: Call gl_fd_to_handle.
46049
46050 2009-02-09  Bruno Haible  <bruno@clisp.org>
46051
46052         * doc/havelib.texi: Document the conventions on bi-arch systems.
46053
46054 2009-02-08  Bruno Haible  <bruno@clisp.org>
46055
46056         Document the AC_LIB_LINKFLAGS macro.
46057         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46058         * doc/gnulib.texi: Include it.
46059
46060 2009-02-08  Bruno Haible  <bruno@clisp.org>
46061
46062         Fix wrong order of sections, compared to TOC.
46063         * doc/gnulib.texi: Include relocatable-maint.texi after the
46064         "Regular expressions" node, not before.
46065
46066 2009-02-08  Bruno Haible  <bruno@clisp.org>
46067
46068         Tests for module 'unicase/totitle'.
46069         * modules/unicase/totitle-tests: New file.
46070
46071         Tests for module 'unicase/tolower'.
46072         * modules/unicase/tolower-tests: New file.
46073
46074         Tests for module 'unicase/toupper'.
46075         * modules/unicase/toupper-tests: New file.
46076         * tests/unicase/test-mapping-part1.h: New file.
46077         * tests/unicase/test-mapping-part2.h: New file.
46078
46079         New module 'unicase/totitle'.
46080         * modules/unicase/totitle: New file.
46081         * lib/unicase/totitle.c: New file.
46082
46083         New module 'unicase/tolower'.
46084         * modules/unicase/tolower: New file.
46085         * lib/unicase/tolower.c: New file.
46086
46087         New module 'unicase/toupper'.
46088         * modules/unicase/toupper: New file.
46089         * lib/unicase/toupper.c: New file.
46090         * lib/unicase/simple-mapping.h: New file.
46091
46092         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46093         (mapping_table): New structure.
46094         (output_simple_mapping): New function.
46095         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46096         * modules/gen-uni-tables (Description): Update.
46097         * lib/unicase/toupper.h: New file, automatically generated by
46098         gen-uni-tables.
46099         * lib/unicase/tolower.h: New file, automatically generated by
46100         gen-uni-tables.
46101         * lib/unicase/totitle.h: New file, automatically generated by
46102         gen-uni-tables.
46103         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46104         gen-uni-tables.
46105         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46106         gen-uni-tables.
46107         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46108         gen-uni-tables.
46109
46110         New module 'unicase/base'.
46111         * modules/unicase/base: New file.
46112         * lib/unicase.h: New file.
46113
46114 2009-02-08  Bruno Haible  <bruno@clisp.org>
46115
46116         New module 'uniwbrk/ulc-wordbreaks'.
46117         * modules/uniwbrk/ulc-wordbreaks: New file.
46118         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46119
46120         New module 'uniwbrk/u32-wordbreaks'.
46121         * modules/uniwbrk/u32-wordbreaks: New file.
46122         * lib/uniwbrk/u32-wordbreaks.c: New file.
46123
46124         New module 'uniwbrk/u16-wordbreaks'.
46125         * modules/uniwbrk/u16-wordbreaks: New file.
46126         * lib/uniwbrk/u16-wordbreaks.c: New file.
46127
46128         New module 'uniwbrk/u8-wordbreaks'.
46129         * modules/uniwbrk/u8-wordbreaks: New file.
46130         * lib/uniwbrk/u8-wordbreaks.c: New file.
46131         * lib/uniwbrk/u-wordbreaks.h: New file.
46132
46133         New module 'uniwbrk/table'.
46134         * modules/uniwbrk/table: New file.
46135         * lib/uniwbrk/wbrktable.h: New file.
46136         * lib/uniwbrk/wbrktable.c: New file.
46137
46138         New module 'uniwbrk/wordbreak-property'.
46139         * modules/uniwbrk/wordbreak-property: New file.
46140         * lib/uniwbrk/wordbreak-property.c: New file.
46141
46142         * lib/gen-uni-tables.c (WBP_*): New enum items.
46143         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46144         (unicode_org_wbp): New variable.
46145         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46146         New functions.
46147         (wbp_table): New structure.
46148         (output_wbp, output_wbrk_tables): New functions.
46149         (main): Accept additional argument. Invoke fill_org_wbp,
46150         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46151         output_wbrk_tables.
46152         * modules/gen-uni-tables (Description): Update.
46153         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46154         gen-uni-tables.
46155
46156         New module 'uniwbrk/base'.
46157         * modules/uniwbrk/base: New file.
46158         * lib/uniwbrk.h: New file.
46159
46160 2009-02-08  Bruno Haible  <bruno@clisp.org>
46161
46162         Update to Unicode 5.1.0.
46163         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46164         U+2185..U+2188.
46165         (is_property_default_ignorable_code_point): Don't include characters
46166         of category Cc or Cs and not-a-characters.
46167         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46168         U+0D79, U+109E, U+109F, U+A60C.
46169         * lib/unictype/bidi_of.h: Regenerated.
46170         * lib/unictype/blocks.h: Regenerated.
46171         * lib/unictype/categ_C.h: Regenerated.
46172         * lib/unictype/categ_Cf.h: Regenerated.
46173         * lib/unictype/categ_Cn.h: Regenerated.
46174         * lib/unictype/categ_L.h: Regenerated.
46175         * lib/unictype/categ_Ll.h: Regenerated.
46176         * lib/unictype/categ_Lm.h: Regenerated.
46177         * lib/unictype/categ_Lo.h: Regenerated.
46178         * lib/unictype/categ_Lu.h: Regenerated.
46179         * lib/unictype/categ_M.h: Regenerated.
46180         * lib/unictype/categ_Mc.h: Regenerated.
46181         * lib/unictype/categ_Me.h: Regenerated.
46182         * lib/unictype/categ_Mn.h: Regenerated.
46183         * lib/unictype/categ_N.h: Regenerated.
46184         * lib/unictype/categ_Nd.h: Regenerated.
46185         * lib/unictype/categ_Nl.h: Regenerated.
46186         * lib/unictype/categ_No.h: Regenerated.
46187         * lib/unictype/categ_P.h: Regenerated.
46188         * lib/unictype/categ_Pd.h: Regenerated.
46189         * lib/unictype/categ_Pe.h: Regenerated.
46190         * lib/unictype/categ_Pf.h: Regenerated.
46191         * lib/unictype/categ_Pi.h: Regenerated.
46192         * lib/unictype/categ_Po.h: Regenerated.
46193         * lib/unictype/categ_Ps.h: Regenerated.
46194         * lib/unictype/categ_S.h: Regenerated.
46195         * lib/unictype/categ_Sk.h: Regenerated.
46196         * lib/unictype/categ_Sm.h: Regenerated.
46197         * lib/unictype/categ_So.h: Regenerated.
46198         * lib/unictype/categ_of.h: Regenerated.
46199         * lib/unictype/combining.h: Regenerated.
46200         * lib/unictype/ctype_alnum.h: Regenerated.
46201         * lib/unictype/ctype_alpha.h: Regenerated.
46202         * lib/unictype/ctype_graph.h: Regenerated.
46203         * lib/unictype/ctype_lower.h: Regenerated.
46204         * lib/unictype/ctype_print.h: Regenerated.
46205         * lib/unictype/ctype_punct.h: Regenerated.
46206         * lib/unictype/ctype_upper.h: Regenerated.
46207         * lib/unictype/decdigit.h: Regenerated.
46208         * lib/unictype/digit.h: Regenerated.
46209         * lib/unictype/mirror.h: Regenerated.
46210         * lib/unictype/numeric.h: Regenerated.
46211         * lib/unictype/pr_alphabetic.h: Regenerated.
46212         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46213         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46214         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46215         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46216         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46217         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46218         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46219         * lib/unictype/pr_combining.h: Regenerated.
46220         * lib/unictype/pr_dash.h: Regenerated.
46221         * lib/unictype/pr_decimal_digit.h: Regenerated.
46222         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46223         * lib/unictype/pr_deprecated.h: Regenerated.
46224         * lib/unictype/pr_diacritic.h: Regenerated.
46225         * lib/unictype/pr_extender.h: Regenerated.
46226         * lib/unictype/pr_format_control.h: Regenerated.
46227         * lib/unictype/pr_grapheme_base.h: Regenerated.
46228         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46229         * lib/unictype/pr_grapheme_link.h: Regenerated.
46230         * lib/unictype/pr_id_continue.h: Regenerated.
46231         * lib/unictype/pr_id_start.h: Regenerated.
46232         * lib/unictype/pr_ideographic.h: Regenerated.
46233         * lib/unictype/pr_ignorable_control.h: Regenerated.
46234         * lib/unictype/pr_lowercase.h: Regenerated.
46235         * lib/unictype/pr_math.h: Regenerated.
46236         * lib/unictype/pr_numeric.h: Regenerated.
46237         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46238         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46239         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46240         * lib/unictype/pr_other_id_continue.h: Regenerated.
46241         * lib/unictype/pr_other_lowercase.h: Regenerated.
46242         * lib/unictype/pr_other_math.h: Regenerated.
46243         * lib/unictype/pr_punctuation.h: Regenerated.
46244         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46245         * lib/unictype/pr_soft_dotted.h: Regenerated.
46246         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46247         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46248         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46249         * lib/unictype/pr_uppercase.h: Regenerated.
46250         * lib/unictype/pr_xid_continue.h: Regenerated.
46251         * lib/unictype/pr_xid_start.h: Regenerated.
46252         * lib/unictype/pr_zero_width.h: Regenerated.
46253         * lib/unictype/scripts.h: Regenerated.
46254         * lib/unictype/scripts_byname.gperf: Regenerated.
46255         * lib/unictype/sy_java_ident.h: Regenerated.
46256         * lib/unilbrk/lbrkprop1.h: Regenerated.
46257         * lib/unilbrk/lbrkprop2.h: Regenerated.
46258         * tests/unictype/test-categ_C.c: Regenerated.
46259         * tests/unictype/test-categ_Cf.c: Regenerated.
46260         * tests/unictype/test-categ_Cn.c: Regenerated.
46261         * tests/unictype/test-categ_L.c: Regenerated.
46262         * tests/unictype/test-categ_Ll.c: Regenerated.
46263         * tests/unictype/test-categ_Lm.c: Regenerated.
46264         * tests/unictype/test-categ_Lo.c: Regenerated.
46265         * tests/unictype/test-categ_Lu.c: Regenerated.
46266         * tests/unictype/test-categ_M.c: Regenerated.
46267         * tests/unictype/test-categ_Mc.c: Regenerated.
46268         * tests/unictype/test-categ_Me.c: Regenerated.
46269         * tests/unictype/test-categ_Mn.c: Regenerated.
46270         * tests/unictype/test-categ_N.c: Regenerated.
46271         * tests/unictype/test-categ_Nd.c: Regenerated.
46272         * tests/unictype/test-categ_Nl.c: Regenerated.
46273         * tests/unictype/test-categ_No.c: Regenerated.
46274         * tests/unictype/test-categ_P.c: Regenerated.
46275         * tests/unictype/test-categ_Pd.c: Regenerated.
46276         * tests/unictype/test-categ_Pe.c: Regenerated.
46277         * tests/unictype/test-categ_Pf.c: Regenerated.
46278         * tests/unictype/test-categ_Pi.c: Regenerated.
46279         * tests/unictype/test-categ_Po.c: Regenerated.
46280         * tests/unictype/test-categ_Ps.c: Regenerated.
46281         * tests/unictype/test-categ_S.c: Regenerated.
46282         * tests/unictype/test-categ_Sk.c: Regenerated.
46283         * tests/unictype/test-categ_Sm.c: Regenerated.
46284         * tests/unictype/test-categ_So.c: Regenerated.
46285         * tests/unictype/test-ctype_alnum.c: Regenerated.
46286         * tests/unictype/test-ctype_alpha.c: Regenerated.
46287         * tests/unictype/test-ctype_graph.c: Regenerated.
46288         * tests/unictype/test-ctype_lower.c: Regenerated.
46289         * tests/unictype/test-ctype_print.c: Regenerated.
46290         * tests/unictype/test-ctype_punct.c: Regenerated.
46291         * tests/unictype/test-ctype_upper.c: Regenerated.
46292         * tests/unictype/test-decdigit.h: Regenerated.
46293         * tests/unictype/test-digit.h: Regenerated.
46294         * tests/unictype/test-numeric.h: Regenerated.
46295         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46296         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46297         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46298         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46299         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46300         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46301         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46302         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46303         * tests/unictype/test-pr_combining.c: Regenerated.
46304         * tests/unictype/test-pr_dash.c: Regenerated.
46305         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46306         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46307         * tests/unictype/test-pr_deprecated.c: Regenerated.
46308         * tests/unictype/test-pr_diacritic.c: Regenerated.
46309         * tests/unictype/test-pr_extender.c: Regenerated.
46310         * tests/unictype/test-pr_format_control.c: Regenerated.
46311         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46312         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46313         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46314         * tests/unictype/test-pr_id_continue.c: Regenerated.
46315         * tests/unictype/test-pr_id_start.c: Regenerated.
46316         * tests/unictype/test-pr_ideographic.c: Regenerated.
46317         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46318         * tests/unictype/test-pr_lowercase.c: Regenerated.
46319         * tests/unictype/test-pr_math.c: Regenerated.
46320         * tests/unictype/test-pr_numeric.c: Regenerated.
46321         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46322         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46323         Regenerated.
46324         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46325         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46326         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46327         * tests/unictype/test-pr_other_math.c: Regenerated.
46328         * tests/unictype/test-pr_punctuation.c: Regenerated.
46329         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46330         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46331         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46332         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46333         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46334         * tests/unictype/test-pr_uppercase.c: Regenerated.
46335         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46336         * tests/unictype/test-pr_xid_start.c: Regenerated.
46337         * tests/unictype/test-pr_zero_width.c: Regenerated.
46338
46339         Update to Unicode 5.1.0.
46340         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46341         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46342         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46343         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46344         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46345         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46346         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46347         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46348         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46349         (nonspacing_table_ind): Update.
46350         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46351
46352         Update to Unicode 5.1.0.
46353         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46354         code transform.
46355         * lib/uniname/uniname.c (unicode_character_name,
46356         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46357         * lib/uniname/uninames.h: Regenerated.
46358         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46359
46360 2009-02-07  Bruno Haible  <bruno@clisp.org>
46361
46362         Merge gen-ctype and gen-lbrk into a single program.
46363         * lib/gen-uni-tables.c: New file, incorporating
46364         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46365         Add directory prefixes to the names of the generated files.
46366         * lib/unictype/gen-ctype.c: Remove file.
46367         * lib/unilbrk/gen-lbrk.c: Remove file.
46368         * modules/gen-uni-tables: New file.
46369         * modules/unictype/gen-ctype: Remove file.
46370         * modules/unilbrk/gen-lbrk: Remove file.
46371
46372 2009-02-07  Bruno Haible  <bruno@clisp.org>
46373
46374         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46375
46376         New module 'unistr/u32-strcoll'.
46377         * modules/unistr/u32-strcoll: New file.
46378         * lib/unistr/u32-strcoll.c: New file.
46379
46380         New module 'unistr/u16-strcoll'.
46381         * modules/unistr/u16-strcoll: New file.
46382         * lib/unistr/u16-strcoll.c: New file.
46383
46384         New module 'unistr/u8-strcoll'.
46385         * modules/unistr/u8-strcoll: New file.
46386         * lib/unistr/u8-strcoll.c: New file.
46387         * lib/unistr/u-strcoll.h: New file.
46388
46389 2009-02-07  Bruno Haible  <bruno@clisp.org>
46390
46391         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46392         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46393         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46394         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46395         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46396         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46397
46398 2009-02-07  Bruno Haible  <bruno@clisp.org>
46399
46400         Make 64-bit clean.
46401         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46402         output_combclass, output_bidi_category, output_decimal_digit,
46403         output_digit, output_numeric, output_mirror, output_scripts,
46404         output_ident_category): Use proper width specifier in format strings.
46405
46406 2009-02-07  Bruno Haible  <bruno@clisp.org>
46407
46408         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46409         failure behaviour.
46410
46411 2009-02-07  Jim Meyering  <meyering@redhat.com>
46412
46413         regex: avoid compilation failure with upcoming gcc-4.4
46414         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46415         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46416         "... error: integer overflow in preprocessor expression".
46417
46418 2009-02-05  Ben Pfaff  <blp@gnu.org>
46419
46420         Fix link errors on Windows when close module is used.
46421         * modules/close: Add $(LIB_CLOSE) to Link section.
46422         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46423         $(LIB_CLOSE) on Windows.
46424
46425 2009-02-05  Jim Meyering  <meyering@redhat.com>
46426
46427         still avoid unused-parameter warnings, but do it cleanly
46428         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46429         (get_fs_usage): Cast to void instead.
46430         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46431         (dev_from_mount_options, read_file_system_list): Cast to void.
46432         Prompted by Bruno Haible.
46433
46434 2009-02-04  Jim Meyering  <meyering@redhat.com>
46435
46436         fsusage.c: correct copyright year
46437         * lib/fsusage.c: Reflect year in which the change is pushed into
46438
46439         avoid misc. warnings
46440         * lib/fsusage.c (UNUSED_PARAM): Define.
46441         (get_fs_usage): Mark parameter "disk" as unused.
46442         * lib/getugroups.c (getgrent): Use "void" in prototype.
46443         * lib/mountlist.c: Mark unused parameters.
46444         (read_file_system_list): Declare a local with "const".
46445         * lib/nanosleep.c (getnow): Declare static.
46446         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46447
46448         dirfd: set errno upon failure
46449         * lib/dirfd.c: Include <errno.h>.
46450         Set errno to ENOTSUP when returning -1.
46451         * modules/dirfd (Depends-on): Add errno.
46452         Suggested by John Kodis <kodis@comcast.net>.
46453
46454 2009-02-01  Bruno Haible  <bruno@clisp.org>
46455
46456         Don't assume sizeof (long) >= sizeof (void *).
46457         * lib/memcmp.c: Include stdint.h.
46458         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46459         srcp2 to 'const byte *'.
46460         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46461         types to uintptr_t.
46462         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46463         * modules/memcmp (Depends-on): Add stdint.
46464         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46465
46466 2009-01-30  Eric Blake  <ebb9@byu.net>
46467
46468         fix more require-before-expand issues
46469         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46470         expand, AC_PROG_AWK.
46471         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46472
46473 2009-01-28  Eric Blake  <ebb9@byu.net>
46474
46475         version-etc: use consistent URL formatting
46476         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46477         Improve formatting.  Use fputs for string without %.
46478
46479 2009-01-28  Jim Meyering  <meyering@redhat.com>
46480
46481         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46482         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46483         "underquoted definition of NAME" from autoconf-2.59.
46484
46485 2009-01-28  Bruno Haible  <bruno@clisp.org>
46486
46487         * doc/gnulib.texi: Add "Obsolete modules" to index.
46488
46489 2009-01-28  Jim Meyering  <meyering@redhat.com>
46490
46491         useless-if-before-free: recognize more variants
46492         * build-aux/useless-if-before-free: Also recognize e.g.,
46493         if (NULL != p) free (p);
46494
46495 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46496
46497         test-getaddrinfo: skip (don't fail) this test when there's no network
46498         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46499         on the presumption that it means you lack network access.
46500
46501 2009-01-26  Jim Meyering  <meyering@redhat.com>
46502
46503         fflush: avoid warnings on modern systems
46504         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46505         pos and result, into scopes where they're used.
46506
46507 2009-01-26  Eric Blake  <ebb9@byu.net>
46508
46509         Silence warning reintroduced by recent extensions patch.
46510         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46511         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46512         autoconf.
46513
46514         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46515         * m4/00gnulib.m4: New file.
46516         * gnulib-tool (func_get_filelist): Always use it.
46517         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46518         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46519
46520 2009-01-25  Bruno Haible  <bruno@clisp.org>
46521
46522         Make test-quotearg work on MacOS X and AIX.
46523         * tests/test-quotearg.sh: New file.
46524         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46525         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46526         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46527         include <libintl.h>.
46528         (fake_locale): Remove variable.
46529         (gettext, dgettext, dcgettext): Remove functions.
46530         (main): Instead of setting a fake locale, set a real locale. Call
46531         textdomain and bindtextdomain.
46532         * modules/quotearg-tests (Files): Add the new files.
46533         (Depends-on): Add gettext, setenv, unsetenv.
46534         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46535         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46536         Augment TESTS_ENVIRONMENT.
46537
46538 2009-01-25  Bruno Haible  <bruno@clisp.org>
46539
46540         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46541         fr_FR.ISO8859-1 locale on MacOS X.
46542         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46543         ja_JP.eucJP locale on MacOS X.
46544         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46545         zh_CN.GB18030 locale on MacOS X.
46546
46547 2009-01-25  Bruno Haible  <bruno@clisp.org>
46548
46549         Avoid link errors on MacOS X 10.3.
46550         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46551         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46552
46553 2009-01-25  Bruno Haible  <bruno@clisp.org>
46554
46555         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46556         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46557         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46558         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46559         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46560         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46561         posix_spawnattr_init, posix_spawnattr_setsigmask,
46562         posix_spawnattr_setflags, posix_spawnattr_destroy.
46563
46564         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46565         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46566         * modules/execute (Files): Remove m4/posix_spawn.m4.
46567         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46568         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46569         posix_spawnattr_init, posix_spawnattr_setsigmask,
46570         posix_spawnattr_setflags, posix_spawnattr_destroy.
46571
46572 2009-01-25  Bruno Haible  <bruno@clisp.org>
46573
46574         * lib/glthread/threadlib.c: Include <stdlib.h>.
46575
46576 2009-01-25  Bruno Haible  <bruno@clisp.org>
46577
46578         * lib/glthread/threadlib.c (dummy): New declaration.
46579
46580 2009-01-25  Bruno Haible  <bruno@clisp.org>
46581
46582         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46583         multibyte characters also for the GB18030 encoding. Don't crash when
46584         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46585
46586 2009-01-25  Bruno Haible  <bruno@clisp.org>
46587
46588         Avoid redefining 'struct random_data' on OSF/1 5.1.
46589         * lib/stdlib.in.h: Include <random.h> if it exists.
46590         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46591         HAVE_RANDOM_H. Include <random.h> when testing whether
46592         'struct random_data' exists.
46593         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46594
46595 2009-01-25  Bruno Haible  <bruno@clisp.org>
46596
46597         Don't install charset.alias on MacOS X >= 10.3.
46598         * lib/localcharset.c (DARWIN7): New macro.
46599         (get_charset_aliases): Hardcode the result for Darwin7.
46600         * modules/localcharset (install-exec-local): Don't install
46601         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46602
46603 2009-01-25  Bruno Haible  <bruno@clisp.org>
46604
46605         Don't install charset.alias on mingw and Cygwin.
46606         * modules/localcharset (install-exec-local): Don't install
46607         charset.alias on mingw and Cygwin, if the file does not yet exist.
46608         The result for these platforms is hardcoded in localcharset.c.
46609
46610 2009-01-25  Bruno Haible  <bruno@clisp.org>
46611
46612         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46613         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46614         before requiring AC_USE_SYSTEM_EXTENSIONS.
46615
46616 2009-01-25  Jim Meyering  <meyering@redhat.com>
46617
46618         c-strtod: avoid warnings
46619         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46620         "assignment discards qualifiers from pointer target type" warnings.
46621
46622 2009-01-24  Bruno Haible  <bruno@clisp.org>
46623
46624         Add support for non-UTF-8 locales on MacOS X.
46625         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46626         canonical encodings. For Darwin 7 and newer, don't map traditional
46627         encodings to UTF-8.
46628         Reported by Vincent Lefevre <vincent@vinc17.org>
46629         at <http://savannah.gnu.org/bugs/?25235>.
46630
46631 2009-01-24  Bruno Haible  <bruno@clisp.org>
46632
46633         * doc/gnulib.texi (Obsolete modules): New section.
46634         Reported by Mike Frysinger <vapier@gentoo.org>.
46635
46636 2009-01-24  Bruno Haible  <bruno@clisp.org>
46637
46638         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46639         (%.dvi): New rule.
46640
46641 2009-01-24  Bruno Haible  <bruno@clisp.org>
46642
46643         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46644         Reported by Eric Blake.
46645
46646 2009-01-24  Bruno Haible  <bruno@clisp.org>
46647
46648         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46649         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46650         Reported by Gary V. Vaughan <gary@gnu.org>.
46651
46652 2009-01-24  Bruno Haible  <bruno@clisp.org>
46653
46654         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46655
46656 2009-01-23  Bruno Haible  <bruno@clisp.org>
46657
46658         Make c-strtod, c-strtold usable in libraries.
46659         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46660         (C_STRTOD): Call strdup instead of xstrdup.
46661         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46662         * modules/c-strtold (Depends-on): Likewise.
46663         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46664         * NEWS: Mention the change.
46665         Reported by Michael Gold <mgold@ncf.ca>.
46666
46667 2009-01-23  Jim Meyering  <meyering@redhat.com>
46668
46669         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46670         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46671         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46672
46673 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46674
46675         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46676         GNU CoreUtils.
46677         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46678         * modules/version-etc (Description): Update.
46679
46680 2009-01-22  Bruno Haible  <bruno@clisp.org>
46681
46682         Cache the C locale object.
46683         * lib/c-strtod.c (c_locale_cache): New variable.
46684         (c_locale): New function.
46685         (C_STRTOD): Use it, and don't call freelocale.
46686         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46687         Suggested by Paolo Bonzini.
46688
46689 2009-01-21  Bruno Haible  <bruno@clisp.org>
46690
46691         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46692         conditions other than overflow.
46693
46694 2009-01-21  Bruno Haible  <bruno@clisp.org>
46695
46696         * lib/c-strtod.c: Include errno.h.
46697         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46698         value from STRTOD_L and STRTOD.
46699
46700 2009-01-21  Bruno Haible  <bruno@clisp.org>
46701         and Jim Meyering  <meyering@redhat.com>
46702
46703         nanosleep: skip configure test (fail it) for apple universal builds
46704         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46705         universal builds, assume that nanosleep does not work.
46706         * modules/nanosleep (Depends-on): Add multiarch.
46707
46708         mktime: skip configure test (fail it) for apple universal builds
46709         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46710         universal builds, assume that mktime does not work.
46711         * modules/mktime (Depends-on): Add multiarch.
46712
46713 2009-01-21  Eric Blake  <ebb9@byu.net>
46714
46715         multiarch: avoid expand-before-require warning
46716         * modules/multiarch (configure.ac): Require, rather than expand,
46717         gl_MULTIARCH.
46718         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46719         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46720         enforce that all clients require it.  Partial reversion of
46721         2008-12-29 patch.
46722
46723         error: avoid expand-before-require warning
46724         * modules/errno (configure.ac): Require, rather than expand,
46725         gl_HEADER_ERRNO_H.
46726         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46727         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46728         enforce that all clients require it.
46729
46730         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46731         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46732         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46733         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46734
46735 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46736
46737         Revert:
46738         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46739
46740         regex: do not depend on obsolete modules.
46741         * modules/regex: Remove memcmp and memmove.
46742
46743 2009-01-20  Bruno Haible  <bruno@clisp.org>
46744
46745         Make the 'link' module link on Windows NT 4.
46746         * lib/link.c (_WIN32_WINNT): Don't define.
46747         (CreateHardLinkFuncType): New type.
46748         (CreateHardLinkFunc, initialized): New variables.
46749         (initialize): New function.
46750         (link): Invoke CreateHardLink indirectly through the function pointer.
46751
46752 2009-01-20  Bruno Haible  <bruno@clisp.org>
46753
46754         Fix compilation failure on mingw.
46755         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46756
46757 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46758
46759         * doc/c-strtod.texi: Mention a couple of restrictions.
46760
46761 2009-01-20  Jim Meyering  <meyering@redhat.com>
46762
46763         gettimeofday: move more declarations out of functions
46764         * lib/gettimeofday.c: Move extern declarations of tzset and
46765         gmtime out of containing functions.  Prompted by Bruno Haible.
46766
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-19  Bruno Haible  <bruno@clisp.org>
46773
46774         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46775         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46776         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46777         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46778         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46779
46780 2009-01-19  Bruno Haible  <bruno@clisp.org>
46781
46782         * tests/test-link.c: Include <errno.h>.
46783         (main): Exit with code 77 when a hard link cannot be created due to
46784         the file system.
46785         * tests/test-link.sh: Skip test when a hard link cannot be created due
46786         to the file system.
46787         Suggested by Eric Blake.
46788
46789 2009-01-19  Martin Lambers  <marlam@marlam.de>
46790
46791         * modules/link-tests: New file.
46792         * tests/test-link.sh: New file.
46793         * tests/test-link.c: New file.
46794
46795 2009-01-19  Eric Blake  <ebb9@byu.net>
46796
46797         doc: mention another function added in cygwin 1.7.0
46798         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46799         Another new function in cygwin 1.7.
46800
46801 2009-01-19  Bruno Haible  <bruno@clisp.org>
46802
46803         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46804         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46805         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46806         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46807         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46808         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46809         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46810         * m4/md4.m4 (gl_MD4): Likewise.
46811         * m4/md5.m4 (gl_MD5): Likewise.
46812         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46813         * m4/sha1.m4 (gl_SHA1): Likewise.
46814         * m4/sha256.m4 (gl_SHA256): Likewise.
46815         * m4/sha512.m4 (gl_SHA512): Likewise.
46816
46817 2009-01-19  Bruno Haible  <bruno@clisp.org>
46818
46819         * modules/uniname/uniname-tests (Depends-on): Add progname.
46820         * tests/uniname/test-uninames.c: Include progname.h.
46821         (main): Call set_program_name.
46822
46823         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46824         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46825         (main): Call set_program_name.
46826
46827         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
46828         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
46829         (main): Call set_program_name.
46830
46831         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
46832         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
46833         (main): Call set_program_name.
46834
46835         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
46836         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
46837         (main): Call set_program_name.
46838
46839         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
46840         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
46841         (main): Call set_program_name.
46842
46843         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
46844         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
46845         (main): Call set_program_name.
46846
46847         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
46848         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
46849         (main): Call set_program_name.
46850
46851         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
46852         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
46853         (main): Call set_program_name.
46854
46855 2009-01-19  Eric Blake  <ebb9@byu.net>
46856
46857         test-unistd: test previous patch
46858         * tests/test-unistd.c: Test *_FILENO macros.
46859
46860         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
46861         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46862         Guarantee a definition.
46863         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
46864         * modules/unistd-safer (Depends-on): Add dependency on unistd.
46865         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
46866         * lib/dup-safer.c (STDERR_FILENO): Likewise.
46867         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46868         Likewise.
46869         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
46870         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
46871         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46872         Likewise.
46873         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
46874         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
46875         (STDERR_FILENO): Likewise.
46876         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
46877         (STDERR_FILENO): Likewise.
46878         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
46879         (STDERR_FILENO): Likewise.
46880         Reported by Elbert Pol.
46881
46882 2009-01-19  Eric Blake  <ebb9@byu.net>
46883
46884         doc: mention more functions added in cygwin 1.7.0
46885         * doc/posix-functions/abort.texi (abort): Update wording related
46886         to cygwin.
46887         * doc/posix-functions/daylight.texi (daylight): Likewise.
46888         * doc/posix-functions/optarg.texi (optarg): Likewise.
46889         * doc/posix-functions/optarg.texi (opterr): Likewise.
46890         * doc/posix-functions/optarg.texi (optind): Likewise.
46891         * doc/posix-functions/optarg.texi (optopt): Likewise.
46892         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
46893         worked in 1.5.x, and was withdrawn in 1.7.
46894         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46895         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
46896         cygwin versions.
46897         * doc/posix-functions/perror.texi (perror): Likewise.
46898         * doc/posix-functions/printf.texi (printf): Likewise.
46899         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
46900         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
46901         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46902         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46903         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46904         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
46905         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46906         Likewise.
46907         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46908         Likewise.
46909         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
46910         this function.
46911         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
46912         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
46913         Likewise.
46914         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
46915         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
46916         * doc/posix-functions/confstr.texi (confstr): Likewise.
46917         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
46918         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
46919         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
46920         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
46921         * doc/posix-functions/fputws.texi (fputws): Likewise.
46922         * doc/posix-functions/fwide.texi (fwide): Likewise.
46923         * doc/posix-functions/getwc.texi (getwc): Likewise.
46924         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
46925         * doc/posix-functions/putwc.texi (putwc): Likewise.
46926         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46927         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
46928         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
46929         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46930         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
46931         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
46932         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
46933         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
46934         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
46935         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
46936         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
46937
46938 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46939
46940         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
46941         * lib/ioctl.c: Include <sys/ioctl.h>.
46942
46943 2009-01-19  Simon Josefsson  <simon@josefsson.org>
46944
46945         * modules/getdate-tests (Depends-on): Add progname.
46946         * tests/test-getdate.c: Use progname module, to avoid link errors
46947         on non-glibc systems.
46948
46949 2009-01-18  Simon Josefsson  <simon@josefsson.org>
46950
46951         * modules/filenamecat-tests (Depends-on): Add progname.
46952         * modules/fstrcmp-tests (Depends-on): Likewise.
46953
46954         * tests/test-filenamecat.c: Use progname module, to avoid link
46955         errors on non-glibc systems.
46956         * tests/test-fstrcmp.c: Likewise.
46957
46958 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46959
46960         gettimeofday: avoid warning: nested extern declaration of 'localtime'
46961         * lib/gettimeofday.c: Move extern declaration out of function.
46962
46963 2009-01-18  Bruno Haible  <bruno@clisp.org>
46964
46965         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
46966         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
46967         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
46968
46969 2009-01-18  Bruno Haible  <bruno@clisp.org>
46970
46971         * lib/strftime.c (MEMPCPY): Remove unused macro.
46972         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
46973
46974 2009-01-18  Martin Lambers  <marlam@marlam.de>
46975
46976         New module 'link'.
46977         * lib/unistd.in.h (link): New declaration.
46978         * lib/link.c: New file.
46979         * m4/link.m4: New file.
46980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
46981         HAVE_LINK.
46982         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
46983         * modules/link: New file.
46984         * doc/posix-functions/link.texi: Mention the new module.
46985
46986 2009-01-18  Bruno Haible  <bruno@clisp.org>
46987
46988         * tests/test-avltree_list.c (main): Call set_program_name.
46989         * tests/test-avltree_oset.c (main): Likewise.
46990         * tests/test-obstack-printf.c: Include progname.h.
46991         (main): Call set_program_name.
46992         * tests/test-quotearg.c: Include progname.h.
46993         (main): Call set_program_name.
46994         * tests/test-xmemdup0.c: Include progname.h.
46995         (main): Call set_program_name.
46996
46997 2009-01-18  Bruno Haible  <bruno@clisp.org>
46998
46999         New module 'alphasort'.
47000         * lib/dirent.in.h (alphasort): New declaration.
47001         * lib/alphasort.c: New file, from glibc with modifications.
47002         * m4/alphasort.m4: New file.
47003         * modules/alphasort: New file.
47004         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47005         HAVE_ALPHASORT.
47006         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47007         HAVE_ALPHASORT.
47008         * doc/posix-functions/alphasort.texi: Mention the new module and the
47009         portability problems.
47010
47011 2009-01-18  Bruno Haible  <bruno@clisp.org>
47012
47013         New module 'scandir'.
47014         * lib/dirent.in.h (scandir): New declaration.
47015         * lib/scandir.c: New file, from glibc with modifications.
47016         * m4/scandir.m4: New file.
47017         * modules/scandir: New file.
47018         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47019         HAVE_SCANDIR.
47020         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47021         HAVE_SCANDIR.
47022         * doc/posix-functions/scandir.texi: Mention the new module and the
47023         portability problems.
47024
47025 2009-01-17  Bruno Haible  <bruno@clisp.org>
47026
47027         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47028         Update documentation.
47029         (func_remove_suffix): Escape all dots in the suffix. Update
47030         documentation.
47031         (func_filter_filelist): Update documentation.
47032         Reported by Ralf Wildenhues.
47033
47034 2009-01-17  Bruno Haible  <bruno@clisp.org>
47035
47036         * modules/dprintf-posix-tests: New file.
47037         * tests/test-dprintf-posix.sh: New file.
47038         * tests/test-dprintf-posix.c: New file.
47039
47040         New modules 'dprintf', 'dprintf-posix'.
47041         * lib/stdio.in.h (dprintf): New declaration.
47042         * lib/dprintf.c: New file.
47043         * m4/dprintf.m4: New file.
47044         * m4/dprintf-posix.m4: New file.
47045         * modules/dprintf: New file.
47046         * modules/dprintf-posix: New file.
47047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47048         HAVE_DPRINTF, REPLACE_DPRINTF.
47049         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47050         HAVE_DPRINTF, REPLACE_DPRINTF.
47051         * doc/posix-functions/dprintf.texi: Mention the new modules.
47052
47053 2009-01-17  Bruno Haible  <bruno@clisp.org>
47054
47055         * modules/vdprintf-posix-tests: New file.
47056         * tests/test-vdprintf-posix.sh: New file.
47057         * tests/test-vdprintf-posix.c: New file.
47058
47059         New modules 'vdprintf', 'vdprintf-posix'.
47060         * lib/stdio.in.h (vdprintf): New declaration.
47061         * lib/vdprintf.c: New file.
47062         * m4/vdprintf.m4: New file.
47063         * m4/vdprintf-posix.m4: New file.
47064         * modules/vdprintf: New file.
47065         * modules/vdprintf-posix: New file.
47066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47067         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47068         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47069         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47070         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47071
47072 2009-01-17  Bruno Haible  <bruno@clisp.org>
47073
47074         Fix replacement of fopen on mingw.
47075         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47076         mingw.
47077
47078 2009-01-17  Bruno Haible  <bruno@clisp.org>
47079
47080         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47081         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47082
47083 2009-01-17  Bruno Haible  <bruno@clisp.org>
47084
47085         Avoid test-fflush2.sh failure on mingw.
47086         * tests/test-fflush2.c: Include binary-io.h.
47087         (main): Put standard input into binary mode.
47088         * modules/fflush-tests (Depends-on): Add binary-io.
47089
47090 2009-01-17  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/wchar.in.h: In another particular situation, include only the
47093         system's <wchar.h> file.
47094         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47095         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47096         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47097
47098 2009-01-17  Bruno Haible  <bruno@clisp.org>
47099
47100         Support for stripping executables in --enable-relocatable.
47101         * build-aux/install-reloc: Expect one more argument, or an environment
47102         variable RELOC_STRIP_PROG. If set, strip the destination program and
47103         its wrapper.
47104         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47105         RELOC_STRIP_PROG.
47106         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47107         to set RELOCATABLE_STRIP.
47108         * NEWS: Mention the new Makefile requirement.
47109
47110 2009-01-17  Bruno Haible  <bruno@clisp.org>
47111
47112         * build-aux/install-reloc: Remove debugging information left over by
47113         C compiler on MacOS X.
47114
47115 2009-01-17  Bruno Haible  <bruno@clisp.org>
47116
47117         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47118         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47119         _NSGetExecutablePath.
47120
47121 2009-01-16  Jim Meyering  <meyering@redhat.com>
47122
47123         strerror: avoid warnings about discarding "const"
47124         * lib/strerror.c (rpl_strerror): Instead of returning a const
47125         string from each and every "case", use a variable, and add a single
47126         cast after the switch.
47127
47128 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47129
47130         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47131
47132 2009-01-16  Bruno Haible  <bruno@clisp.org>
47133
47134         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47135         array initializer syntax that also works in C++ mode.
47136         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47137
47138 2009-01-16  Jim Meyering  <meyering@redhat.com>
47139
47140         poll: suppress a warning
47141         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47142         to ignore "...unsigned expression < 0 is always false" warnings.
47143
47144 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47145
47146         poll: remove declarations of unused variables
47147         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47148         sockbuf and optlen.
47149
47150 2009-01-15  Bruno Haible  <bruno@clisp.org>
47151
47152         Make fflush-after-ungetc POSIX compliant on BSD systems.
47153         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47154         (clear_ungetc_buffer): Implement also for other systems.
47155         (rpl_fflush): On glibc systems, invoke
47156         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47157         clear_ungetc_buffer after fetching the stream's position, not before.
47158
47159 2009-01-15  Bruno Haible  <bruno@clisp.org>
47160
47161         Make fflush-after-ungetc POSIX compliant on glibc systems.
47162         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47163         after ungetc.
47164         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47165         (rpl_fflush): On glibc systems, simply call the system's fflush
47166         function after clearing the ungetc buffer.
47167         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47168         Instead, lseek only to the end of file, then use the system's fseeko
47169         for the rest. On glibc systems, reset the EOF indicator bit.
47170
47171 2009-01-15  Jim Meyering  <meyering@redhat.com>
47172
47173         openmp.m4: revert quote-adding change, for portability to older autoconf
47174         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47175         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47176         Simon Josefsson noticed the problem when using autoconf-2.61.
47177
47178 2009-01-15  Bruno Haible  <bruno@clisp.org>
47179
47180         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47181         * tests/test-fflush2.c (ASSERT): Always fail.
47182         (main): Add two tests for fflush() after ungetc(), taking into account
47183         the Austin Group's clarification.
47184         Suggested by Eric Blake.
47185
47186 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47187
47188         mktime.m4: remove K&R-style function prototypes
47189         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47190         for the Sun C++ compiler.
47191
47192 2009-01-14  Bruno Haible  <bruno@clisp.org>
47193
47194         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47195         while including <wchar.h>.
47196         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47197         the system's <wchar.h> file.
47198         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47199
47200 2009-01-14  Bruno Haible  <bruno@clisp.org>
47201
47202         * m4/csharp.m4: Don't mention gettext on the serial number line.
47203         * m4/csharpexec.m4: Likewise.
47204         * m4/eaccess.m4: Likewise.
47205         * m4/javaexec.m4: Likewise.
47206         * m4/sig_atomic_t.m4: Likewise.
47207         * m4/tmpdir.m4: Likewise.
47208         * m4/intldir.m4: Bump gettext version.
47209         * m4/lib-ld.m4: Likewise.
47210
47211 2009-01-14  Bruno Haible  <bruno@clisp.org>
47212
47213         * lib/progname.c (set_program_name): Add more comments.
47214         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47215
47216 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47217
47218         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47219         were sys/stat.h does not define it.
47220
47221 2009-01-14  Jim Meyering  <meyering@redhat.com>
47222
47223         many *.m4 files: improve m4 quoting
47224         99% of this change was performed by running the following commands:
47225         git ls-files | grep '\.m4$' | xargs perl -pi \
47226           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47227           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47228           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47229           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47230         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47231         The remainder were to add Copyright dates, increment serial numbers,
47232         undo some changes in comments, exclude m4/intl.m4, and add quotes
47233         around the "1" in ",1" where the unusual spacing prohibited the
47234         above regexps from doing the job.  For more details, see
47235         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47236         * m4/acl.m4: Modified.
47237         * m4/afs.m4: Likewise.
47238         * m4/alloca.m4: Likewise.
47239         * m4/argp.m4: Likewise.
47240         * m4/argz.m4: Likewise.
47241         * m4/atexit.m4: Likewise.
47242         * m4/bison-i18n.m4: Likewise.
47243         * m4/bison.m4: Likewise.
47244         * m4/byteswap.m4: Likewise.
47245         * m4/c-stack.m4: Likewise.
47246         * m4/c-strtod.m4: Likewise.
47247         * m4/calloc.m4: Likewise.
47248         * m4/canonicalize-lgpl.m4: Likewise.
47249         * m4/chown.m4: Likewise.
47250         * m4/clock_time.m4: Likewise.
47251         * m4/codeset.m4: Likewise.
47252         * m4/copy-file.m4: Likewise.
47253         * m4/csharp.m4: Likewise.
47254         * m4/csharpcomp.m4: Likewise.
47255         * m4/csharpexec.m4: Likewise.
47256         * m4/d-ino.m4: Likewise.
47257         * m4/d-type.m4: Likewise.
47258         * m4/dirfd.m4: Likewise.
47259         * m4/double-slash-root.m4: Likewise.
47260         * m4/eaccess.m4: Likewise.
47261         * m4/eealloc.m4: Likewise.
47262         * m4/environ.m4: Likewise.
47263         * m4/errno_h.m4: Likewise.
47264         * m4/euidaccess.m4: Likewise.
47265         * m4/execute.m4: Likewise.
47266         * m4/fatal-signal.m4: Likewise.
47267         * m4/fchdir.m4: Likewise.
47268         * m4/fcntl_h.m4: Likewise.
47269         * m4/fileblocks.m4: Likewise.
47270         * m4/filenamecat.m4: Likewise.
47271         * m4/findprog.m4: Likewise.
47272         * m4/flexmember.m4: Likewise.
47273         * m4/fnmatch.m4: Likewise.
47274         * m4/fopen.m4: Likewise.
47275         * m4/fpending.m4: Likewise.
47276         * m4/fprintf-posix.m4: Likewise.
47277         * m4/free.m4: Likewise.
47278         * m4/frexp.m4: Likewise.
47279         * m4/frexpl.m4: Likewise.
47280         * m4/fsusage.m4: Likewise.
47281         * m4/ftruncate.m4: Likewise.
47282         * m4/gc-camellia.m4: Likewise.
47283         * m4/gc-random.m4: Likewise.
47284         * m4/gc.m4: Likewise.
47285         * m4/getaddrinfo.m4: Likewise.
47286         * m4/getcwd-abort-bug.m4: Likewise.
47287         * m4/getcwd-path-max.m4: Likewise.
47288         * m4/getdate.m4: Likewise.
47289         * m4/getdomainname.m4: Likewise.
47290         * m4/getgroups.m4: Likewise.
47291         * m4/gethostname.m4: Likewise.
47292         * m4/gethrxtime.m4: Likewise.
47293         * m4/getline.m4: Likewise.
47294         * m4/getloadavg.m4: Likewise.
47295         * m4/getndelim2.m4: Likewise.
47296         * m4/getpass.m4: Likewise.
47297         * m4/gettext.m4: Likewise.
47298         * m4/gettime.m4: Likewise.
47299         * m4/gettimeofday.m4: Likewise.
47300         * m4/gnulib-common.m4: Likewise.
47301         * m4/group-member.m4: Likewise.
47302         * m4/host-os.m4: Likewise.
47303         * m4/iconv.m4: Likewise.
47304         * m4/iconv_open.m4: Likewise.
47305         * m4/inet_ntop.m4: Likewise.
47306         * m4/inet_pton.m4: Likewise.
47307         * m4/inline.m4: Likewise.
47308         * m4/intldir.m4: Likewise.
47309         * m4/intlmacosx.m4: Likewise.
47310         * m4/intmax.m4: Likewise.
47311         * m4/intmax_t.m4: Likewise.
47312         * m4/inttypes.m4: Likewise.
47313         * m4/inttypes_h.m4: Likewise.
47314         * m4/inttypes-pri.m4: Likewise.
47315         * m4/isapipe.m4: Likewise.
47316         * m4/isnand.m4: Likewise.
47317         * m4/isnanf.m4: Likewise.
47318         * m4/isnanl.m4: Likewise.
47319         * m4/javacomp.m4: Likewise.
47320         * m4/javaexec.m4: Likewise.
47321         * m4/jm-winsz1.m4: Likewise.
47322         * m4/jm-winsz2.m4: Likewise.
47323         * m4/lchown.m4: Likewise.
47324         * m4/lcmessage.m4: Likewise.
47325         * m4/ldexpl.m4: Likewise.
47326         * m4/lib-ld.m4: Likewise.
47327         * m4/lib-link.m4: Likewise.
47328         * m4/libsigsegv.m4: Likewise.
47329         * m4/link-follow.m4: Likewise.
47330         * m4/localcharset.m4: Likewise.
47331         * m4/locale-fr.m4: Likewise.
47332         * m4/locale-ja.m4: Likewise.
47333         * m4/locale-tr.m4: Likewise.
47334         * m4/locale-zh.m4: Likewise.
47335         * m4/lock.m4: Likewise.
47336         * m4/longlong.m4: Likewise.
47337         * m4/ls-mntd-fs.m4: Likewise.
47338         * m4/lstat.m4: Likewise.
47339         * m4/malloc.m4: Likewise.
47340         * m4/mathl.m4: Likewise.
47341         * m4/mbrtowc.m4: Likewise.
47342         * m4/mbstate_t.m4: Likewise.
47343         * m4/mbswidth.m4: Likewise.
47344         * m4/memchr.m4: Likewise.
47345         * m4/memcmp.m4: Likewise.
47346         * m4/memcpy.m4: Likewise.
47347         * m4/memmem.m4: Likewise.
47348         * m4/memmove.m4: Likewise.
47349         * m4/mempcpy.m4: Likewise.
47350         * m4/memrchr.m4: Likewise.
47351         * m4/memset.m4: Likewise.
47352         * m4/minmax.m4: Likewise.
47353         * m4/mkdir-slash.m4: Likewise.
47354         * m4/mkdtemp.m4: Likewise.
47355         * m4/mktime.m4: Likewise.
47356         * m4/mmap-anon.m4: Likewise.
47357         * m4/mountlist.m4: Likewise.
47358         * m4/nanosleep.m4: Likewise.
47359         * m4/nls.m4: Likewise.
47360         * m4/nocrash.m4: Likewise.
47361         * m4/open.m4: Likewise.
47362         * m4/openat.m4: Likewise.
47363         * m4/openmp.m4: Likewise.
47364         * m4/pathmax.m4: Likewise.
47365         * m4/perl.m4: Likewise.
47366         * m4/physmem.m4: Likewise.
47367         * m4/pipe.m4: Likewise.
47368         * m4/po.m4: Likewise.
47369         * m4/poll.m4: Likewise.
47370         * m4/posixtm.m4: Likewise.
47371         * m4/posixver.m4: Likewise.
47372         * m4/printf-frexp.m4: Likewise.
47373         * m4/printf-frexpl.m4: Likewise.
47374         * m4/printf-posix.m4: Likewise.
47375         * m4/printf-posix-rpl.m4: Likewise.
47376         * m4/printf.m4: Likewise.
47377         * m4/progtest.m4: Likewise.
47378         * m4/putenv.m4: Likewise.
47379         * m4/readline.m4: Likewise.
47380         * m4/readlink.m4: Likewise.
47381         * m4/readutmp.m4: Likewise.
47382         * m4/realloc.m4: Likewise.
47383         * m4/regex.m4: Likewise.
47384         * m4/relocatable.m4: Likewise.
47385         * m4/relocatable-lib.m4: Likewise.
47386         * m4/rename-dest-slash.m4: Likewise.
47387         * m4/rename.m4: Likewise.
47388         * m4/rmdir-errno.m4: Likewise.
47389         * m4/rmdir.m4: Likewise.
47390         * m4/roundf.m4: Likewise.
47391         * m4/roundl.m4: Likewise.
47392         * m4/rpmatch.m4: Likewise.
47393         * m4/save-cwd.m4: Likewise.
47394         * m4/selinux-selinux-h.m4: Likewise.
47395         * m4/setenv.m4: Likewise.
47396         * m4/settime.m4: Likewise.
47397         * m4/sig2str.m4: Likewise.
47398         * m4/sig_atomic_t.m4: Likewise.
47399         * m4/signalblocking.m4: Likewise.
47400         * m4/signbit.m4: Likewise.
47401         * m4/sigpipe.m4: Likewise.
47402         * m4/sockets.m4: Likewise.
47403         * m4/sockpfaf.m4: Likewise.
47404         * m4/st_dm_mode.m4: Likewise.
47405         * m4/stat-time.m4: Likewise.
47406         * m4/stdbool.m4: Likewise.
47407         * m4/stdint.m4: Likewise.
47408         * m4/stdint_h.m4: Likewise.
47409         * m4/stpcpy.m4: Likewise.
47410         * m4/stpncpy.m4: Likewise.
47411         * m4/strcase.m4: Likewise.
47412         * m4/strchrnul.m4: Likewise.
47413         * m4/strcspn.m4: Likewise.
47414         * m4/strdup.m4: Likewise.
47415         * m4/strftime.m4: Likewise.
47416         * m4/strndup.m4: Likewise.
47417         * m4/strnlen.m4: Likewise.
47418         * m4/strpbrk.m4: Likewise.
47419         * m4/strptime.m4: Likewise.
47420         * m4/strsep.m4: Likewise.
47421         * m4/strtod.m4: Likewise.
47422         * m4/strtoimax.m4: Likewise.
47423         * m4/strtok_r.m4: Likewise.
47424         * m4/strtol.m4: Likewise.
47425         * m4/strtoll.m4: Likewise.
47426         * m4/strtoul.m4: Likewise.
47427         * m4/strtoull.m4: Likewise.
47428         * m4/strtoumax.m4: Likewise.
47429         * m4/strverscmp.m4: Likewise.
47430         * m4/threadlib.m4: Likewise.
47431         * m4/timegm.m4: Likewise.
47432         * m4/tm_gmtoff.m4: Likewise.
47433         * m4/tmpdir.m4: Likewise.
47434         * m4/tmpfile.m4: Likewise.
47435         * m4/tzset.m4: Likewise.
47436         * m4/uintmax_t.m4: Likewise.
47437         * m4/unlinkdir.m4: Likewise.
47438         * m4/unlocked-io.m4: Likewise.
47439         * m4/uptime.m4: Likewise.
47440         * m4/userspec.m4: Likewise.
47441         * m4/utimbuf.m4: Likewise.
47442         * m4/utime.m4: Likewise.
47443         * m4/utimes-null.m4: Likewise.
47444         * m4/utimes.m4: Likewise.
47445         * m4/vararrays.m4: Likewise.
47446         * m4/vasnprintf.m4: Likewise.
47447         * m4/vfprintf-posix.m4: Likewise.
47448         * m4/vprintf-posix.m4: Likewise.
47449         * m4/wait-process.m4: Likewise.
47450         * m4/wchar_t.m4: Likewise.
47451         * m4/wint_t.m4: Likewise.
47452         * m4/write-any-file.m4: Likewise.
47453         * m4/yield.m4: Likewise.
47454
47455 2009-01-13  Bruno Haible  <bruno@clisp.org>
47456
47457         Avoid test-copy-file.sh failures when ACL support insufficient.
47458         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47459         TESTS_ENVIRONMENT.
47460         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47461         Reported by Jim Meyering.
47462
47463 2009-01-13  Bruno Haible  <bruno@clisp.org>
47464
47465         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47466         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47467         * modules/unistdio/u8-printf-parse (Files): Likewise.
47468         * modules/unistdio/u32-printf-parse (Files): Likewise.
47469         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47470
47471 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47472
47473         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47474         and m4/inttypes_h.m4 too.
47475
47476 2009-01-12  Eric Blake  <ebb9@byu.net>
47477
47478         tests: IRIX 6.2 cc can't compile -0.0 into .data
47479         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47480         rather than at compile-time.
47481         * tests/test-floorl.c (minus_zero): Likewise.
47482         * tests/test-frexpl.c (minus_zero): Likewise.
47483         * tests/test-isnan.c (minus_zerol): Likewise.
47484         * tests/test-isnanl.h (minus_zero): Likewise.
47485         * tests/test-ldexpl.c (minus_zero): Likewise.
47486         * tests/test-roundl.c (minus_zero): Likewise.
47487         * tests/test-signbit.c (minus_zerol): Likewise.
47488         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47489         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47490         * tests/test-truncl.c (minus_zero): Likewise.
47491         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47492         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47493         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47494
47495 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47496
47497         regex: fix glibc bug 9697
47498         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47499         handling.
47500
47501 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47502
47503         regex: fix glibc bug 697
47504         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47505         being NULL also if there are no backreferences.
47506
47507 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47508
47509         regex: merge glibc changes
47510         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47511         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47512         re_string_skip_chars, re_string_reconstruct): Likewise.
47513         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47514
47515 2009-01-07  Jim Meyering  <meyering@redhat.com>
47516
47517         poll: filter through cppi
47518         * lib/poll.c: Indent cpp directives to reflect nesting.
47519
47520 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47521
47522         poll: don't return uninitialized
47523         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47524
47525 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47526
47527         avoid compile failure on AIX 6.1
47528         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47529         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47530
47531 2009-01-04  Jim Meyering  <meyering@redhat.com>
47532
47533         remove duplicate inclusion of <stdio.h>
47534         * tests/test-fprintf-posix.c: Likewise.
47535         * tests/test-printf-posix.c: Likewise.
47536         * tests/test-snprintf-posix.c: Likewise.
47537         * tests/test-sprintf-posix.c: Likewise.
47538         * tests/test-vasprintf-posix.c: Likewise.
47539         * tests/test-vfprintf-posix.c: Likewise.
47540         * tests/test-vprintf-posix.c: Likewise.
47541         * tests/test-vsnprintf-posix.c: Likewise.
47542         * tests/test-vsprintf-posix.c: Likewise.
47543
47544 2009-01-03  Jim Meyering  <meyering@redhat.com>
47545
47546         gnulib-tool: fix sed-based filtering
47547         * gnulib-tool (func_filter_filelist): Remove extra backslash
47548         in sed_fff_filter definition.
47549
47550 2009-01-02  Jim Meyering  <meyering@redhat.com>
47551
47552         strftime: avoid compilation failure on Solaris 2.6
47553         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47554         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47555         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47556         be available.  Reported by Tom G. Christensen.  Details in
47557         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47558
47559 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47560             Bruno Haible  <bruno@clisp.org>
47561
47562         Speed up gnulib-tool by doing more string processing through shell
47563         built-ins.
47564         * gnulib-tool (fast_func_append): New variable.
47565         (func_remove_prefix, func_remove_suffix): New functions.
47566         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47567         (func_filter_filelist): New function.
47568         (func_get_dependencies): Use func_remove_suffix instead of sed.
47569         (func_get_automake_snippet): Use func_filter_filelist instead of a
47570         subshell and sed invocation.
47571
47572 2009-01-01  Bruno Haible  <bruno@clisp.org>
47573
47574         Fix a security bug.
47575         * gnulib-tool (func_import, import, update): Don't allow the characters
47576         '"', '$', '`', '\' in macro arguments that become part of commands that
47577         are evaluated.
47578
47579 2009-01-01  Bruno Haible  <bruno@clisp.org>
47580
47581         * gnulib-tool (func_reset_sigpipe): Add more comments.
47582
47583 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47584
47585         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47586         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47587         already know the answer.
47588
47589 2009-01-01  Jim Meyering  <meyering@redhat.com>
47590
47591         * lib/version-etc.c (version_etc_va): Update copyright year.
47592
47593 2008-12-30  Bruno Haible  <bruno@clisp.org>
47594
47595         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47596         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47597         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47598
47599 2008-12-29  Eric Blake  <ebb9@byu.net>
47600
47601         multiarch: avoid autoconf AC_REQUIRE bug
47602         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47603         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47604         2.63 and older.
47605         Reported by Bruno Haible, and analyzed in
47606         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47607
47608 2008-12-29  Bruno Haible  <bruno@clisp.org>
47609
47610         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47611         files in subdirectories correctly.
47612         Reported by Ralf Wildenhues.
47613
47614 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47615
47616         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47617         rather than 'join FILE -', for Solaris join.
47618
47619 2008-12-29  Bruno Haible  <bruno@clisp.org>
47620
47621         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47622         quoting.
47623         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47624         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47625         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47626         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47627         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47628         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47629         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47630         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47631         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47632         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47633         * m4/nls.m4 (AM_NLS): Likewise.
47634         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47635         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47636         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47637         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47638         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47639         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47640         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47641         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47642         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47643         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47644         * m4/xsize.m4 (gl_XSIZE): Likewise.
47645         Suggested by Jim Meyering.
47646
47647 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47648
47649         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47650         * lib/parse-duration.c: use a switch instead of cascading if's.
47651
47652 2008-12-29  Eric Blake  <ebb9@byu.net>
47653
47654         wchar.h: supply WEOF on Irix 5.3
47655         * lib/wchar.in.h (wint_t): Also supply WEOF.
47656         * lib/wctype.in.h (wint_t): Likewise.
47657         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47658         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47659         Reported by Tom G. Christensen.
47660
47661 2008-12-26  Bruno Haible  <bruno@clisp.org>
47662
47663         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47664         i486, i586, i686.
47665
47666 2008-12-26  Bruno Haible  <bruno@clisp.org>
47667
47668         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47669
47670 2008-12-26  Bruno Haible  <bruno@clisp.org>
47671
47672         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47673         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47674         not __STDC_CONSTANT_MACROS.
47675         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47676
47677 2008-12-25  Bruno Haible  <bruno@clisp.org>
47678
47679         Add support for universal builds to vasnprintf.
47680         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47681         universal builds, guess no.
47682         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47683         * modules/vasprintf-posix (Depends-on): Likewise.
47684         * modules/fprintf-posix (Depends-on): Likewise.
47685         * modules/vfprintf-posix (Depends-on): Likewise.
47686         * modules/snprintf-posix (Depends-on): Likewise.
47687         * modules/vsnprintf-posix (Depends-on): Likewise.
47688         * modules/sprintf-posix (Depends-on): Likewise.
47689         * modules/vsprintf-posix (Depends-on): Likewise.
47690         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47691         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47692         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47693         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47694         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47695         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47696         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47697
47698         Add support for universal builds to <inttypes.h>.
47699         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47700         _SCNu64_PREFIX): In Apple
47701         universal builds, define directly, using _LP64.
47702         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47703         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47704         * modules/inttypes (Depends-on): Add multiarch.
47705         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47706
47707         Add support for universal builds to <stdint.h>.
47708         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47709         universal builds, define directly, using _LP64.
47710         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47711         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47712         and size_t.
47713         * modules/stdint (Depends-on): Add multiarch.
47714         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47715
47716         New module 'multiarch'.
47717         * modules/multiarch: New file.
47718         * m4/multiarch.m4: New file.
47719
47720 2008-12-25  Bruno Haible  <bruno@clisp.org>
47721
47722         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47723
47724 2008-12-25  Bruno Haible  <bruno@clisp.org>
47725
47726         * modules/btowc (License): Relicense under LGPLv2+.
47727         * modules/mbsinit (License): Likewise.
47728         * modules/mbrtowc (License): Likewise.
47729         * modules/wcrtomb (License): Likewise.
47730         * modules/streq (License): Likewise.
47731         Reported by David Lutterkort <lutter@redhat.com>.
47732
47733 2008-12-23  Bruno Haible  <bruno@clisp.org>
47734
47735         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47736
47737 2008-12-23  Bruno Haible  <bruno@clisp.org>
47738
47739         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47740         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47741         GETADDRINFO_LIB, not in LIBS.
47742         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47743         * modules/canon-host (Link): Likewise.
47744         * NEWS: Mention the change.
47745         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47746         GETADDRINFO_LIB.
47747
47748 2008-12-22  Bruno Haible  <bruno@clisp.org>
47749
47750         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47751         * doc/posix-functions/iswalpha_l.texi: Likewise.
47752         * doc/posix-functions/iswblank_l.texi: Likewise.
47753         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47754         * doc/posix-functions/iswctype_l.texi: Likewise.
47755         * doc/posix-functions/iswdigit_l.texi: Likewise.
47756         * doc/posix-functions/iswgraph_l.texi: Likewise.
47757         * doc/posix-functions/iswlower_l.texi: Likewise.
47758         * doc/posix-functions/iswprint_l.texi: Likewise.
47759         * doc/posix-functions/iswpunct_l.texi: Likewise.
47760         * doc/posix-functions/iswspace_l.texi: Likewise.
47761         * doc/posix-functions/iswupper_l.texi: Likewise.
47762         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47763         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47764         * doc/posix-functions/open_wmemstream.texi: Likewise.
47765         * doc/posix-functions/swscanf.texi: Likewise.
47766         * doc/posix-functions/towctrans_l.texi: Likewise.
47767         * doc/posix-functions/towlower.texi: Likewise.
47768         * doc/posix-functions/towlower_l.texi: Likewise.
47769         * doc/posix-functions/towupper.texi: Likewise.
47770         * doc/posix-functions/towupper_l.texi: Likewise.
47771         * doc/posix-functions/vfwprintf.texi: Likewise.
47772         * doc/posix-functions/vfwscanf.texi: Likewise.
47773         * doc/posix-functions/vswscanf.texi: Likewise.
47774         * doc/posix-functions/vwprintf.texi: Likewise.
47775         * doc/posix-functions/vwscanf.texi: Likewise.
47776         * doc/posix-functions/wcpcpy.texi: Likewise.
47777         * doc/posix-functions/wcpncpy.texi: Likewise.
47778         * doc/posix-functions/wcscasecmp.texi: Likewise.
47779         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47780         * doc/posix-functions/wcscoll_l.texi: Likewise.
47781         * doc/posix-functions/wcsdup.texi: Likewise.
47782         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47783         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47784         * doc/posix-functions/wcsnlen.texi: Likewise.
47785         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47786         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47787         * doc/posix-functions/wctrans_l.texi: Likewise.
47788         * doc/posix-functions/wctype_l.texi: Likewise.
47789         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47790         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47791         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47792         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47793         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47794         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47795         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47796         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47797         * doc/glibc-functions/wcschrnul.texi: Likewise.
47798         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47799         * doc/glibc-functions/wcstod_l.texi: Likewise.
47800         * doc/glibc-functions/wcstof_l.texi: Likewise.
47801         * doc/glibc-functions/wcstol_l.texi: Likewise.
47802         * doc/glibc-functions/wcstold_l.texi: Likewise.
47803         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47804         * doc/glibc-functions/wcstoq.texi: Likewise.
47805         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47806         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47807         * doc/glibc-functions/wcstouq.texi: Likewise.
47808         * doc/glibc-functions/wmempcpy.texi: Likewise.
47809
47810 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47811             Eric Blake  <ebb9@byu.net>
47812             Paolo Bonzini  <bonzini@gnu.org>
47813             Bruno Haible  <bruno@clisp.org>
47814
47815         Make c-stack work on Haiku.
47816         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47817         (c_stack_action): Use SA_ONSTACK flag.
47818
47819 2008-12-22  Bruno Haible  <bruno@clisp.org>
47820
47821         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47822
47823 2008-12-22  Bruno Haible  <bruno@clisp.org>
47824
47825         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
47826         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
47827         being overridden.
47828         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
47829         New macros.
47830         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
47831         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
47832         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
47833         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
47834
47835 2008-12-22  Bruno Haible  <bruno@clisp.org>
47836
47837         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
47838         from test code.
47839
47840 2008-12-22  Eric Blake  <ebb9@byu.net>
47841
47842         Avoid gcc warnings on cygwin.
47843         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
47844         Avoid unused variable.
47845         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
47846         Likewise.
47847
47848 2008-12-22  Bruno Haible  <bruno@clisp.org>
47849
47850         Remove HAVE_MBRTOWC conditionals.
47851         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
47852         (mbscasecmp): Assume mbrtowc function.
47853         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
47854         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
47855         * lib/mbschr.c: Include mbuiter.h unconditionally.
47856         (mbschr): Assume mbrtowc function.
47857         * lib/mbscspn.c: Include mbuiter.h unconditionally.
47858         (mbscspn): Assume mbrtowc function.
47859         * lib/mbslen.c: Include mbuiter.h unconditionally.
47860         (mbslen): Assume mbrtowc function.
47861         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
47862         (mbsncasecmp): Assume mbrtowc function.
47863         * lib/mbsnlen.c: Include mbiter.h unconditionally.
47864         (mbsnlen): Assume mbrtowc function.
47865         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
47866         (mbspbrk): Assume mbrtowc function.
47867         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
47868         (mbspcasecmp): Assume mbrtowc function.
47869         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
47870         (mbsrchr): Assume mbrtowc function.
47871         * lib/mbssep.c: Include mbuiter.h unconditionally.
47872         (mbssep): Assume mbrtowc function.
47873         * lib/mbsspn.c: Include mbuiter.h unconditionally.
47874         (mbsspn): Assume mbrtowc function.
47875         * lib/mbsstr.c: Include mbuiter.h unconditionally.
47876         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
47877         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
47878         (mbstok_r): Assume mbrtowc function.
47879         * lib/propername.c: Include mbuiter.h unconditionally.
47880         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
47881         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
47882         (trim2): Assume mbrtowc function.
47883         * lib/mbswidth.c (mbsinit): Remove fallback definition.
47884         (mbsnwidth): Assume mbrtowc function.
47885         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
47886         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
47887         fallback definitions.
47888         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
47889
47890 2008-12-22  Bruno Haible  <bruno@clisp.org>
47891
47892         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
47893
47894 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
47895
47896         * modules/regex: Request emulations for the mb*/wc* functions we need.
47897         * m4/regex.m4: Don't look for those functions here.
47898         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
47899
47900 2008-12-22  Bruno Haible  <bruno@clisp.org>
47901
47902         * modules/fnmatch (Depends-on): Remove duplicated dependency.
47903
47904 2008-12-21  Bruno Haible  <bruno@clisp.org>
47905
47906         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
47907         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
47908         (Include): Remove conditionalization.
47909         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
47910         (Include): Remove conditionalization.
47911         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
47912         (Include): Remove conditionalization.
47913         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
47914         * m4/mbfile.m4 (gl_MBFILE): Likewise.
47915         * NEWS: Mention the change.
47916         Reported by Alan Hourihane <alanh@fairlite.co.uk>
47917         via Sergey Poznyakoff <gray@gnu.org.ua>.
47918
47919 2008-12-21  Bruno Haible  <bruno@clisp.org>
47920
47921         * MODULES.html.sh (Extended multibyte and wide character utilities
47922         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
47923         wcrtomb, wcsrtombs.
47924         (Support for systems lacking POSIX:2008): Add accept, bind, close,
47925         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
47926         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
47927         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
47928
47929 2008-12-21  Bruno Haible  <bruno@clisp.org>
47930
47931         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
47932
47933 2008-12-21  Bruno Haible  <bruno@clisp.org>
47934
47935         * modules/wcsnrtombs-tests: New file.
47936         * tests/test-wcsnrtombs1.sh: New file.
47937         * tests/test-wcsnrtombs2.sh: New file.
47938         * tests/test-wcsnrtombs3.sh: New file.
47939         * tests/test-wcsnrtombs4.sh: New file.
47940         * tests/test-wcsnrtombs.c: New file.
47941
47942         New module 'wcsnrtombs'.
47943         * lib/wchar.in.h (wcsnrtombs): New declaration.
47944         * lib/wcsnrtombs.c: New file.
47945         * lib/wcsrtombs-state.c: New file.
47946         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
47947         (internal_state): Remove variable.
47948         * m4/wcsnrtombs.m4: New file.
47949         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
47950         compilation units.
47951         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
47952         HAVE_WCSNRTOMBS.
47953         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
47954         HAVE_WCSNRTOMBS.
47955         * modules/wcsnrtombs: New file.
47956         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
47957         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
47958
47959 2008-12-21  Bruno Haible  <bruno@clisp.org>
47960
47961         * modules/wcsrtombs-tests: New file.
47962         * tests/test-wcsrtombs1.sh: New file.
47963         * tests/test-wcsrtombs2.sh: New file.
47964         * tests/test-wcsrtombs3.sh: New file.
47965         * tests/test-wcsrtombs4.sh: New file.
47966         * tests/test-wcsrtombs.c: New file.
47967
47968         New module 'wcsrtombs'.
47969         * lib/wchar.in.h (wcsrtombs): New declaration.
47970         * lib/wcsrtombs.c: New file.
47971         * m4/wcsrtombs.m4: New file.
47972         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
47973         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47974         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
47975         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47976         * modules/wcsrtombs: New file.
47977         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
47978         bugs.
47979
47980 2008-12-21  Bruno Haible  <bruno@clisp.org>
47981
47982         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
47983         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
47984         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
47985         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
47986         if not correct.
47987         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
47988         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
47989         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47990         m4/locale-zh.m4, m4/codeset.m4.
47991         * doc/posix-functions/wcrtomb.texi: Document the bug.
47992
47993 2008-12-21  Bruno Haible  <bruno@clisp.org>
47994
47995         Work around a btowc() bug on IRIX 6.5.
47996         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
47997         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
47998         REPLACE_WTOBC if not.
47999         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48000         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48001         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48002
48003 2008-12-21  Bruno Haible  <bruno@clisp.org>
48004
48005         * modules/wcrtomb-tests: New file.
48006         * tests/test-wcrtomb.sh: New file.
48007         * tests/test-wcrtomb.c: New file.
48008
48009         New module 'wcrtomb'.
48010         * lib/wchar.in.h (wcrtomb): New declaration.
48011         * lib/wcrtomb.c: New file.
48012         * m4/wcrtomb.m4: New file.
48013         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48014         HAVE_WCRTOMB.
48015         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48016         HAVE_WCRTOMB.
48017         * modules/wcrtomb: New file.
48018         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48019
48020 2008-12-21  Bruno Haible  <bruno@clisp.org>
48021
48022         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48023         * modules/mbsrtowcs (Files): Likewise.
48024         * modules/wctob (Files): Likewise.
48025         * modules/c-strcase-tests (Files): Likewise.
48026         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48027         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48028         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48029         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48030         * modules/vasnprintf-posix-tests (Files): Likewise.
48031
48032 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48033
48034         gitlog-to-changelog: pass all command-line arguments to git-log
48035         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48036         it is sometimes convenient to filter the commits in various ways.
48037         gitlog-to-changelog only allows --since to specify a start date,
48038         but git-log itself supports many other filtering mechanisms.
48039         At the moment, I want to filter by branch name.  Rather than
48040         adding a --branch option to gitlog-to-changelog, it seems more
48041         flexible to simply pass all options directly to git-log and let
48042         git do the work.  Notice that this effectively makes --since a
48043         redundant option for gitlog-to-changelog, but removing it would
48044         require current usage to change since calls would then require
48045         an additional '--'.
48046
48047 2008-12-21  Bruno Haible  <bruno@clisp.org>
48048
48049         * modules/mbsnrtowcs-tests: New file.
48050         * tests/test-mbsnrtowcs1.sh: New file.
48051         * tests/test-mbsnrtowcs2.sh: New file.
48052         * tests/test-mbsnrtowcs3.sh: New file.
48053         * tests/test-mbsnrtowcs4.sh: New file.
48054         * tests/test-mbsnrtowcs.c: New file.
48055
48056         New module 'mbsnrtowcs'.
48057         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48058         * lib/mbsnrtowcs.c: New file.
48059         * lib/mbsrtowcs-state.c: New file.
48060         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48061         (internal_state): Remove variable.
48062         * m4/mbsnrtowcs.m4: New file.
48063         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48064         compilation units.
48065         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48066         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48067         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48068         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48069         * modules/mbsnrtowcs: New file.
48070         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48071         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48072         portability problem.
48073
48074 2008-12-21  Bruno Haible  <bruno@clisp.org>
48075
48076         Work around mbsrtowcs bug.
48077         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48078         (gl_FUNC_MBSRTOWCS): Invoke it.
48079         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48080         m4/locale-zh.m4.
48081         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48082
48083 2008-12-21  Bruno Haible  <bruno@clisp.org>
48084
48085         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48086
48087 2008-12-21  Bruno Haible  <bruno@clisp.org>
48088
48089         Update doc for AIX.
48090         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48091         16-bit wchar_t type.
48092         * doc/posix-functions/btowc.texi: Likewise.
48093         * doc/posix-functions/fgetwc.texi: Likewise.
48094         * doc/posix-functions/fgetws.texi: Likewise.
48095         * doc/posix-functions/fputwc.texi: Likewise.
48096         * doc/posix-functions/fputws.texi: Likewise.
48097         * doc/posix-functions/fwide.texi: Likewise.
48098         * doc/posix-functions/fwprintf.texi: Likewise.
48099         * doc/posix-functions/fwscanf.texi: Likewise.
48100         * doc/posix-functions/getwchar.texi: Likewise.
48101         * doc/posix-functions/getwc.texi: Likewise.
48102         * doc/posix-functions/iswalnum.texi: Likewise.
48103         * doc/posix-functions/iswalpha.texi: Likewise.
48104         * doc/posix-functions/iswblank.texi: Likewise.
48105         * doc/posix-functions/iswcntrl.texi: Likewise.
48106         * doc/posix-functions/iswctype.texi: Likewise.
48107         * doc/posix-functions/iswdigit.texi: Likewise.
48108         * doc/posix-functions/iswgraph.texi: Likewise.
48109         * doc/posix-functions/iswlower.texi: Likewise.
48110         * doc/posix-functions/iswprint.texi: Likewise.
48111         * doc/posix-functions/iswpunct.texi: Likewise.
48112         * doc/posix-functions/iswspace.texi: Likewise.
48113         * doc/posix-functions/iswupper.texi: Likewise.
48114         * doc/posix-functions/iswxdigit.texi: Likewise.
48115         * doc/posix-functions/mbrtowc.texi: Likewise.
48116         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48117         * doc/posix-functions/mbstowcs.texi: Likewise.
48118         * doc/posix-functions/mbtowc.texi: Likewise.
48119         * doc/posix-functions/putwchar.texi: Likewise.
48120         * doc/posix-functions/putwc.texi: Likewise.
48121         * doc/posix-functions/swprintf.texi: Likewise.
48122         * doc/posix-functions/tolower.texi: Likewise.
48123         * doc/posix-functions/toupper.texi: Likewise.
48124         * doc/posix-functions/towctrans.texi: Likewise.
48125         * doc/posix-functions/ungetwc.texi: Likewise.
48126         * doc/posix-functions/vswprintf.texi: Likewise.
48127         * doc/posix-functions/wcrtomb.texi: Likewise.
48128         * doc/posix-functions/wcscat.texi: Likewise.
48129         * doc/posix-functions/wcschr.texi: Likewise.
48130         * doc/posix-functions/wcscmp.texi: Likewise.
48131         * doc/posix-functions/wcscoll.texi: Likewise.
48132         * doc/posix-functions/wcscpy.texi: Likewise.
48133         * doc/posix-functions/wcscspn.texi: Likewise.
48134         * doc/posix-functions/wcsftime.texi: Likewise.
48135         * doc/posix-functions/wcslen.texi: Likewise.
48136         * doc/posix-functions/wcsncat.texi: Likewise.
48137         * doc/posix-functions/wcsncmp.texi: Likewise.
48138         * doc/posix-functions/wcsncpy.texi: Likewise.
48139         * doc/posix-functions/wcspbrk.texi: Likewise.
48140         * doc/posix-functions/wcsrchr.texi: Likewise.
48141         * doc/posix-functions/wcsrtombs.texi: Likewise.
48142         * doc/posix-functions/wcsspn.texi: Likewise.
48143         * doc/posix-functions/wcsstr.texi: Likewise.
48144         * doc/posix-functions/wcstod.texi: Likewise.
48145         * doc/posix-functions/wcstof.texi: Likewise.
48146         * doc/posix-functions/wcstoimax.texi: Likewise.
48147         * doc/posix-functions/wcstok.texi: Likewise.
48148         * doc/posix-functions/wcstold.texi: Likewise.
48149         * doc/posix-functions/wcstoll.texi: Likewise.
48150         * doc/posix-functions/wcstol.texi: Likewise.
48151         * doc/posix-functions/wcstombs.texi: Likewise.
48152         * doc/posix-functions/wcstoull.texi: Likewise.
48153         * doc/posix-functions/wcstoul.texi: Likewise.
48154         * doc/posix-functions/wcstoumax.texi: Likewise.
48155         * doc/posix-functions/wcswidth.texi: Likewise.
48156         * doc/posix-functions/wcsxfrm.texi: Likewise.
48157         * doc/posix-functions/wctob.texi: Likewise.
48158         * doc/posix-functions/wctomb.texi: Likewise.
48159         * doc/posix-functions/wctrans.texi: Likewise.
48160         * doc/posix-functions/wctype.texi: Likewise.
48161         * doc/posix-functions/wcwidth.texi: Likewise.
48162         * doc/posix-functions/wmemchr.texi: Likewise.
48163         * doc/posix-functions/wmemcmp.texi: Likewise.
48164         * doc/posix-functions/wmemcpy.texi: Likewise.
48165         * doc/posix-functions/wmemmove.texi: Likewise.
48166         * doc/posix-functions/wmemset.texi: Likewise.
48167         * doc/posix-functions/wprintf.texi: Likewise.
48168         * doc/posix-functions/wscanf.texi: Likewise.
48169
48170 2008-12-21  Bruno Haible  <bruno@clisp.org>
48171
48172         Update doc for HP-UX 11.11.
48173         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48174         in HP-UX version 11.00, not in all versions of HP-UX 11.
48175         * doc/posix-functions/fwide.texi: Likewise.
48176         * doc/posix-functions/fwprintf.texi: Likewise.
48177         * doc/posix-functions/fwscanf.texi: Likewise.
48178         * doc/posix-functions/inet_ntop.texi: Likewise.
48179         * doc/posix-functions/inet_pton.texi: Likewise.
48180         * doc/posix-functions/mbrlen.texi: Likewise.
48181         * doc/posix-functions/mbrtowc.texi: Likewise.
48182         * doc/posix-functions/mbsinit.texi: Likewise.
48183         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48184         * doc/posix-functions/swprintf.texi: Likewise.
48185         * doc/posix-functions/swscanf.texi: Likewise.
48186         * doc/posix-functions/towctrans.texi: Likewise.
48187         * doc/posix-functions/vfwprintf.texi: Likewise.
48188         * doc/posix-functions/vswprintf.texi: Likewise.
48189         * doc/posix-functions/vwprintf.texi: Likewise.
48190         * doc/posix-functions/wcrtomb.texi: Likewise.
48191         * doc/posix-functions/wcsrtombs.texi: Likewise.
48192         * doc/posix-functions/wcsstr.texi: Likewise.
48193         * doc/posix-functions/wctob.texi: Likewise.
48194         * doc/posix-functions/wctrans.texi: Likewise.
48195         * doc/posix-functions/wmemchr.texi: Likewise.
48196         * doc/posix-functions/wmemcmp.texi: Likewise.
48197         * doc/posix-functions/wmemcpy.texi: Likewise.
48198         * doc/posix-functions/wmemmove.texi: Likewise.
48199         * doc/posix-functions/wmemset.texi: Likewise.
48200         * doc/posix-functions/wprintf.texi: Likewise.
48201         * doc/posix-functions/wscanf.texi: Likewise.
48202
48203 2008-12-21  Bruno Haible  <bruno@clisp.org>
48204
48205         Work around a portability problem.
48206         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48207         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48208
48209 2008-12-20  Bruno Haible  <bruno@clisp.org>
48210
48211         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48212         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48213         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48214         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48215         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48216
48217         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48218         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48219         set.
48220         (GNULIB_defined_mbstate_t): New macro.
48221         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48222         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48223         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48224         reuses the system's mbrtowc function but works around the bugs.
48225         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48226         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48227         macros.
48228         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48229         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48230         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48231         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48232         REPLACE_MBSINIT if mbsinit needs to be overridden.
48233         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48234         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48235         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48236         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48237         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48238         m4/locale-zh.m4.
48239         (Depends): Add mbsinit.
48240         * modules/mbsinit (Depends): Add mbrtowc.
48241         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48242
48243 2008-12-20  Bruno Haible  <bruno@clisp.org>
48244
48245         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48246         so that there are no conversion errors on AIX.
48247         * tests/test-mbsrtowcs.c (main): LIkewise.
48248
48249 2008-12-20  Bruno Haible  <bruno@clisp.org>
48250
48251         Work around wctob bug on Solaris <= 9.
48252         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48253         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48254         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48255         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48256         * modules/wctob (Files): Add m4/locale-fr.m4.
48257         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48258
48259 2008-12-20  Bruno Haible  <bruno@clisp.org>
48260
48261         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48262         /dev/null.
48263         * tests/test-select-in.sh: Likewise.
48264         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48265
48266 2008-12-20  Bruno Haible  <bruno@clisp.org>
48267
48268         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48269         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48270         Cygwin 1.5.x.
48271
48272 2008-12-20  Bruno Haible  <bruno@clisp.org>
48273
48274         Ensure mbstate_t is defined on HP-UX 11.11.
48275         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48276         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48277         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48278         AC_USE_SYSTEM_EXTENSIONS.
48279         * modules/fnmatch (Depends-on): Add extensions.
48280         * modules/mbrlen (Depends-on): Likewise.
48281         * modules/mbrtowc (Depends-on): Likewise.
48282         * modules/mbsinit (Depends-on): Likewise.
48283         * modules/mbsrtowcs (Depends-on): Likewise.
48284         * modules/mbswidth (Depends-on): Likewise.
48285         * modules/quotearg (Depends-on): Likewise.
48286         * modules/strftime (Depends-on): Likewise.
48287
48288 2008-12-20  Bruno Haible  <bruno@clisp.org>
48289
48290         Ensure wctob is declared on IRIX 6.5.
48291         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48292         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48293         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48294         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48295         of HAVE_WCTOB.
48296         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48297         HAVE_WCTOB.
48298         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48299
48300 2008-12-19  Bruno Haible  <bruno@clisp.org>
48301
48302         * modules/mbsrtowcs-tests: New file.
48303         * tests/test-mbsrtowcs1.sh: New file.
48304         * tests/test-mbsrtowcs2.sh: New file.
48305         * tests/test-mbsrtowcs3.sh: New file.
48306         * tests/test-mbsrtowcs4.sh: New file.
48307         * tests/test-mbsrtowcs.c: New file.
48308
48309         New module 'mbsrtowcs'.
48310         * lib/wchar.in.h (mbsrtowcs): New declaration.
48311         * lib/mbsrtowcs.c: New file.
48312         * m4/mbsrtowcs.m4: New file.
48313         * modules/mbsrtowcs: New file.
48314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48315         HAVE_MBSRTOWCS.
48316         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48317         HAVE_MBSRTOWCS.
48318         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48319
48320 2008-12-19  Bruno Haible  <bruno@clisp.org>
48321
48322         New module 'mbrlen'.
48323         * lib/wchar.in.h (mbrlen): New declaration.
48324         * lib/mbrlen.c: New file.
48325         * m4/mbrlen.m4: New file.
48326         * modules/mbrlen: New file.
48327         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48328         HAVE_MBRLEN.
48329         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48330         HAVE_MBRLEN.
48331         * doc/posix-functions/mbrlen.texi: Document the new module.
48332
48333 2008-12-19  Bruno Haible  <bruno@clisp.org>
48334
48335         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48336         * modules/mbrtowc (Depends-on): Add verify.
48337         Suggested by Paul Eggert.
48338
48339 2008-12-18  Bruno Haible  <bruno@clisp.org>
48340
48341         * modules/mbsinit-tests: New file.
48342         * tests/test-mbsinit.sh: New file.
48343         * tests/test-mbsinit.c: New file.
48344
48345 2008-12-18  Bruno Haible  <bruno@clisp.org>
48346
48347         * modules/mbrtowc-tests: New file.
48348         * tests/test-mbrtowc1.sh: New file.
48349         * tests/test-mbrtowc2.sh: New file.
48350         * tests/test-mbrtowc3.sh: New file.
48351         * tests/test-mbrtowc4.sh: New file.
48352         * tests/test-mbrtowc.c: New file.
48353
48354         New module 'mbrtowc'.
48355         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48356         mbsinit and mbrtowc.
48357         (mbrtowc): New declaration.
48358         * lib/mbrtowc.c: New file.
48359         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48360         * modules/mbrtowc: New file.
48361         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48362         HAVE_MBRTOWC.
48363         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48364         HAVE_MBRTOWC.
48365         * doc/posix-functions/mbrtowc.texi: Document the new module.
48366
48367 2008-12-18  Bruno Haible  <bruno@clisp.org>
48368
48369         New module 'wctob'.
48370         * lib/wchar.in.h (wctob): New declaration.
48371         * lib/wctob.c: New file.
48372         * m4/wctob.m4: New file.
48373         * modules/wctob: New file.
48374         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48375         HAVE_WCTOB.
48376         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48377         * doc/posix-functions/wctob.texi: Document the new module.
48378
48379 2008-12-18  Bruno Haible  <bruno@clisp.org>
48380
48381         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48382         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48383
48384 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48385
48386         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48387         G. Christensen" <tgc@jupiterrise.com>.
48388
48389         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48390         G. Christensen" <tgc@jupiterrise.com>.
48391
48392         * lib/flock.c: Need to include string.h.  Reported by "Tom
48393         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48394         <ebb9@byu.net>.
48395
48396 2008-12-18  Bruno Haible  <bruno@clisp.org>
48397
48398         * m4/locale-ja.m4: New file, from GNU gettext.
48399
48400 2008-12-17  Bruno Haible  <bruno@clisp.org>
48401
48402         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48403         Suggested by Eric Blake.
48404
48405 2008-12-17  Bruno Haible  <bruno@clisp.org>
48406
48407         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48408
48409 2008-12-17  Bruno Haible  <bruno@clisp.org>
48410
48411         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48412         * modules/mbsinit (Depends-on): Add verify.
48413         Suggested by Paul Eggert.
48414
48415 2008-12-17  Bruno Haible  <bruno@clisp.org>
48416
48417         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48418         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48419         gl_FUNC_MBRTOWC.
48420         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48421         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48422         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48423         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48424         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48425         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48426         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48427         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48428         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48429         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48430         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48431         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48432         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48433         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48434         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48435         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48436         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48437         * modules/trim (configure.ac): Likewise.
48438
48439 2008-12-17  Bruno Haible  <bruno@clisp.org>
48440
48441         * modules/btowc-tests: New file.
48442         * tests/test-btowc1.sh: New file.
48443         * tests/test-btowc2.sh: New file.
48444         * tests/test-btowc.c: New file.
48445
48446         New module 'btowc'.
48447         * lib/wchar.in.h (btowc): New declaration.
48448         * lib/btowc.c: New file.
48449         * m4/btowc.m4: New file.
48450         * modules/btowc: New file.
48451         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48452         HAVE_BTOWC.
48453         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48454         * doc/posix-functions/btowc.texi: Document the new module.
48455
48456 2008-12-17  Bruno Haible  <bruno@clisp.org>
48457
48458         New module 'mbsinit'.
48459         * lib/wchar.in.h (mbsinit): New declaration.
48460         * lib/mbsinit.c: New file.
48461         * m4/mbsinit.m4: New file.
48462         * modules/mbsinit: New file.
48463         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48464         HAVE_MBSINIT.
48465         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48466         HAVE_MBSINIT.
48467         * doc/posix-functions/mbsinit.texi: Document the new module.
48468
48469 2008-12-16  Bruno Haible  <bruno@clisp.org>
48470
48471         * lib/unistd.in.h: Add comment.
48472         * tests/test-environ.c: Don't include <stdlib.h>.
48473
48474 2008-12-16  Bruno Haible  <bruno@clisp.org>
48475
48476         * lib/parse-duration.h (parse_duration): Document return value
48477         convention.
48478         * lib/parse-duration.c: Include specification header first. Add
48479         comments.
48480         (_): Remove macro.
48481         (parse_year_month_day, parse_hour_minute_second): Move side effects
48482         outside of strchr call.
48483         (parse_non_iso8601): Move side effects outside of isspace call.
48484         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48485         call.
48486
48487 2008-12-16  Bruno Haible  <bruno@clisp.org>
48488
48489         * tests/test-parse-duration.sh: Produce no output when the test
48490         succeeds.
48491
48492 2008-12-16  Bruno Haible  <bruno@clisp.org>
48493
48494         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48495         expressions.
48496
48497 2008-12-15  Bruno Haible  <bruno@clisp.org>
48498
48499         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48500         * doc/glibc-functions/flistxattr.texi: Likewise.
48501         * doc/glibc-functions/fopencookie.texi: Likewise.
48502         * doc/glibc-functions/fremovexattr.texi: Likewise.
48503         * doc/glibc-functions/fsetxattr.texi: Likewise.
48504         * doc/glibc-functions/getxattr.texi: Likewise.
48505         * doc/glibc-functions/lgetxattr.texi: Likewise.
48506         * doc/glibc-functions/listxattr.texi: Likewise.
48507         * doc/glibc-functions/llistxattr.texi: Likewise.
48508         * doc/glibc-functions/lremovexattr.texi: Likewise.
48509         * doc/glibc-functions/lsetxattr.texi: Likewise.
48510         * doc/glibc-functions/removexattr.texi: Likewise.
48511         * doc/glibc-functions/setxattr.texi: Likewise.
48512         * doc/posix-functions/open_memstream.texi: Likewise.
48513
48514 2008-12-15  Eric Blake  <ebb9@byu.net>
48515
48516         Update doc for cygwin 1.7.
48517         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48518         functions.
48519         * doc/posix-functions/fchmodat.texi: Likewise.
48520         * doc/posix-functions/fchownat.texi: Likewise.
48521         * doc/posix-functions/fdopendir.texi: Likewise.
48522         * doc/posix-functions/fmemopen.texi: Likewise.
48523         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48524         * doc/posix-functions/fstatat.texi: Likewise.
48525         * doc/posix-functions/futimens.texi: Likewise.
48526         * doc/posix-functions/gai_strerror.texi: Likewise.
48527         * doc/posix-functions/getaddrinfo.texi: Likewise.
48528         * doc/posix-functions/getnameinfo.texi: Likewise.
48529         * doc/posix-functions/if_freenameindex.texi: Likewise.
48530         * doc/posix-functions/if_indextoname.texi: Likewise.
48531         * doc/posix-functions/if_nameindex.texi: Likewise.
48532         * doc/posix-functions/if_nametoindex.texi: Likewise.
48533         * doc/posix-functions/insque.texi: Likewise.
48534         * doc/posix-functions/linkat.texi: Likewise.
48535         * doc/posix-functions/llrint.texi: Likewise.
48536         * doc/posix-functions/llrintf.texi: Likewise.
48537         * doc/posix-functions/llrintl.texi: Likewise.
48538         * doc/posix-functions/lockf.texi: Likewise.
48539         * doc/posix-functions/lrintl.texi: Likewise.
48540         * doc/posix-functions/mkdirat.texi: Likewise.
48541         * doc/posix-functions/mkfifoat.texi: Likewise.
48542         * doc/posix-functions/mknodat.texi: Likewise.
48543         * doc/posix-functions/mq_close.texi: Likewise.
48544         * doc/posix-functions/mq_getattr.texi: Likewise.
48545         * doc/posix-functions/mq_notify.texi: Likewise.
48546         * doc/posix-functions/mq_open.texi: Likewise.
48547         * doc/posix-functions/mq_receive.texi: Likewise.
48548         * doc/posix-functions/mq_send.texi: Likewise.
48549         * doc/posix-functions/mq_setattr.texi: Likewise.
48550         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48551         * doc/posix-functions/mq_timedsend.texi: Likewise.
48552         * doc/posix-functions/mq_unlink.texi: Likewise.
48553         * doc/posix-functions/open_memstream.texi: Likewise.
48554         * doc/posix-functions/openat.texi: Likewise.
48555         * doc/posix-functions/posix_fadvise.texi: Likewise.
48556         * doc/posix-functions/posix_fallocate.texi: Likewise.
48557         * doc/posix-functions/posix_madvise.texi: Likewise.
48558         * doc/posix-functions/posix_memalign.texi: Likewise.
48559         * doc/posix-functions/posix_openpt.texi: Likewise.
48560         * doc/posix-functions/readlinkat.texi: Likewise.
48561         * doc/posix-functions/remque.texi: Likewise.
48562         * doc/posix-functions/renameat.texi: Likewise.
48563         * doc/posix-functions/rintl.texi: Likewise.
48564         * doc/posix-functions/sem_unlink.texi: Likewise.
48565         * doc/posix-functions/shm_open.texi: Likewise.
48566         * doc/posix-functions/shm_unlink.texi: Likewise.
48567         * doc/posix-functions/signgam.texi: Likewise.
48568         * doc/posix-functions/sigset.texi: Likewise.
48569         * doc/posix-functions/stpcpy.texi: Likewise.
48570         * doc/posix-functions/stpncpy.texi: Likewise.
48571         * doc/posix-functions/strerror.texi: Likewise.
48572         * doc/posix-functions/strtod.texi: Likewise.
48573         * doc/posix-functions/symlinkat.texi: Likewise.
48574         * doc/posix-functions/unlinkat.texi: Likewise.
48575         * doc/posix-functions/utimensat.texi: Likewise.
48576         * doc/glibc-functions/bindresvport.texi: Likewise.
48577         * doc/glibc-functions/dn_expand.texi: Likewise.
48578         * doc/glibc-functions/exp10.texi: Likewise.
48579         * doc/glibc-functions/exp10f.texi: Likewise.
48580         * doc/glibc-functions/fgetxattr.texi: Likewise.
48581         * doc/glibc-functions/flistxattr.texi: Likewise.
48582         * doc/glibc-functions/fopencookie.texi: Likewise.
48583         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48584         * doc/glibc-functions/fremovexattr.texi: Likewise.
48585         * doc/glibc-functions/fsetxattr.texi: Likewise.
48586         * doc/glibc-functions/getifaddrs.texi: Likewise.
48587         * doc/glibc-functions/getxattr.texi: Likewise.
48588         * doc/glibc-functions/lgetxattr.texi: Likewise.
48589         * doc/glibc-functions/listxattr.texi: Likewise.
48590         * doc/glibc-functions/llistxattr.texi: Likewise.
48591         * doc/glibc-functions/lremovexattr.texi: Likewise.
48592         * doc/glibc-functions/lsetxattr.texi: Likewise.
48593         * doc/glibc-functions/pow10.texi: Likewise.
48594         * doc/glibc-functions/pow10f.texi: Likewise.
48595         * doc/glibc-functions/rcmd_af.texi: Likewise.
48596         * doc/glibc-functions/removexattr.texi: Likewise.
48597         * doc/glibc-functions/res_init.texi: Likewise.
48598         * doc/glibc-functions/res_mkquery.texi: Likewise.
48599         * doc/glibc-functions/res_query.texi: Likewise.
48600         * doc/glibc-functions/res_querydomain.texi: Likewise.
48601         * doc/glibc-functions/res_send.texi: Likewise.
48602         * doc/glibc-functions/rresvport_af.texi: Likewise.
48603         * doc/glibc-functions/setxattr.texi: Likewise.
48604         * doc/glibc-functions/strcasestr.texi: Likewise.
48605
48606 2008-12-15  Bruno Haible  <bruno@clisp.org>
48607
48608         Fix compilation error on OSF/1 4.0.
48609         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48610         <sys/time.h>, simply delegate to the system header.
48611         Reported by Daniel Richard G. <oss@teragram.com>.
48612
48613 2008-12-15  Bruno Haible  <bruno@clisp.org>
48614
48615         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48616         * doc/posix-functions/fchmodat.texi: Likewise.
48617         * doc/posix-functions/fchownat.texi: Likewise.
48618         * doc/posix-functions/fdopendir.texi: Likewise.
48619         * doc/posix-functions/fstatat.texi: Likewise.
48620         * doc/posix-functions/mkdirat.texi: Likewise.
48621         * doc/posix-functions/unlinkat.texi: Likewise.
48622
48623 2008-12-14  Bruno Haible  <bruno@clisp.org>
48624
48625         Update doc for POSIX:2008.
48626         * doc/posix-functions/faccessat.texi: New file.
48627         * doc/posix-functions/fchmodat.texi: New file.
48628         * doc/posix-functions/fchownat.texi: New file.
48629         * doc/posix-functions/fdopendir.texi: New file.
48630         * doc/posix-functions/fstatat.texi: New file.
48631         * doc/posix-functions/futimens.texi: New file.
48632         * doc/posix-functions/linkat.texi: New file.
48633         * doc/posix-functions/mkdirat.texi: New file.
48634         * doc/posix-functions/mkfifoat.texi: New file.
48635         * doc/posix-functions/mknodat.texi: New file.
48636         * doc/posix-functions/open_wmemstream.texi: New file.
48637         * doc/posix-functions/openat.texi: New file.
48638         * doc/posix-functions/psiginfo.texi: New file.
48639         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48640         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48641         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48642         * doc/posix-functions/readlinkat.texi: New file.
48643         * doc/posix-functions/renameat.texi: New file.
48644         * doc/posix-functions/strerror_l.texi: New file.
48645         * doc/posix-functions/symlinkat.texi: New file.
48646         * doc/posix-functions/unlinkat.texi: New file.
48647         * doc/posix-functions/utimensat.texi: New file.
48648         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48649
48650 2008-12-14  Bruno Haible  <bruno@clisp.org>
48651
48652         Update doc for POSIX:2008.
48653         * doc/posix-functions/alphasort.texi: Renamed from
48654         doc/glibc-functions/alphasort.texi.
48655         * doc/posix-functions/dirfd.texi: Renamed from
48656         doc/glibc-functions/dirfd.texi.
48657         * doc/posix-functions/dprintf.texi: Renamed from
48658         doc/glibc-functions/dprintf.texi.
48659         * doc/posix-functions/duplocale.texi: Renamed from
48660         doc/glibc-functions/duplocale.texi.
48661         * doc/posix-functions/fexecve.texi: Renamed from
48662         doc/glibc-functions/fexecve.texi.
48663         * doc/posix-functions/fmemopen.texi: Renamed from
48664         doc/glibc-functions/fmemopen.texi.
48665         * doc/posix-functions/freelocale.texi: Renamed from
48666         doc/glibc-functions/freelocale.texi.
48667         * doc/posix-functions/getdate_err.texi: Renamed from
48668         doc/glibc-functions/getdate_err.texi.
48669         * doc/posix-functions/isalnum_l.texi: Renamed from
48670         doc/glibc-functions/isalnum_l.texi.
48671         * doc/posix-functions/isalpha_l.texi: Renamed from
48672         doc/glibc-functions/isalpha_l.texi.
48673         * doc/posix-functions/isblank_l.texi: Renamed from
48674         doc/glibc-functions/isblank_l.texi.
48675         * doc/posix-functions/iscntrl_l.texi: Renamed from
48676         doc/glibc-functions/iscntrl_l.texi.
48677         * doc/posix-functions/isdigit_l.texi: Renamed from
48678         doc/glibc-functions/isdigit_l.texi.
48679         * doc/posix-functions/isgraph_l.texi: Renamed from
48680         doc/glibc-functions/isgraph_l.texi.
48681         * doc/posix-functions/islower_l.texi: Renamed from
48682         doc/glibc-functions/islower_l.texi.
48683         * doc/posix-functions/isprint_l.texi: Renamed from
48684         doc/glibc-functions/isprint_l.texi.
48685         * doc/posix-functions/ispunct_l.texi: Renamed from
48686         doc/glibc-functions/ispunct_l.texi.
48687         * doc/posix-functions/isspace_l.texi: Renamed from
48688         doc/glibc-functions/isspace_l.texi.
48689         * doc/posix-functions/isupper_l.texi: Renamed from
48690         doc/glibc-functions/isupper_l.texi.
48691         * doc/posix-functions/iswalnum_l.texi: Renamed from
48692         doc/glibc-functions/iswalnum_l.texi.
48693         * doc/posix-functions/iswalpha_l.texi: Renamed from
48694         doc/glibc-functions/iswalpha_l.texi.
48695         * doc/posix-functions/iswblank_l.texi: Renamed from
48696         doc/glibc-functions/iswblank_l.texi.
48697         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48698         doc/glibc-functions/iswcntrl_l.texi.
48699         * doc/posix-functions/iswctype_l.texi: Renamed from
48700         doc/glibc-functions/iswctype_l.texi.
48701         * doc/posix-functions/iswdigit_l.texi: Renamed from
48702         doc/glibc-functions/iswdigit_l.texi.
48703         * doc/posix-functions/iswgraph_l.texi: Renamed from
48704         doc/glibc-functions/iswgraph_l.texi.
48705         * doc/posix-functions/iswlower_l.texi: Renamed from
48706         doc/glibc-functions/iswlower_l.texi.
48707         * doc/posix-functions/iswprint_l.texi: Renamed from
48708         doc/glibc-functions/iswprint_l.texi.
48709         * doc/posix-functions/iswpunct_l.texi: Renamed from
48710         doc/glibc-functions/iswpunct_l.texi.
48711         * doc/posix-functions/iswspace_l.texi: Renamed from
48712         doc/glibc-functions/iswspace_l.texi.
48713         * doc/posix-functions/iswupper_l.texi: Renamed from
48714         doc/glibc-functions/iswupper_l.texi.
48715         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48716         doc/glibc-functions/iswxdigit_l.texi.
48717         * doc/posix-functions/isxdigit_l.texi: Renamed from
48718         doc/glibc-functions/isxdigit_l.texi.
48719         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48720         doc/glibc-functions/mbsnrtowcs.texi.
48721         * doc/posix-functions/mkdtemp.texi: Renamed from
48722         doc/glibc-functions/mkdtemp.texi.
48723         * doc/posix-functions/newlocale.texi: Renamed from
48724         doc/glibc-functions/newlocale.texi.
48725         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48726         doc/glibc-functions/nl_langinfo_l.texi.
48727         * doc/posix-functions/open_memstream.texi: Renamed from
48728         doc/glibc-functions/open_memstream.texi.
48729         * doc/posix-functions/opterr.texi: Renamed from
48730         doc/glibc-functions/opterr.texi.
48731         * doc/posix-functions/optind.texi: Renamed from
48732         doc/glibc-functions/optind.texi.
48733         * doc/posix-functions/optopt.texi: Renamed from
48734         doc/glibc-functions/optopt.texi.
48735         * doc/posix-functions/psignal.texi: Renamed from
48736         doc/glibc-functions/psignal.texi.
48737         * doc/posix-functions/scandir.texi: Renamed from
48738         doc/glibc-functions/scandir.texi.
48739         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48740         doc/glibc-functions/sched_get_priority_min.texi.
48741         * doc/posix-functions/signgam.texi: Renamed from
48742         doc/glibc-functions/signgam.texi.
48743         * doc/posix-functions/stpcpy.texi: Renamed from
48744         doc/glibc-functions/stpcpy.texi.
48745         * doc/posix-functions/stpncpy.texi: Renamed from
48746         doc/glibc-functions/stpncpy.texi.
48747         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48748         doc/glibc-functions/strcasecmp_l.texi.
48749         * doc/posix-functions/strcoll_l.texi: Renamed from
48750         doc/glibc-functions/strcoll_l.texi.
48751         * doc/posix-functions/strfmon_l.texi: Renamed from
48752         doc/glibc-functions/strfmon_l.texi.
48753         * doc/posix-functions/strftime_l.texi: Renamed from
48754         doc/glibc-functions/strftime_l.texi.
48755         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48756         doc/glibc-functions/strncasecmp_l.texi.
48757         * doc/posix-functions/strndup.texi: Renamed from
48758         doc/glibc-functions/strndup.texi.
48759         * doc/posix-functions/strnlen.texi: Renamed from
48760         doc/glibc-functions/strnlen.texi.
48761         * doc/posix-functions/strsignal.texi: Renamed from
48762         doc/glibc-functions/strsignal.texi.
48763         * doc/posix-functions/strxfrm_l.texi: Renamed from
48764         doc/glibc-functions/strxfrm_l.texi.
48765         * doc/posix-functions/timer_gettime.texi: Renamed from
48766         doc/glibc-functions/timer_gettime.texi.
48767         * doc/posix-functions/tolower_l.texi: Renamed from
48768         doc/glibc-functions/tolower_l.texi.
48769         * doc/posix-functions/toupper_l.texi: Renamed from
48770         doc/glibc-functions/toupper_l.texi.
48771         * doc/posix-functions/towctrans_l.texi: Renamed from
48772         doc/glibc-functions/towctrans_l.texi.
48773         * doc/posix-functions/towlower_l.texi: Renamed from
48774         doc/glibc-functions/towlower_l.texi.
48775         * doc/posix-functions/towupper_l.texi: Renamed from
48776         doc/glibc-functions/towupper_l.texi.
48777         * doc/posix-functions/uselocale.texi: Renamed from
48778         doc/glibc-functions/uselocale.texi.
48779         * doc/posix-functions/vdprintf.texi: Renamed from
48780         doc/glibc-functions/vdprintf.texi.
48781         * doc/posix-functions/wcpcpy.texi:
48782         Renamed from doc/glibc-functions/wcpcpy.texi.
48783         * doc/posix-functions/wcpncpy.texi: Renamed from
48784         doc/glibc-functions/wcpncpy.texi.
48785         * doc/posix-functions/wcscasecmp.texi: Renamed from
48786         doc/glibc-functions/wcscasecmp.texi.
48787         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48788         doc/glibc-functions/wcscasecmp_l.texi.
48789         * doc/posix-functions/wcscoll_l.texi: Renamed from
48790         doc/glibc-functions/wcscoll_l.texi.
48791         * doc/posix-functions/wcsdup.texi: Renamed from
48792         doc/glibc-functions/wcsdup.texi.
48793         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48794         doc/glibc-functions/wcsncasecmp.texi.
48795         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48796         doc/glibc-functions/wcsncasecmp_l.texi.
48797         * doc/posix-functions/wcsnlen.texi: Renamed from
48798         doc/glibc-functions/wcsnlen.texi.
48799         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48800         doc/glibc-functions/wcsnrtombs.texi.
48801         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48802         doc/glibc-functions/wcsxfrm_l.texi.
48803         * doc/posix-functions/wctrans_l.texi: Renamed from
48804         doc/glibc-functions/wctrans_l.texi.
48805         * doc/posix-functions/wctype_l.texi: Renamed from
48806         doc/glibc-functions/wctype_l.texi.
48807         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48808         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48809         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48810         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48811         these subsections.
48812         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48813         Remove sections.
48814
48815 2008-12-14  Bruno Haible  <bruno@clisp.org>
48816
48817         Update doc for POSIX:2008.
48818         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48819
48820 2008-12-14  Bruno Haible  <bruno@clisp.org>
48821
48822         Update doc for POSIX:2008.
48823         * doc/pastposix-functions/bcmp.texi: Renamed from
48824         doc/posix-functions/bcmp.texi.
48825         * doc/pastposix-functions/bcopy.texi: Renamed from
48826         doc/posix-functions/bcopy.texi.
48827         * doc/pastposix-functions/bsd_signal.texi: Renamed from
48828         doc/posix-functions/bsd_signal.texi.
48829         * doc/pastposix-functions/bzero.texi: Renamed from
48830         doc/posix-functions/bzero.texi.
48831         * doc/pastposix-functions/ecvt.texi: Renamed from
48832         doc/posix-functions/ecvt.texi.
48833         * doc/pastposix-functions/fcvt.texi: Renamed from
48834         doc/posix-functions/fcvt.texi.
48835         * doc/pastposix-functions/ftime.texi: Renamed from
48836         doc/posix-functions/ftime.texi.
48837         * doc/pastposix-functions/gcvt.texi: Renamed from
48838         doc/posix-functions/gcvt.texi.
48839         * doc/pastposix-functions/getcontext.texi: Renamed from
48840         doc/posix-functions/getcontext.texi.
48841         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
48842         doc/posix-functions/gethostbyaddr.texi.
48843         * doc/pastposix-functions/gethostbyname.texi: Renamed from
48844         doc/posix-functions/gethostbyname.texi.
48845         * doc/pastposix-functions/getwd.texi: Renamed from
48846         doc/posix-functions/getwd.texi.
48847         * doc/pastposix-functions/h_errno.texi: Renamed from
48848         doc/posix-functions/h_errno.texi.
48849         * doc/pastposix-functions/index.texi: Renamed from
48850         doc/posix-functions/index.texi.
48851         * doc/pastposix-functions/makecontext.texi: Renamed from
48852         doc/posix-functions/makecontext.texi.
48853         * doc/pastposix-functions/mktemp.texi: Renamed from
48854         doc/posix-functions/mktemp.texi.
48855         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
48856         doc/posix-functions/pthread_attr_getstackaddr.texi.
48857         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
48858         doc/posix-functions/pthread_attr_setstackaddr.texi.
48859         * doc/pastposix-functions/rindex.texi: Renamed from
48860         doc/posix-functions/rindex.texi.
48861         * doc/pastposix-functions/scalb.texi: Renamed from
48862         doc/posix-functions/scalb.texi.
48863         * doc/pastposix-functions/setcontext.texi: Renamed from
48864         doc/posix-functions/setcontext.texi.
48865         * doc/pastposix-functions/swapcontext.texi: Renamed from
48866         doc/posix-functions/swapcontext.texi.
48867         * doc/pastposix-functions/ualarm.texi: Renamed from
48868         doc/posix-functions/ualarm.texi.
48869         * doc/pastposix-functions/usleep.texi: Renamed from
48870         doc/posix-functions/usleep.texi.
48871         * doc/pastposix-functions/vfork.texi: Renamed from
48872         doc/posix-functions/vfork.texi.
48873         * doc/pastposix-functions/wcswcs.texi: Renamed from
48874         doc/posix-functions/wcswcs.texi.
48875         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
48876         (Function Substitutes): Update.
48877
48878 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48879
48880         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
48881         m4/strerror.m4.
48882
48883 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48884             Bruno Haible  <bruno@clisp.org>
48885
48886         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
48887
48888 2008-12-13  Bruno Haible  <bruno@clisp.org>
48889
48890         * modules/strtoull (Depends-on): Remove unistd.
48891
48892 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48893
48894         * modules/strtoull (Depends-on): Add stdlib.
48895
48896 2008-12-11  Simon Josefsson  <simon@josefsson.org>
48897
48898         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
48899
48900 2008-12-10  Jim Meyering  <meyering@redhat.com>
48901
48902         gl_ASSERT: don't say assertions are disabled when they're not
48903         * m4/assert.m4 (gl_ASSERT): Do not make configure report
48904         "checking whether to enable assertions... no", when they are in
48905         fact enabled.  This is solely a bug in the output of configure.
48906         In spite of saying "no", NDEBUG was not defined in that case.
48907         Also, as noted by Eric Blake, leave assertions enabled upon
48908         --enable-assert=INVALID.
48909
48910 2008-12-10  Bruno Haible  <bruno@clisp.org>
48911
48912         Change MODULES.html to refer to POSIX:2008 where possible.
48913         * MODULES.html.sh (POSIX2008_URL): New variable.
48914         (posix_headers): Remove sys/timeb, ucontext.
48915         (posix2001_headers): New variable.
48916         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
48917         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
48918         index, makecontext, mktemp, pthread_attr_getstackaddr,
48919         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
48920         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
48921         (posix2001_functions): New variable.
48922         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
48923         otherwise.
48924
48925 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48926
48927         add missing include to parse-duration.c
48928         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
48929         * modules/parse-duration (Depends-on): Add xalloc.
48930
48931         fix sed script reading maint.mk
48932         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
48933         (syntax-check-rules): Use it.
48934
48935 2008-12-09  Bruno Haible  <bruno@clisp.org>
48936
48937         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
48938         MacOS X 10.4/PowerPC.
48939         Reported by Simon Josefsson.
48940
48941 2008-12-08  Jim Meyering  <meyering@redhat.com>
48942
48943         work around mingw's lack of some S_IF definitions
48944         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
48945         Reported by Simon Josefsson.
48946
48947 2008-12-08  Bruno Haible  <bruno@clisp.org>
48948
48949         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
48950         applied to variables. Needed on MacOS X 10.4/PowerPC.
48951         Reported by Simon Josefsson.
48952
48953 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
48954         and Eric Blake  <ebb9@byu.net>
48955
48956         assert: honor --enable-assert
48957         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
48958         order to honor --enable-assert, rather than treating it as a
48959         synonym for --disable-assert.
48960
48961 2008-12-08  Jim Meyering  <meyering@redhat.com>
48962
48963         * lib/posixtm.c: Remove now-useless declaration of mktime.
48964
48965         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
48966
48967 2008-12-07  Bruno Haible  <bruno@clisp.org>
48968
48969         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
48970         test_once): Mark functions as static.
48971         * tests/test-tls.c (test_tls): Likewise.
48972
48973 2008-12-07  Bruno Haible  <bruno@clisp.org>
48974
48975         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
48976         iconv_register_autodetect.
48977
48978 2008-12-07  Jim Meyering  <meyering@redhat.com>
48979
48980         posixtm.c: avoid a warning
48981         * lib/posixtm.c (posixtime): Don't initialize tm0.
48982         It's no longer needed to placate gcc4's -Wuninitialized,
48983         and the attempt to placate would elicit a new warning.
48984
48985         unicodeio.c: mark unused parameters
48986         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48987         (fallback_failure_callback): Likewise.
48988
48989 2008-12-07  Bruno Haible  <bruno@clisp.org>
48990
48991         * gnulib-tool (func_create_testdir): When building the tests
48992         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
48993         Reported by Simon Josefsson.
48994
48995 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48996
48997         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
48998
48999 2008-12-06  Bruno Haible  <bruno@clisp.org>
49000
49001         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49002         Suggested by Eric Blake.
49003
49004 2008-12-06  Bruno Haible  <bruno@clisp.org>
49005
49006         Fix a c-stack test failure on MacOS X.
49007         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49008         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49009         handler for SIGBUS as well.
49010         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49011         install a signal handler for SIGBUS as well.
49012         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49013
49014 2008-12-06  Bruno Haible  <bruno@clisp.org>
49015
49016         Advocacy documentation.
49017         * doc/gnulib-intro.texi (Benefits): New section.
49018         * doc/gnulib.texi: Update.
49019
49020 2008-12-06  Bruno Haible  <bruno@clisp.org>
49021
49022         Document the 'manywarnings' module.
49023         * doc/manywarnings.texi: New file.
49024         * doc/gnulib.texi: Include it.
49025
49026 2008-12-05  Eric Blake  <ebb9@byu.net>
49027
49028         tests: silence some gcc warnings
49029         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49030         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49031         type mismatches.
49032
49033 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49034             Bruno Haible  <bruno@clisp.org>
49035
49036         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49037
49038 2008-11-29  Jim Meyering  <meyering@redhat.com>
49039
49040         unicodeio.c: mark unused parameters
49041         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49042         (fallback_failure_callback): Likewise.
49043
49044         fts: fix a thinko
49045         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49046         (set_stat_type): Return S_IF*-valued "type" directly.
49047         Prompted by James Youngman's spotting a related bug.
49048         Confirmed by further testing through find.
49049
49050         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49051         * lib/fts.c (D_TYPE): Define.
49052         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49053         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49054         (s_ifmt_shift_bits): New function.
49055         (set_stat_type): New function.
49056         (fts_build): When not calling fts_stat, call set_stat_type
49057         to propagate dirent.d_type info to fts_read caller.
49058         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49059         fts_statp->st_mode type information may be valid.
49060
49061 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49062
49063         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49064         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49065         <sds@gnu.org>.
49066
49067 2008-11-20  Bruno Haible  <bruno@clisp.org>
49068
49069         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49070         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49071         INCLUDE_NEXT.
49072         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49073         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49074         * modules/math (Makefile.am): Substitute
49075         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49076         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49077
49078 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49079             Bruno Haible  <bruno@clisp.org>
49080
49081         * lib/stdint.in.h: Define all type macros so that their expansion is
49082         a single typedef'ed token. Fixes a compilation failure in Boost which
49083         does "using ::int8_t;".
49084
49085 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49086
49087         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49088         gl_MANYWARN_ALL_GCC.
49089         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49090         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49091         * modules/manywarnings: New file.
49092         * MODULES.html.sh: Mention manywarnings module.
49093
49094 2008-11-18  Bruno Haible  <bruno@clisp.org>
49095
49096         * doc/gnulib-tool.texi (Unit tests): New section.
49097
49098 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49099
49100         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49101         paths like 'lib/po/foo.po'.
49102
49103 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49104
49105         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49106         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49107
49108 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49109
49110         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49111         parameter works.
49112
49113 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49114
49115         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49116
49117 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49118
49119         * modules/parse-duration-tests: New file.
49120         * tests/test-parse-duration.sh: New file.
49121         * tests/test-parse-duration.c: New file.
49122
49123         New module 'parse-duration'.
49124         * lib/parse-duration.h: New file.
49125         * lib/parse-duration.c: New file.
49126         * modules/parse-duration: New file.
49127
49128 2008-11-17  Bruno Haible  <bruno@clisp.org>
49129
49130         * tests/test-select-out.sh: Comment out the first pipe test.
49131         Reported by Simon Josefsson.
49132
49133 2008-11-17  Bruno Haible  <bruno@clisp.org>
49134
49135         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49136         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49137         gl_HOSTENT.
49138
49139 2008-11-17  Bruno Haible  <bruno@clisp.org>
49140
49141         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49142         -lnetwork and -lnet. Needed for Haiku and BeOS.
49143
49144 2008-11-16  Bruno Haible  <bruno@clisp.org>
49145
49146         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49147
49148 2008-11-16  Bruno Haible  <bruno@clisp.org>
49149
49150         Avoid test failure on Haiku.
49151         * tests/test-fsync.c: Include <errno.h>.
49152         (main): Don't require that fsync (0) fails.
49153
49154 2008-11-15  Bruno Haible  <bruno@clisp.org>
49155
49156         New module 'hostent'.
49157         * modules/hostent: New file.
49158         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49159
49160 2008-11-15  Bruno Haible  <bruno@clisp.org>
49161
49162         New module 'servent'.
49163         * modules/servent: New file.
49164         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49165
49166 2008-11-15  Bruno Haible  <bruno@clisp.org>
49167
49168         Avoid generating same test program with two different rules.
49169         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49170         test-frexp to test-frexp-nolibm.
49171         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49172         test-frexpl to test-frexpl-nolibm.
49173
49174 2008-11-15  Bruno Haible  <bruno@clisp.org>
49175
49176         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49177         $(FREXPL_LIBM).
49178
49179 2008-11-15  Bruno Haible  <bruno@clisp.org>
49180
49181         * lib/netdb.in.h: Activate the definitions also when the system's
49182         <netdb.h> has 'struct addrinfo'.
49183         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49184         EAI_OVERFLOW or AI_NUMERICSERV.
49185         * doc/posix-headers/netdb.texi: Document the problem.
49186
49187 2008-11-15  Bruno Haible  <bruno@clisp.org>
49188
49189         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49190
49191         Make the 'sched' module work on platforms where <sched.h> exists but
49192         is incomplete (such as Haiku).
49193         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49194         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49195         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49196         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49197         HAVE_STRUCT_SCHED_PARAM.
49198         * modules/sched (Depends-on): Add include_next.
49199         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49200         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49201         * doc/posix-headers/sched.texi: Document the issue.
49202
49203 2008-11-13  Jim Meyering  <meyering@redhat.com>
49204
49205         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49206         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49207         test would fail due to the difference in the Report bugs to ...
49208         line.  The expected address is empty, "<>", while the actual
49209         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49210
49211 2008-11-12  Bruno Haible  <bruno@clisp.org>
49212
49213         lstat: don't compile lstat.c on systems lacking lstat
49214         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49215         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49216         Reported by Daniel P. Berrange via Jim Meyering.
49217
49218 2008-11-12  Jim Meyering  <meyering@redhat.com>
49219
49220         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49221
49222 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49223
49224         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49225         instead.
49226
49227 2008-11-12  Bruno Haible  <bruno@clisp.org>
49228
49229         * lib/unicodeio.c: Include unistr.h.
49230         (utf8_wctomb): Remove function.
49231         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49232
49233 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49234
49235         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49236         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49237         <bruno@clisp.org>.
49238         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49239
49240 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49241
49242         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49243         * doc/gnulib.texi: Add section for warnings.
49244
49245 2008-11-11  Bruno Haible  <bruno@clisp.org>
49246
49247         * lib/sockets.h: Add a comment.
49248
49249 2008-11-11  Karl Berry  <karl@gnu.org>
49250
49251         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49252
49253 2008-11-11  Eric Blake  <ebb9@byu.net>
49254
49255         fdl.texi: avoid git symlinks
49256         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49257
49258 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49259
49260         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49261
49262 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49263
49264         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49265         (gl_WARN_ADD): Substitute $2 if literal.
49266
49267 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49268
49269         * m4/warning.m4: Remove.
49270
49271 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49272
49273         * m4/warnings.m4: Almost complete rewrite. :-)
49274
49275 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49276
49277         * modules/warnings: New module.
49278         * m4/warnings.m4: New file.
49279         * MODULES.html.sh: Mention warnings module.
49280         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49281         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49282
49283 2008-11-10  Eric Blake  <ebb9@byu.net>
49284
49285         fdl.texi: make a symlink to the latest version
49286         * doc/standards.texi: Revert today's earlier change.
49287         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49288         * doc/fdl.texi: ...and replace this with a symlink to the newer
49289         fdl-1.3.texi.
49290
49291 2008-11-10  Bruno Haible  <bruno@clisp.org>
49292
49293         * tests/test-select-fd.c (main): Accept the result file name as fourth
49294         argument.
49295         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49296         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49297
49298 2008-11-10  Bruno Haible  <bruno@clisp.org>
49299
49300         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49301         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49302         as autoconf-substituted macros.
49303         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49304         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49305         gl_NETDB_H_DEFAULTS. Set these variables.
49306         * modules/netdb (Makefile.am): Substitute these variables.
49307
49308 2008-11-10  Eric Blake  <ebb9@byu.net>
49309
49310         standards.texi: include correct file for FDL 1.3
49311         * doc/standards.texi (GNU Free Documentation License): Change
49312         include file to pull in FDL 1.3, not 1.2.
49313
49314         fdl.texi: revert accidental change to license
49315         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49316
49317 2008-11-10  Bruno Haible  <bruno@clisp.org>
49318
49319         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49320         cross-compiling guesses also when the native compile gives no result.
49321
49322 2008-11-10  Bruno Haible  <bruno@clisp.org>
49323
49324         * lib/spawni.c (__spawni): Force variable into the stack.
49325
49326 2008-11-10  Bruno Haible  <bruno@clisp.org>
49327
49328         Add support for Haiku.
49329         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49330         glibc and BeOS, but also on Haiku.
49331         * lib/fpurge.c (fpurge): Likewise.
49332         * lib/freadable.c (freadable): Likewise.
49333         * lib/freadahead.c (freadahead): Likewise.
49334         * lib/freading.c (freading): Likewise.
49335         * lib/freadptr.c (freadptr): Likewise.
49336         * lib/freadseek.c (freadptrinc): Likewise.
49337         * lib/fseeko.c (rpl_fseeko): Likewise.
49338         * lib/fseterr.c (fseterr): Likewise.
49339         * lib/fwritable.c (fwritable): Likewise.
49340         * lib/fwriting.c (fwriting): Likewise.
49341         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49342
49343 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49344
49345         * lib/config.charset: Treat Haiku like BeOS.
49346
49347 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49348
49349         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49350         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49351
49352 2008-11-08  Bruno Haible  <bruno@clisp.org>
49353
49354         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49355         AC_CACHE_CHECK.
49356
49357 2008-11-08  Bruno Haible  <bruno@clisp.org>
49358
49359         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49360
49361 2008-11-08  Bruno Haible  <bruno@clisp.org>
49362
49363         * tests/test-select-fd.c: New file.
49364         * tests/test-select-in.sh: New file.
49365         * tests/test-select-out.sh: New file.
49366         * tests/test-select-stdin.c: New file.
49367         * modules/select-tests (Files): Add the new files.
49368         (Depends-on): Add gettimeofday.
49369         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49370         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49371         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49372
49373 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49374             Bruno Haible  <bruno@clisp.org>
49375
49376         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49377
49378 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49379
49380         * build-aux/pmccabe2html: Added support for C++ source files.
49381
49382 2008-11-05  Ben Pfaff  <blp@gnu.org>
49383
49384         Fix lib/close.c build on Windows.
49385         * modules/close (Files): Add lib/w32sock.h.
49386
49387 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49388
49389         Accept Bison's NEWS format.
49390         * build-aux/announce-gen (print_news_deltas): Tweak
49391         $re_prefix.
49392
49393 2008-11-04  Bruno Haible  <bruno@clisp.org>
49394
49395         * modules/random_r (Maintainer): Add glibc.
49396
49397 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49398
49399         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49400         by karl@freefriends.org (Karl Berry).
49401         * doc/alloca.texi: Likewise.
49402         * doc/c-ctype.texi: Likewise.
49403         * doc/c-strcase.texi: Likewise.
49404         * doc/c-strcaseeq.texi: Likewise.
49405         * doc/c-strcasestr.texi: Likewise.
49406         * doc/c-strstr.texi: Likewise.
49407         * doc/c-strtod.texi: Likewise.
49408         * doc/c-strtold.texi: Likewise.
49409         * doc/ctime.texi: Likewise.
49410         * doc/error.texi: Likewise.
49411         * doc/fdl.texi: Likewise.
49412         * doc/gcd.texi: Likewise.
49413         * doc/getdate.texi: Likewise.
49414         * doc/gnulib-intro.texi: Likewise.
49415         * doc/gnulib-tool.texi: Likewise.
49416         * doc/gnulib.texi: Likewise.
49417         * doc/inet_ntoa.texi: Likewise.
49418         * doc/maintain.texi: Likewise.
49419         * doc/make-stds.texi: Likewise.
49420         * doc/quote.texi: Likewise.
49421         * doc/regexprops-generic.texi: Likewise.
49422         * doc/standards.texi: Likewise.
49423         * doc/verify.texi: Likewise.
49424         * doc/visibility.texi: Likewise.
49425         * doc/gnulib.texi (GNU Free Documentation License): Include
49426         fdl-1.3.texi instead of fdl.texi.
49427
49428 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49429
49430         * doc/fdl-1.3.texi: New file, from
49431         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49432         * modules/fdl-1.3: Add.
49433         * MODULES.html.sh: Add fdl-1.3.
49434
49435 2008-11-03  Bruno Haible  <bruno@clisp.org>
49436
49437         Make determination of absolute name of header file work with AIX xlc.
49438         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49439         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49440         preprocessing.
49441         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49442         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49443
49444 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49445
49446         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49447         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49448         <ludo@gnu.org>.
49449
49450 2008-11-02  Bruno Haible  <bruno@clisp.org>
49451
49452         Mark 'strpbrk' obsolete.
49453         * modules/strpbrk (Status, Notice): New sections.
49454         * modules/strtok_r (Depends-on): Add strpbrk.
49455
49456 2008-11-02  Bruno Haible  <bruno@clisp.org>
49457
49458         Mark 'strdup' obsolete.
49459         * modules/strdup (Status, Notice): New sections.
49460         * modules/findprog (Depends-on): Add strdup.
49461         * modules/getaddrinfo (Depends-on): Likewise.
49462         * modules/localename (Depends-on): Likewise.
49463         * modules/relocatable-lib (Depends-on): Likewise.
49464         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49465         * modules/relocatable-prog (Depends-on): Likewise.
49466         * modules/trim (Depends-on): Likewise.
49467         * modules/unictype/gen-ctype (Depends-on): Likewise.
49468         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49469
49470 2008-11-02  Bruno Haible  <bruno@clisp.org>
49471
49472         Mark 'strcspn' obsolete.
49473         * modules/strcspn (Status, Notice): New sections.
49474
49475 2008-11-02  Bruno Haible  <bruno@clisp.org>
49476
49477         Mark 'rmdir' obsolete.
49478         * modules/rmdir (Status, Notice): New sections.
49479         * modules/clean-temp (Depends-on): Add rmdir.
49480         * modules/openat (Depends-on): Likewise.
49481
49482 2008-11-02  Bruno Haible  <bruno@clisp.org>
49483
49484         Mark 'raise' obsolete.
49485         * modules/raise (Status, Notice): New sections.
49486         (Include): Specify <signal.h>.
49487         * modules/stdio (Depends-on): Add raise.
49488         * modules/write (Depends-on): Likewise.
49489
49490 2008-11-02  Bruno Haible  <bruno@clisp.org>
49491
49492         Mark 'memset' obsolete.
49493         * modules/memset (Status, Notice): New sections.
49494
49495 2008-11-02  Bruno Haible  <bruno@clisp.org>
49496
49497         Mark 'memmove' obsolete.
49498         * modules/memmove (Status, Notice): New sections.
49499         * modules/argp (Depends-on): Add memmove.
49500         * modules/argz (Depends-on): Likewise.
49501         * modules/canonicalize (Depends-on): Likewise.
49502         * modules/canonicalize-lgpl (Depends-on): Likewise.
49503         * modules/fts (Depends-on): Likewise.
49504         * modules/getcwd (Depends-on): Likewise.
49505         * modules/human (Depends-on): Likewise.
49506         * modules/regex (Depends-on): Likewise.
49507         * modules/striconveh (Depends-on): Likewise.
49508         * modules/trim (Depends-on): Likewise.
49509         * modules/unistr/u8-move (Depends-on): Likewise.
49510         * modules/unistr/u16-move (Depends-on): Likewise.
49511         * modules/unistr/u32-move (Depends-on): Likewise.
49512
49513 2008-11-02  Bruno Haible  <bruno@clisp.org>
49514
49515         Mark 'memcpy' obsolete.
49516         * modules/memcpy (Status, Notice): New sections.
49517
49518 2008-11-02  Bruno Haible  <bruno@clisp.org>
49519
49520         Mark 'memcmp' obsolete.
49521         * modules/memcmp (Status, Notice): New sections.
49522         * modules/argmatch (Depends-on): Add memchr.
49523         * modules/backupfile (Depends-on): Likewise.
49524         * modules/c-strcasestr (Depends-on): Likewise.
49525         * modules/crypto/des (Depends-on): Likewise.
49526         * modules/csharpcomp (Depends-on): Likewise.
49527         * modules/fnmatch (Depends-on): Likewise.
49528         * modules/git-merge-changelog (Depends-on): Likewise.
49529         * modules/isnand (Depends-on): Likewise.
49530         * modules/isnand-nolibm (Depends-on): Likewise.
49531         * modules/isnanf (Depends-on): Likewise.
49532         * modules/isnanf-nolibm (Depends-on): Likewise.
49533         * modules/isnanl (Depends-on): Likewise.
49534         * modules/isnanl-nolibm (Depends-on): Likewise.
49535         * modules/mbchar (Depends-on): Likewise.
49536         * modules/memcoll (Depends-on): Likewise.
49537         * modules/quotearg (Depends-on): Likewise.
49538         * modules/regex (Depends-on): Likewise.
49539         * modules/relocatable-prog (Depends-on): Likewise.
49540         * modules/same (Depends-on): Likewise.
49541         * modules/signbit (Depends-on): Likewise.
49542         * modules/strcasestr-simple (Depends-on): Likewise.
49543         * modules/unictype/gen-ctype (Depends-on): Likewise.
49544         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49545         * modules/uniname/uniname (Depends-on): Likewise.
49546         * modules/unistr/u8-cmp (Depends-on): Likewise.
49547
49548 2008-11-02  Bruno Haible  <bruno@clisp.org>
49549
49550         Mark 'memchr' obsolete.
49551         * modules/memchr (Status, Notice): New sections.
49552         * modules/argp (Depends-on): Add memchr.
49553         * modules/base64 (Depends-on): Likewise.
49554         * modules/c-strcasestr (Depends-on): Likewise.
49555         * modules/chdir-long (Depends-on): Likewise.
49556         * modules/fnmatch (Depends-on): Likewise.
49557         * modules/getsubopt (Depends-on): Likewise.
49558         * modules/git-merge-changelog (Depends-on): Likewise.
49559         * modules/glob (Depends-on): Likewise.
49560         * modules/strcasestr-simple (Depends-on): Likewise.
49561         * modules/strnlen (Depends-on): Likewise.
49562
49563 2008-11-02  Bruno Haible  <bruno@clisp.org>
49564
49565         Mark 'atexit' obsolete.
49566         * modules/atexit (Status, Notice): New sections.
49567         * modules/chdir-long (Depends-on): Add atexit.
49568         * modules/wait-process (Depends-on): Likewise.
49569
49570 2008-11-02  Bruno Haible  <bruno@clisp.org>
49571
49572         * gnulib-tool: New option --with-obsolete.
49573         (func_usage): Document it.
49574         (func_modules_transitive_closure): Drop obsolete dependencies if
49575         incobsolete is not true.
49576         (func_import): Read and save the incobsolete variable to the cache.
49577
49578 2008-11-02  Bruno Haible  <bruno@clisp.org>
49579
49580         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49581         * gnulib-tool: New option --extract-status.
49582         (func_usage): Document it.
49583         (sed_extract_prog): Recognize it.
49584         (func_get_status): New function.
49585
49586 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49587
49588         * modules/sockets (License): Change from LGPL to LGPLv2+.
49589
49590 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49591
49592         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49593
49594 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49595
49596         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49597         Mention times and sys_times.
49598         * modules/sys_times, modules/sys_times-tests: New modules.
49599         * modules/times, modules/times-tests: Likewise
49600         * m4/sys_times_h.m4: New file.
49601         * lib/sys_times.in.h: Likewise
49602         * lib/times.c: Likewise.
49603         * tests/test-sys_times.c: Likewise.
49604         * tests/test-times.c: Likewise.
49605         * doc/posix-headers/sys_times.texi: Update.
49606         * doc/posix-functions/times.texi: Update.
49607
49608 2008-10-28  Jim Meyering  <meyering@redhat.com>
49609
49610         * modules/tempname (Depends-on): Add lstat.
49611
49612         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49613
49614 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49615
49616         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49617         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49618         using idiom used elsewhere in gnulib.
49619
49620 2008-10-27  Jim Meyering  <meyering@redhat.com>
49621
49622         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49623
49624 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49625
49626         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49627         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49628         programs.
49629         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49630
49631 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49632
49633         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49634
49635 2008-10-27  Bruno Haible  <bruno@clisp.org>
49636
49637         * tests/test-lstat.c: Include <stdio.h>.
49638
49639 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49640
49641         * modules/lstat-tests: New module.
49642         * tests/test-lstat.c: New file.
49643
49644 2008-10-26  Jim Meyering  <meyering@redhat.com>
49645
49646         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49647
49648 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49649             Bruno Haible  <bruno@clisp.org>
49650
49651         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49652         * modules/configmake (Include): Add a note that the include must come
49653         after all system headers.
49654         * lib/javaversion.c: Include configmake.h after all other includes.
49655
49656 2008-10-26  Bruno Haible  <bruno@clisp.org>
49657
49658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49659         HAVE_STRUCT_RANDOM_DATA to 1.
49660         (gl_STDLIB_H): Simplify.
49661
49662 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49663
49664         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49665         substitute HAVE_STRUCT_RANDOM_DATA.
49666         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49667         random_data.
49668         * modules/stdlib (Makefile.am): Substitute
49669         HAVE_STRUCT_RANDOM_DATA.
49670
49671 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49672
49673         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49674         * doc/gnulib-intro.texi (Copyright): Likewise.
49675
49676 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49677
49678         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49679         findings.
49680
49681 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49682             Bruno Haible  <bruno@clisp.org>
49683
49684         * lib/unistd.in.h: Include <winsock2.h>.
49685         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49686         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49687         Provide dummy declarations.
49688         (gethostname): Override.
49689         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49690         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49691         gl_PREREQ_SYS_H_WINSOCK2.
49692         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49693         * doc/posix-functions/gethostname.texi: More details.
49694
49695 2008-10-25  Bruno Haible  <bruno@clisp.org>
49696
49697         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49698         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49699         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49700
49701         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49702         here ...
49703         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49704         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49705         gl_UNISTD_H_DEFAULTS.
49706
49707 2008-10-25  Eric Blake  <ebb9@byu.net>
49708
49709         signbit: avoid spurious compiler failure
49710         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49711         declarations inside function.
49712
49713 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49714             Bruno Haible  <bruno@clisp.org>
49715
49716         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49717         * modules/random_r (Depends-on): Add stdint.
49718
49719 2008-10-24  Bruno Haible  <bruno@clisp.org>
49720
49721         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49722         Eggert.
49723         * modules/strerror (License): Likewise.
49724
49725 2008-10-24  Jim Meyering  <meyering@redhat.com>
49726
49727         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49728         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49729
49730 2008-10-24  Eric Blake  <ebb9@byu.net>
49731
49732         getgroups: fix compilation when getgroups is available
49733         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49734         but with <config.h> override of getgroups disabled.
49735
49736 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49737
49738         * doc/gnulib.texi (Header files): Add note about C++ problems.
49739         Explained by Bruno Haible <bruno@clisp.org>.
49740
49741 2008-10-23  Bruno Haible  <bruno@clisp.org>
49742
49743         Define a dummy SA_NODEFER macro on Interix.
49744         * lib/signal.in.h (SA_NODEFER): Define fallback.
49745         Reported by Aleksey Cheusov <cheusov@tut.by> via
49746         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49747
49748 2008-10-23  Bruno Haible  <bruno@clisp.org>
49749
49750         * modules/freadahead (License): Change to LGPLv2+.
49751         Suggested by Simon Josefsson.
49752
49753 2008-10-23  Jim Meyering  <meyering@redhat.com>
49754
49755         random_r: new module
49756         * modules/random_r: New file.
49757         * m4/random_r.m4: New file.
49758         * lib/random_r.c: New file, from glibc.
49759         * modules/random_r-tests: New file.
49760         * tests/test-random_r.c: New file.
49761         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49762          Declare.
49763         (RAND_MAX): Define.
49764         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49765         * modules/stdlib: Substitute them, too.
49766         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49767         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49768         * doc/glibc-functions/random_r.texi: Likewise.
49769         * doc/glibc-functions/setstate_r.texi: Likewise.
49770         * doc/glibc-functions/srandom_r.texi: Likewise.
49771         * config/srclist.txt: Mention it.
49772
49773 2008-10-23  David Lutterkort  <lutter@redhat.com>
49774
49775         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49776         link requirement
49777
49778 2008-10-23  Jim Meyering  <meyering@redhat.com>
49779
49780         selinux-h: mark parameters of stub functions as intentionally unused
49781         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49782         * lib/se-context.in.h: Likewise.
49783
49784 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49785
49786         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49787
49788 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49789
49790         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49791
49792 2008-10-22  Eric Blake  <ebb9@byu.net>
49793
49794         glthread/thread: avoid compiler warning
49795         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49796         Add unreachable abort to silence compiler.
49797
49798 2008-10-22  Eric Blake  <ebb9@byu.net>
49799
49800         netdb: also supply struct addrinfo for cygwin 1.5.x
49801         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49802         older cygwin.
49803         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49804         cygwin.
49805         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49806
49807 2008-10-22  Bruno Haible  <bruno@clisp.org>
49808
49809         * users.txt: Update entry about pspp.
49810
49811 2008-10-21  Bruno Haible  <bruno@clisp.org>
49812
49813         Simplification.
49814         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49815         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49816
49817         Simplification.
49818         * lib/ioctl.c (ioctl): Don't undefine.
49819         * lib/socket.c (socket): Don't undefine.
49820
49821         Remove unused module indicator macros.
49822         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49823         GNULIB_$1 as a C macro.
49824
49825         * doc/posix-functions/close.texi: Undo last change.
49826         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
49827         Windows platforms.
49828
49829 2008-10-21  Bruno Haible  <bruno@clisp.org>
49830
49831         Add gethostname() declaration to <unistd.h>.
49832         * lib/unistd.in.h (gethostname): New declaration.
49833         * lib/gethostname.c: Include <unistd.h>.
49834         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
49835         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
49836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
49837         and HAVE_GETHOSTNAME.
49838         * modules/gethostname (Depends-on): Add unistd.
49839         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49840         (Include): Specify <unistd.h>.
49841         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
49842         HAVE_GETHOSTNAME.
49843         * tests/test-gethostname.c: Include <unistd.h> first.
49844
49845 2008-10-21  Bruno Haible  <bruno@clisp.org>
49846
49847         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
49848         * modules/select-tests (Depends-on): Likewise.
49849         Reported by Simon Josefsson.
49850
49851 2008-10-21  Simon Josefsson  <simon@josefsson.org>
49852
49853         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
49854         * lib/accept.c: New file, based on winsock.c.
49855         * lib/bind.c: New file, based on winsock.c.
49856         * lib/connect.c: New file, based on winsock.c.
49857         * lib/getpeername.c: New file, based on winsock.c.
49858         * lib/getsockname.c: New file, based on winsock.c.
49859         * lib/getsockopt.c: New file, based on winsock.c.
49860         * lib/ioctl.c: New file, based on winsock.c.
49861         * lib/listen.c: New file, based on winsock.c.
49862         * lib/recv.c: New file, based on winsock.c.
49863         * lib/recvfrom.c: New file, based on winsock.c.
49864         * lib/send.c: New file, based on winsock.c.
49865         * lib/sendto.c: New file, based on winsock.c.
49866         * lib/setsockopt.c: New file, based on winsock.c.
49867         * lib/shutdown.c: New file, based on winsock.c.
49868         * lib/socket.c: New file, based on winsock.c.
49869         * lib/w32sock.h: New file, based on winsock.c.
49870         * lib/winsock.c: Remove file.
49871         * modules/accept: Likewise.
49872         * modules/bind: Likewise.
49873         * modules/connect: Likewise.
49874         * modules/getpeername: Likewise.
49875         * modules/getsockname: Likewise.
49876         * modules/getsockopt: Likewise.
49877         * modules/ioctl: Likewise.
49878         * modules/listen: Likewise.
49879         * modules/recv: Likewise.
49880         * modules/recvfrom: Likewise.
49881         * modules/send: Likewise.
49882         * modules/sendto: Likewise.
49883         * modules/setsockopt: Likewise.
49884         * modules/shutdown: Likewise.
49885         * modules/socket: Use socket.c instead of winsock.c.
49886         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
49887         * doc/posix-functions/accept.texi: Doc fix.
49888         * doc/posix-functions/bind.texi: Doc fix.
49889         * doc/posix-functions/close.texi: Doc fix.
49890         * doc/posix-functions/connect.texi: Doc fix.
49891         * doc/posix-functions/getpeername.texi: Doc fix.
49892         * doc/posix-functions/getsockname.texi: Doc fix.
49893         * doc/posix-functions/getsockopt.texi: Doc fix.
49894         * doc/posix-functions/ioctl.texi: Doc fix.
49895         * doc/posix-functions/listen.texi: Doc fix.
49896         * doc/posix-functions/recv.texi: Doc fix.
49897         * doc/posix-functions/recvfrom.texi: Doc fix.
49898         * doc/posix-functions/send.texi: Doc fix.
49899         * doc/posix-functions/sendto.texi: Doc fix.
49900         * doc/posix-functions/setsockopt.texi: Doc fix.
49901         * doc/posix-functions/shutdown.texi: Doc fix.
49902         * doc/posix-functions/socket.texi: Doc fix.
49903
49904 2008-10-20  Bruno Haible  <bruno@clisp.org>
49905
49906         Take into account the role of SIGABRT_COMPAT on Windows 2008.
49907         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
49908         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
49909         as an alias for SIGABRT.
49910         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
49911         (sigaction): Map it to SIGABRT.
49912         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
49913
49914 2008-10-20  Bruno Haible  <bruno@clisp.org>
49915
49916         * lib/fts.c: Don't include lstat.h.
49917         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
49918
49919         Move the lstat() declaration to <sys/stat.h>.
49920         * lib/lstat.h: Remove file.
49921         * lib/sys_stat.in.h: Add special invocation convention.
49922         (lstat): New declaration.
49923         * lib/lstat.c (orig_lstat): New function.
49924         (rpl_lstat): Use orig_lstat instead of lstat.
49925         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
49926         AC_C_INLINE. Set REPLACE_LSTAT.
49927         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
49928         and REPLACE_LSTAT.
49929         * modules/lstat (Files): Remove lib/lstat.h.
49930         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49931         (Include): Specify <sys/stat.h> instead of lstat.h.
49932         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
49933         REPLACE_LSTAT.
49934         * NEWS: Mention the change.
49935
49936 2008-10-20  Bruno Haible  <bruno@clisp.org>
49937
49938         * modules/posix_spawn-tests: New file.
49939         * tests/test-posix_spawn3.c: New file.
49940
49941 2008-10-20  Bruno Haible  <bruno@clisp.org>
49942
49943         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
49944         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49945         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
49946         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49947         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
49948
49949 2008-10-20  Bruno Haible  <bruno@clisp.org>
49950
49951         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
49952         of posix_spawn on AIX 5.3.
49953
49954 2008-10-20  Bruno Haible  <bruno@clisp.org>
49955
49956         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
49957
49958 2008-10-20  Bruno Haible  <bruno@clisp.org>
49959
49960         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
49961         of AC_LANG_PROGRAM.
49962
49963 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49964
49965         * lib/netdb.in.h: Don't define GNU specific constants until they
49966         are supported or needed.  Reported by Bruno Haible
49967         <bruno@clisp.org>.
49968
49969 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49970
49971         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
49972
49973 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49974
49975         * lib/getaddrinfo.h: Remove file.
49976         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
49977         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
49978         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
49979         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
49980         * modules/netdb: Substitute GNULIB_GETADDRINFO.
49981         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
49982         * tests/test-getaddrinfo.c: Likewise.
49983         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
49984         * NEWS: Mention change.
49985
49986 2008-10-19  Bruno Haible  <bruno@clisp.org>
49987
49988         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
49989
49990 2008-10-19  Bruno Haible  <bruno@clisp.org>
49991
49992         * lib/wait-process.c: Include simply <sys/wait.h>.
49993         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
49994         WIFSTOPPED): Remove fallback definitions.
49995         * modules/wait-process (Depends-on): Add sys_wait.
49996
49997         New module 'sys_wait'.
49998         * modules/sys_wait: New file.
49999         * lib/sys_wait.in.h: New file, partially copied from
50000         lib/wait-process.c.
50001         * m4/sys_wait_h.m4: New file.
50002         * doc/posix-headers/sys_wait.texi: Mention the new module.
50003
50004 2008-10-19  Bruno Haible  <bruno@clisp.org>
50005
50006         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50007
50008 2008-10-19  Bruno Haible  <bruno@clisp.org>
50009
50010         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50011         * lib/wait-process.c (WAIT_T): Remove type.
50012         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50013         (wait_subprocess): Update.
50014
50015 2008-10-19  Bruno Haible  <bruno@clisp.org>
50016
50017         New module 'atoll'.
50018         * modules/atoll: New file.
50019         * lib/stdlib.in.h (atoll): New declaration.
50020         * lib/atoll.c: New file, from glibc with modifications.
50021         * m4/atoll.m4: New file.
50022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50023         HAVE_ATOLL.
50024         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50025         * doc/posix-functions/atoll.texi: Mention the new module.
50026
50027 2008-10-19  Bruno Haible  <bruno@clisp.org>
50028
50029         Add strtoull() declaration to <stdlib.h>.
50030         * lib/stdlib.in.h (strtoull): New declaration.
50031         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50032         Set HAVE_STRTOULL.
50033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50034         HAVE_STRTOULL.
50035         * modules/strtoull (Depends-on): Add stdlib.
50036         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50037         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50038         HAVE_STRTOULL.
50039
50040 2008-10-19  Bruno Haible  <bruno@clisp.org>
50041
50042         Add strtoll() declaration to <stdlib.h>.
50043         * lib/stdlib.in.h (strtoll): New declaration.
50044         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50045         Set HAVE_STRTOLL.
50046         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50047         HAVE_STRTOLL.
50048         * modules/strtoll (Depends-on): Add stdlib.
50049         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50050         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50051
50052 2008-10-19  Bruno Haible  <bruno@clisp.org>
50053
50054         * modules/bcopy (Depends-on): Add strings.
50055         (Include): Specify <strings.h>.
50056
50057 2008-10-19  Bruno Haible  <bruno@clisp.org>
50058
50059         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50060
50061 2008-10-19  Bruno Haible  <bruno@clisp.org>
50062
50063         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50064         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50065         mingw.
50066
50067 2008-10-19  Bruno Haible  <bruno@clisp.org>
50068
50069         * lib/atanl.c: Don't include isnanl.h.
50070         * lib/cosl.c: Likewise.
50071         * lib/ldexpl.c: Likewise.
50072         * lib/logl.c: Likewise.
50073         * lib/sinl.c: Likewise.
50074         * lib/sqrtl.c: Likewise.
50075         * lib/tanl.c: Likewise.
50076
50077         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50078         * lib/isnanf.h: Remove file.
50079         * lib/isnand.h: Remove file.
50080         * lib/isnanl.h: Remove file.
50081         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50082         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50083         macros.
50084         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50085         HAVE_ISNANF, don't define it as a C macro.
50086         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50087         HAVE_ISNAND, don't define it as a C macro.
50088         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50089         HAVE_ISNANL, don't define it as a C macro.
50090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50091         HAVE_ISNAN[FDL].
50092         * modules/isnanf (Files): Remove lib/isnanf.h.
50093         (Depends-on): Add math.
50094         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50095         (Include): Specify <math.h> instead of isnanf.h.
50096         * modules/isnand (Files): Remove lib/isnand.h.
50097         (Depends-on): Add math.
50098         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50099         (Include): Specify <math.h> instead of isnand.h.
50100         * modules/isnanl (Files): Remove lib/isnanl.h.
50101         (Depends-on): Add math.
50102         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50103         (Include): Specify <math.h> instead of isnanl.h.
50104         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50105         HAVE_ISNAN[FDL].
50106         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50107         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50108         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50109         * NEWS: Mention the change.
50110
50111 2008-10-18  Bruno Haible  <bruno@clisp.org>
50112
50113         Add getusershell(), setusershell(), endusershell() declarations to
50114         <unistd.h>.
50115         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50116         declarations.
50117         * lib/getusershell.c: Include unistd.h.
50118         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50119         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50120         HAVE_GETUSERSHELL.
50121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50122         and HAVE_GETUSERSHELL.
50123         * modules/getusershell (Depends-on): Add unistd, extensions.
50124         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50125         (Include): Specify <unistd.h>.
50126         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50127         HAVE_GETUSERSHELL.
50128
50129 2008-10-18  Bruno Haible  <bruno@clisp.org>
50130
50131         Add a getloadavg() declaration to <stdlib.h>.
50132         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50133         getloadavg declaration.
50134         (getloadavg): New declaration.
50135         * lib/getloadavg.c: Include <stdlib.h> first.
50136         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50137         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50138         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50140         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50141         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50142         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50143         (Include): Specify <stdlib.h>.
50144         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50145         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50146
50147 2008-10-18  Bruno Haible  <bruno@clisp.org>
50148
50149         * lib/dirchownmod.c: Don't include lchmod.h.
50150
50151         Move the lchmod() declaration to <sys/stat.h>.
50152         * lib/lchmod.h: Remove file.
50153         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50154         (lchmod): New declaration, moved here from lib/lchown.h.
50155         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50156         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50157         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50158         and HAVE_LCHMOD.
50159         * modules/lchmod (Files): Remove lib/lchmod.h.
50160         (Depends-on): Add sys_stat, extensions.
50161         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50162         (Include): Specify <sys/stat.h> instead of lchmod.h.
50163         * modules/sys_stat (Depends-on): Add link-warning.
50164         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50165         definition of GL_LINK_WARNING.
50166         * NEWS: Mention the change.
50167
50168 2008-10-18  Bruno Haible  <bruno@clisp.org>
50169
50170         * lib/fchdir.c: Don't include dirfd.h.
50171         * lib/fts.c: Likewise.
50172         * lib/getcwd.c: Likewise.
50173         * lib/glob.c: Likewise.
50174
50175         Move the dirfd() declaration to <dirent.h>.
50176         * lib/dirfd.h: Remove file.
50177         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50178         (dirfd): New declaration.
50179         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50180         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50181         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50182         HAVE_DECL_DIRFD.
50183         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50184         HAVE_DECL_DIRFD.
50185         * modules/dirfd (Files): Remove lib/dirfd.h.
50186         (Depends-on): Add dirent, extensions.
50187         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50188         (Include): Specify <dirent.h> instead of dirfd.h.
50189         * modules/dirent (Depends-on): Add link-warning.
50190         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50191         definition of GL_LINK_WARNING.
50192         * NEWS: Mention the change.
50193
50194 2008-10-18  Bruno Haible  <bruno@clisp.org>
50195
50196         Move the euidaccess() declaration to <unistd.h>.
50197         * lib/euidaccess.h: Remove file.
50198         * lib/unistd.in.h (euidaccess): New declaration.
50199         * lib/euidaccess.c: Don't include euidaccess.h.
50200         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50201         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50203         and HAVE_EUIDACCESS.
50204         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50205         (Depends-on): Add unistd.
50206         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50207         (Include): Specify <unistd.h> instead of euidaccess.h.
50208         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50209         HAVE_EUIDACCESS.
50210         * NEWS: Mention the change.
50211
50212 2008-10-18  Bruno Haible  <bruno@clisp.org>
50213
50214         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50215
50216         Move the getdomainname() declaration to <unistd.h>.
50217         * lib/getdomainname.h: Remove file.
50218         * lib/unistd.in.h (getdomainname): New declaration.
50219         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50220         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50221         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50222         HAVE_GETDOMAINNAME.
50223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50224         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50225         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50226         (Depends-on): Add unistd, extensions.
50227         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50228         (Includes): Specify <unistd.h> instead of getdomainname.h.
50229         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50230         HAVE_GETDOMAINNAME.
50231         * NEWS: Mention the change.
50232
50233 2008-10-18  Bruno Haible  <bruno@clisp.org>
50234
50235         * modules/dirent: New file.
50236         * m4/dirent_h.m4: New file.
50237         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50238         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50239         * modules/fchdir (Files): Remove lib/dirent.in.h.
50240         (Depends-on): Add dirent.
50241         (Makefile.am): Move rules to modules/dirent.
50242         * doc/posix-headers/dirent.texi: Mention the new module.
50243
50244 2008-10-18  Bruno Haible  <bruno@clisp.org>
50245
50246         Avoid -Wunused-parameter warnings in public gnulib header files.
50247         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50248         macro.
50249         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50250
50251 2008-10-18  Bruno Haible  <bruno@clisp.org>
50252
50253         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50254         * doc/glibc-functions/error.texi: Mention the module 'error'.
50255         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50256         * doc/glibc-functions/getdomainname.texi: Mention the module
50257         'getdomainname'.
50258         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50259         * doc/glibc-functions/getpagesize.texi: Mention the module
50260         'getpagesize'.
50261         * doc/glibc-functions/getusershell.texi: Mention the module
50262         'getusershell'.
50263         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50264         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50265         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50266         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50267         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50268         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50269         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50270         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50271         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50272         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50273         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50274         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50275         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50276         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50277
50278 2008-10-17  Bruno Haible  <bruno@clisp.org>
50279
50280         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50281         HP-UX and IRIX, use -0.0L.
50282         * tests/test-ceill.c (minus_zero): Likewise.
50283         * tests/test-floorl.c (minus_zero): Likewise.
50284         * tests/test-frexpl.c (minus_zero): Likewise.
50285         * tests/test-isnan.c (minus_zerol): Likewise.
50286         * tests/test-isnanl.h (minus_zero): Likewise.
50287         * tests/test-ldexpl.c (minus_zero): Likewise.
50288         * tests/test-roundl.c (minus_zero): Likewise.
50289         * tests/test-signbit.c (minus_zerol): Likewise.
50290         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50291         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50292         * tests/test-truncl.c (minus_zero): Likewise.
50293         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50294         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50295         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50296         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50297
50298 2008-10-17  Bruno Haible  <bruno@clisp.org>
50299
50300         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50301         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50302         that it gets activated only for gcc >= 3.0.
50303         * lib/dirent.in.h: Likewise.
50304         * lib/errno.in.h: Likewise.
50305         * lib/fcntl.in.h: Likewise.
50306         * lib/float.in.h: Likewise.
50307         * lib/iconv.in.h: Likewise.
50308         * lib/inttypes.in.h: Likewise.
50309         * lib/locale.in.h: Likewise.
50310         * lib/math.in.h: Likewise.
50311         * lib/netdb.in.h: Likewise.
50312         * lib/netinet_in.in.h: Likewise.
50313         * lib/search.in.h: Likewise.
50314         * lib/signal.in.h: Likewise.
50315         * lib/spawn.in.h: Likewise.
50316         * lib/stdarg.in.h: Likewise.
50317         * lib/stdint.in.h: Likewise.
50318         * lib/stdio.in.h: Likewise.
50319         * lib/stdlib.in.h: Likewise.
50320         * lib/string.in.h: Likewise.
50321         * lib/strings.in.h: Likewise.
50322         * lib/sys_file.in.h: Likewise.
50323         * lib/sys_ioctl.in.h: Likewise.
50324         * lib/sys_select.in.h: Likewise.
50325         * lib/sys_socket.in.h: Likewise.
50326         * lib/sys_stat.in.h: Likewise.
50327         * lib/sys_time.in.h: Likewise.
50328         * lib/sysexits.in.h: Likewise.
50329         * lib/time.in.h: Likewise.
50330         * lib/unistd.in.h: Likewise.
50331         * lib/wchar.in.h: Likewise.
50332         * lib/wctype.in.h: Likewise.
50333         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50334
50335 2008-10-17  Jim Meyering  <meyering@redhat.com>
50336
50337         ignore-value: don't depend on inline module
50338         * modules/ignore-value (Depends-on): Remove 'inline'.
50339         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50340         Suggestion from Bruno Haible.
50341
50342 2008-10-17  Bruno Haible  <bruno@clisp.org>
50343
50344         New implementation of condition variables for Win32.
50345         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50346         (gl_linked_waitqueue_t): New type.
50347         (gl_cond_t): Use it.
50348         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50349         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50350         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50351         (glthread_cond_init_func, glthread_cond_wait_func,
50352         glthread_cond_timedwait_func, glthread_cond_signal_func,
50353         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50354         Reimplemented on the basis of gl_linked_waitqueue_t.
50355         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50356         gl_waitqueue_t.
50357         (gl_rwlock_t): Update.
50358         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50359
50360 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50361
50362         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50363         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50364
50365 2008-10-17  Jim Meyering  <meyering@redhat.com>
50366
50367         ignore-value: new module
50368         * modules/ignore-value: New file.
50369         * lib/ignore-value.h: New file.
50370         * MODULES.html.sh (Compiler warning management): New section,
50371         just for this module.  More to come.
50372
50373 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50374
50375         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50376         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50377         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50378
50379 2008-10-16  Jim Meyering  <meyering@redhat.com>
50380
50381         openat-die.c: avoid 'no previous prototype' warning
50382         * lib/openat-die.c: Include "openat.h".
50383         Reported by Reuben Thomas <rrt@sc3d.org>.
50384
50385 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50386
50387         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50388         * lib/netdb.in.h: Fix typo.
50389         Reported by Bruno Haible  <bruno@clisp.org>
50390
50391         * lib/netdb.in.h: Include sys/socket.h for platforms without
50392         netdb.h, to get structures like hostent on MinGW.
50393         * modules/netdb (Depends-on): Add sys_socket.
50394
50395 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50396
50397         * modules/netdb, modules/netdb-tests: New file.
50398         * m4/netdb_h.m4: New file.
50399         * lib/netdb.in.h: Add, currently just an empty file pending
50400         definitions.
50401         * tests/test-netdb.c: New file.
50402         * doc/posix-headers/netdb.texi: Mention that we replace it if
50403         needed.
50404         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50405         netdb.
50406
50407 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50408
50409         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50410         with code.
50411
50412 2008-10-13  Bruno Haible  <bruno@clisp.org>
50413
50414         * lib/glthread/cond.c (glthread_cond_wait_func,
50415         glthread_cond_timedwait_func): Add a comment.
50416
50417 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50418
50419         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50420         * tests/test-select.c: Likewise,
50421
50422 2008-10-13  Bruno Haible  <bruno@clisp.org>
50423
50424         * lib/glthread/cond.c (glthread_cond_wait_func,
50425         glthread_cond_timedwait_func): Fix variable name.
50426         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50427
50428 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50429
50430         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50431         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50432         struct sockaddr.sa_len.
50433         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50434
50435 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50436
50437         * build-aux/pmccabe2html: Add css and css_url parameters.
50438
50439 2008-10-12  Bruno Haible  <bruno@clisp.org>
50440
50441         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50442         calling aclx_get.
50443         Reported by Rainer Tammer <tammer@tammer.net>.
50444
50445 2008-10-12  Bruno Haible  <bruno@clisp.org>
50446
50447         Use msvcrt aware primitives for creation/termination of Win32 threads.
50448         * lib/glthread/thread.c: Include <process.h>.
50449         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50450         (wrapper_func): Update signature.
50451         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50452
50453 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50454             Bruno Haible  <bruno@clisp.org>
50455
50456         Provide a Win32 implementation of the 'cond' module.
50457         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50458         * lib/glthread/cond.c (glthread_cond_init_func,
50459         glthread_cond_wait_func, glthread_cond_timedwait_func,
50460         glthread_cond_signal_func, glthread_cond_broadcast_func,
50461         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50462         * modules/cond (Dependencies): Add gettimeofday.
50463
50464 2008-10-11  Bruno Haible  <bruno@clisp.org>
50465
50466         Make sleep work on older versions of mingw.
50467         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50468         only whether it exists.
50469         * doc/posix-functions/sleep.texi: Mention the problem with older
50470         versions of mingw.
50471
50472 2008-10-11  Bruno Haible  <bruno@clisp.org>
50473
50474         New module 'shutdown'.
50475         * modules/shutdown: New file.
50476         * lib/sys_socket.in.h (shutdown): New declaration.
50477         * lib/winsock.c (shutdown): New function.
50478         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50479         GNULIB_SHUTDOWN.
50480         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50481         * doc/posix-functions/shutdown.texi: Document the new module.
50482
50483 2008-10-11  Jim Meyering  <meyering@redhat.com>
50484
50485         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50486
50487 2008-10-11  Bruno Haible  <bruno@clisp.org>
50488
50489         New module 'fclose'.
50490         * modules/fclose: New file.
50491         * lib/stdio.in.h (fclose): New declaration.
50492         * lib/fclose.c: New file.
50493         * m4/fclose.m4: New file.
50494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50495         REPLACE_FCLOSE.
50496         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50497         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50498         REPLACE_FCLOSE.
50499         * modules/close (Depends-on): fclose.
50500         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50501
50502 2008-10-11  Bruno Haible  <bruno@clisp.org>
50503
50504         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50505         set errno and don't call _close.
50506
50507 2008-10-10  Bruno Haible  <bruno@clisp.org>
50508
50509         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50510         ACL, not afterwards. Fixes test failure on Cygwin.
50511
50512 2008-10-09  Ben Pfaff  <blp@gnu.org>
50513
50514         * build-aux/announce-gen: Fix gnulib version related part of usage
50515         message.  Die with a useful error message if no tarballs are
50516         found.
50517
50518 2008-10-10  Jim Meyering  <meyering@redhat.com>
50519
50520         bootstrap: use git's --depth=N option only if it's supported
50521         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50522         recognize the --depth option.  Reported by Pádraig Brady.
50523
50524 2008-10-09  Bruno Haible  <bruno@clisp.org>
50525
50526         New module 'ioctl'.
50527         * modules/ioctl: New file.
50528         * lib/sys_socket.in.h (ioctl): Remove declaration.
50529         * lib/winsock.c: Include <sys/ioctl.h>.
50530         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50531         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50532         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50533         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50534         * doc/posix-functions/ioctl.texi: Mention the new module.
50535
50536 2008-10-09  Bruno Haible  <bruno@clisp.org>
50537
50538         New module 'sys_ioctl'.
50539         * lib/sys_ioctl.in.h: New file.
50540         * m4/sys_ioctl_h.m4: New file.
50541         * modules/sys_ioctl: New file.
50542         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50543
50544 2008-10-09  Bruno Haible  <bruno@clisp.org>
50545
50546         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50547         * lib/winsock.c: Include <stdarg.h>.
50548         (rpl_ioctl): Change to second argument 'int' and then varargs.
50549
50550 2008-10-09  Bruno Haible  <bruno@clisp.org>
50551
50552         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50553         when the sys_socket module is present and the system has <winsock2.h>.
50554
50555 2008-10-09  Bruno Haible  <bruno@clisp.org>
50556
50557         * doc/posix-functions/close.texi: Mention module 'close' instead of
50558         module 'sys_socket'.
50559
50560 2008-10-09  Bruno Haible  <bruno@clisp.org>
50561
50562         * doc/glibc-headers/sys_ioctl.texi: New file.
50563         * doc/gnulib.texi: Include it.
50564
50565 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50566             Bruno Haible  <bruno@clisp.org>
50567
50568         Combine the two replacements of 'close'.
50569         * lib/sys_socket.in.h (close): Define to a reminder to include
50570         <unistd.h>.
50571         (_gl_close_fd_maybe_socket): New declaration.
50572         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50573         * lib/winsock.c (close): Remove undefinition.
50574         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50575         needed for the gnulib module 'close'.
50576         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50577         define to an error symbol or to a warning, if suitable.
50578         * lib/close.c: Include <sys/socket.h>.
50579         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50580         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50581         UNISTD_H_HAVE_WINSOCK2_H.
50582         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50584         UNISTD_H_HAVE_WINSOCK2_H.
50585         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50586         (configure.ac): Set a module indicator.
50587         (Makefile.am): Substitute GNULIB_CLOSE.
50588         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50589         * modules/poll-tests (Depends-on): Add close.
50590         * modules/select-tests (Depends-on): Likewise.
50591
50592 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50593             Bruno Haible  <bruno@clisp.org>
50594
50595         New module 'close'.
50596         * modules/close: New file.
50597         * lib/unistd.in.h (close): Move declaration out of the
50598         FCHDIR_REPLACEMENT scope.
50599         (_gl_unregister_fd): New declaration.
50600         * lib/close.c: New file.
50601         * lib/fchdir.c (rpl_close): Remove function.
50602         * m4/close.m4: New file.
50603         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50604         close.
50605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50606         REPLACE_CLOSE.
50607         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50608         REPLACE_CLOSE.
50609         * modules/fchdir (Depends-on): Add close.
50610
50611 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50612             Bruno Haible  <bruno@clisp.org>
50613
50614         * lib/fcntl.in.h (open): Simplify conditionals.
50615         (_gl_register_fd): New declaration.
50616         * lib/fchdir.c (rpl_open): Remove function.
50617         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50618         also.
50619         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50621         open.
50622
50623 2008-10-09  Jim Meyering  <meyering@redhat.com>
50624
50625         GNUmakefile: use the more name-space-friendly "_version"
50626         * top/GNUmakefile (_dummy): Update.
50627         (_version): Rename from "version".
50628
50629 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50630             Bruno Haible  <bruno@clisp.org>
50631
50632         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50633         rpl_close.
50634         (_gl_register_fd): New function, extracted from rpl_open.
50635         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50636         (rpl_open, rpl_opendir): Use _gl_register_fd.
50637
50638 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50639
50640         Fix organization of 'open' replacement.
50641         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50642         (gl_FUNC_OPEN): Use it.
50643         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50644
50645 2008-10-08  Bruno Haible  <bruno@clisp.org>
50646
50647         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50648
50649 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50650
50651         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50652         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50653         listen).
50654
50655 2008-10-08  Eric Blake  <ebb9@byu.net>
50656
50657         GNUmakefile: add 'make version' target
50658         * top/GNUmakefile (_curr-ver): Split version update rules...
50659         (version): ...into a target.
50660
50661 2008-10-07  Bruno Haible  <bruno@clisp.org>
50662
50663         Use a more portable replacement expression for -0.0L.
50664         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50665         instead of -0.0L. Fix m4 quotation.
50666
50667         * tests/test-signbit.c: Include <float.h>.
50668         (minus_zero): New variable.
50669         (test_signbitl): Use minus_zero instead of -zero.
50670         * modules/signbit-tests (Depends-on): Add float.
50671
50672         * tests/test-ceill.c: Include <float.h>.
50673         (zero): Remove variable.
50674         (minus_zero): New variable.
50675         (main): Use minus_zero instead of -zero.
50676         * modules/ceill-tests (Depends-on): Add float.
50677
50678         * tests/test-floorl.c: Include <float.h>.
50679         (zero): Remove variable.
50680         (minus_zero): New variable.
50681         (main): Use minus_zero instead of -zero.
50682         * modules/floorl-tests (Depends-on): Add float.
50683
50684         * tests/test-roundl.c: Include <float.h>.
50685         (zero): Remove variable.
50686         (minus_zero): New variable.
50687         (main): Use minus_zero instead of -zero.
50688         * modules/roundl-tests (Depends-on): Add float.
50689
50690         * tests/test-truncl.c: Include <float.h>.
50691         (zero): Remove variable.
50692         (minus_zero): New variable.
50693         (main): Use minus_zero instead of -zero.
50694         * modules/truncl-tests (Depends-on): Add float.
50695
50696         * tests/test-frexpl.c (zero): Remove variable.
50697         (minus_zero): New variable.
50698         (main): Use minus_zero instead of -zero.
50699         * modules/frexpl-tests (Depends-on): Add float.
50700
50701         * tests/test-isnan.c (zerol): Remove variable.
50702         (minus_zerol): New variable.
50703         (test_long_double): Use minus_zerol instead of -zerol.
50704         * modules/isnan-tests (Depends-on): Add float.
50705
50706         * tests/test-isnanl.h (zero): Remove variable.
50707         (minus_zero): New variable.
50708         (main): Use minus_zero instead of -zero.
50709         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50710         * modules/isnanl-tests (Depends-on): Add float.
50711
50712         * tests/test-ldexpl.c (zero): Remove variable.
50713         (minus_zero): New variable.
50714         (main): Use minus_zero instead of -zero.
50715         * modules/ldexpl-tests (Depends-on): Add float.
50716
50717         * tests/test-snprintf-posix.h (zerol): Remove variable.
50718         (minus_zerol): New variable.
50719         (test_function): Use minus_zerol instead of -zerol.
50720         * modules/snprintf-posix-tests (Depends-on): Add float.
50721         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50722
50723         * tests/test-sprintf-posix.h (zerol): Remove variable.
50724         (minus_zerol): New variable.
50725         (test_function): Use minus_zerol instead of -zerol.
50726         * modules/sprintf-posix-tests (Depends-on): Add float.
50727         * modules/vsprintf-posix-tests (Depends-on): Add float.
50728
50729         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50730         (minus_zerol): New variable.
50731         (test_function): Use minus_zerol instead of -zerol.
50732         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50733
50734         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50735         (minus_zerol): New variable.
50736         (test_function): Use minus_zerol instead of -zerol.
50737         * modules/vasprintf-posix-tests (Depends-on): Add float.
50738
50739 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50740
50741         * MODULES.html.sh (Support for building documentation): Mention
50742         pmccabe2html.  Sort entries.
50743
50744         Add pmccabe2html module, from gnupdf.
50745         * build-aux/pmccabe.css: New file.
50746         * build-aux/pmccabe2html: New file.
50747         * m4/pmccabe2html.m4: New file.
50748         * modules/pmccabe2html: New file.
50749
50750 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50751
50752         flock: new module
50753         * MODULES.html.sh: Add to list of modules.
50754         * lib/flock.c: flock implementation for Windows and Unix systems
50755         which have fcntl.
50756         * doc/glibc-functions/flock.texi: Update documentation.
50757         * lib/sys_file.in.h: <sys/file.h> header file.
50758         * m4/flock.m4: M4 macros.
50759         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50760         * modules/flock: flock module.
50761         * modules/flock-tests: flock tests module.
50762         * modules/sys_file: sys/file.h module.
50763         * tests/test-flock.c: test suite for flock.
50764
50765 2008-10-06  Jim Meyering  <meyering@redhat.com>
50766
50767         bootstrap: check for LT_INIT more portably still ;-)
50768         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50769         Spotted by Bruno Haible.
50770
50771 2008-10-06  Eric Blake  <ebb9@byu.net>
50772
50773         test-signbit: avoid tripping Irix cc bug on -0.0L
50774         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50775         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50776         entire testsuite consistent and avoids an Irix 6.2 bug.
50777
50778 2008-10-05  Bruno Haible  <bruno@clisp.org>
50779             Jim Meyering  <jim@meyering.net>
50780
50781         Add an option for ignoring EPIPE during close_stdout.
50782         * lib/closeout.h: Include <stdbool.h>.
50783         (close_stdout_set_ignore_EPIPE): New declaration.
50784         * lib/closeout.c: Include <stdbool.h>.
50785         (ignore_EPIPE): New variable.
50786         (close_stdout_set_ignore_EPIPE): New function.
50787         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50788         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50789         failure.
50790         * modules/closeout (Depends-on): Add stdbool.
50791
50792 2008-10-05  Bruno Haible  <bruno@clisp.org>
50793
50794         * modules/accept: New file.
50795         * modules/bind: New file.
50796         * modules/connect: New file.
50797         * modules/getpeername: New file.
50798         * modules/getsockname: New file.
50799         * modules/getsockopt: New file.
50800         * modules/listen: New file.
50801         * modules/recv: New file.
50802         * modules/recvfrom: New file.
50803         * modules/send: New file.
50804         * modules/sendto: New file.
50805         * modules/setsockopt: New file.
50806         * modules/socket: New file.
50807         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50808         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50809         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50810         the particular module is requested. Add a link warning when the
50811         particular module is not requested.
50812         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50813         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50814         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50815         the particular module is requested.
50816         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50817         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50818         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50819         * modules/sys_socket (Depends-on): Add link-warning.
50820         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50821         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50822         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50823         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50824         GL_LINK_WARNING.
50825         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
50826         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
50827         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
50828         * doc/posix-functions/getpeername.texi: Mention the new module
50829         'getpeername'.
50830         * doc/posix-functions/getsockname.texi: Mention the new module
50831         'getsockname'.
50832         * doc/posix-functions/getsockopt.texi: Mention the new module
50833         'getsockopt'.
50834         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
50835         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
50836         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
50837         * doc/posix-functions/send.texi: Mention the new module 'send'.
50838         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
50839         * doc/posix-functions/setsockopt.texi: Mention the new module
50840         'setsockopt'.
50841         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
50842         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
50843         listen, connect, accept.
50844         * modules/select-tests (Depends-on): Likewise.
50845
50846 2008-10-05  Bruno Haible  <bruno@clisp.org>
50847
50848         * lib/winsock.c (strerror): Remove unused #undef.
50849         (rpl_close): Remove unused local variable.
50850
50851         * modules/sys_socket (Depends-on); Add errno.
50852
50853 2008-10-05  Bruno Haible  <bruno@clisp.org>
50854
50855         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
50856         (select): Add a link warning when the 'select' module is not used.
50857         * modules/sys_select (Depends-on): Add link-warning.
50858         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
50859         Suggested by Paolo Bonzini.
50860
50861 2008-10-05  Jim Meyering  <meyering@redhat.com>
50862
50863         bootstrap: check for LT_INIT more portably
50864         * build-aux/bootstrap: Avoid using grep -E, since it's not
50865         portable enough.  Suggestion from Bruno Haible.
50866
50867 2008-10-05  Bruno Haible  <bruno@clisp.org>
50868
50869         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
50870         as being fixed by gnulib.
50871
50872 2008-10-05  Bruno Haible  <bruno@clisp.org>
50873
50874         * modules/select-tests: New file, mostly copied from
50875         modules/sys_select-tests.
50876         * tests/test-select.c: New file, mostly copied from
50877         tests/test-sys_select.c.
50878         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
50879         * modules/sys_select-tests (Depends-on): Remove all dependencies.
50880         (Makefile.am): Remove test_sys_select_LDADD.
50881
50882         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
50883         to an undefined symbol, for an error message.
50884         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
50885         (gl_SYS_SELECT_H_DEFAULTS): New macro.
50886         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
50887         winsock-select.c here.
50888         * modules/sys_select (Files): Remove lib/winsock-select.c.
50889         (Depends-on): Remove alloca.
50890         (Makefile.am): Substitute GNULIB_SELECT.
50891         * modules/select: New file.
50892         * doc/posix-functions/select.texi: Update.
50893
50894 2008-10-05  Bruno Haible  <bruno@clisp.org>
50895
50896         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
50897         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
50898         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
50899         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
50900         getdtablesize.
50901         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50902         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50903
50904 2008-10-05  Bruno Haible  <bruno@clisp.org>
50905
50906         * modules/getdtablesize-tests: New file.
50907         * tests/test-getdtablesize.c: New file.
50908
50909         New module 'getdtablesize'.
50910         * lib/unistd.in.h (getdtablesize): New declaration.
50911         * lib/getdtablesize.c: New file.
50912         * m4/getdtablesize.m4: New file.
50913         * modules/getdtablesize: New file.
50914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50915         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
50916         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
50917         HAVE_GETDTABLESIZE.
50918         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
50919
50920 2008-10-05  Bruno Haible  <bruno@clisp.org>
50921
50922         * modules/sched (Makefile.am): Fix typo.
50923         Reported by Simon Josefsson.
50924
50925 2008-10-05  Jim Meyering  <meyering@redhat.com>
50926
50927         bootstrap: check for LT_INIT, too
50928         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
50929         are deprecated.  Suggestion from Ralf Wildenhues.
50930
50931 2008-10-05  Bruno Haible  <bruno@clisp.org>
50932
50933         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
50934         overriding them by ours.
50935         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
50936
50937 2008-10-05  Jim Meyering  <meyering@redhat.com>
50938
50939         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
50940         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
50941         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
50942
50943 2008-10-04  Bruno Haible  <bruno@clisp.org>
50944
50945         * modules/dup2 (License): Change to LGPLv2+.
50946         * modules/sleep (License): Likewise.
50947         * modules/perror (License): Likewise.
50948         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
50949         Blake.
50950         * modules/signal (License): Likewise.
50951         * modules/sigprocmask (License): Likewise.
50952         * modules/raise (License): Change to LGPLv2+, with approval by Jim
50953         Meyering.
50954
50955 2008-10-04  Bruno Haible  <bruno@clisp.org>
50956
50957         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
50958         Reported by Rainer Tammer <tammer@tammer.net>.
50959
50960 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
50961             Bruno Haible  <bruno@clisp.org>
50962
50963         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
50964         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
50965         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
50966
50967 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
50968
50969         filevercmp: new module
50970         * lib/filevercmp.h: New function filevercmp comparing version strings.
50971         * lib/filevercmp.c: Implementation of filevercmp function.
50972         * modules/filevercmp: Module metadata.
50973         * tests/test-filevercmp.c: Unit test for new module.
50974         * modules/filevercmp-tests: Unit test metadata.
50975         * MODULES.html.sh: Add filevercmp module.
50976
50977 2008-10-03  Bruno Haible  <bruno@clisp.org>
50978
50979         * lib/c-ctype.h: Add comment.
50980         Reported by Jim Meyering.
50981
50982 2008-10-02  Bruno Haible  <bruno@clisp.org>
50983
50984         * modules/posix_spawn-internal (Depends-on): Add 'open'.
50985
50986 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50987
50988         * build-aux/bootstrap: Allow renaming bootstrap, and change the
50989         name of bootstrap.conf accordingly.
50990
50991 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50992
50993         * build-aux/bootstrap: Install git-merge-changelog configuration
50994         items into .gitconfig if needed.
50995
50996 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50997
50998         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
50999         git repository, and initialize/update it accordingly.
51000
51001 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51002
51003         * modules/fsync-tests: New file.
51004         * tests/test-fsync.c: New file.
51005
51006         New module 'fsync'.
51007         * lib/fsync.c: New file.
51008         * m4/fsync.m4: New file.
51009         * modules/fsync: New file.
51010         * lib/unistd.in.h (fsync): New declaration.
51011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51012         GNULIB_FSYNC and HAVE_FSYNC.
51013         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51014         * MODULES.html.sh (posix_functions): Add fsync.
51015         * doc/posix-functions/fsync.texi: Mention the new module.
51016
51017 2008-10-02  Jim Meyering  <meyering@redhat.com>
51018
51019         fts.c: sync with similar code from coreutils' remove.c
51020         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51021         Guard also with "#if defined __linux__", since for now at least,
51022         this code is Linux-kernel-specific.
51023
51024 2008-10-02  Jim Meyering  <meyering@redhat.com>
51025
51026         fts: bug fixes
51027         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51028         Include <sys/vfs.h>, not <sys/statfs.h>.
51029
51030         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51031         Include <sys/vfs.h>, not <sys/statfs.h>.
51032
51033 2008-10-01  Bruno Haible  <bruno@clisp.org>
51034
51035         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51036         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51037         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51038         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51039         * doc/posix-functions/posix_spawnp.texi: Likewise.
51040         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51041         whether posix_spawn actually works.
51042         * m4/pipe.m4 (gl_PIPE): Likewise.
51043         * modules/execute (Files): Add m4/posix_spawn.m4.
51044         * modules/pipe (Files): Add m4/posix_spawn.m4.
51045         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51046
51047 2008-10-01  Jim Meyering  <meyering@redhat.com>
51048
51049         remove trailing spaces
51050         * NEWS: Likewise.
51051         * lib/poll.c (poll): Likewise.
51052         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51053         * lib/winsock.c (rpl_close): Likewise.
51054         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51055         * modules/yield: Likewise.
51056         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51057         * tests/test-sys_select.c (connect_to_socket): Likewise.
51058
51059         fts.c: adjust a new interface to be more generally useful
51060         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51061         (fts_build): Adjust caller.
51062
51063 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51064
51065         * modules/cond-tests: New file.
51066         * tests/test-cond.c: New file.
51067
51068 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51069             Bruno Haible  <bruno@clisp.org>
51070
51071         * modules/cond (Dependencies): Add errno, time.
51072         * lib/glthread/cond.h: Include <time.h>.
51073         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51074         across platforms.
51075
51076 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51077             Bruno Haible  <bruno@clisp.org>
51078
51079         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51080
51081 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51082             Bruno Haible  <bruno@clisp.org>
51083
51084         * modules/tls-tests (Depends-on): Add thread, yield.
51085         (configure.ac): Remove all checks.
51086         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51087         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51088         gl_thread_self): Remove definitions. Include glthread/thread.h and
51089         glthread/yield.h instead.
51090         (test_tls): Pass an additional NULL argument to gl_thread_join.
51091
51092 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51093             Bruno Haible  <bruno@clisp.org>
51094
51095         * modules/lock-tests (Depends-on): Add thread, yield.
51096         (configure.ac): Remove all checks.
51097         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51098         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51099         gl_thread_self): Remove definitions. Include glthread/thread.h and
51100         glthread/yield.h instead.
51101         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51102         additional NULL argument to gl_thread_join.
51103
51104 2008-09-30  Bruno Haible  <bruno@clisp.org>
51105
51106         Fix the Win32 implementation of the 'thread' module.
51107         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51108         pointer type.
51109         (gl_thread_self): Invoke gl_thread_self_func.
51110         (gl_thread_self_func): New declaration.
51111         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51112         (do_init_self_key, init_self_key): New functions.
51113         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51114         Remove some fields.
51115         (running_threads, running_lock): Remove variables.
51116         (get_current_thread_handle): New function.
51117         (gl_thread_self_func, wrapper_func, glthread_create_func,
51118         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51119         simplified.
51120
51121 2008-09-30  Bruno Haible  <bruno@clisp.org>
51122
51123         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51124         files.
51125
51126 2008-09-30  Jim Meyering  <meyering@redhat.com>
51127
51128         fts.m4: correct the test for statfs.f_type
51129         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51130         when checking for statfs.f_type.
51131
51132 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51133
51134         tests: avoid some compiler warnings
51135         * tests/test-memchr.c (main): Pass NULL indirectly.
51136         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51137
51138 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51139
51140         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51141         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51142         exactly specified dayshifts.
51143         (dayshift): New rule.
51144         (rel): Add dayshift.
51145         (relative_time_table) [tomorrow, yesterday, today, now]:
51146         Use tDAY_SHIFT in place of tDAY_UNIT.
51147         * tests/test-getdate.c: Add tests for now-disallowed countable
51148         dayshifts, e.g., "4 yesterday ago".
51149
51150 2008-09-29  Bruno Haible  <bruno@clisp.org>
51151
51152         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51153         * tests/test-posix_spawn1.in.sh: Renamed from
51154         tests/test-posix_spawn.in.sh.
51155         * tests/test-posix_spawn2.c: New file.
51156         * tests/test-posix_spawn2.in.sh: New file.
51157         * modules/posix_spawnp-tests (Files): Update.
51158         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51159
51160 2008-09-29  Bruno Haible  <bruno@clisp.org>
51161
51162         Propagate effects of putenv/setenv/unsetenv to child processes.
51163         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51164         * lib/pipe.c (create_pipe): Likewise.
51165
51166 2008-09-29  Bruno Haible  <bruno@clisp.org>
51167
51168         Enable use of shell scripts as executables in mingw.
51169         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51170         run the program as a shell script.
51171         * lib/pipe.c (create_pipe): Likewise.
51172         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51173         resulting array.
51174
51175 2008-09-29  Eric Blake  <ebb9@byu.net>
51176
51177         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51178
51179 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51180
51181         * doc/posix-functions/accept.texi: Update mingw problems.
51182         * doc/posix-functions/bind.texi: Update mingw problems.
51183         * doc/posix-functions/close.texi: Update mingw problems.
51184         * doc/posix-functions/connect.texi: Update mingw problems.
51185         * doc/posix-functions/getpeername.texi: Update mingw problems.
51186         * doc/posix-functions/getsockname.texi: Update mingw problems.
51187         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51188         * doc/posix-functions/ioctl.texi: Update mingw problems.
51189         * doc/posix-functions/listen.texi: Update mingw problems.
51190         * doc/posix-functions/recv.texi: Update mingw problems.
51191         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51192         * doc/posix-functions/select.texi: Update mingw problems.
51193         * doc/posix-functions/send.texi: Update mingw problems.
51194         * doc/posix-functions/sendto.texi: Update mingw problems.
51195         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51196         * doc/posix-functions/socket.texi: Update mingw problems.
51197
51198 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51199             Bruno Haible  <bruno@clisp.org>
51200
51201         * lib/sys_select.in.h: Include sys/time.h.
51202         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51203         * modules/sys_select: Depend on sys_time.
51204         * tests/test-sys_select.c: Test that sys/select.h defines struct
51205         timeval fully.
51206
51207 2008-09-29  Bruno Haible  <bruno@clisp.org>
51208
51209         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51210         * lib/sys_select.in.h: Likewise.
51211
51212 2008-09-29  Bruno Haible  <bruno@clisp.org>
51213
51214         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51215
51216 2008-09-29  Bruno Haible  <bruno@clisp.org>
51217
51218         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51219         Set LIBSOCKET instead of augmenting LIBS.
51220         * modules/sockets (Link): New section.
51221         * modules/sockets-tests (test_sockets_LDADD): New variable.
51222         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51223         * modules/poll-tests (test_poll_LDADD): New variable.
51224         * NEWS: Document the change.
51225
51226 2008-09-29  Bruno Haible  <bruno@clisp.org>
51227
51228         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51229         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51230         ARPA_INET_H directly.
51231         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51232
51233 2008-09-28  Bruno Haible  <bruno@clisp.org>
51234
51235         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51236         from gl_HEADER_SYS_SOCKET.
51237         (gl_HEADER_SYS_SOCKET): Invoke it.
51238         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51239
51240 2008-09-28  Bruno Haible  <bruno@clisp.org>
51241
51242         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51243         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51244         Needed on OSF/1 4.0.
51245
51246 2008-09-28  Bruno Haible  <bruno@clisp.org>
51247
51248         Override open more carefully.
51249         * lib/open.c (orig_open): New function.
51250         (rpl_open): Use orig_open instead of open.
51251         * lib/fcntl.in.h: Add special invocation convention.
51252         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51253         (gl_FUNC_OPEN): Invoke it.
51254
51255         Override freopen more carefully.
51256         * lib/freopen.c (orig_freopen): New function.
51257         (rpl_freopen): Use orig_freopen instead of freopen.
51258         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51259         (gl_FUNC_FREOPEN): Invoke it.
51260
51261         Override fopen more carefully.
51262         * lib/fopen.c (orig_fopen): New function.
51263         (rpl_fopen): Use orig_fopen instead of fopen.
51264         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51265         (gl_FUNC_FOPEN): Invoke it.
51266         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51267
51268 2008-09-28  Bruno Haible  <bruno@clisp.org>
51269
51270         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51271         SIGPIPE.
51272
51273 2008-09-28  Bruno Haible  <bruno@clisp.org>
51274
51275         * tests/test-sigaction.c (handler, main): Disable the check whether
51276         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51277         glibc systems with LinuxThreads.
51278
51279 2008-09-28  Bruno Haible  <bruno@clisp.org>
51280
51281         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51282
51283         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51284         with AIX xlc.
51285         * lib/fcntl.in.h (open): Likewise.
51286         Reported by Rainer Tammer <tammer@tammer.net>.
51287
51288 2008-09-28  Bruno Haible  <bruno@clisp.org>
51289
51290         * modules/posix_spawnp-tests: New file.
51291         * tests/test-posix_spawn.c: New file.
51292         * tests/test-posix_spawn.in.sh: New file.
51293
51294         New module 'posix_spawnp'.
51295         * modules/posix_spawnp: New file.
51296         * lib/spawnp.c: New file, from GNU libc with modifications.
51297         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51298
51299         New module 'posix_spawn'.
51300         * modules/posix_spawn: New file.
51301         * lib/spawn.c: New file, from GNU libc with modifications.
51302         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51303
51304         New module 'posix_spawnattr_destroy'.
51305         * modules/posix_spawnattr_destroy: New file.
51306         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51307         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51308         module.
51309
51310         New module 'posix_spawnattr_setsigmask'.
51311         * modules/posix_spawnattr_setsigmask: New file.
51312         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51313         modifications.
51314         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51315         new module.
51316
51317         New module 'posix_spawnattr_getsigmask'.
51318         * modules/posix_spawnattr_getsigmask: New file.
51319         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51320         modifications.
51321         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51322         new module.
51323
51324         New module 'posix_spawnattr_setsigdefault'.
51325         * modules/posix_spawnattr_setsigdefault: New file.
51326         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51327         modifications.
51328         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51329         new module.
51330
51331         New module 'posix_spawnattr_getsigdefault'.
51332         * modules/posix_spawnattr_getsigdefault: New file.
51333         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51334         modifications.
51335         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51336         new module.
51337
51338         New module 'posix_spawnattr_setschedpolicy'.
51339         * modules/posix_spawnattr_setschedpolicy: New file.
51340         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51341         modifications.
51342         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51343         new module.
51344
51345         New module 'posix_spawnattr_getschedpolicy'.
51346         * modules/posix_spawnattr_getschedpolicy: New file.
51347         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51348         modifications.
51349         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51350         new module.
51351
51352         New module 'posix_spawnattr_setschedparam'.
51353         * modules/posix_spawnattr_setschedparam: New file.
51354         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51355         modifications.
51356         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51357         new module.
51358
51359         New module 'posix_spawnattr_getschedparam'.
51360         * modules/posix_spawnattr_getschedparam: New file.
51361         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51362         modifications.
51363         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51364         new module.
51365
51366         New module 'posix_spawnattr_setpgroup'.
51367         * modules/posix_spawnattr_setpgroup: New file.
51368         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51369         modifications.
51370         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51371         module.
51372
51373         New module 'posix_spawnattr_getpgroup'.
51374         * modules/posix_spawnattr_getpgroup: New file.
51375         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51376         modifications.
51377         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51378         module.
51379
51380         New module 'posix_spawnattr_setflags'.
51381         * modules/posix_spawnattr_setflags: New file.
51382         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51383         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51384         module.
51385
51386         New module 'posix_spawnattr_getflags'.
51387         * modules/posix_spawnattr_getflags: New file.
51388         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51389         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51390         module.
51391
51392         New module 'posix_spawnattr_init'.
51393         * modules/posix_spawnattr_init: New file.
51394         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51395         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51396         module.
51397
51398         New module 'posix_spawn_file_actions_destroy'.
51399         * modules/posix_spawn_file_actions_destroy: New file.
51400         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51401         modifications.
51402         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51403         the new module.
51404
51405         New module 'posix_spawn_file_actions_addopen'.
51406         * modules/posix_spawn_file_actions_addopen: New file.
51407         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51408         modifications.
51409         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51410         the new module.
51411
51412         New module 'posix_spawn_file_actions_adddup2'.
51413         * modules/posix_spawn_file_actions_adddup2: New file.
51414         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51415         modifications.
51416         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51417         the new module.
51418
51419         New module 'posix_spawn_file_actions_addclose'.
51420         * modules/posix_spawn_file_actions_addclose: New file.
51421         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51422         modifications.
51423         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51424         the new module.
51425
51426         New module 'posix_spawn_file_actions_init'.
51427         * modules/posix_spawn_file_actions_init: New file.
51428         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51429         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51430         new module.
51431
51432         New module 'posix_spawn-internal'.
51433         * modules/posix_spawn-internal: New file.
51434         * lib/spawn_int.h: New file, from GNU libc with modifications.
51435         * lib/spawni.c: New file, from GNU libc with modifications.
51436         * m4/posix_spawn.m4: New file.
51437
51438         New module 'spawn'.
51439         * modules/spawn: New file.
51440         * lib/spawn.in.h: New file, from GNU libc with modifications.
51441         * m4/spawn_h.m4: New file.
51442         * doc/posix-headers/spawn.texi: Mention the new module.
51443
51444 2008-09-28  Bruno Haible  <bruno@clisp.org>
51445
51446         * modules/sched-tests: New file.
51447         * tests/test-sched.c: New file.
51448
51449         New module 'sched'.
51450         * modules/sched: New file.
51451         * lib/sched.in.h: New file.
51452         * m4/sched_h.m4: New file.
51453         * doc/posix-headers/sched.texi: Mention the new module.
51454
51455 2008-09-27  Eric Blake  <ebb9@byu.net>
51456
51457         Fix previous patch, and tweak references to $0.
51458         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51459         (func_version, func_gnulib_dir): Don't call this program
51460         gnulib-tool.
51461         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51462         with using $0 in function.
51463         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51464         (func_fatal_error): Reuse the name the user invoked us with.
51465
51466 2008-09-27  Bruno Haible  <bruno@clisp.org>
51467
51468         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51469         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51470         (gl_ICONV_H): Not here.
51471         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51472         instead of assigning ICONV_H directly.
51473
51474         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51475         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51476         WCHAR_H directly.
51477
51478 2008-09-27  Bruno Haible  <bruno@clisp.org>
51479
51480         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51481         * modules/arpa_inet (Depends-on): Add link-warning.
51482         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51483         * modules/unistd (Makefile.am): Likewise.
51484
51485 2008-09-26  Bruno Haible  <bruno@clisp.org>
51486
51487         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51488         variables.
51489         (func_version): Essentially copied from gnulib-tool.
51490         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51491         func_readlink): Copied from gnulib-tool.
51492
51493 2008-09-26  Bruno Haible  <bruno@clisp.org>
51494
51495         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51496         invoking git-version-gen.
51497
51498 2008-09-26  Bruno Haible  <bruno@clisp.org>
51499
51500         * posix-modules: Update to directory names changed on 2008-01-19.
51501         Remove commas in output before splitting into words. No more need to
51502         avoid 'ftruncate' since 2007-02-19.
51503
51504 2008-09-26  Bruno Haible  <bruno@clisp.org>
51505
51506         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51507
51508 2008-09-26  Bruno Haible  <bruno@clisp.org>
51509
51510         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51511         * modules/fwriteerror (Depends-on): Add errno.
51512
51513 2008-09-26  Bruno Haible  <bruno@clisp.org>
51514
51515         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51516         * tests/test-vc-list-files-cvs.sh: Likewise.
51517
51518 2008-09-26  Bruno Haible  <bruno@clisp.org>
51519
51520         * doc/posix-headers/sys_resource.texi: Reorder items.
51521
51522 2008-09-26  Jim Meyering  <meyering@redhat.com>
51523
51524         fts: tweak inode comparison function
51525         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51526         inode numbers, as documented.
51527
51528         fts: sort dirent entries on inode number before traversing
51529         This avoids a quadratic, seek-related performance penalty when
51530         operating on a directory containing many entries (measurable at 10k;
51531         3.5 hours at 2 million entries with a cold cache) on certain types
51532         of file systems, including ext3 and ext4, but not tmpfs.
51533         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51534         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51535         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51536         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51537         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51538         (fts_build): Set the stat.st_ino member from D_INO.
51539         If it is likely to be useful, sort dirent entries on inode number.
51540
51541         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51542         and the struct statfs.f_type member.
51543         * modules/fts (Depends-on): Add d-ino.
51544
51545 2008-09-26  Bruno Haible  <bruno@clisp.org>
51546
51547         * modules/sigpipe-die (Depends-on): Add sigpipe.
51548
51549         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51550         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51551         and GNULIB_STDIO_H_SIGPIPE are set.
51552         * lib/stdio-write.c: New file.
51553         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51554         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51555         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51556         REPLACE_STDIO_WRITE_FUNCS.
51557         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51558         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51559         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51560         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51561         * modules/stdio (Files): Add lib/stdio-write.c.
51562         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51563         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51564         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51565         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51566         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51567         REPLACE_FPRINTF_POSIX.
51568         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51569         REPLACE_PRINTF_POSIX.
51570         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51571         REPLACE_VFPRINTF_POSIX.
51572         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51573         REPLACE_VPRINTF_POSIX.
51574         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51575         SIGPIPE issue.
51576         * doc/posix-functions/fputc.texi: Likewise.
51577         * doc/posix-functions/fputs.texi: Likewise.
51578         * doc/posix-functions/fwrite.texi: Likewise.
51579         * doc/posix-functions/printf.texi: Likewise.
51580         * doc/posix-functions/putc.texi: Likewise.
51581         * doc/posix-functions/putchar.texi: Likewise.
51582         * doc/posix-functions/puts.texi: Likewise.
51583         * doc/posix-functions/vfprintf.texi: Likewise.
51584         * doc/posix-functions/vprintf.texi: Likewise.
51585
51586         * modules/safe-write (Depends-on): Add write.
51587
51588         * modules/sigpipe-tests: New file.
51589         * tests/test-sigpipe.c: New file.
51590         * tests/test-sigpipe.sh: New file.
51591
51592         * modules/write: New file.
51593         * lib/unistd.in.h: Include <sys/types.h>.
51594         (write): New declaration.
51595         * lib/write.c: New file.
51596         * m4/write.m4: New file.
51597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51598         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51599         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51600         GNULIB_WRITE, REPLACE_WRITE.
51601         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51602         and the SIGPIPE issue.
51603
51604         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51605         (raise): New declaration.
51606         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51607         (ext_signal): New function.
51608         (rpl_raise): New function.
51609         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51610         GNULIB_SIGNAL_H_SIGPIPE.
51611         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51612         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51613
51614         * modules/sigpipe: New file.
51615         * m4/sigpipe.m4: New file.
51616
51617 2008-09-25  Derek Price  <derek@ximbiot.com>
51618             Bruno Haible  <bruno@clisp.org>
51619
51620         * gnulib-tool (func_import): Report all license incompatibilities, not
51621         just the first one.
51622
51623 2008-09-25  Bruno Haible  <bruno@clisp.org>
51624
51625         * gnulib-tool (func_import): When computing the edits, consider not
51626         only the Makefile.ams that exist but also those that will be generated.
51627
51628 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51629
51630         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51631         fixes gnulib-tool --test warning about duplicate dependency.
51632
51633 2008-09-25  Bruno Haible  <bruno@clisp.org>
51634
51635         * gnulib-tool: Don't ask the user to perform edits in the generated
51636         Makefile.ams.
51637         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51638         apply to the Makefile.am being generated.
51639         (func_emit_tests_Makefile_am): Execute edits that apply to the
51640         Makefile.am being generated.
51641         (func_import): Setup list of Makefile.am edits before emitting the
51642         Makefile.ams, not at the end.
51643         (func_create_testdir): Update.
51644         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51645
51646 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51647
51648         * gnulib-tool (func_import): Store the --tests-base option in the
51649         comment in gnulib-cache.m4.
51650
51651 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51652
51653         * NEWS: Document increased portability that sys_select now provides.
51654
51655         * lib/sys_select.in.h: Install select wrapper.
51656         * lib/sys_socket.in.h: Use more descriptive name when there is no
51657         select wrapper.
51658         * lib/winsock-select.c: New.
51659         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51660         Require gl_HEADER_SYS_SOCKET.
51661         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51662         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51663         * tests/test-sys_select.c: Add functional tests.
51664
51665 2008-09-24  Eric Blake  <ebb9@byu.net>
51666
51667         open, fopen: close fd leak in last patch
51668         * lib/open.c (rpl_open): Close fd before returning error.
51669         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51670         * doc/posix-functions/open.texi (open): Document that Irix also
51671         has the bug.
51672         * doc/posix-functions/fopen.texi (fopen): Likewise.
51673         Reported by Paolo Bonzini.
51674
51675 2008-09-24  Bruno Haible  <bruno@clisp.org>
51676
51677         Ensure that a filename ending in a slash cannot be used to access a
51678         non-directory.
51679         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51680         to check whether it's really a directory.
51681         * lib/fopen.c: Include fcntl.h, unistd.h.
51682         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51683         and fdopen().
51684         * modules/fopen (Depends-on): Add unistd.
51685         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51686         * tests/test-fopen.c (main): Likewise.
51687         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51688         * doc/posix-functions/fopen.texi: Likewise.
51689         Reported by Eric Blake.
51690
51691 2008-09-23  Eric Blake  <ebb9@byu.net>
51692
51693         c-stack: avoid compiler optimizations when provoking overflow
51694         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51695         recursion harder to optimize, to ensure a stack overflow occurs.
51696         * tests/test-c-stack.c (recurse): Likewise.
51697         Borrowed from libsigsegv.
51698
51699         c-stack: work around Irix sigaltstack bug
51700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51701         whether sigaltstack uses wrong end of stack_t (copied in part from
51702         libsigsegv).
51703         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51704         Irix bug, without requiring an over-allocation.
51705         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51706         bug.
51707
51708         fopen: document mingw bug on directories
51709         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51710         not allowing a stream visiting a directory, even though reading
51711         from such a stream is not portable.
51712
51713 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51714
51715         * lib/poll.c: Rewrite.
51716         * modules/poll: Depend on alloca.
51717
51718 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51719
51720         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51721         instead define prototypes for a full set of wrappers.  Ensure
51722         that Cygwin does not use the compatibility code, which is only
51723         for MinGW.
51724         * lib/winsock.c: New.
51725         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51726         * modules/sys_socket: Add lib/winsock.c.
51727
51728         * modules/poll-tests: Add errno and perror.
51729         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51730
51731 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51732
51733         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51734
51735 2008-09-23  Bruno Haible  <bruno@clisp.org>
51736
51737         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51738         * doc/glibc-functions/*: Likewise.
51739
51740 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51741
51742         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51743         success.
51744
51745 2008-09-22  Eric Blake  <ebb9@byu.net>
51746             Bruno Haible  <bruno@clisp.org>
51747
51748         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51749         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51750         supply %A but mishandle pseudo-NaN.
51751         Reported by Simon Josefsson.
51752
51753 2008-09-21  Bruno Haible  <bruno@clisp.org>
51754
51755         * tests/test-lock.c (main): Tweak skip message.
51756         * tests/test-tls.c (main): Likewise.
51757
51758 2008-09-21  Bruno Haible  <bruno@clisp.org>
51759
51760         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51761         whether 'struct sigaction' has sa_sigaction here...
51762         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51763         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51764
51765 2008-09-21  Bruno Haible  <bruno@clisp.org>
51766
51767         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51768         section.
51769         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51770         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51771         the new section.
51772         (Support for obsolete systems lacking POSIX:2001): New section.
51773         (String handling <string.h>): Move strdup to the new section.
51774         Suggested by Simon Josefsson and Paolo Bonzini.
51775
51776 2008-09-21  Bruno Haible  <bruno@clisp.org>
51777
51778         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51779         exponents in %e and %g results on 'long double'. Needed for mingw's
51780         improved *printf functions.
51781         * tests/test-vasprintf-posix.c (test_function): Likewise.
51782         * tests/test-snprintf-posix.h (test_function): Likewise.
51783         * tests/test-sprintf-posix.h (test_function): Likewise.
51784         Reported by Eric Blake.
51785
51786 2008-09-21  Bruno Haible  <bruno@clisp.org>
51787
51788         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51789         * tests/test-sprintf-posix.h (test_function): Likewise.
51790
51791 2008-09-21  Bruno Haible  <bruno@clisp.org>
51792
51793         * modules/getpass (Depends-on): Add strdup-posix.
51794
51795         New module 'strdup-posix'.
51796         * modules/strdup-posix: New file.
51797         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51798         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51800         REPLACE_STRDUP.
51801         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51802         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51803         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51804         strdup-posix.
51805
51806         * modules/strdup (Depends-on): Remove malloc-posix.
51807
51808 2008-09-20  Bruno Haible  <bruno@clisp.org>
51809
51810         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51811         Wildenhues.
51812
51813 2008-09-20  Bruno Haible  <bruno@clisp.org>
51814
51815         Ensure that wint_t gets defined on IRIX 5.3.
51816         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51817         * lib/wctype.in.h (wint_t): Likewise.
51818         (__wctype_wint_t): Remove type.
51819         (isw*): Use wint_t instead of __wctype_wint_t.
51820         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51821         * modules/wchar (Files): Add m4/wint_t.m4.
51822         (Makefile.am): Substitute HAVE_WINT_T.
51823         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51824         * tests/test-wctype.c: Check that wint_t is defined.
51825         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
51826         * doc/posix-headers/wctype.texi: Likewise.
51827         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51828
51829 2008-09-18  Bruno Haible  <bruno@clisp.org>
51830
51831         * gnulib-tool (func_exit): Update comment.
51832
51833 2008-09-18  Simon Josefsson  <simon@josefsson.org>
51834
51835         * modules/getaddrinfo (Depends-on): Remove strdup, this module
51836         assumes strdup exists and does not depend on strdup to return
51837         ENOMEM on out of memory conditions.
51838
51839 2008-09-18  Bruno Haible  <bruno@clisp.org>
51840
51841         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
51842         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
51843         digits for the exponent.
51844
51845 2008-09-18  Jim Meyering  <meyering@redhat.com>
51846             Bruno Haible  <bruno@clisp.org>
51847
51848         * lib/vasnprintf.c (decimal_point_char): Define also if
51849         NEED_PRINTF_INFINITE_LONG_DOUBLE.
51850
51851 2008-09-16  Bruno Haible  <bruno@clisp.org>
51852         and Eric Blake  <ebb9@byu.net>
51853
51854         vasnprintf: support Irix 5.3
51855         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
51856         that mishandle long double infinity.
51857         Reported by Tom G. Christensen.
51858
51859 2008-09-16  Bruno Haible  <bruno@clisp.org>
51860
51861         * doc/glibc-functions/scandir.texi: Mention the function is missing on
51862         Solaris 9.
51863         * doc/glibc-functions/alphasort.texi: Likewise.
51864         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
51865
51866 2008-09-16  Jim Meyering  <meyering@redhat.com>
51867
51868         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
51869         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
51870         a umask modification leak out of a subshell.  Otherwise, the
51871         opensolaris /bin/sh would be accepted and thus cause unwarranted
51872         failures in the coreutils test suite.
51873
51874 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
51875
51876         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
51877         to succeed.
51878
51879 2008-09-16  Jim Meyering  <meyering@redhat.com>
51880
51881         avoid spurious test failure when library is built without ACL support
51882         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
51883         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
51884         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
51885         * tests/test-copy-acl.sh: Likewise.
51886
51887 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51888
51889         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
51890         based on character occurrence counts.
51891
51892 2008-09-15  Eric Blake  <ebb9@byu.net>
51893
51894         tests: avoid some compiler warnings
51895         * tests/test-memchr.c (main): Pass NULL indirectly.
51896         * tests/test-closein.c (main): Avoid unused variable.
51897
51898 2008-09-15  Bruno Haible  <bruno@clisp.org>
51899
51900         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
51901         are missing on OpenBSD 4.0 individually.
51902         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51903
51904 2008-09-15  Bruno Haible  <bruno@clisp.org>
51905
51906         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
51907         * doc/posix-functions/strerror.texi: Mention also Cygwin.
51908         * doc/posix-functions/perror.texi: Likewise.
51909         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
51910         is missing.
51911         Reported by Eric Blake.
51912
51913         * lib/errno.in.h: Use replacement values >= 2000.
51914         Reported by Eric Blake.
51915
51916 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51917
51918         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
51919         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
51920         limit.
51921         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
51922         compareseq was aborted.
51923
51924 2008-09-14  Bruno Haible  <bruno@clisp.org>
51925
51926         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
51927         yvec_edit_count.
51928         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
51929         (fstrcmp_bounded): Simplify result computation accordingly.
51930
51931 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51932
51933         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
51934         (fstrcmp): Define in terms of fstrcmp_bounded.
51935         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
51936         lower_bound argument.
51937         Return quickly if the result is certainly < lower_bound.
51938         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
51939
51940 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51941
51942         * lib/diffseq.h (EARLY_ABORT): New macro.
51943         (compareseq): Change return type to bool. Return true when EARLY_ABORT
51944         evaluates to true.
51945
51946 2008-09-14  Bruno Haible  <bruno@clisp.org>
51947
51948         * modules/perror-tests: New file.
51949         * tests/test-perror.sh: New file.
51950         * tests/test-perror.c: New file.
51951
51952         New module 'perror'.
51953         * lib/stdio.in.h (perror): New declaration.
51954         * lib/perror.c: New file.
51955         * m4/perror.m4: New file.
51956         * modules/perror: New file.
51957         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
51958         * doc/posix-functions/perror.texi: Mention the perror module.
51959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
51960         REPLACE_PERROR.
51961         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
51962         REPLACE_PERROR.
51963
51964 2008-09-14  Bruno Haible  <bruno@clisp.org>
51965
51966         * modules/stdio (Makefile.am): Reorder to match the order in
51967         lib/stdio.in.h.
51968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51969
51970 2008-09-13  Bruno Haible  <bruno@clisp.org>
51971
51972         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
51973
51974 2008-09-13  Bruno Haible  <bruno@clisp.org>
51975
51976         Extend strerror to cover the added errno values.
51977         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
51978         (rpl_strerror): Provide error messages for the added errno values and
51979         for the WSA* values.
51980         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
51981         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
51982         strerror.
51983         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
51984         * modules/strerror (Depends-on): Add errno.
51985         * doc/posix-functions/strerror.texi: Document the change.
51986         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
51987         and EOVERFLOW.
51988
51989 2008-09-13  Bruno Haible  <bruno@clisp.org>
51990
51991         * modules/EOVERFLOW: Remove file.
51992         * m4/eoverflow.m4: Remove file.
51993         * modules/EOVERFLOW-tests: Remove file.
51994         * tests/test-EOVERFLOW.c: Remove file.
51995         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
51996         * modules/ftell (Depends-on): Likewise.
51997         * modules/getdelim (Depends-on): Likewise.
51998         * modules/getugroups (Depends-on): Likewise.
51999         * modules/poll (Depends-on): Likewise.
52000         * modules/snprintf (Depends-on): Likewise.
52001         * modules/sprintf-posix (Depends-on): Likewise.
52002         * modules/vasnprintf (Depends-on): Likewise.
52003         * modules/vasprintf (Depends-on): Likewise.
52004         * modules/vfprintf-posix (Depends-on): Likewise.
52005         * modules/vsnprintf (Depends-on): Likewise.
52006         * modules/vsprintf-posix (Depends-on): Likewise.
52007         * modules/xvasprintf (Depends-on): Likewise.
52008         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52009         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52010         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52011         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52012         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52013         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52014         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52015         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52016         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52017         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52018         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52019         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52020         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52021         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52022         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52023         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52024         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52025         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52026         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52027         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52028         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52029         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52030         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52031         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52032         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52033         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52034         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52035         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52036         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52037         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52038         * MODULES.html.sh: Remove EOVERFLOW.
52039         * NEWS: Mention the change.
52040
52041 2008-09-13  Bruno Haible  <bruno@clisp.org>
52042
52043         * modules/errno-tests: New file.
52044         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52045
52046         * lib/errno.in.h: New file.
52047         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52048         * modules/errno: New file.
52049         * doc/posix-headers/errno.texi: Update documentation.
52050         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52051
52052 2008-09-13  Bruno Haible  <bruno@clisp.org>
52053
52054         * tests/test-poll.c: Use #if for native Windows, rather than testing
52055         __MSVCRT__.
52056
52057 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52058             Bruno Haible  <bruno@clisp.org>
52059
52060         * lib/glob.c: Don't include <pwd.h> on native Windows.
52061         (WINDOWS32): New macro.
52062         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52063
52064 2008-09-13  Bruno Haible  <bruno@clisp.org>
52065
52066         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52067         (ETIMEDOUT): Remove macro.
52068         (glthread_cond_timedwait_multithreaded): New declaration.
52069         (glthread_cond_timedwait): Use it.
52070         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52071         (glthread_cond_timedwait_multithreaded): New function.
52072
52073 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52074
52075         * modules/poll-tests: Do not check for io.h.
52076         * tests/test-poll.c: Check for __MSVCRT__ instead.
52077
52078 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52079
52080         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52081         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52082         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52083
52084 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52085
52086         * modules/poll-tests: New.
52087         * tests/test-poll.c: New.
52088
52089 2008-09-12  Eric Blake  <ebb9@byu.net>
52090
52091         frexp: test for NetBSD failure on -0.0
52092         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52093         not all, bugs from NetBSD 3.0 have been fixed.
52094         * doc/posix-functions/frexp.texi (frexp): Document bug.
52095         Reported by Thomas Klausner.
52096
52097         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52098         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52099         literal -0.0.
52100         Reported by Jonathan C. Patschke <jp@centtech.com>.
52101
52102 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52103
52104         * lib/glthread/cond.h: Use dummy implementation also if
52105         USE_WIN32_THREADS.
52106
52107 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52108
52109         * modules/fnmatch-posix (License): Change to LGPLv2+.
52110         * modules/fnmatch-gnu (License): Likewise.
52111
52112 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52113
52114         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52115
52116 2008-09-11  Jim Meyering  <meyering@redhat.com>
52117
52118         * users.txt: Add gtk-vnc.
52119
52120 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52121
52122         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52123         rotate amounts.
52124
52125         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52126         required for 16-bit and 8-bit rotates.
52127         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52128         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52129         UINT8_MAX instead of hard-coded constants.
52130         Suggested by Paul Eggert.
52131
52132 2008-09-07  Bruno Haible  <bruno@clisp.org>
52133
52134         * tests/test-striconveh.c (main): Check behaviour when converting from
52135         UTF-7.
52136
52137         Make striconveh work better with stateful encodings.
52138         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52139         that iconv does not increment the inptr when returning -1/EINVAL.
52140
52141 2008-09-07  Bruno Haible  <bruno@clisp.org>
52142
52143         * build-aux/config.rpath: Update according to libtool-2.2.6.
52144         * build-aux/config.libpath: Likewise.
52145
52146 2008-09-06  Bruno Haible  <bruno@clisp.org>
52147
52148         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52149         * lib/freadptr.c (freadptr): Likewise.
52150         * lib/freadseek.c (freadptrinc): Likewise.
52151         Reported by Simon Josefsson.
52152
52153 2008-09-06  Bruno Haible  <bruno@clisp.org>
52154
52155         * modules/freadptr (License): Change to LGPLv2+.
52156         * modules/freadseek (License): Likewise.
52157         Suggested by Eric Blake.
52158
52159         * modules/memchr2 (License): Change to LGPLv2+.
52160         Approved by Eric Blake.
52161
52162 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52163             Bruno Haible  <bruno@clisp.org>
52164
52165         Make gnulib-tool work with native 'sed' on AIX.
52166         * gnulib-tool (sed_noop): New variable.
52167         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52168         func_add_or_update, func_create_testdir): Use it to initialize sed
52169         script variables.
52170         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52171
52172 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52173             Bruno Haible  <bruno@clisp.org>
52174
52175         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52176         also works after #include directives.
52177
52178 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52179
52180         getdate.y: reject an out-of-range timezone value
52181         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52182         the range [-24...+24].  When specified with only one or two digits,
52183         * tests/test-getdate.c: Tests for the fix.
52184         * doc/getdate.texi: Document this change.
52185
52186 2008-09-03  Bruno Haible  <bruno@clisp.org>
52187
52188         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52189
52190 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52191
52192         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52193         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52194         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52195         Blake <ebb9@byu.net>.
52196
52197         * tests/test-bitrotate.c: Add more test vectors.
52198
52199 2008-09-02  Eric Blake  <ebb9@byu.net>
52200
52201         vasnprintf-posix: handle large precision via %.*d
52202         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52203         when handling it ourselves.
52204         * tests/test-vasnprintf-posix.c (test_function): Add test.
52205         * tests/test-snprintf-posix.h (test_function): Likewise.
52206         * tests/test-sprintf-posix.h (test_function): Likewise.
52207         * tests/test-vasprintf-posix.c (test_function): Likewise.
52208         Reported by Alain Guibert.
52209
52210 2008-09-01  Eric Blake  <ebb9@byu.net>
52211
52212         c-stack: make configure-time check more robust
52213         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52214         successful sigaction call.
52215         Reported by Tom G. Christensen.
52216
52217 2008-09-01  Bruno Haible  <bruno@clisp.org>
52218
52219         New module 'findprog-lgpl'.
52220         * modules/findprog-lgpl: New file.
52221         * lib/findprog-lgpl.c: New file.
52222         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52223         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52224         to decide whether to use strdup or xstrdup, concatenated_filename or
52225         xconcatenated_filename.
52226
52227 2008-09-01  Bruno Haible  <bruno@clisp.org>
52228
52229         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52230         'xconcat-filename' (GPL).
52231         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52232         (License): Change to LGPLv2+.
52233         * modules/xconcat-filename: New file.
52234         * lib/concat-filename.h (concatenated_filename): Change specification.
52235         (xconcatenated_filename): New declaration.
52236         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52237         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52238         memory situations.
52239         * lib/xconcat-filename.c: New file.
52240         * NEWS: Mention the change.
52241         * lib/findprog.c: Include concat-filename.h, not filename.h.
52242         (find_in_path): Use xconcatenated_filename instead of
52243         concatenated_filename.
52244         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52245         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52246         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52247         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52248         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52249         instead of concatenated_filename.
52250         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52251         (execute_java_class): Use xconcatenated_filename instead of
52252         concatenated_filename.
52253         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52254         * modules/javacomp (Depends-on): Likewise.
52255         * modules/javaexec (Depends-on): Likewise.
52256
52257 2008-09-01  Bruno Haible  <bruno@clisp.org>
52258
52259         Split module 'filename' into 'filename' and 'concat-filename'.
52260         * modules/filename: Keep only lib/filename.h.
52261         (License): Change to LGPLv2+.
52262         * modules/concat-filename: New file, extracted from modules/filename.
52263         * lib/filename.h (concatenated_filename): Remove declaration.
52264         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52265         * lib/concat-filename.c: Include concat-filename.h.
52266         * NEWS: Mention the change.
52267
52268 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52269
52270         * lib/bitrotate.h (rotl8, rotr8): Add.
52271
52272         * modules/bitrotate (configure.ac): Need
52273         AC_REQUIRE([AC_C_INLINE]).
52274         (Description): Mention stdint.h.  Reported by Bruno Haible
52275         <bruno@clisp.org>.
52276
52277         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52278         Paolo Bonzini <bonzini@gnu.org>.
52279
52280 2008-08-31  Bruno Haible  <bruno@clisp.org>
52281
52282         Assume Solaris specific bi-arch conventions on Solaris systems.
52283         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52284         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52285         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52286         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52287         like acl_libdirstem.
52288         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52289         acl_libdirstem.
52290         * NEWS: Mention the change.
52291         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52292
52293 2008-08-31  Jim Meyering  <meyering@redhat.com>
52294
52295         * lib/strftime.h: Add comments describing the two added arguments.
52296
52297         remove duplicate #include directives
52298         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52299         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52300
52301 2008-08-31  Bruno Haible  <bruno@clisp.org>
52302
52303         New module 'sigpipe-die'.
52304         * modules/sigpipe-die: New file.
52305         * lib/sigpipe-die.h: New file.
52306         * lib/sigpipe-die.c: New file.
52307         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52308
52309 2008-08-31  Bruno Haible  <bruno@clisp.org>
52310
52311         Don't override previously installed signal handlers.
52312         * lib/fatal-signal.c (saved_sigactions): New variable.
52313         (uninstall_handlers): Reset the signal to the saved handler, not
52314         to SIG_DFL (except when ignored).
52315         (install_handlers): Save the previous handlers.
52316
52317 2008-08-30  Bruno Haible  <bruno@clisp.org>
52318
52319         * gnulib-tool (func_reset_sigpipe): New function.
52320         (func_get_automake_snippet, func_modules_transitive_closure,
52321         func_import): Invoke it before a join command that reads from stdin,
52322         to avoid "echo: write error: Broken pipe" error messages on stderr.
52323         Reported by Sam Steingold <sds@gnu.org>.
52324
52325 2008-08-30  Bruno Haible  <bruno@clisp.org>
52326
52327         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52328         Code copied from m4/open.m4.
52329         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52330         access and the filename ends in a slash. Code copied from lib/open.c.
52331         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52332         * tests/test-fopen.c (main): Check against bug with trailing slash.
52333
52334 2008-08-29  Bruno Haible  <bruno@clisp.org>
52335
52336         Avoid some "gcc -pedantic" warnings.
52337         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52338         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52339         * lib/dirent.in.h: Likewise.
52340         * lib/fcntl.in.h: Likewise.
52341         * lib/float.in.h: Likewise.
52342         * lib/iconv.in.h: Likewise.
52343         * lib/inttypes.in.h: Likewise.
52344         * lib/locale.in.h: Likewise.
52345         * lib/math.in.h: Likewise.
52346         * lib/netinet_in.in.h: Likewise.
52347         * lib/search.in.h: Likewise.
52348         * lib/signal.in.h: Likewise.
52349         * lib/stdarg.in.h: Likewise.
52350         * lib/stdint.in.h: Likewise.
52351         * lib/stdio.in.h: Likewise.
52352         * lib/stdlib.in.h: Likewise.
52353         * lib/string.in.h: Likewise.
52354         * lib/strings.in.h: Likewise.
52355         * lib/sys_select.in.h: Likewise.
52356         * lib/sys_socket.in.h: Likewise.
52357         * lib/sys_stat.in.h: Likewise.
52358         * lib/sys_time.in.h: Likewise.
52359         * lib/sysexits.in.h: Likewise.
52360         * lib/time.in.h: Likewise.
52361         * lib/unistd.in.h: Likewise.
52362         * lib/wchar.in.h: Likewise.
52363         * lib/wctype.in.h: Likewise.
52364         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52365         * modules/fchdir (Makefile.am): Likewise.
52366         * modules/fcntl (Makefile.am): Likewise.
52367         * modules/float (Makefile.am): Likewise.
52368         * modules/iconv_open (Makefile.am): Likewise.
52369         * modules/inttypes (Makefile.am): Likewise.
52370         * modules/locale (Makefile.am): Likewise.
52371         * modules/math (Makefile.am): Likewise.
52372         * modules/netinet_in (Makefile.am): Likewise.
52373         * modules/search (Makefile.am): Likewise.
52374         * modules/signal (Makefile.am): Likewise.
52375         * modules/stdarg (Makefile.am): Likewise.
52376         * modules/stdint (Makefile.am): Likewise.
52377         * modules/stdio (Makefile.am): Likewise.
52378         * modules/stdlib (Makefile.am): Likewise.
52379         * modules/string (Makefile.am): Likewise.
52380         * modules/strings (Makefile.am): Likewise.
52381         * modules/sys_select (Makefile.am): Likewise.
52382         * modules/sys_socket (Makefile.am): Likewise.
52383         * modules/sys_stat (Makefile.am): Likewise.
52384         * modules/sys_time (Makefile.am): Likewise.
52385         * modules/sysexits (Makefile.am): Likewise.
52386         * modules/time (Makefile.am): Likewise.
52387         * modules/unistd (Makefile.am): Likewise.
52388         * modules/wchar (Makefile.am): Likewise.
52389         * modules/wctype (Makefile.am): Likewise.
52390         Reported by Reuben Thomas <rrt@sc3d.org>.
52391
52392 2008-08-29  Bruno Haible  <bruno@clisp.org>
52393
52394         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52395         any more.
52396
52397 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52398
52399         * MODULES.html.sh (Misc): Add bitrotate.
52400
52401         * modules/bitrotate: New file.
52402
52403         * lib/bitrotate.h: New file.
52404
52405         * modules/bitrotate-tests: New file.
52406
52407         * tests/test-bitrotate.c: New file.
52408
52409         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52410         on the bitrotate module.
52411
52412         * lib/arctwo.c: Use new bitrotate module.
52413
52414 2008-08-29  Jim Meyering  <meyering@redhat.com>
52415
52416         bootstrap: merge changes from coreutils
52417         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52418         of copied files.  Remove a kludge, now that this is fixed.
52419         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52420         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52421         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52422
52423 2008-08-29  Bruno Haible  <bruno@clisp.org>
52424
52425         * MODULES.html.sh: Remove --cvs-urls option.
52426
52427 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52428
52429         maint.mk: adjust to file name change
52430         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52431
52432 2008-08-28  Jim Meyering  <meyering@redhat.com>
52433
52434         * modules/getndelim2 (License): Relicense to LGPLv2+.
52435         Approved by Richard Stallman for the version of 1995, and by
52436         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52437
52438 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52439
52440         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52441         dummy if one is not available.  Do not touch them if
52442         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52443         (getc_maybe_unlocked): New.
52444         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52445
52446 2008-08-26  Eric Blake  <ebb9@byu.net>
52447
52448         doc/INSTALL: resync from autoconf
52449         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52450         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52451         moving...
52452         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52453         * INSTALL: Regenerate.
52454         * INSTALL.ISO: New file.
52455         * INSTALL.UTF-8: Likewise.
52456
52457 2008-08-26  Jim Meyering  <meyering@redhat.com>
52458
52459         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52460         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52461         these definitions conditional, so that they may be overridden, too.
52462
52463 2008-08-26  Bruno Haible  <bruno@clisp.org>
52464
52465         Generate INSTALL file variants with prettier quotes.
52466         * doc/Makefile (INSTALL_PRELUDE): New macro.
52467         (INSTALL): Use it.
52468         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52469
52470 2008-08-26  Bruno Haible  <bruno@clisp.org>
52471
52472         Run makeinfo in an English locale.
52473         * doc/Makefile (MAKEINFO): New variable.
52474
52475 2008-08-26  Bruno Haible  <bruno@clisp.org>
52476
52477         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52478         Suggested by Eric Blake.
52479
52480 2008-08-25  Bruno Haible  <bruno@clisp.org>
52481
52482         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52483
52484 2008-08-25  Eric Blake  <ebb9@byu.net>
52485
52486         c-stack: test that stack overflow can be caught
52487         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52488         that platform allows handling stack overflow; at least OS/2 EMX
52489         has sigaltstack, but crashes before transferring control to
52490         handler on stack overflow.
52491         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52492         check for HAVE_STACK_OVERFLOW_HANDLING.
52493         Reported by Elbert Pol.
52494
52495 2008-08-25  Bruno Haible  <bruno@clisp.org>
52496
52497         * doc/posix-functions/strftime.texi: Fix description of strftime
52498         module.
52499
52500 2008-08-24  Bruno Haible  <bruno@clisp.org>
52501
52502         * tests/uniwidth/test-uc_width2.c: New file.
52503         * tests/uniwidth/test-uc_width2.sh: New file.
52504         * modules/uniwidth/width-tests (Files): Add the new files.
52505         (TESTS): Add uniwidth/test-uc_width2.sh.
52506         (TESTS_ENVIRONMENT): New variable.
52507         (check_PROGRAMS): Add test-uc_width2.
52508         (test_uc_width2_SOURCES): New variable.
52509
52510         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52511         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52512         not 0x00AB.
52513         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52514
52515 2008-08-22  Eric Blake  <ebb9@byu.net>
52516
52517         test-lock, test-tls: mention why a test is skipped
52518         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52519         skipped.
52520         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52521
52522         count-one-bits: relax license
52523         * modules/count-one-bits (License): Relicense to LGPLv2+.
52524         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52525
52526 2008-08-22  Andreas Schwab  <schwab@suse.de>
52527
52528         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52529         Remove spurious space in assignment.
52530
52531 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52532
52533         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52534         Paul Eggert <eggert@CS.UCLA.EDU>.
52535
52536 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52537
52538         * modules/gettext: Add m4/threadlib.m4.
52539
52540 2008-08-19  Eric Blake  <ebb9@byu.net>
52541
52542         test-c-stack: fix compilation failure on FreeBSD 5.0
52543         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52544         headers before <sys/resource.h>.
52545         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52546         the bug.
52547         Reported by Nelson H. F. Beebe.
52548
52549         strverscmp: migrate from "strverscmp.h" to <string.h>
52550         * modules/string (Makefile.am): Add new hooks.
52551         * modules/strverscmp (Files): Remove strverscmp.h.
52552         (Depends-on): Add string.
52553         (configure.ac): Add indicator.
52554         (Include): Mention new header.
52555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52556         defaults.
52557         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52558         results.
52559         * lib/strverscmp.h: Delete.
52560         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52561         * tests/test-strverscmp.c (includes): Adjust client.
52562         * lib/check-version.c (includes): Likewise.
52563         * NEWS: Document the change.
52564
52565         strverscmp: add unit test
52566         * modules/strverscmp-tests: New file.
52567         * tests/test-strverscmp.c: Likewise.
52568
52569 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52570
52571         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52572         regarding Windows crypto stuff, from Mono.
52573
52574 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52575
52576         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52577         if present, for intel RND.  Return error on failures.
52578
52579 2008-08-18  Ben Pfaff  <blp@gnu.org>
52580
52581         gitlog-to-changelog: give better diagnostic for failed pipe-open
52582         * build-aux/gitlog-to-changelog: Improve error message: suggest
52583         that the version of Git may be too old.
52584
52585 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52586
52587         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52588         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52589
52590 2008-08-18  Bruno Haible  <bruno@clisp.org>
52591
52592         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52593         pthread_in_use().
52594
52595 2008-08-18  Bruno Haible  <bruno@clisp.org>
52596
52597         * lib/glthread/threadlib.c: Include <pthread.h>.
52598
52599 2008-08-18  Bruno Haible  <bruno@clisp.org>
52600
52601         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52602         glthread_recursive_lock_* macros.
52603         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52604         Fix syntax error.
52605
52606 2008-08-18  Bruno Haible  <bruno@clisp.org>
52607
52608         * lib/glthread/thread.c: Avoid forcing a context switch right after
52609         thread creation.
52610
52611 2008-08-17  Bruno Haible  <bruno@clisp.org>
52612
52613         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52614         * lib/glthread/thread.h: Provide Win32 specific implementation.
52615         * modules/thread (Files): Add lib/glthread/thread.c.
52616         (Depends-on): Add lock.
52617         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52618
52619 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52620
52621         New module 'yield'.
52622         * modules/yield: New file.
52623         * lib/glthread/yield.h: New file.
52624         * m4/yield.m4: New file.
52625         * MODULES.html.sh (Multithreading): Add yield.
52626
52627 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52628
52629         New module 'thread'.
52630         * modules/thread: New file.
52631         * lib/glthread/thread.h: New file.
52632         * m4/thread.m4: New file.
52633         * MODULES.html.sh (Multithreading): Add thread.
52634
52635 2008-08-17  Bruno Haible  <bruno@clisp.org>
52636
52637         * lib/glthread/lock.h: Include <stdlib.h> always.
52638         * lib/glthread/tls.h: Likewise.
52639         * lib/glthread/cond.h: Likewise.
52640
52641 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52642
52643         New module 'cond'.
52644         * modules/cond: New file.
52645         * lib/glthread/cond.h: New file.
52646         * lib/glthread/cond.c: New file.
52647         * m4/cond.m4: New file.
52648         * MODULES.html.sh (Multithreading): Add cond.
52649
52650 2008-08-16  Eric Blake  <ebb9@byu.net>
52651
52652         c-stack: fix regression on Irix 5.3 from 2008-06-21
52653         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52654         sa_sigaction...
52655         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52656         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52657         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52658         * modules/signal (Makefile.am): Use the value.
52659         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52660         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52661         * doc/posix-headers/signal.texi (signal.h): Document this
52662         portability issue.
52663         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52664         Reported by Tom G. Christensen.
52665
52666 2008-08-17  Bruno Haible  <bruno@clisp.org>
52667
52668         New module 'threadlib'.
52669         * modules/threadlib: New file.
52670         * lib/glthread/threadlib.c: New file, extracted from
52671         lib/glthread/lock.c.
52672         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52673         functions.
52674         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52675         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52676         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52677         macros.
52678         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52679         (gl_DISABLE_THREADS): Remove macro.
52680         * modules/lock (Files): Remove build-aux/config.rpath.
52681         (Depends-on): Remove havelib. Add threadlib.
52682         (configure.ac-early): Remove section.
52683         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52684         * modules/tls (Depends-on): Remove lock. Add threadlib.
52685         (Link): New section, copied from threadlib.
52686         * MODULES.html.sh (Multithreading): Add threadlib.
52687
52688 2008-08-14  Bruno Haible  <bruno@clisp.org>
52689
52690         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52691         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52692         glthread_rwlock_unlock, glthread_rwlock_destroy,
52693         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52694         glthread_recursive_lock_destroy): Define as macros always.
52695         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52696         glthread_lock_lock.
52697         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52698         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52699         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52700         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52701         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52702         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52703         (glthread_recursive_lock_lock_func): Renamed from
52704         glthread_recursive_lock_lock.
52705         (glthread_recursive_lock_unlock_func): Renamed from
52706         glthread_recursive_lock_unlock.
52707         (glthread_recursive_lock_destroy_func): Renamed from
52708         glthread_recursive_lock_destroy.
52709
52710 2008-08-14  Bruno Haible  <bruno@clisp.org>
52711
52712         * lib/glthread/lock.h: Renamed from lib/lock.h.
52713         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52714         * lib/glthread/tls.h: Renamed from lib/tls.h.
52715         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52716         * lib/fstrcmp.c: Update includes.
52717         * lib/strsignal.c: Update includes.
52718         * modules/lock (Files, Makefile.am): Update.
52719         (Include): Change to "glthread/lock.h".
52720         * modules/tls (Files, Makefile.am): Update.
52721         (Include): Change to "glthread/tls.h".
52722         * tests/test-lock.c: Update includes.
52723         * tests/test-tls.c: Update includes.
52724         * NEWS: Mention the renamed header files.
52725
52726 2008-08-11  Jim Meyering  <meyering@redhat.com>
52727
52728         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52729
52730 2008-08-11  Eric Blake  <ebb9@byu.net>
52731
52732         test-c-stack: avoid C99-ism
52733         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52734         before statement.
52735         Reported by Alain Guibert.
52736
52737 2008-08-10  Jim Meyering  <meyering@redhat.com>
52738
52739         ensure that return value of uinttostr et al are not ignored
52740         * lib/inttostr.h (__GNUC_PREREQ): Define.
52741         (__attribute_warn_unused_result__): Define.
52742         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52743
52744 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52745
52746         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52747         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52748
52749 2008-08-07  Jim Meyering  <meyering@redhat.com>
52750
52751         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52752
52753         * modules/mkstemp (License): Relicense under LGPLv2+.
52754         * modules/tempname (License): Likewise.
52755
52756 2008-08-06  Bruno Haible  <bruno@clisp.org>
52757
52758         * lib/poll.c (poll): Further micro-optimization.
52759
52760 2008-08-06  Jim Meyering  <meyering@redhat.com>
52761
52762         inet_pton.c: use locale-independent tolower
52763         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52764         (inet_pton6): Use c_tolower rather than tolower.
52765         * modules/inet_pton (Depends-on): Add c-ctype.
52766
52767 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52768
52769         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52770         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52771
52772 2008-08-06  Jim Meyering  <meyering@redhat.com>
52773
52774         * modules/inet_pton (License): Relicense under LGPLv2+.
52775
52776 2008-08-03  Bruno Haible  <bruno@clisp.org>
52777
52778         Additional non-aborting API for lock and tls.
52779         * lib/lock.h: Include <errno.h>.
52780         (glthread_lock_init): New macro/function.
52781         (gl_lock_init): Define as wrapper around glthread_lock_init.
52782         (glthread_lock_lock): New macro/function.
52783         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52784         (glthread_lock_unlock): New macro/function.
52785         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52786         (glthread_lock_destroy): New macro/function.
52787         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52788         (glthread_rwlock_init): New macro/function.
52789         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52790         (glthread_rwlock_rdlock): New macro/function.
52791         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52792         (glthread_rwlock_wrlock): New macro/function.
52793         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52794         (glthread_rwlock_unlock): New macro/function.
52795         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52796         (glthread_rwlock_destroy): New macro/function.
52797         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52798         (glthread_recursive_lock_init): New macro/function.
52799         (gl_recursive_lock_init): Define as wrapper around
52800         glthread_recursive_lock_init.
52801         (glthread_recursive_lock_lock): New macro/function.
52802         (gl_recursive_lock_lock): Define as wrapper around
52803         glthread_recursive_lock_lock.
52804         (glthread_recursive_lock_unlock): New macro/function.
52805         (gl_recursive_lock_unlock): Define as wrapper around
52806         glthread_recursive_lock_unlock.
52807         (glthread_recursive_lock_destroy): New macro/function.
52808         (gl_recursive_lock_destroy): Define as wrapper around
52809         glthread_recursive_lock_destroy.
52810         (glthread_once): New macro/function.
52811         (gl_once): Define as wrapper around glthread_once.
52812         Update function declarations.
52813         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52814         glthread_rwlock_init. Return error code.
52815         (glthread_rwlock_rdlock_multithreaded): Renamed from
52816         glthread_rwlock_rdlock. Return error code.
52817         (glthread_rwlock_wrlock_multithreaded): Renamed from
52818         glthread_rwlock_wrlock. Return error code.
52819         (glthread_rwlock_unlock_multithreaded): Renamed from
52820         glthread_rwlock_unlock. Return error code.
52821         (glthread_rwlock_destroy_multithreaded): Renamed from
52822         glthread_rwlock_destroy. Return error code.
52823         (glthread_recursive_lock_init_multithreaded): Renamed from
52824         glthread_recursive_lock_init. Return error code.
52825         (glthread_recursive_lock_lock_multithreaded): Renamed from
52826         glthread_recursive_lock_lock. Return error code.
52827         (glthread_recursive_lock_unlock_multithreaded): Renamed from
52828         glthread_recursive_lock_unlock. Return error code.
52829         (glthread_recursive_lock_destroy_multithreaded): Renamed from
52830         glthread_recursive_lock_destroy. Return error code.
52831         (glthread_once_call): Make static.
52832         (glthread_once_multithreaded): Renamed from glthread_once.
52833         * lib/tls.h: Include <errno.h>.
52834         (glthread_tls_key_init): New macro/function.
52835         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
52836         (glthread_tls_set): New macro/function.
52837         (gl_tls_set): Define as wrapper around glthread_tls_set.
52838         (glthread_tls_key_destroy): New macro/function.
52839         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
52840         Update function declarations.
52841         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
52842         glthread_tls_get.
52843         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52844
52845 2008-08-04  Eric Blake  <ebb9@byu.net>
52846
52847         gnumakefile: use space, not TAB, outside of targets
52848         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
52849
52850 2008-08-02  Jim Meyering  <meyering@redhat.com>
52851
52852         getdate.y: avoid locale-dependent date parsing failure
52853         In Turkish locales, getdate would fail to recognize keywords
52854         containing a lowercase "i".  The solution is not to rely on
52855         locale-sensitive case-conversion.
52856         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
52857         (lookup_word): Use c_toupper in place of toupper.
52858         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
52859         Reported by Vefa Bicakci <bicave@superonline.com> in
52860         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
52861         * modules/getdate (Depends-on): Add c-ctype.
52862
52863 2008-08-02  Bruno Haible  <bruno@clisp.org>
52864
52865         * gnulib-tool (func_import): When updating or creating a .gitignore
52866         file, prepend each added line with a slash, and ignore leading slashes
52867         from the existing lines.
52868         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52869
52870 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52871
52872         Portability fix for GNU make 3.79.1.
52873         * top/GNUmakefile: Avoid 'else COND', which older GNU make
52874         versions do not understand.
52875
52876 2008-08-01  Bruno Haible  <bruno@clisp.org>
52877
52878         Work around bug of HP-UX 10.20 cc with -0.0 literal.
52879         * tests/test-isnanf.h (zero): New variable.
52880         (main): Avoid literal -0.0f.
52881         * tests/test-isnand.h (zero): New variable.
52882         (main): Avoid literal -0.0.
52883         * tests/test-isnanl.h (zero): New variable.
52884         (main): Avoid literal -0.0L.
52885         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
52886         (test_float, test_double, test_long_double): Avoid literals -0.0f,
52887         -0.0, -0.0L.
52888         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
52889         (test_signbitd): Avoid literal -0.0.
52890         (test_signbitl): Avoid literal -0.0L.
52891         * tests/test-ceilf1.c (zero): New variable.
52892         (main): Avoid literal -0.0f.
52893         * tests/test-ceill.c (zero): New variable.
52894         (main): Avoid literal -0.0L.
52895         * tests/test-floorf1.c (zero): New variable.
52896         (main): Avoid literal -0.0f.
52897         * tests/test-floorl.c (zero): New variable.
52898         (main): Avoid literal -0.0L.
52899         * tests/test-roundf1.c (zero): New variable.
52900         (main): Avoid literal -0.0f.
52901         * tests/test-round1.c (zero): New variable.
52902         (main): Avoid literal -0.0.
52903         * tests/test-roundl.c (zero): New variable.
52904         (main): Avoid literal -0.0L.
52905         * tests/test-truncf1.c (zero): New variable.
52906         (main): Avoid literal -0.0f.
52907         * tests/test-trunc1.c (zero): New variable.
52908         (main): Avoid literal -0.0.
52909         * tests/test-truncl.c (zero): New variable.
52910         (main): Avoid literal -0.0L.
52911         * tests/test-frexp.c (zero): New variable.
52912         (main): Avoid literal -0.0.
52913         * tests/test-frexpl.c (zero): New variable.
52914         (main): Avoid literal -0.0L.
52915         * tests/test-ldexpl.c (zero): New variable.
52916         (main): Avoid literal -0.0L.
52917         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52918         (zerod, zerol): New variables.
52919         (test_function): Avoid literals -0.0, -0.0L.
52920         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52921         (zerod, zerol): New variables.
52922         (test_function): Avoid literals -0.0, -0.0L.
52923         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52924         (zerod, zerol): New variables.
52925         (test_function): Avoid literals -0.0, -0.0L.
52926         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52927         (zerod, zerol): New variables.
52928         (test_function): Avoid literals -0.0, -0.0L.
52929         * tests/test-strtod.c (zero): New variable.
52930         (main): Avoid literal -0.0.
52931         Reported by Jonathan C. Patschke <jp@centtech.com>.
52932
52933 2008-07-31  Jim Meyering  <meyering@redhat.com>
52934
52935         sha256.h: correct definition of SHA224_DIGEST_SIZE
52936         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
52937         Reported by Paulie Pena IV <paulie4@gmail.com>.
52938         Define as 224 / 8, rather than as a literal.
52939         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
52940         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
52941         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
52942
52943 2008-07-31  Bruno Haible  <bruno@clisp.org>
52944
52945         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
52946         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
52947         Reported by Jonathan Patschke <jp@centtech.com>.
52948
52949 2008-07-31  Bruno Haible  <bruno@clisp.org>
52950
52951         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
52952         Reported by Paolo Bonzini <bonzini@gnu.org>.
52953
52954 2008-07-30  Eric Blake  <ebb9@byu.net>
52955
52956         test-strtod: allow compilation without -lm
52957         * tests/test-strtod.c (main): Avoid link dependence on fabs.
52958         Reported by Dennis Clarke <blastwave@gmail.com>.
52959
52960 2008-07-28  Jim Meyering  <meyering@redhat.com>
52961
52962         bootstrap: work also when there are no .po files in po/
52963         * build-aux/bootstrap (update_po_files): Complete the change
52964         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
52965
52966 2008-07-27  Jim Meyering  <meyering@redhat.com>
52967
52968         * users.txt: Add zile.
52969
52970 2008-07-26  Ben Pfaff  <blp@gnu.org>
52971
52972         Add missing dependencies on new m4/exponent[fdl].m4 files.
52973         * modules/isnanf-nolibm: Add m4/exponentf.m4.
52974         * modules/isnand-nolibm: Add m4/exponentd.m4.
52975         * modules/isnanl-nolibm: Add m4/exponentl.m4.
52976         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
52977         m4/isnan[fdl].m4, because the macros actually used moved.
52978         Reported by Jim Meyering.
52979
52980 2008-07-14  Ben Pfaff  <blp@gnu.org>
52981
52982         Add isinf module.
52983         * lib/isinf.c: New file.
52984         * lib/math.in.h: Define isinf macro if we have decided to replace
52985         it.
52986         * m4/isinf.m4: New file.
52987         * m4/math_h.m4: Initialize and substitute variables for isinf
52988         module.
52989         * modules/isinf: New file.
52990         * modules/isinf-tests: New file.
52991         * modules/math: Add substitutions for new module.
52992         * tests/test-isinf.c: New file.
52993         * doc/posix-functions/isinf.texi: Mention new module.
52994         * MODULES.html.sh: Mention new module.
52995
52996 2008-07-14  Ben Pfaff  <blp@gnu.org>
52997
52998         Factor out some macros for use by additional modules.
52999         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53000         exponentf.m4.
53001         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53002         exponentd.m4.
53003         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53004         file exponentl.m4.
53005         * m4/exponentf.m4: New file.
53006         * m4/exponentd.m4: New file.
53007         * m4/exponentl.m4: New file.
53008         * modules/isnanf: Use new file m4/exponentf.m4.
53009         * modules/isnand: Use new file m4/exponentd.m4.
53010         * modules/isnanl: Use new file m4/exponentl.m4.
53011
53012 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53013
53014         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53015         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53016         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53017         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53018
53019         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53020         readlink on platforms without PATH_MAX.
53021
53022 2008-07-21  Eric Blake  <ebb9@byu.net>
53023
53024         Warn, not fail, on stale version.
53025         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53026
53027         Don't allow installation with stale devel version number.
53028         * top/GNUmakefile (_is-install-target): New macro.
53029         (_curr-ver): Forbid installation with stale version number.
53030
53031 2008-07-20  Bruno Haible  <bruno@clisp.org>
53032
53033         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53034         TESTS_ENVIRONMENT.
53035         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53036
53037 2008-07-20  Bruno Haible  <bruno@clisp.org>
53038
53039         * lib/c-stack.h (c_stack_action): Add documentation.
53040         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53041
53042 2008-07-20  Bruno Haible  <bruno@clisp.org>
53043
53044         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53045         * modules/readlink (License): Likewise.
53046
53047 2008-07-17  Eric Blake  <ebb9@byu.net>
53048
53049         * modules/c-stack (Link): Fix typo.
53050
53051         Make c-stack use libsigsegv, when available.
53052         * modules/c-stack (Depends-on): Add libsigsegv.
53053         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53054         needed.
53055         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53056         (segv_handler, overflow_handler, c_stack_action)
53057         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53058         implementation when libsigsegv is available, but only when using
53059         the library is necessary.
53060         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53061         comment, explaining why XSI check fails on Linux.
53062         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53063         * tests/test-c-stack2.sh: Tweak skip message.
53064         * NEWS: Document new link-time requirements.
53065
53066 2008-07-16  Eric Blake  <ebb9@byu.net>
53067
53068         c-stack: Expose false positives when not using libsigsegv.
53069         * modules/c-stack-tests (Files): Expand test.
53070         * tests/test-c-stack.c (main): Add means to conditionally trigger
53071         non-overflow SIGSEGV.
53072         * tests/test-c-stack2.sh: New file.
53073
53074 2008-07-14  Bruno Haible  <bruno@clisp.org>
53075
53076         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53077         Reported by Eric Blake.
53078
53079 2008-07-14  Sam Steingold  <sds@gnu.org>
53080             Bruno Haible  <bruno@clisp.org>
53081
53082         New module libsigsegv.
53083         * modules/libsigsegv: New file.
53084         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53085         modifications.
53086         * MODULES.html.sh (Signal handling): New section.
53087
53088 2008-07-14  Bruno Haible  <bruno@clisp.org>
53089
53090         * modules/unictype/ctype-* (Description): Add the word "function".
53091         Improves the resulting doc in MODULES.html.
53092
53093 2008-07-12  Ben Pfaff  <blp@gnu.org>
53094
53095         Add longlong module.
53096         * modules/longlong: New file.
53097
53098 2008-07-12  Bruno Haible  <bruno@clisp.org>
53099
53100         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53101         to empty.
53102
53103 2008-07-10  Ben Pfaff  <blp@gnu.org>
53104
53105         Add isnan module.
53106         * doc/posix-functions/isnan.texi: Mention new module.
53107         * lib/math.in.h: Define isnan macro if we have decided to replace
53108         it.
53109         * m4/isnan.m4: New file.
53110         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53111         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53112         also.
53113         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53114         redundancy.
53115         * m4/math_h.m4: Initialize and substitute variables for isnan
53116         module.
53117         * modules/isnan: New file.
53118         * modules/isnan-tests: New file.
53119         * modules/math: Add substitutions for new module.
53120         * tests/test-isnan.c: New file.
53121         * MODULES.html.sh: Mention new module.
53122
53123 2008-07-10  Ben Pfaff  <blp@gnu.org>
53124
53125         Add isnanf module.
53126         * lib/isnanf.m4: New file.
53127         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53128         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53129         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53130         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53131         * modules/isnanf: New file.
53132         * modules/isnanf-tests: New file.
53133         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53134         files.
53135         * tests/test-isnanf-nolibm.c: factored most of its contents into
53136         new file tests/test-isnanf.h.
53137         * tests/test-isnanf.h: New file.
53138         * tests/test-isnanf.c: New file.
53139         * MODULES.html.sh: Mention new module.
53140         * doc/glibc-functions/isnanf.texi: Mention new module.
53141
53142 2008-07-10  Ben Pfaff  <blp@gnu.org>
53143
53144         Add isnand module.
53145         * lib/isnand.h: New file.
53146         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53147         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53148         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53149         functionality also.
53150         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53151         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53152         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53153         * modules/isnand: New file.
53154         * modules/isnand-tests: New file.
53155         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53156         files.
53157         * tests/test-isnand-nolibm.c: factored most of its contents into
53158         new file tests/test-isnand.h.
53159         * tests/test-isnand.h: New file.
53160         * tests/test-isnand.c: New file.
53161         * MODULES.html.sh: Mention new module.
53162
53163 2008-07-10  Ben Pfaff  <blp@gnu.org>
53164
53165         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53166         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53167         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53168         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53169         * modules/isnanf-nolibm: Update references to renamed files.
53170         * modules/isnand-nolibm: Likewise.
53171         * modules/isnanf-nolibm-tests: Likewise.
53172         * modules/isnand-nolibm-tests: Likewise.
53173         * lib/frexp.c: Likewise.
53174         * lib/isfinite.c: Likewise.
53175         * lib/signbitd.c: Likewise.
53176         * lib/signbitf.c: Likewise.
53177         * lib/vasnprintf.c: Likewise.
53178         * tests/test-ceilf1.c: Likewise.
53179         * tests/test-ceilf2.c: Likewise.
53180         * tests/test-floorf1.c: Likewise.
53181         * tests/test-floorf2.c: Likewise.
53182         * tests/test-frexp.c: Likewise.
53183         * tests/test-round1.c: Likewise.
53184         * tests/test-round2.c: Likewise.
53185         * tests/test-roundf1.c: Likewise.
53186         * tests/test-strtod.c: Likewise.
53187         * tests/test-trunc1.c: Likewise.
53188         * tests/test-trunc2.c: Likewise.
53189         * tests/test-truncf1.c: Likewise.
53190         * tests/test-truncf2.c: Likewise.
53191         * NEWS: Mention the renamed header files.
53192
53193 2008-07-11  Jim Meyering  <meyering@redhat.com>
53194
53195         vc-list-files: make the last-resort awk code more portable
53196         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53197         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53198         does not support it.
53199
53200 2008-07-10  Eric Blake  <ebb9@byu.net>
53201
53202         Work with tar's bootstrap.
53203         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53204         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53205         an m4 comment.
53206
53207 2008-07-09  Jim Meyering  <meyering@redhat.com>
53208
53209         posix-shell.m4: fix typo that made this test malfunction
53210         * m4/posix-shell.m4: Remove capitalization in variable name.
53211
53212 2008-07-08  Bruno Haible  <bruno@clisp.org>
53213
53214         * m4/onceonly.m4: Update comments.
53215         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53216
53217 2008-07-04  Jim Meyering  <meyering@redhat.com>
53218
53219         * users.txt: Add vc-dwim.
53220         (bison, coreutils): Use the gitweb URL.
53221
53222 2008-07-03  Jim Meyering  <meyering@redhat.com>
53223
53224         * users.txt: Add libffcall.  From Sam Steingold.
53225
53226 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53227
53228         getdate.y: do not ignore TZ with relative day, month or year offset
53229         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53230         relative-date-handling, since otherwise, the latter would clobber the
53231         sole output (an updated Start value) of the tz-handling block.
53232         * tests/test-getdate.c: Tests for the fix
53233
53234 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53235
53236         Recognize 'foo_LIBRARIES += libgnu.a'.
53237         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53238         makefile snippet has already specified an installation location,
53239         also using '+='.
53240
53241 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53242
53243         getdate.y: factor out common actions
53244         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53245         Use them in place of open-coded actions.
53246
53247 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53248
53249         Add self-test for getdate module.
53250         * modules/getdate-tests: New file.
53251         * tests/test-getdate.c: New file.
53252
53253 2008-06-29  Bruno Haible  <bruno@clisp.org>
53254
53255         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53256         .gitignore.
53257         Reported by Sylvain Beucler <beuc@beuc.net>.
53258
53259 2008-06-29  Bruno Haible  <bruno@clisp.org>
53260
53261         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53262         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53263
53264 2008-06-29  Bruno Haible  <bruno@clisp.org>
53265
53266         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53267         EXTRA_DIST.
53268         Reported by Sylvain Beucler <beuc@beuc.net>.
53269
53270 2008-06-26  Jim Meyering  <meyering@redhat.com>
53271
53272         make several modules depend on the "open" module
53273         This provides slightly increased consistency when opening-for-write
53274         the name of a non-directory spelled with a trailing slash.
53275         * modules/chdir-safer: Likewise.
53276         * modules/chown: Likewise.
53277         * modules/clean-temp: Likewise.
53278         * modules/copy-file: Likewise.
53279         * modules/fchdir: Likewise.
53280         * modules/fcntl-safer: Likewise.
53281         * modules/pipe: Likewise.
53282         * modules/utime: Likewise.
53283         Prompted by Eric Blake and Bruno Haible.
53284
53285 2008-06-24  Andreas Schwab  <schwab@suse.de>
53286
53287         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53288         literals can be used as initializers for global variables.
53289
53290 2008-06-23  Eric Blake  <ebb9@byu.net>
53291
53292         Make gnulib-cache.m4 easier to diff.
53293         * gnulib-tool (func_import): Allow newlines when reading cached
53294         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53295
53296 2008-06-23  Bruno Haible  <bruno@clisp.org>
53297
53298         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53299         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53300         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53301         m4/signalblocking.m4.
53302         (gl_PREREQ_SIGACTION): Don't invoke it.
53303         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53304         gl_PREREQ_SIG_HANDLER_H.
53305         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53306         Don't check for sigaction here.
53307
53308 2008-06-23  Bruno Haible  <bruno@clisp.org>
53309
53310         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53311         (install_handlers): Don't set the SA_RESETHAND flag.
53312
53313 2008-06-23  Bruno Haible  <bruno@clisp.org>
53314
53315         * m4/sigaction.m4: Comment fixes.
53316         * lib/signal.in.h: Likewise.
53317
53318 2008-06-23  Eric Blake  <ebb9@byu.net>
53319
53320         Fix typo.
53321         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53322
53323         Avoid SA_ namespace.
53324         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53325         Reported by Ralf Wildenhues.
53326
53327         Avoid test failure due to SA_RESTORER.
53328         * tests/test-sigaction.c (SA_MASK): New macro.
53329         (main): Avoid failing due to extension flags being set.
53330         Reported by Jim Meyering.
53331
53332         Revert use of sig-handler.h in sigprocmask.c.
53333         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53334         it requires the existence of struct sigaction.
53335         * lib/sigprocmask.c (handler_t): Restore typedef.
53336         (rpl_signal, old_handlers): Use local type.
53337
53338 2008-06-22  Bruno Haible  <bruno@clisp.org>
53339
53340         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53341         conditionally.
53342         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53343
53344 2008-06-22  Bruno Haible  <bruno@clisp.org>
53345
53346         * doc/posix-functions/siginterrupt.texi: Move note.
53347
53348         * lib/signal.in.h (SA_RESTART): New macro.
53349         * lib/sigaction.c: Update comment.
53350
53351         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53352
53353         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53354         (gl_PREREQ_SIGPROCMASK): Invoke it.
53355         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53356
53357         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53358
53359         * lib/sigprocmask.c: Update a comment.
53360
53361 2008-06-21  Eric Blake  <ebb9@byu.net>
53362
53363         Use sigaction module rather than signal().
53364         * modules/c-stack (Depends-on): Add sigaction.
53365         * modules/fatal-signal (Depends-on): Likewise.
53366         * modules/nanosleep (Depends-on): Likewise.
53367         * modules/sigprocmask (Files): Add sig-handler.h.
53368         * modules/sigaction (Files): Likewise.
53369         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53370         Eggert.
53371         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53372         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53373         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53374         (init_fatal_signals): Likewise.
53375         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53376         (siginterrupt): Delete fallback.
53377         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53378         instead.
53379         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53380         siginterrupt.
53381
53382         New module sigaction, for mingw.
53383         * modules/sigaction: New module...
53384         * modules/sigaction-tests: ...and its test.
53385         * m4/sigaction.m4: New file.
53386         * lib/sigaction.c: Likewise.
53387         * tests/test-sigaction.c: Likewise.
53388         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53389         * modules/signal (Makefile.am): Likewise.
53390         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53391         needed.
53392         * doc/posix-headers/signal.texi (signal.h): Mention provided
53393         types.
53394         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53395         that sigaction is preferable.
53396         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53397         module.
53398         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53399         sigaction.
53400
53401         Improve robustness of sigprocmask by overriding signal.
53402         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53403         is in use.
53404         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53405         (SIGKILL, SIGSTOP): Provide fallbacks.
53406         (rpl_signal): Implement.
53407         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53408         signal can be called inside handlers.
53409
53410         Fix nanosleep module on mingw.
53411         * modules/nanosleep (Depends-on): Add sys_select.
53412         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53413
53414         Fix licensing of sigprocmask.
53415         * modules/raise (License): Relicense as LGPL.
53416
53417 2008-06-21  Bruno Haible  <bruno@clisp.org>
53418
53419         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53420         result if it contains question marks.
53421         Reported by Michael Geng <linux@michaelgeng.de>.
53422
53423 2008-06-19  Bruno Haible  <bruno@clisp.org>
53424
53425         Fix CVS-ism.
53426         * doc/gnulib.texi: Include updated-stamp.texi.
53427         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53428         (updated-stamp.texi): New rule.
53429         (gnulib.info): Depend on it.
53430         * doc/.gitignore: Add updated-stamp.texi.
53431         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53432
53433 2008-06-19  Bruno Haible  <bruno@clisp.org>
53434
53435         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53436         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53437
53438 2008-06-19  Eric Blake  <ebb9@byu.net>
53439
53440         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53441         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53442         Reported by Stepan Kasal.
53443
53444 2008-06-18  Bruno Haible  <bruno@clisp.org>
53445
53446         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53447         Reported by Eric Blake.
53448
53449 2008-06-18  Eric Blake  <ebb9@byu.net>
53450
53451         Work around cygwin 1.5.25 strsignal bug.
53452         * tests/test-strsignal.c: Allow for const char *.
53453         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53454
53455 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53456
53457         * users.txt: Update URL to article and add author/date
53458         information.
53459
53460 2008-06-17  Bruno Haible  <bruno@clisp.org>
53461
53462         New macro gl_DISABLE_THREADS.
53463         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53464         if the user did not pass --enable-threads or --disable-threads option.
53465         (gl_DISABLE_THREADS): New macro.
53466         Reported by Eric Blake <ebb9@byu.net>.
53467
53468 2008-06-17  Bruno Haible  <bruno@clisp.org>
53469
53470         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53471         when the macro ignores it.
53472         Based on a patch by Eric Blake <ebb9@byu.net>.
53473
53474 2008-06-17  Bruno Haible  <bruno@clisp.org>
53475
53476         * modules/tls (License): Change to LGPLv2+.
53477         Reported by Eric Blake.
53478
53479 2008-06-17  Eric Blake  <ebb9@byu.net>
53480
53481         Simplify c-stack prerequisites.
53482         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53483         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53484         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53485         check.
53486         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53487         <sys/resource.h>.
53488
53489         Move c-stack test into testsuite.
53490         * modules/c-stack-tests: New file.
53491         * lib/c-stack.c [DEBUG]: Move test program...
53492         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53493         fail test if sigaltstack is lacking.
53494         * tests/test-c-stack.sh: New driver file.
53495
53496 2008-06-16  Eric Blake  <ebb9@byu.net>
53497
53498         Use raise module consistently.
53499         * modules/fatal-signal (Depends-on): Add raise.
53500         * modules/sigprocmask (Depends-on): Likewise.
53501         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53502         * lib/sigprocmask.c (sigprocmask): Likewise.
53503         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53504         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53505
53506         Fix compliance bug in sigpending.
53507         * lib/sigprocmask.c (sigpending): Return pending array via
53508         parameter, not return value.
53509
53510 2008-06-14  Eric Blake  <ebb9@byu.net>
53511
53512         Improve obstack-printf test code.
53513         * tests/test-obstack-printf.c (test_function): Fix comment, and
53514         simplify usage of obstack_* in macros.  Add a test for coverage.
53515         Reported by Bruno Haible.
53516
53517 2008-06-14  Bruno Haible  <bruno@clisp.org>
53518
53519         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53520         array size as a constant, not as a const variable.
53521         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53522         AC_USE_SYSTEM_EXTENSIONS.
53523         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53524         Test whether the obstack_printf function actually exists.
53525         * modules/obstack-printf (Depends-on): Add extensions.
53526         (Include): Remove obstack.h.
53527         * modules/obstack-printf-posix (Depends-on): Add extensions.
53528         (Include): Remove obstack.h.
53529
53530 2008-06-13  Eric Blake  <ebb9@byu.net>
53531
53532         Add obstack-printf and obstack-printf-posix modules.
53533         * modules/obstack-printf: New file.
53534         * modules/obstack-printf-posix: Likewise.
53535         * MODULES.html.sh (Misc): Mention them.
53536         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53537         Likewise.
53538         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53539         Likewise.
53540         * modules/stdio (Makefile.am): Accomodate new modules.
53541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53542         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53543         Declare.
53544         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53545         functions.
53546         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53547         (gl_REPLACE_OBSTACK_PRINTF): New macros
53548         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53549         * tests/test-obstack-printf.c: New file.
53550         * modules/obstack-printf-tests: Likewise.
53551         * modules/obstack-printf-posix-tests: Likewise.
53552
53553 2008-06-11  Bruno Haible  <bruno@clisp.org>
53554
53555         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53556         * lib/open.c: Include errno.h.
53557         (open): Fail when attempting to write to a file that has a trailing
53558         slash.
53559         * tests/test-open.c (main): Test against trailing slash bug.
53560         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53561
53562 2008-06-10  Bruno Haible  <bruno@clisp.org>
53563
53564         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53565         for $? to work inside the trap command, with various /bin/sh-s.
53566         * tests/test-vc-list-files-cvs.sh: Likewise.
53567
53568 2008-06-10  Bruno Haible  <bruno@clisp.org>
53569
53570         * lib/acl-internal.h: Don't include gettext.h here.
53571         * lib/set-mode-acl.c: Include gettext.h here.
53572         * lib/copy-acl.c: Likewise.
53573
53574 2008-06-10  Bruno Haible  <bruno@clisp.org>
53575
53576         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53577         * lib/wait-process.c (wait_subprocess): Likewise.
53578         * lib/execute.h (execute): Add termsigp argument.
53579         * lib/execute.c (execute): Likewise.
53580         * lib/csharpcomp.c (compile_csharp_using_pnet,
53581         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53582         * lib/csharpexec.c (execute_csharp_using_pnet,
53583         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53584         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53585         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53586         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53587         is_jikes_present): Update.
53588         * lib/javaexec.c (execute_java_class): Update.
53589         * lib/javaversion.c (execute_and_read_line): Update.
53590         * NEWS: Document the changes.
53591         Reported by Eric Blake.
53592
53593 2008-06-10  Eric Blake  <ebb9@byu.net>
53594
53595         Add missing include.
53596         * tests/test-strstr.c (includes): Add <signal.h>.
53597         * tests/test-strcasestr.c (includes): Likewise.
53598         * tests/test-memmem.c (includes): Likewise.
53599
53600 2008-06-10  Bruno Haible  <bruno@clisp.org>
53601
53602         * lib/wait-process.c (wait_subprocess): Add an assertion.
53603
53604 2008-06-10  Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53607
53608 2008-06-10  Bruno Haible  <bruno@clisp.org>
53609
53610         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53611         using alarm().
53612         * tests/test-strcasestr.c (main): Likewise.
53613         * tests/test-strstr.c (main): Likewise.
53614
53615 2008-06-09  Bruno Haible  <bruno@clisp.org>
53616
53617         Work around the Solaris 10 ACE ACLs ABI change.
53618         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53619         declare if ACL_NO_TRIVIAL is present.
53620         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53621         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53622         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53623         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53624         define if ACL_NO_TRIVIAL is present.
53625         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53626         and use the current ABI.
53627         (file_has_acl): Use same #if condition as elsewhere.
53628         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53629         in use, and use the current ABI.
53630         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53631         Reported by Jim Meyering.
53632
53633 2008-06-09  Eric Blake  <ebb9@byu.net>
53634
53635         Work around environments that (stupidly) ignore SIGALRM.
53636         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53637         before using alarm().
53638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53639         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53640         Reported by Ian Beckwith <ianb@erislabs.net>.
53641
53642         Produce autobuild blurb earlier in log.
53643         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53644
53645 2008-06-09  Jim Meyering  <meyering@redhat.com>
53646         and OndÅ™ej Vašík  <ovasik@redhat.com>
53647
53648         utimens.c: correct kernel bug work-around
53649         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53650         failure, not success, and the kernel bug we're trying to work
53651         around affects not just the utimensat call, but also the fallback
53652         futimens call.
53653         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53654         not success.
53655         [HAVE_FUTIMENS]: Use the same work-around, here.
53656
53657 2008-06-09  Jim Meyering  <meyering@redhat.com>
53658
53659         add more guards around definition of ACE_-related code
53660         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53661         ALLOW and ACE_OWNER are also defined.
53662
53663 2008-06-08  Bruno Haible  <bruno@clisp.org>
53664
53665         * lib/acl-internal.h: Add me as co-author.
53666         * lib/file-has-acl.c: Likewise.
53667         * lib/set-mode-acl.c: Likewise.
53668         * lib/copy-acl.c: Likewise.
53669
53670 2008-06-08  Bruno Haible  <bruno@clisp.org>
53671
53672         Add support for AIX ACLs.
53673         * lib/acl-internal.h (acl_nontrivial): New declaration.
53674         * lib/file-has-acl.c (acl_nontrivial): New function.
53675         (file_has_acl): Add implementation using AIX 4 ACL API.
53676         * lib/set-mode-acl.c (qset_acl): Likewise.
53677         * lib/copy-acl.c (qcopy_acl): Likewise.
53678
53679 2008-06-08  Bruno Haible  <bruno@clisp.org>
53680
53681         Add support for HP-UX ACLs.
53682         * lib/acl-internal.h (acl_nontrivial): New declaration.
53683         * lib/file-has-acl.c (acl_nontrivial): New function.
53684         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53685         * lib/set-mode-acl.c (qset_acl): Likewise.
53686         * lib/copy-acl.c (qcopy_acl): Likewise.
53687
53688 2008-06-08  Bruno Haible  <bruno@clisp.org>
53689
53690         Add support for Cygwin ACLs.
53691         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53692         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53693         the chmod_or_fchmod call.
53694         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53695
53696 2008-06-08  Bruno Haible  <bruno@clisp.org>
53697
53698         Fix bug with setuid modes in Solaris 10+ code.
53699         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53700         succeeded, when the mode contains some special bits.
53701
53702 2008-06-08  Bruno Haible  <bruno@clisp.org>
53703
53704         Add support for Solaris 7..10 ACLs.
53705         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53706         declarations.
53707         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53708         functions.
53709         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53710         * lib/set-mode-acl.c (qset_acl): Likewise.
53711         * lib/copy-acl.c (qcopy_acl): Likewise.
53712
53713 2008-06-08  Bruno Haible  <bruno@clisp.org>
53714
53715         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53716         declaration.
53717         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53718         (acl_access_nontrivial): Remove MacOS X case.
53719         (file_has_acl): Use acl_extended_nontrivial.
53720         * lib/copy-acl.c (qcopy_acl): Likewise.
53721
53722 2008-06-08  Bruno Haible  <bruno@clisp.org>
53723
53724         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53725
53726 2008-06-08  Jim Meyering  <meyering@redhat.com>
53727
53728         * modules/acl (Maintainer): Add Bruno Haible.
53729
53730 2008-06-07  Bruno Haible  <bruno@clisp.org>
53731
53732         Improve support for Tru64 ACLs.
53733         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53734         ACL on OSF/1.
53735
53736 2008-06-07  Bruno Haible  <bruno@clisp.org>
53737
53738         Add support for MacOS X ACLs.
53739         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53740         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53741         * lib/set-mode-acl.c (qset_acl): Likewise.
53742         * lib/copy-acl.c (qcopy_acl): Likewise.
53743
53744 2008-06-07  Bruno Haible  <bruno@clisp.org>
53745
53746         Fix memory leak introduced on 2008-05-22.
53747         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53748         use.
53749
53750 2008-06-07  Bruno Haible  <bruno@clisp.org>
53751
53752         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53753         to construct an empty ACL.
53754
53755 2008-06-07  Bruno Haible  <bruno@clisp.org>
53756
53757         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53758         precisely.
53759         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53760
53761 2008-06-07  Bruno Haible  <bruno@clisp.org>
53762
53763         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53764         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53765
53766 2008-06-07  Bruno Haible  <bruno@clisp.org>
53767
53768         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53769         regardless of POSIX.
53770         * doc/posix-functions/_longjmp.texi: Likewise.
53771         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53772         SystemV platform in this case.
53773
53774 2008-06-06  Eric Blake  <ebb9@byu.net>
53775
53776         Document abort() bugs.
53777         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53778
53779         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53780         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53781         sigsetjmp.
53782         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53783         siglongjmp, but only as a macro.
53784         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53785         is obsolete.
53786         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53787
53788         Tweak documentation to cover cygwin argz bugs.
53789         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53790         argz bug fix; no code change needed since no cygwin releases
53791         occurred between the last fix and the bug being tested.
53792         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53793         module and recently fixed cygwin bugs.
53794         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53795         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53796         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53797         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53798         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53799         Likewise.
53800         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53801         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53802         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53803         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53804         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53805         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53806         Likewise.
53807
53808         Avoid gcc warning on cygwin.
53809         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53810         !ACL_NO_TRIVIAL]: Avoid unused variable.
53811
53812 2008-06-05  Eric Blake  <ebb9@byu.net>
53813
53814         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53815         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53816         git-version-gen fails to come up with a version.
53817         Reported by Simon Josefsson.
53818
53819 2008-06-05  Jim Meyering  <meyering@redhat.com>
53820             Paul Eggert  <eggert@cs.ucla.edu>
53821
53822         utimens.c: work around a probable Linux kernel bug
53823         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53824         appears to be a kernel bug that causes utimensat to return 280
53825         instead of 0, indicating success.
53826
53827 2008-06-04  Bruno Haible  <bruno@clisp.org>
53828
53829         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
53830         2008-06-01 commit.
53831
53832 2008-06-04  Bruno Haible  <bruno@clisp.org>
53833
53834         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
53835         * lib/file-has-acl.c (acl_access_nontrivial): New function.
53836         (file_has_acl): Use it. Save errno afterwards.
53837         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
53838
53839 2008-06-03  Bruno Haible  <bruno@clisp.org>
53840
53841         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
53842         draft code. Simplify #ifs.
53843         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
53844         Put Solaris code after POSIX-draft code. Fix comments regarding
53845         Solaris 10, HP-UX. Mention Cygwin.
53846         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
53847
53848 2008-06-03  Eric Blake  <ebb9@byu.net>
53849
53850         Provide fallback for older kernels.
53851         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
53852         Provide runtime fallback if kernel lacks support.
53853         Reported by Mike Frysinger.
53854
53855 2008-06-02  Bruno Haible  <bruno@clisp.org>
53856
53857         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
53858         it exists.
53859
53860 2008-06-02  Bruno Haible  <bruno@clisp.org>
53861
53862         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
53863         * lib/copy-acl.c (qcopy_acl): Update comment.
53864
53865 2008-06-02  Bruno Haible  <bruno@clisp.org>
53866
53867         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
53868         like ACL APIs.
53869
53870 2008-06-02  Bruno Haible  <bruno@clisp.org>
53871
53872         * tests/test-file-has-acl.sh: Use different code for Cygwin.
53873         * tests/test-set-mode-acl.sh: Likewise.
53874         * tests/test-copy-acl.sh: Likewise.
53875         * tests/test-copy-file.sh: Likewise.
53876
53877 2008-06-02  Bruno Haible  <bruno@clisp.org>
53878
53879         * tests/test-file-has-acl.sh: Remove unused code.
53880
53881 2008-06-01  Bruno Haible  <bruno@clisp.org>
53882
53883         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
53884         (copy_acl): Just a wrapper around qcopy_acl that emits the error
53885         messages.
53886         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
53887
53888 2008-06-01  Bruno Haible  <bruno@clisp.org>
53889
53890         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
53891         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
53892         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
53893         APIs.
53894         * modules/acl-tests (configure.ac): Remove tests now contained in
53895         m4/acl.m4.
53896
53897 2008-06-02  Jim Meyering  <meyering@redhat.com>
53898
53899         announce-gen: use a better key-server host name
53900         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
53901         it may be more consistently reliable.  Suggested by Werner Koch
53902         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
53903
53904 2008-06-01  Bruno Haible  <bruno@clisp.org>
53905
53906         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
53907         Reported by Voroskoi Andras <voroskoi@gmail.com>.
53908
53909 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
53910
53911         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
53912
53913 2008-06-01  Bruno Haible  <bruno@clisp.org>
53914
53915         New ACL tests.
53916         * tests/test-file-has-acl.sh: New file.
53917         * tests/test-file-has-acl.c: New file.
53918         * tests/test-set-mode-acl.sh: New file.
53919         * tests/test-set-mode-acl.c: New file.
53920         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
53921         * tests/test-copy-acl.c: New file.
53922         * modules/acl-tests: New file, based on modules/copy-file-tests.
53923         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
53924         (Depends-on): Add acl-tests.
53925         (configure.ac): Remove checks.
53926         (Makefile.am): Don't create test-sameacls program here any more.
53927
53928 2008-06-01  Bruno Haible  <bruno@clisp.org>
53929
53930         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
53931         * tests/test-sameacls.c: Include progname.h.
53932         (main): Invoke set_program_name. Portability fixes for MacOS X,
53933         Solaris, HP-UX.
53934
53935 2008-06-01  Bruno Haible  <bruno@clisp.org>
53936
53937         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
53938         function.
53939         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
53940
53941 2008-06-01  Bruno Haible  <bruno@clisp.org>
53942
53943         * modules/rpmatch (Depends-on): Add strdup.
53944
53945 2008-06-01  Bruno Haible  <bruno@clisp.org>
53946
53947         * lib/pipe.c: Include unistd-safer.h.
53948         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
53949         * modules/pipe (Depends-on): Add unistd-safer.
53950
53951 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53952
53953         * modules/autobuild (configure.ac): Call AB_INIT.
53954
53955 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53956
53957         * tests/test-getaddrinfo.c: Don't print debug messages by default.
53958         Suggested by Bruno Haible <bruno@clisp.org>.
53959
53960 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53961
53962         * tests/test-base64.c: Cast size_t to unsigned long when invoking
53963         printf.  Use %lu instead of %d.  Reported by Bruno Haible
53964         <bruno@clisp.org>.
53965
53966 2008-05-29  Eric Blake  <ebb9@byu.net>
53967
53968         Prefer new POSIX 200x interfaces over futimesat.
53969         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
53970         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
53971         when available.
53972         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
53973
53974 2008-05-28  Bruno Haible  <bruno@clisp.org>
53975
53976         * modules/stpcpy (License): Change to LGPLv2+.
53977         Requested by David Lutterkort <dlutter@redhat.com>.
53978
53979 2008-05-27  Bruno Haible  <bruno@clisp.org>
53980
53981         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
53982         current mingw.
53983         Reported by Jose E. Marchesi <jemarch@gnu.org>.
53984
53985 2008-05-27  Bruno Haible  <bruno@clisp.org>
53986
53987         * modules/iconv_open (Link): New section, from module 'iconv'.
53988         * modules/striconv (Link): Likewise.
53989         * modules/striconveh (Link): Likewise.
53990         * modules/xstriconv (Link): Likewise.
53991         * modules/unicodeio (Link): Likewise.
53992         * modules/propername (Link): Likewise.
53993         Reported by Jim Meyering.
53994
53995 2008-05-26  Jim Meyering  <meyering@redhat.com>
53996
53997         sha256: do not artificially restrict buffer length to be < 2^32
53998         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
53999         uint32_t to size_t.
54000         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54001         to match.
54002
54003         avoid unaligned access errors, e.g., on sparc
54004         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54005         direct access through a possibly-unaligned uint64* pointer.
54006         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54007         direct access through a possibly-unaligned uint32* pointer.
54008         Prompted by this patch from Tom "spot" Callaway:
54009         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54010
54011         sha512.c: fix typo in comment
54012         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54013
54014 2008-05-25  Bruno Haible  <bruno@clisp.org>
54015
54016         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54017         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54018         (Makefile.am): Update lib_SOURCES.
54019
54020 2008-05-25  Bruno Haible  <bruno@clisp.org>
54021
54022         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54023
54024 2008-05-25  Jim Meyering  <meyering@redhat.com>
54025
54026         useless-if-before-free: freed expr may have white-space differences
54027         * build-aux/useless-if-before-free: Recognize cases in which the
54028         freed expression differs from the tested one in embedded white
54029         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54030         $1 was used, so we can't make any regexp shy.  Improved tests now
54031         detect this.
54032
54033         useless-if-before-free: accept white space in the expression.
54034         * build-aux/useless-if-before-free: For now, any white space
54035         in the expression must be identical in the free argument.
54036
54037         useless-if-before-free: efficiency tweak
54038         * build-aux/useless-if-before-free: Make the expression-matching
54039         regexp "shy".
54040         Make the *outer* regexp shy, not the expr-matching one.
54041
54042         update code-in-comment to accept cast of free arg
54043         * build-aux/useless-if-before-free: Update regexp.
54044
54045 2008-05-25  Bruno Haible  <bruno@clisp.org>
54046
54047         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54048         * modules/copy-file-tests (Files, Makefile.am): Update.
54049         * tests/test-copy-file.c (func_test_copy): Update.
54050
54051 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54052
54053         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54054
54055 2008-05-23  Bruno Haible  <bruno@clisp.org>
54056
54057         Improve support for ACLs on OSF/1.
54058         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54059         Remove fallback for unknown flavors of ACLs.
54060
54061 2008-05-22  Bruno Haible  <bruno@clisp.org>
54062
54063         Add support for ACLs on OSF/1.
54064         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54065         replacements.
54066         (acl_free_text): New macro fallback.
54067         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54068         acl_free.
54069         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54070         acl_free_text function. Require AC_C_INLINE.
54071
54072 2008-05-22  Bruno Haible  <bruno@clisp.org>
54073
54074         Make copy_acl work on MacOS X 10.5.
54075         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54076         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54077         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54078         If MODE_INSIDE_ACL, don't assume that every system has the same text
54079         representation for ACLs as FreeBSD.
54080         * lib/copy-acl.c (copy_acl): Add support for platforms with
54081         !MODE_INSIDE_ACL.
54082         * lib/file-has-acl.c (file_has_acl): Likewise.
54083         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54084         FreeBSD, MacOS X, or IRIX, respectively.
54085
54086 2008-05-22  Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/acl.h: Don't include <sys/acl.h>.
54089         (GETACLCNT): Move fallback to lib/acl-internal.h.
54090         * lib/acl-internal.h: Include <sys/acl.h> here.
54091         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54092
54093 2008-05-22  Bruno Haible  <bruno@clisp.org>
54094
54095         Split off copy_acl function to separate file.
54096         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54097         * lib/acl.c (copy_acl): Moved function to separate file.
54098         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54099         * modules/acl (Files): Add lib/copy-acl.c.
54100         (Makefiles.am): Augment lib_SOURCES.
54101
54102 2008-05-22  Bruno Haible  <bruno@clisp.org>
54103
54104         * modules/copy-file-tests: New file.
54105         * tests/test-copy-file.sh: New file.
54106         * tests/test-copy-file.c: New file.
54107         * tests/test-copy-file-sameacls.c: New file.
54108
54109 2008-05-22  Eric Blake  <ebb9@byu.net>
54110
54111         Avoid gcc warning.
54112         * tests/test-memcmp.c (main): Pass NULL indirectly.
54113
54114 2008-05-21  Bruno Haible  <bruno@clisp.org>
54115
54116         Add reference doc about ACLs.
54117         * doc/acl-resources.txt: New file.
54118         * doc/acl-cygwin.txt: New file.
54119
54120 2008-05-21  Bruno Haible  <bruno@clisp.org>
54121
54122         Avoid one more warning from gcc.
54123         * lib/vasnprintf.c (IF_LINT): Update comments.
54124         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54125
54126 2008-05-21  Jim Meyering  <meyering@redhat.com>
54127
54128         avoid a warning from gcc
54129         * lib/vasnprintf.c (IF_LINT): Define.
54130         (scale10_round_decimal_long_double):
54131         Use it to avoid a "may be used uninitialized" warning.
54132         (scale10_round_decimal_double): Likewise.
54133
54134 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54135
54136         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54137         declared.
54138
54139 2008-05-20  Bruno Haible  <bruno@clisp.org>
54140
54141         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54142         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54143
54144 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54145
54146         * modules/memcmp-tests: New file.
54147         * tests/test-memcmp.c: New file.
54148
54149 2008-05-19  Bruno Haible  <bruno@clisp.org>
54150
54151         * modules/propername (Notice, configure.ac): Put quoted "..." into
54152         --keyword option.
54153         * lib/propername.h: Update comments accordingly.
54154         Reported by Eric Blake.
54155
54156 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54157
54158         * modules/getpass-gnu (Depends-on): Add fseeko.
54159
54160 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54161
54162         * modules/base64-tests: New file.
54163
54164 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54165
54166         * lib/base64.c (base64_decode_ctx): If a decode context structure
54167         was passed in use it to ignore newlines.  If a context structure
54168         was _not_ passed in, continue to treat newlines as garbage (this
54169         is the historical behavior).  Formerly base64_decode.
54170         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54171         takes a decode context structure.
54172         * lib/base64.h (base64_decode): Macro for four-argument calls.
54173         (base64_decode_alloc): Likewise.
54174         * lib/base64.c (base64_decode_ctx): If a decode context structure
54175         was passed in use it to ignore newlines.  If a context structure
54176         was _not_ passed in, continue to treat newlines as garbage (this
54177         is the historical behavior).  Formerly base64_decode.
54178         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54179         takes a decode context structure.
54180         * lib/base64.h (base64_decode): Macro for four-argument calls.
54181         (base64_decode_alloc): Likewise.
54182
54183 2008-05-19  Jim Meyering  <meyering@redhat.com>
54184
54185         avoid a warning from gcc
54186         * lib/trim.c (IF_LINT): Define.
54187         (trim2): Use it to avoid a "may be used uninitialized" warning.
54188
54189         Fix doc typo.
54190         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54191
54192 2008-05-19  Bruno Haible  <bruno@clisp.org>
54193
54194         * doc/glibc-functions/getpass.texi: Document limits of other
54195         implementations.
54196
54197 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54198             Bruno Haible <bruno@clisp.org>
54199
54200         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54201
54202 2008-05-18  Bruno Haible  <bruno@clisp.org>
54203
54204         * modules/propername: New file, from GNU gettext.
54205         * lib/propername.h: New file, from GNU gettext.
54206         * lib/propername.c: New file, from GNU gettext.
54207         * MODULES.html.sh (Internationalization functions): Add propername.
54208
54209 2008-05-16  Jim Meyering  <meyering@redhat.com>
54210             Bruno Haible  <bruno@clisp.org>
54211
54212         Avoid some warnings from "gcc -Wshadow".
54213         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54214
54215 2008-05-15  Eric Blake  <ebb9@byu.net>
54216
54217         Extend previous patch to cygwin 1.7.0.
54218         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54219         fast implementation in cygwin >= 1.7.0.
54220         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54222
54223 2008-05-15  Bruno Haible  <bruno@clisp.org>
54224
54225         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54226         implementation in glibc >= 2.9.
54227         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54228         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54229
54230 2008-05-15  Bruno Haible  <bruno@clisp.org>
54231
54232         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54233         (Unicode string functions): Add unilbrk/*.
54234         Reported by Karl Berry.
54235
54236 2008-05-15  Eric Blake  <ebb9@byu.net>
54237
54238         Fix violation of <stdbool.h> replacement in regex.
54239         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54240         * lib/regexec.c (re_search_internal): Likewise.
54241         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54242
54243 2008-05-15  Jim Meyering  <meyering@redhat.com>
54244
54245         avoid distracting test output when git or cvs is not found
54246         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54247         * tests/test-vc-list-files-git.sh: Likewise.
54248
54249 2008-05-15  Eric Blake  <ebb9@byu.net>
54250
54251         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54252         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54253         glibc version.
54254         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54255         * doc/posix-functions/strstr.texi (strstr): Likewise.
54256         * lib/str-two-way.h (MAX): Sychronize with glibc.
54257
54258 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54259
54260         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54261         opr.ctx_type.
54262         (calc_first): Initialize constraint field.
54263         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54264         Fix grammar.
54265         (duplicate_node): Merge constraint field for all node types.
54266         (calc_eclosure_iter): Look at constraint field for all node types.
54267         * lib/regex_internal.c (create_cd_newstate): Don't look at
54268         opr.ctx_type.
54269
54270 2008-05-14  Bruno Haible  <bruno@clisp.org>
54271
54272         Help GCC to do better code generation.
54273         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54274         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54275         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54276         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54277         Declare with attribute 'malloc' if supported.
54278
54279 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54280
54281         use "echo STR|wc -c" rather than unportable "expr length STR"
54282         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54283         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54284
54285 2008-05-14  Jim Meyering  <meyering@redhat.com>
54286
54287         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54288         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54289         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54290         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54291         via Collin Lasse.
54292
54293 2008-05-14  Eric Blake  <ebb9@byu.net>
54294
54295         Avoid quadratic growth in gl_LIBSOURCES.
54296         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54297         Suggested by Bruno Haible.
54298
54299         Test xmemdup0.
54300         * modules/xmemdup0-tests: New file.
54301         * tests/test-xmemdup0.c: Likewise.
54302
54303 2008-05-13  Eric Blake  <ebb9@byu.net>
54304
54305         Split xmemdup0 into its own module.
54306         * modules/xmemdup0: New file.
54307         * lib/xmemdup0.h: Likewise.
54308         * lib/xmemdup0.c: Likewise.
54309         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54310         * lib/xalloc.h (xmemdup0): Remove.
54311         * lib/xmalloc.c (xmemdup0): Likewise.
54312
54313 2008-05-13  Eric Blake  <ebb9@byu.net>
54314             Bruno Haible  <bruno@clisp.org>
54315
54316         Reduce number of forks required during autoconf.
54317         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54318         and gl_LIBSOURCES_DIR.
54319         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54320         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54321         m4_syscmd per file.
54322         <m4_foreach_w>: Move...
54323         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54324
54325 2008-05-13  Eric Blake  <ebb9@byu.net>
54326
54327         * gnulib-tool: Fix various comment typos.
54328
54329 2008-05-12  Bruno Haible  <bruno@clisp.org>
54330
54331         Tailor the linebreaking algorithm.
54332         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54333
54334 2008-05-12  Bruno Haible  <bruno@clisp.org>
54335
54336         Update to Unicode 5.0.0.
54337         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54338         LBP_JV, LBP_JT. Redistribute values.
54339         (unilbrk_table): Change size.
54340         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54341         Unicode TR#14 rev. 22.
54342         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54343         LBP_JV, LBP_JT. Redistribute values.
54344         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54345         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54346         Update.
54347         * lib/unilbrk/lbrkprop1.h: Regenerated.
54348         * lib/unilbrk/lbrkprop2.h: Regenerated.
54349         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54350         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54351         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54352         Likewise.
54353         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54354         Likewise.
54355         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54356         result.
54357         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54358         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54359         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54360         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54361         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54362         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54363
54364 2008-05-11  Bruno Haible  <bruno@clisp.org>
54365
54366         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54367
54368 2008-05-11  Bruno Haible  <bruno@clisp.org>
54369
54370         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54371         * modules/unilbrk/gen-lbrk: New file.
54372
54373 2008-05-11  Bruno Haible  <bruno@clisp.org>
54374
54375         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54376         * m4/sha512.m4 (gl_SHA512): Likewise.
54377
54378 2008-05-11  Jim Meyering  <meyering@redhat.com>
54379
54380         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54381         * modules/crypto/sha256: New file.
54382         * modules/crypto/sha512: Likewise.
54383         * lib/sha256.c: Likewise.
54384         * lib/sha256.h: Likewise.
54385         * lib/sha512.c: Likewise.
54386         * lib/sha512.h: Likewise.
54387         * lib/u64.h: Likewise.
54388         * m4/sha256.m4: Likewise.
54389         * m4/sha512.m4: Likewise.
54390         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54391
54392 2008-05-10  Bruno Haible  <bruno@clisp.org>
54393
54394         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54395         (Input/Output <stdio.h>): Add xprintf.
54396         (Signal handling <signal.h>): Add strsignal.
54397         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54398         (Core language properties): Add func.
54399         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54400         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54401         strings.
54402         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54403         (Input/output): New section.
54404         (File system functions): Add openat-die, stat-macros.
54405         (Networking functions): Add sockets.
54406         (Unicode string functions): Add unictype/*.
54407         (Support for building libraries and executables): Add gperf.
54408         (Support for building documentation): Add agpl-3.0.
54409         (Misc): Add nocrash.
54410
54411 2008-05-10  Bruno Haible  <bruno@clisp.org>
54412
54413         * modules/unictype/gen-ctype: New file.
54414
54415 2008-05-10  Jim Meyering  <meyering@redhat.com>
54416
54417         Make chdir-safer.c more efficient on a system with no symlinks.
54418         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54419         also if ELOOP is zero.  Suggested by Bruno Haible.
54420
54421         Make chdir-safer.c slightly safer.
54422         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54423         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54424
54425         Avoid compile failure on systems without ELOOP (like mingw).
54426         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54427         Reported by Bruno Haible.
54428
54429 2008-05-10  Bruno Haible  <bruno@clisp.org>
54430
54431         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54432         (is_utf8_encoding): Use a case-insensitive comparison.
54433         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54434         streq.
54435
54436 2008-05-10  Bruno Haible  <bruno@clisp.org>
54437
54438         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54439         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54440         * lib/unilbrk/ulc-common.h (iconv_string_length,
54441         iconv_string_keeping_offsets): Remove declarations.
54442         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54443         Don't include <iconv.h>, streq.h, xsize.h.
54444         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54445         conversion.
54446         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54447         <iconv.h>, streq.h, xsize.h.
54448         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54449         conversion.
54450         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54451         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54452         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54453         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54454
54455 2008-05-10  Bruno Haible  <bruno@clisp.org>
54456
54457         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54458         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54459
54460         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54461         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54462
54463         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54464         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54465
54466         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54467         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54468
54469         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54470         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54471
54472         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54473         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54474
54475         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54476         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54477
54478         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54479         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54480
54481 2008-05-10  Bruno Haible  <bruno@clisp.org>
54482
54483         Split up 'linebreak' module.
54484         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54485         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54486         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54487         modifications.
54488         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54489         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54490         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54491         lib/linebreak.c.
54492         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54493         lib/linebreak.c.
54494         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54495         lib/linebreak.c.
54496         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54497         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54498         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54499         lib/linebreak.c.
54500         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54501         lib/linebreak.c.
54502         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54503         lib/linebreak.c.
54504         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54505         lib/linebreak.c.
54506         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54507         lib/linebreak.c.
54508         * modules/unilbrk/base: New file.
54509         * modules/unilbrk/tables: New file.
54510         * modules/unilbrk/u8-possible-linebreaks: New file.
54511         * modules/unilbrk/u16-possible-linebreaks: New file.
54512         * modules/unilbrk/u32-possible-linebreaks: New file.
54513         * modules/unilbrk/ulc-common: New file.
54514         * modules/unilbrk/ulc-possible-linebreaks: New file.
54515         * modules/unilbrk/u8-width-linebreaks: New file.
54516         * modules/unilbrk/u16-width-linebreaks: New file.
54517         * modules/unilbrk/u32-width-linebreaks: New file.
54518         * modules/unilbrk/ulc-width-linebreaks: New file.
54519         * lib/linebreak.h: Remove file.
54520         * lib/linebreak.c: Remove file.
54521         * m4/linebreak.m4: Remove file.
54522         * modules/linebreak: Remove file.
54523         * NEWS: Mention the changes.
54524
54525 2008-05-09  Eric Blake  <ebb9@byu.net>
54526
54527         Add xmemdup0.
54528         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54529         implementation.
54530         * lib/xmalloc.c (xmemdup0): New C implementation.
54531
54532 2008-05-08  Bruno Haible  <bruno@clisp.org>
54533
54534         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54535
54536 2008-05-07  Eric Blake  <ebb9@byu.net>
54537
54538         Support cross-compilation of <wctype.h>.
54539         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54540         AC_CACHE_CHECK.
54541
54542 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54543
54544         * build-aux/vc-list-files: Add support for bzr.
54545
54546 2008-05-03  Jim Meyering  <meyering@redhat.com>
54547
54548         avoid failed assertion with tight malloc
54549         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54550
54551 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54552
54553         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54554         are needed from arpa/inet.h.
54555         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54556         Reported by Bruno Haible.
54557
54558 2008-05-02  Jim Meyering  <meyering@redhat.com>
54559
54560         avoid compilation error on FreeBSD 6
54561         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54562
54563 2008-05-01  Jim Meyering  <meyering@redhat.com>
54564
54565         useless-if-before-free: correct --help's exit status description
54566         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54567         for one or more matches, etc.  Reported by Bruno Haible.
54568
54569         vc-list-files: make the stand-alone gnulib test work
54570         * modules/vc-list-files-tests (configure.ac):
54571         Define and AC_SUBST abs_aux_dir.
54572         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54573         $(abs_top_srcdir) to each script and having each of them
54574         duplicate the work of setting PATH, set PATH here, using
54575         the new variable, abs_aux_dir instead.
54576         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54577         * tests/test-vc-list-files-git.sh: Likewise.
54578         Reported by Bruno Haible.
54579
54580 2008-05-01  Bruno Haible  <bruno@clisp.org>
54581
54582         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54583         reallocation. Rename 'done' to 'found_delimiter'.
54584
54585 2008-05-01  Jim Meyering  <meyering@redhat.com>
54586
54587         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54588         * build-aux/vc-list-files: Use `...`, not $(...).
54589
54590 2008-04-30  Jim Meyering  <meyering@redhat.com>
54591
54592         add tests for vc-list-files
54593         * modules/vc-list-files-tests: New module.
54594         * tests/test-vc-list-files-cvs.sh: New file.
54595         * tests/test-vc-list-files-git.sh: New file.
54596
54597         avoid a warning from gcc
54598         * lib/getndelim2.c (IF_LINT): Define.
54599         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54600
54601         vc-list-files: work properly with build-aux/cvsu, too
54602         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54603         to all cvs-based clauses.
54604
54605         vc-list-files: work properly in the CVS+awk case, too
54606         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54607
54608         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54609         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54610         take more than one file argument, so .  Add quotes, just in case $dir
54611         ever contains a shell meta-character.  Prompted by Soren Hansen in
54612         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54613
54614 2008-04-29  Eric Blake  <ebb9@byu.net>
54615
54616         Optimize getndelim2 to use block operations when possible.
54617         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54618         freadseek, and memchr2.
54619         * lib/getndelim2.c (getndelim2): Use them for block reads.
54620
54621 2008-04-29  Bruno Haible  <bruno@clisp.org>
54622
54623         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54624         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54625         * modules/inet_ntop (Depends-on): Add extensions.
54626         * modules/inet_pton (Depends-on): Likewise.
54627         Reported by Simon Josefsson.
54628
54629 2008-04-29  Jim Meyering  <meyering@redhat.com>
54630
54631         When the is more than one match in a block, match all of them.
54632         * build-aux/useless-if-before-free: Iterate through each block
54633         until there are no more matches.
54634
54635         Fix broken useless-if-before-free script.
54636         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54637         the expression to match cast of argument to free-like function.
54638
54639 2008-04-29  Eric Blake  <ebb9@byu.net>
54640
54641         Use new header.
54642         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54643
54644 2008-04-29  Jim Meyering  <meyering@redhat.com>
54645
54646         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54647         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54648         by gnulib to exist and to declare e.g., inet_ntop.
54649         Don't include "inet_ntop.h", now removed.
54650
54651         * m4/arpa_inet_h.m4: Remove trailing blanks.
54652
54653 2008-04-29  Eric Blake  <ebb9@byu.net>
54654
54655         Silence valgrind on safe reads beyond potential array bounds.
54656         * lib/rawmemchr.valgrind: New file.
54657         * lib/strchrnul.valgrind: Likewise.
54658         * modules/rawmemchr (Files): Distribute new file.
54659         * modules/strchrnul (Files): Likewise.
54660         Suggested by Bruno Haible.
54661
54662 2008-04-29  Bruno Haible  <bruno@clisp.org>
54663
54664         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54665         (inet_ntop, inet_pton): Change portability warning's wording.
54666         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54667         Invoke gl_CHECK_NEXT_HEADERS.
54668         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54669         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54670         set ARPA_INET_H.
54671         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54672         * modules/arpa_inet (Description): No longer only for systems that
54673         lack it.
54674         (Depends-on): Add include_next.
54675         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54676         HAVE_ARPA_INET_H.
54677
54678 2008-04-29  Jim Meyering  <meyering@redhat.com>
54679
54680         * modules/mkdir (License): Re-license as LGPLv2+.
54681
54682 2008-04-29  Bruno Haible  <bruno@clisp.org>
54683
54684         * modules/rawmemchr (Maintainer): Set to Eric.
54685         * modules/strchrnul (Maintainer): Likewise.
54686
54687 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54688
54689         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54690         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54691
54692         * modules/arpa_inet (arpa/inet.h): Use them.
54693
54694 2008-04-28  Eric Blake  <ebb9@byu.net>
54695
54696         Test getndelim2.
54697         * modules/getndelim2-tests: New file.
54698         * tests/test-getndelim2.c: Likewise.
54699         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54700         stream.
54701         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54702
54703         * MODULES.html.sh: Document new module.
54704
54705 2008-04-20  Bruno Haible  <bruno@clisp.org>
54706
54707         * lib/c-stack.c (die): Use raise.
54708         * modules/c-stack (Depends-on): Add raise.
54709
54710 2008-04-28  Bruno Haible  <bruno@clisp.org>
54711
54712         Expect rpmatch to be declared.
54713         * lib/yesno.c (rpmatch): Remove declaration.
54714
54715         Declare rpmatch.
54716         * lib/stdlib.in.h (rpmatch): New declaration.
54717         * lib/rpmatch.c: Include <stdlib.h> first.
54718         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54719         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54720         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54721         HAVE_RPMATCH.
54722         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54723         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54724         (Include): Set to <stdlib.h>.
54725         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54726         HAVE_RPMATCH.
54727         * NEWS: Document the change.
54728
54729 2008-04-28  Bruno Haible  <bruno@clisp.org>
54730
54731         Change rpmatch to use nl_langinfo when appropriate.
54732         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54733         (N_): New macro.
54734         (localized_pattern): New function/macro.
54735         (try): Remove match, nomatch arguments. Copy the pattern into safe
54736         memory before caching it.
54737         (rpmatch): Use localized_pattern. Add translator comments.
54738         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54739         Suggested by Eric Blake.
54740         * modules/rpmatch (Depends-on): Add stdbool.
54741
54742 2008-04-28  Eric Blake  <ebb9@byu.net>
54743
54744         Add rawmemchr module, matching glibc.
54745         * modules/string (Makefile.am): New indicator.
54746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54747         * lib/string.in.h (rawmemchr): Declare when appropriate.
54748         * modules/rawmemchr: New file.
54749         * m4/rawmemchr.m4: Likewise.
54750         * lib/rawmemchr.c: Likewise.
54751         * modules/rawmemchr-tests: Likewise.
54752         * tests/test-rawmemchr.c: Likewise.
54753         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54754         module.
54755         * modules/strchrnul (Depends-on): Add rawmemchr.
54756         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54757
54758         Whitespace cleanup.
54759         * tests/test-strchrnul.c: Reindent.
54760         * lib/strchrnul.c: Likewise.
54761
54762         Optimize and test strchrnul.
54763         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54764         * modules/strchrnul-tests: New file.
54765         * tests/test-strchrnul.c: Likewise.
54766
54767         Remove intprops dependency.
54768         * modules/memchr (Depends-on): Remove intprops.
54769         * modules/memrchr (Depends-on): Likewise.
54770         * modules/memchr2 (Depends-on): Likewise.
54771         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54772         * lib/memrchr.c (__memrchr): Likewise.
54773         * lib/memrchr2.c (memchr2): Likewise.
54774         Reported by Simon Josefsson.
54775
54776 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54777
54778         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54779         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54780
54781 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54782
54783         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54784
54785         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54786
54787         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54788
54789         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54790         declarations.
54791         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54792
54793         * m4/inet_pton.m4: Don't check for header files.
54794
54795         * m4/inet_ntop.m4: Don't check for header files.
54796
54797 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54798
54799         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54800         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54801         trigger for cygwin).
54802         Reported by Bruno Haible  <bruno@clisp.org>.
54803
54804 2008-04-28  Bruno Haible  <bruno@clisp.org>
54805
54806         * doc/posix-functions/strdup.texi: Mention mingw problem.
54807
54808 2008-04-27  Bruno Haible  <bruno@clisp.org>
54809
54810         * modules/stat-time-tests (Depends-on): Add sleep.
54811         * tests/test-stat-time.c (force_unlink): New function.
54812         (cleanup): Use it.
54813         (test_mtime): Remove the ctime related tests.
54814         (test_ctime): New function, containing the ctime related tests.
54815         (main): Call test_ctime, except on native Windows platforms.
54816
54817 2008-04-27  Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/rpmatch.c (rpmatch): Add some comments.
54820         Reported by James Youngman <jay@gnu.org>.
54821
54822 2008-04-27  Bruno Haible  <bruno@clisp.org>
54823
54824         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54825         quiet NaNs.
54826
54827 2008-04-27  Bruno Haible  <bruno@clisp.org>
54828
54829         Make test-yesno.sh work on mingw.
54830         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
54831         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
54832         (main): Set stdin to binary mode.
54833         * modules/yesno-tests (Depends-on): Add binary-io.
54834
54835 2008-04-27  Bruno Haible  <bruno@clisp.org>
54836
54837         Fix 'isfinite' on x86, x86_64, ia64 platforms.
54838         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
54839         argument that lie outside the IEEE 854 domain.
54840         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
54841         (gl_ISFINITE): Use it.
54842         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
54843
54844 2008-04-27  Bruno Haible  <bruno@clisp.org>
54845
54846         Allow local renaming in config.h.
54847         * lib/memrchr.c (memrchr): Don't undefine outside libc.
54848
54849 2008-04-27  Bruno Haible  <bruno@clisp.org>
54850
54851         * lib/memchr.c (__memchr): Change type of 'i'.
54852         * lib/memchr2.c (memchr2): Likewise.
54853
54854 2008-04-26  Eric Blake  <ebb9@byu.net>
54855         and Bruno Haible  <bruno@clisp.org>
54856
54857         Optimize and test memrchr.
54858         * modules/memrchr (Depends-on): Add intprops.
54859         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
54860         * modules/memrchr-tests: New file.
54861         * tests/test-memrchr.c: New file.
54862
54863 2008-04-26  Bruno Haible  <bruno@clisp.org>
54864
54865         Add tentative support for DragonFly BSD.
54866         * lib/stdio-impl.h: Add macros for DragonFly BSD.
54867         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
54868         fp.
54869         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54870         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
54871         * lib/fpurge.c (fpurge): Likewise.
54872         * lib/freadable.c (freaadable): Likewise.
54873         * lib/freadahead.c (freadahead): Likewise.
54874         * lib/freading.c (freading): Likewise.
54875         * lib/freadptr.c (freadptr): Likewise.
54876         * lib/freadseek.c (freadptrinc): Likewise.
54877         * lib/fseeko.c (fseeko): Likewise.
54878         * lib/fseterr.c (fseterr): Likewise.
54879         * lib/fwritable.c (fwritable): Likewise.
54880         * lib/fwriting.c (fwriting): Likewise.
54881
54882 2008-04-26  Bruno Haible  <bruno@clisp.org>
54883
54884         * lib/stdio-impl.h: New file.
54885         * lib/fbufmode.c: Include stdio-impl.h.
54886         (fbufmode): Use fp_, remove redundant #defines.
54887         * lib/fflush.c: Include stdio-impl.h.
54888         (clear_ungetc_buffer): Remove redundant #defines.
54889         * lib/fpurge.c: Include stdio-impl.h.
54890         (fpurge): Remove redundant #defines.
54891         * lib/freadable.c: Include stdio-impl.h.
54892         (freadable): Remove redundant #defines.
54893         * lib/freadahead.c: Include stdio-impl.h.
54894         (freadahead): Remove redundant #defines.
54895         * lib/freading.c: Include stdio-impl.h.
54896         (freading): Remove redundant #defines.
54897         * lib/freadptr.c: Include stdio-impl.h.
54898         (freadptr): Remove redundant #defines.
54899         * lib/freadseek.c: Include stdio-impl.h.
54900         (freadptrinc): Remove redundant #defines.
54901         * lib/fseeko.c: Include stdio-impl.h.
54902         (rpl_fseeko): Remove redundant #defines.
54903         * lib/fseterr.c: Include stdio-impl.h.
54904         (fseterr): Remove redundant #defines.
54905         * lib/fwritable.c: Include stdio-impl.h.
54906         (fwritable: Remove redundant #defines.
54907         * lib/fwriting.c: Include stdio-impl.h.
54908         (fwriting): Remove redundant #defines.
54909         * modules/fbufmode (Files): Add lib/stdio-impl.h.
54910         * modules/fflush (Files): Likewise.
54911         * modules/fpurge (Files): Likewise.
54912         * modules/freadable (Files): Likewise.
54913         * modules/freadahead (Files): Likewise.
54914         * modules/freading (Files): Likewise.
54915         * modules/freadptr (Files): Likewise.
54916         * modules/freadseek (Files): Likewise.
54917         * modules/fseeko (Files): Likewise.
54918         * modules/fseterr (Files): Likewise.
54919         * modules/fwritable (Files): Likewise.
54920         * modules/fwriting (Files): Likewise.
54921
54922 2008-04-26  Bruno Haible  <bruno@clisp.org>
54923
54924         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54925         restore_seek_optimization, update_fpos_cache): New functions, extracted
54926         from rpl_fflush.
54927         (rpl_fflush): Use them.
54928         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
54929         (gl_REPLACE_FFLUSH): Use it.
54930
54931 2008-04-26  Bruno Haible  <bruno@clisp.org>
54932
54933         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
54934         on Solaris.
54935         * tests/test-xstrtoimax.sh: Likewise.
54936         * tests/test-xstrtoumax.sh: Likewise.
54937         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54938
54939 2008-04-26  Bruno Haible  <bruno@clisp.org>
54940
54941         * modules/memchr-tests: New file.
54942         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
54943
54944 2008-04-26  Eric Blake  <ebb9@byu.net>
54945             Bruno Haible  <bruno@clisp.org>
54946
54947         * lib/memchr.c: Include intprops.h.
54948         (__memchr): Optimize parallel detection of matching bytes. Rename local
54949         variables. Add explanatory comments.
54950
54951 2008-04-26  Bruno Haible  <bruno@clisp.org>
54952
54953         Fix module 'memchr', broken since 2000-10-28.
54954         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
54955
54956 2008-04-26  Bruno Haible  <bruno@clisp.org>
54957
54958         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
54959         comments.
54960
54961 2008-04-25  Eric Blake  <ebb9@byu.net>
54962
54963         Use native fstatat on cygwin 1.7.0.
54964         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
54965         first.
54966
54967 2008-04-23  Eric Blake  <ebb9@byu.net>
54968
54969         Improve memchr2 performance.
54970         * lib/memchr2.c (memchr2): Further optimize parallel detection of
54971         NUL bytes.
54972         * modules/memchr2 (Depends-on): Use intprops.h.
54973
54974 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54975
54976         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
54977         an inline function instead of a CPP macro.  Patch by Ben Pfaff
54978         <blp@cs.stanford.edu>.
54979
54980 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54981
54982         * lib/arpa_inet.in.h: New file.
54983
54984         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
54985         (Makefile.am): Sed in substitute header file.
54986
54987         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
54988         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
54989
54990         * modules/inet_ntop (configure.ac): Use
54991         gl_ARPA_INET_MODULE_INDICATOR.
54992
54993         * modules/inet_pton (configure.ac): Use
54994         gl_ARPA_INET_MODULE_INDICATOR.
54995
54996 2008-04-22  Jim Meyering  <meyering@redhat.com>
54997
54998         * modules/verify (License): Re-license as LGPLv2+.
54999
55000 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55001
55002         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55003         parameter to void* as per POSIX standard (MinGW uses char*).
55004
55005 2008-04-21  Bruno Haible  <bruno@clisp.org>
55006
55007         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55008         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55009         Define to replacements if REPLACE_ISWCNTRL is 1.
55010         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55011         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55012         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55013         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55014         what it fixes.
55015         * doc/posix-functions/iswalpha.texi: Likewise.
55016         * doc/posix-functions/iswblank.texi: Likewise.
55017         * doc/posix-functions/iswcntrl.texi: Likewise.
55018         * doc/posix-functions/iswdigit.texi: Likewise.
55019         * doc/posix-functions/iswgraph.texi: Likewise.
55020         * doc/posix-functions/iswlower.texi: Likewise.
55021         * doc/posix-functions/iswprint.texi: Likewise.
55022         * doc/posix-functions/iswpunct.texi: Likewise.
55023         * doc/posix-functions/iswspace.texi: Likewise.
55024         * doc/posix-functions/iswupper.texi: Likewise.
55025         * doc/posix-functions/iswxdigit.texi: Likewise.
55026         Reported by Alain Guibert.
55027
55028 2008-04-21  Bruno Haible  <bruno@clisp.org>
55029
55030         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55031         Patch by Alain Guibert.
55032
55033 2008-04-21  Bruno Haible  <bruno@clisp.org>
55034
55035         Fix test failures on mingw.
55036         * tests/test-xstrtol.c (print_no_progname): New function.
55037         (main): Install it in error_print_progname hook.
55038         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55039         * tests/test-xstrtoimax.sh: Likewise.
55040         * tests/test-xstrtoumax.sh: Likewise.
55041
55042 2008-04-21  Bruno Haible  <bruno@clisp.org>
55043
55044         Fix test failure on mingw.
55045         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55046
55047 2008-04-21  Bruno Haible  <bruno@clisp.org>
55048
55049         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55050         Actually assign a value.
55051
55052 2008-04-20  Bruno Haible  <bruno@clisp.org>
55053
55054         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55055         take 2.
55056         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55057         'canonicalize-lgpl' module is also used.
55058         * lib/canonicalize-lgpl.c: Undo last change.
55059         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55060
55061 2008-04-20  Bruno Haible  <bruno@clisp.org>
55062
55063         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55064         config.h. Provide _mkdir based fallback for mingw.
55065         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55066         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55067         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55068         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55069         rather than defining mkdir in config.h.
55070         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55071         (gl_SYS_STAT_H_DEFAULTS): New macro.
55072         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55073         HAVE_IO_H any more.
55074         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55075         HAVE_DECL_MKDIR and HAVE_IO_H.
55076
55077 2008-04-20  Bruno Haible  <bruno@clisp.org>
55078
55079         * lib/isapipe.c: Port to native Windows platforms.
55080
55081 2008-04-20  Bruno Haible  <bruno@clisp.org>
55082
55083         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55084
55085 2008-04-21  Eric Blake  <ebb9@byu.net>
55086
55087         Work around preprocessors that don't handle UINTMAX_MAX.
55088         * lib/memchr2.c (memchr2): Avoid embedded #if.
55089         Reported by Alain Guibert, fix suggested by Bruno Haible.
55090
55091 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55092
55093         * doc/posix-functions/strftime.texi (strftime): Explain better
55094         Windows incompatibility.  Suggested by Micah Cowan
55095         <micah@cowan.name>.
55096
55097 2008-04-20  Bruno Haible  <bruno@clisp.org>
55098
55099         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55100         unistr/u8-mblen.
55101
55102 2008-04-20  Bruno Haible  <bruno@clisp.org>
55103
55104         Fix test failure on platforms with non-GNU iconv.
55105         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55106         (U_TO_U8): Use it, rather than u16_to_u8.
55107         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55108         units at the end of the input string.
55109         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55110
55111 2008-04-20  Bruno Haible  <bruno@clisp.org>
55112
55113         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55114         when the resulting length is 0.
55115         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55116
55117 2008-04-20  Bruno Haible  <bruno@clisp.org>
55118
55119         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55120         works.
55121         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55122
55123 2008-04-20  Bruno Haible  <bruno@clisp.org>
55124
55125         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55126         * modules/tsearch-tests (configure.ac): Test for initstate function.
55127
55128 2008-04-20  Bruno Haible  <bruno@clisp.org>
55129
55130         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55131         for nlink_t if missing.
55132         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55133
55134 2008-04-19  Bruno Haible  <bruno@clisp.org>
55135
55136         Work around snprintf bug on Linux libc5.
55137         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55138         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55139         gl_SNPRINTF_SIZE1.
55140         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55141         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55142         that test failed.
55143         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55144         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55145         * modules/snprintf (Files): Add m4/printf.m4.
55146         * modules/vsnprintf (Files): Likewise.
55147         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55148         * doc/posix-functions/vsnprintf.texi: Likewise.
55149
55150 2008-04-19  Bruno Haible  <bruno@clisp.org>
55151
55152         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55153         from 0.0058 to less than 10^-7.
55154
55155 2008-04-19  Bruno Haible  <bruno@clisp.org>
55156
55157         Fix rounding when a precision is given.
55158         * lib/vasnprintf.c (is_borderline): New function.
55159         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55160         9...9x.
55161         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55162         %e, %g.
55163         * tests/test-vasprintf-posix.c (test_function): Likewise.
55164         * tests/test-snprintf-posix.h (test_function): Likewise.
55165         * tests/test-sprintf-posix.h (test_function): Likewise.
55166         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55167         * tests/test-printf-posix.h (test_function): Likewise.
55168         * tests/test-printf-posix.output: Update.
55169         Reported by John Darrington <john@darrington.wattle.id.au> via
55170         Ben Pfaff <blp@cs.stanford.edu>.
55171
55172 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55173
55174         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55175         Suggested by Bruno Haible <bruno@clisp.org>.
55176
55177 2008-04-17  Bruno Haible  <bruno@clisp.org>
55178
55179         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55180         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55181         implementation.
55182         Patch by Bruce Merry <bmerry@gmail.com>.
55183
55184 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55185
55186         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55187         doesn't work under Windows.
55188
55189 2008-04-16  Bruno Haible  <bruno@clisp.org>
55190
55191         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55192         New macros.
55193         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55194         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55195         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55196         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55197         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55198         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55199         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55200         macros.
55201         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55202         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55203         Northern Sotho, Uighur.
55204
55205 2008-04-16  Bruno Haible  <bruno@clisp.org>
55206
55207         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55208         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55209         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55210         Reported by Daniel Bergström <daniel@octocode.com>.
55211
55212 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55213             Bruno Haible  <bruno@clisp.org>
55214
55215         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55216         function.
55217         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55218         New functions, mostly extracted from gl_locale_name_default.
55219         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55220
55221 2008-04-16  Eric Blake  <ebb9@byu.net>
55222
55223         Adjust strtod detection to catch glibc 2.7 bug.
55224         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55225         Reported by John Gatewood Ham.
55226
55227 2008-04-16  Bruno Haible  <bruno@clisp.org>
55228
55229         Add tentative support for Linux libc5.
55230         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55231         * lib/fpurge.c (fpurge): Likewise.
55232         * lib/freadable.c (freadable): Likewise.
55233         * lib/freadahead.c (freadahead): Likewise.
55234         * lib/freading.c (freading): Likewise.
55235         * lib/freadptr.c (freadptr): Likewise.
55236         * lib/freadseek.c (freadptrinc): Likewise.
55237         * lib/fseeko.c (rpl_fseeko): Likewise.
55238         * lib/fseterr.c (fseterr): Likewise.
55239         * lib/fwritable.c (fwritable): Likewise.
55240         * lib/fwriting.c (fwriting): Likewise.
55241         Reported by Alain Guibert <alguibert+bts@free.fr>.
55242
55243 2008-04-15  Bruno Haible  <bruno@clisp.org>
55244
55245         * modules/mathl (configure.ac): Define module indicator.
55246
55247 2008-04-15  Bruno Haible  <bruno@clisp.org>
55248
55249         * lib/logl.c (logl): Remove unused variables.
55250
55251 2008-04-15  Bruno Haible  <bruno@clisp.org>
55252
55253         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55254         fails.
55255
55256 2008-04-15  Bruno Haible  <bruno@clisp.org>
55257
55258         * lib/trim.c (trim2): Fix argument of isspace() macro.
55259
55260 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55261
55262         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55263         to 0.
55264         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55265
55266 2008-04-14  Bruno Haible  <bruno@clisp.org>
55267
55268         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55269         AC_LANG_PROGRAM argument.
55270         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55271         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55272         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55273         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55274         * m4/math_h.m4 (gl_MATH_H): Likewise.
55275         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55276         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55277         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55278         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55279         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55280         * m4/regex.m4 (gl_REGEX): Likewise.
55281         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55282         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55283         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55284         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55285         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55286         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55287         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55288         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55289
55290 2008-04-14  Jim Meyering  <meyering@redhat.com>
55291
55292         test-strtod: fix typos: s/abs/fabs/
55293         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55294
55295 2008-04-13  Bruno Haible  <bruno@clisp.org>
55296
55297         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55298         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55299         module is also used and while not building the reloc-wrapper.
55300
55301 2008-04-13  Bruno Haible  <bruno@clisp.org>
55302
55303         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55304
55305 2008-04-13  Bruno Haible  <bruno@clisp.org>
55306
55307         Fix AIX compilation failure introduced on 2008-04-02.
55308         * tests/test-frexp.c (exp): Undefine before redefining.
55309         * tests/test-frexpl.c (exp): Likewise.
55310
55311 2008-04-13  Bruno Haible  <bruno@clisp.org>
55312
55313         Work around a HP-UX stdio bug.
55314         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55315         * tests/test-ftello.c (main): Likewise.
55316         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55317         * doc/posix-functions/ftello.texi: Likewise.
55318
55319 2008-04-13  Bruno Haible  <bruno@clisp.org>
55320
55321         Make test-signbit pass on HP-UX/hppa.
55322         * tests/test-signbit.c (minus_zerol): New variable.
55323         (test_signbitl): Use it.
55324
55325 2008-04-13  Bruno Haible  <bruno@clisp.org>
55326
55327         Make truncl work on OSF/1 4.0.
55328         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55329         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55330         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55332         HAVE_DECL_TRUNCL.
55333         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55334         HAVE_DECL_TRUNCL.
55335         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55336
55337 2008-04-13  Bruno Haible  <bruno@clisp.org>
55338
55339         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55340
55341 2008-04-13  Bruno Haible  <bruno@clisp.org>
55342
55343         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55344         expression, so as to avoid HP-UX 11 cc compiler bug.
55345
55346 2008-04-13  Bruno Haible  <bruno@clisp.org>
55347
55348         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55349
55350 2008-04-13  Bruno Haible  <bruno@clisp.org>
55351
55352         * lib/git-merge-changelog.c: Remove empty declaration outside of
55353         functions.
55354
55355 2008-04-13  Bruno Haible  <bruno@clisp.org>
55356
55357         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55358
55359 2008-04-13  Bruno Haible  <bruno@clisp.org>
55360
55361         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55362         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55363         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55364         also if it exists but lacks definitions of the SHUT_* macros.
55365         * modules/sys_socket (Description): Update.
55366         Reported by Elbert Pol <e.pol@chello.nl>.
55367
55368 2008-04-13  Bruno Haible  <bruno@clisp.org>
55369
55370         * lib/localcharset.c (OS2): Don't redefine if already defined.
55371         Reported by Elbert Pol <e.pol@chello.nl>.
55372
55373 2008-04-13  Bruno Haible  <bruno@clisp.org>
55374
55375         * lib/binary-io.h [__EMX__]: Include <io.h>.
55376         Reported by Elbert Pol <e.pol@chello.nl>.
55377
55378 2008-04-12  Bruno Haible  <bruno@clisp.org>
55379
55380         * lib/fpucw.h: Enable the definitions also for x86_64.
55381         Needed for NetBSD/x86_64.
55382         Reported by Thomas Klausner <tk@giga.or.at>.
55383
55384 2008-04-12  Bruno Haible  <bruno@clisp.org>
55385
55386         * tests/test-strtod.c: Include isnand.h.
55387         (main): Use isnand instead of isnan.
55388         Reported by Jim Meyering.
55389
55390 2008-04-12  Bruno Haible  <bruno@clisp.org>
55391
55392         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55393         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55394
55395 2008-04-12  Jim Meyering  <meyering@redhat.com>
55396
55397         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55398
55399 2008-04-12  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55402         Reported by Elbert Pol <e.pol@chello.nl>.
55403
55404 2008-04-12  Eric Blake  <ebb9@byu.net>
55405
55406         Work around Solaris 10 math.h bug.
55407         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55408         (gl_MATH_H_DEFAULTS): Set up default.
55409         * modules/math (Makefile.am): Replace new indicators.
55410         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55411         * tests/test-math.c (main): Test this.
55412         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55413         * doc/posix-headers/math.texi (math.h): Mention bug.
55414         Reported by Nelson H. F. Beebe and Jim Meyering.
55415
55416 2008-04-11  Bruno Haible  <bruno@clisp.org>
55417
55418         Adapt to future versions of Apple GCC.
55419         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55420         Reported by Peter O'Gorman <peter@pogma.com>.
55421
55422 2008-04-11  Bruno Haible  <bruno@clisp.org>
55423
55424         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55425
55426 2008-04-11  Bruno Haible  <bruno@clisp.org>
55427
55428         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55429
55430         * modules/getaddrinfo-tests (Makefile.am): Define
55431         test_getaddrinfo_LDADD.
55432
55433 2008-04-11  Bruno Haible  <bruno@clisp.org>
55434
55435         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55436         (init): Fix syntax error.
55437         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55438         is declared.
55439
55440 2008-04-11  Bruno Haible  <bruno@clisp.org>
55441
55442         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55443         * modules/glob (Depends-on): Add stdbool.
55444
55445 2008-04-11  Bruno Haible  <bruno@clisp.org>
55446
55447         * lib/trim.c: Include <string.h>.
55448
55449 2008-04-11  Eric Blake  <ebb9@byu.net>
55450
55451         Avoid compile failure on OS/2.
55452         * lib/regex_internal.h (internal_function): Disable optimization
55453         on OS/2 (__EMX__), where it caused compiler error.
55454         Reported by Elbert Pol.
55455
55456 2008-04-11  Bruno Haible  <bruno@clisp.org>
55457
55458         Flush the standard error stream before aborting. Needed on mingw.
55459         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55460         * tests/test-array_list.c (ASSERT): Likewise.
55461         * tests/test-array_oset.c (ASSERT): Likewise.
55462         * tests/test-avltree_list.c (ASSERT): Likewise.
55463         * tests/test-avltree_oset.c (ASSERT): Likewise.
55464         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55465         * tests/test-binary-io.c (ASSERT): Likewise.
55466         * tests/test-byteswap.c (ASSERT): Likewise.
55467         * tests/test-c-ctype.c (ASSERT): Likewise.
55468         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55469         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55470         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55471         * tests/test-c-strstr.c (ASSERT): Likewise.
55472         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55473         * tests/test-canonicalize.c (ASSERT): Likewise.
55474         * tests/test-carray_list.c (ASSERT): Likewise.
55475         * tests/test-ceilf1.c (ASSERT): Likewise.
55476         * tests/test-ceilf2.c (ASSERT): Likewise.
55477         * tests/test-ceill.c (ASSERT): Likewise.
55478         * tests/test-count-one-bits.c (ASSERT): Likewise.
55479         * tests/test-fbufmode.c (ASSERT): Likewise.
55480         * tests/test-fflush2.c (ASSERT): Likewise.
55481         * tests/test-floorf1.c (ASSERT): Likewise.
55482         * tests/test-floorf2.c (ASSERT): Likewise.
55483         * tests/test-floorl.c (ASSERT): Likewise.
55484         * tests/test-fopen.c (ASSERT): Likewise.
55485         * tests/test-fpending.c (ASSERT): Likewise.
55486         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55487         * tests/test-fpurge.c (ASSERT): Likewise.
55488         * tests/test-freadable.c (ASSERT): Likewise.
55489         * tests/test-freadahead.c (ASSERT): Likewise.
55490         * tests/test-freading.c (ASSERT): Likewise.
55491         * tests/test-freadptr.c (ASSERT): Likewise.
55492         * tests/test-freadptr2.c (ASSERT): Likewise.
55493         * tests/test-freadseek.c (ASSERT): Likewise.
55494         * tests/test-freopen.c (ASSERT): Likewise.
55495         * tests/test-frexp.c (ASSERT): Likewise.
55496         * tests/test-frexpl.c (ASSERT): Likewise.
55497         * tests/test-fseek.c (ASSERT): Likewise.
55498         * tests/test-fseeko.c (ASSERT): Likewise.
55499         * tests/test-fstrcmp.c (ASSERT): Likewise.
55500         * tests/test-ftell.c (ASSERT): Likewise.
55501         * tests/test-ftello.c (ASSERT): Likewise.
55502         * tests/test-func.c (ASSERT): Likewise.
55503         * tests/test-fwritable.c (ASSERT): Likewise.
55504         * tests/test-fwriting.c (ASSERT): Likewise.
55505         * tests/test-getdelim.c (ASSERT): Likewise.
55506         * tests/test-getline.c (ASSERT): Likewise.
55507         * tests/test-i-ring.c (ASSERT): Likewise.
55508         * tests/test-iconv-utf.c (ASSERT): Likewise.
55509         * tests/test-iconv.c (ASSERT): Likewise.
55510         * tests/test-isfinite.c (ASSERT): Likewise.
55511         * tests/test-isnand.c (ASSERT): Likewise.
55512         * tests/test-isnanf.c (ASSERT): Likewise.
55513         * tests/test-isnanl.h (ASSERT): Likewise.
55514         * tests/test-ldexpl.c (ASSERT): Likewise.
55515         * tests/test-linked_list.c (ASSERT): Likewise.
55516         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55517         * tests/test-localename.c (ASSERT): Likewise.
55518         * tests/test-lseek.c (ASSERT): Likewise.
55519         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55520         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55521         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55522         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55523         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55524         * tests/test-mbschr.c (ASSERT): Likewise.
55525         * tests/test-mbscspn.c (ASSERT): Likewise.
55526         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55527         * tests/test-mbspbrk.c (ASSERT): Likewise.
55528         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55529         * tests/test-mbsrchr.c (ASSERT): Likewise.
55530         * tests/test-mbsspn.c (ASSERT): Likewise.
55531         * tests/test-mbsstr1.c (ASSERT): Likewise.
55532         * tests/test-mbsstr2.c (ASSERT): Likewise.
55533         * tests/test-mbsstr3.c (ASSERT): Likewise.
55534         * tests/test-memchr2.c (ASSERT): Likewise.
55535         * tests/test-memmem.c (ASSERT): Likewise.
55536         * tests/test-open.c (ASSERT): Likewise.
55537         * tests/test-printf-frexp.c (ASSERT): Likewise.
55538         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55539         * tests/test-printf-posix.c (ASSERT): Likewise.
55540         * tests/test-quotearg.c (ASSERT): Likewise.
55541         * tests/test-rbtree_list.c (ASSERT): Likewise.
55542         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55543         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55544         * tests/test-round1.c (ASSERT): Likewise.
55545         * tests/test-roundf1.c (ASSERT): Likewise.
55546         * tests/test-roundl.c (ASSERT): Likewise.
55547         * tests/test-signbit.c (ASSERT): Likewise.
55548         * tests/test-sleep.c (ASSERT): Likewise.
55549         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55550         * tests/test-snprintf.c (ASSERT): Likewise.
55551         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55552         * tests/test-stat-time.c (ASSERT): Likewise.
55553         * tests/test-strcasestr.c (ASSERT): Likewise.
55554         * tests/test-strerror.c (ASSERT): Likewise.
55555         * tests/test-striconv.c (ASSERT): Likewise.
55556         * tests/test-striconveh.c (ASSERT): Likewise.
55557         * tests/test-striconveha.c (ASSERT): Likewise.
55558         * tests/test-strsignal.c (ASSERT): Likewise.
55559         * tests/test-strstr.c (ASSERT): Likewise.
55560         * tests/test-strtod.c (ASSERT): Likewise.
55561         * tests/test-trunc1.c (ASSERT): Likewise.
55562         * tests/test-trunc2.c (ASSERT): Likewise.
55563         * tests/test-truncf1.c (ASSERT): Likewise.
55564         * tests/test-truncf2.c (ASSERT): Likewise.
55565         * tests/test-truncl.c (ASSERT): Likewise.
55566         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55567         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55568         * tests/test-vasnprintf.c (ASSERT): Likewise.
55569         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55570         * tests/test-vasprintf.c (ASSERT): Likewise.
55571         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55572         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55573         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55574         * tests/test-vsnprintf.c (ASSERT): Likewise.
55575         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55576         * tests/test-wcwidth.c (ASSERT): Likewise.
55577         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55578         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55579         * tests/test-xvasprintf.c (ASSERT): Likewise.
55580         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55581         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55582         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55583         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55584         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55585         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55586         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55587         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55588         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55589         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55590         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55591         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55592         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55593         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55594         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55595         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55596         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55597         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55598         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55599         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55600         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55601         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55602         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55603         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55604         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55605         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55606         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55607         * tests/unictype/test-combining.c (ASSERT): Likewise.
55608         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55609         * tests/unictype/test-digit.c (ASSERT): Likewise.
55610         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55611         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55612         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55613         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55614         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55615         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55616         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55617         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55618         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55619         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55620         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55621         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55622         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55623         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55624         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55625         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55626         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55627         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55628         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55629         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55630         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55631         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55632         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55633         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55634         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55635         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55636         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55637         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55638         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55639         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55640         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55641         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55642         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55643         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55644         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55645         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55646         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55647         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55648         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55649         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55650         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55651         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55652         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55653         Reported by Eric Blake.
55654
55655 2008-04-11  Bruno Haible  <bruno@clisp.org>
55656
55657         * lib/wchar.in.h: Tweak comment.
55658
55659 2008-04-11  Bruno Haible  <bruno@clisp.org>
55660
55661         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55662         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55663         gl_COMMON.
55664         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55665
55666 2008-04-11  Bruno Haible  <bruno@clisp.org>
55667
55668         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55669
55670 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55671
55672         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55673         of attempting to use non-existing /dev/*random.  Based on patch
55674         from Adam Strzelecki <ono@java.pl> in
55675         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55676
55677 2008-04-08  Bruno Haible  <bruno@clisp.org>
55678
55679         Add tentative support for emx+gcc.
55680         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55681         * lib/fpurge.c (fpurge): Likewise.
55682         * lib/freadable.c (freadable): Likewise.
55683         * lib/freadahead.c (freadahead): Likewise.
55684         * lib/freading.c (freading): Likewise.
55685         * lib/freadptr.c (freadptr): Likewise.
55686         * lib/freadseek.c (freadptrinc): Likewise.
55687         * lib/fseeko.c (rpl_fseeko): Likewise.
55688         * lib/fseterr.c (fseterr): Likewise.
55689         * lib/fwritable.c (fwritable): Likewise.
55690         * lib/fwriting.c (fwriting): Likewise.
55691         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55692
55693 2008-04-09  Eric Blake  <ebb9@byu.net>
55694
55695         Avoid some autoconf warnings.
55696         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55697         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55698         * m4/afs.m4 (gl_AFS): Likewise.
55699         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55700         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55701         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55702         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55703         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55704         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55705         (AC_CHECK_DECLS_ONCE): Likewise.
55706         Rename file...
55707         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55708         gnulib-tool requires autoconf 2.59 or better.
55709         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55710
55711 2008-04-08  Eric Blake  <ebb9@byu.net>
55712
55713         Use 'git describe --match' if present (added in git 1.5.5).
55714         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55715         if possible.
55716
55717 2008-04-08  Bruno Haible  <bruno@clisp.org>
55718
55719         Add tentative support for OpenServer.
55720         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55721         _ptr, _cnt.
55722         * lib/fpurge.c (fpurge): Likewise.
55723         * lib/freadable.c (freadable): Likewise.
55724         * lib/freadahead.c (freadahead): Likewise.
55725         * lib/freading.c (freading): Likewise.
55726         * lib/freadptr.c (freadptr): Likewise.
55727         * lib/freadseek.c (freadptrinc): Likewise.
55728         * lib/fseeko.c (rpl_fseeko): Likewise.
55729         * lib/fseterr.c (fseterr): Likewise.
55730         * lib/fwritable.c (fwritable): Likewise.
55731         * lib/fwriting.c (fwriting): Likewise.
55732         Reported by Roger Cornelius <rac@tenzing.org> and
55733         Brian K. White <brian@aljex.com>.
55734
55735 2008-04-06  Jim Meyering  <meyering@redhat.com>
55736
55737         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55738
55739 2008-04-06  Bruno Haible  <bruno@clisp.org>
55740
55741         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55742         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55743         * tests/test-printf-posix.sh: Likewise.
55744         * tests/test-vfprintf-posix.sh: Likewise.
55745         * tests/test-vprintf-posix.sh: Likewise.
55746         * tests/test-xprintf-posix.sh: Likewise.
55747
55748 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55749
55750         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55751         hide error from 'ls', needed on OS/2.
55752         Report by Elbert Pol <elbert.pol@gmail.com>.
55753
55754 2008-04-04  Eric Blake  <ebb9@byu.net>
55755
55756         Make test-fseeko.c failures meaningful.
55757         * tests/test-fseeko.c: Print line number on failure.
55758         * tests/test-fseek.c: Likewise.
55759         Reported by Nelson H. F. Beebe.
55760
55761         Improve strtod bug detection check.
55762         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55763         required for Solaris 10.
55764         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55765
55766 2008-04-04  Bruno Haible  <bruno@clisp.org>
55767
55768         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55769         by m4/setenv.m4.
55770
55771 2008-04-03  Eric Blake  <ebb9@byu.net>
55772
55773         Ensure sane .version contents.
55774         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55775         version string.
55776         * build-aux/git-version-gen: Improve documentation.
55777
55778         Make GNU make output nicer.
55779         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55780         MAKECMDGOALS to enforce message for all command line targets.  Set
55781         srcdir for use in maint.mk.
55782
55783         Another maintainer tweak.
55784         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55785         a target that regenerates version.
55786
55787 2008-04-03  Jim Meyering  <meyering@redhat.com>
55788
55789         vc-list-files: don't cause coreutils "make po-check" failure
55790         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55791
55792 2008-04-03  Eric Blake  <ebb9@byu.net>
55793
55794         Allow VPATH usage of vc-list-files.
55795         * build-aux/vc-list-files (scriptversion): Add timestamp.
55796         (options): Add --help, --version, -C.
55797         (CVS): Support installed cvsu.
55798
55799 2008-04-02  Bruno Haible  <bruno@clisp.org>
55800
55801         Avoid some "statement with no effect" warnings from gcc.
55802         * tests/test-wctype.c (main): Explicitly ignore unused values.
55803         Reported by Jim Meyering.
55804
55805 2008-04-02  Jim Meyering  <meyering@redhat.com>
55806
55807         Avoid some warnings from "gcc -Wshadow".
55808         * tests/test-frexp.c (exp): Define to a different identifier.
55809         * tests/test-frexpl.c (exp): Likewise.
55810
55811 2008-04-03  Jim Meyering  <meyering@redhat.com>
55812
55813         bootstrap: remove dangling *.[ch] symlinks from lib
55814         * build-aux/bootstrap [dangling symlink removal]: Move find's
55815         -depth option to precede all others, to avoid a warning.
55816         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55817
55818 2008-04-02  Bruno Haible  <bruno@clisp.org>
55819
55820         Avoid some warnings from "gcc -Wshadow".
55821         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55822         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55823         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55824         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55825         Reported by Jim Meyering.
55826
55827 2008-04-01  Bruno Haible  <bruno@clisp.org>
55828
55829         Fix test to work on IRIX 6.5 with cc.
55830         * tests/test-math.c (numeric_equal): New function.
55831         (main): Use it.
55832
55833 2008-04-01  Bruno Haible  <bruno@clisp.org>
55834
55835         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
55836
55837 2008-04-01  Bruno Haible  <bruno@clisp.org>
55838
55839         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
55840         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55841         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
55842         (Depends-on): Remove math.
55843
55844         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
55845         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55846         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
55847         (Depends-on): Remove math.
55848
55849         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
55850         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55851         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
55852         (Depends-on): Remove math.
55853         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
55854         (Depends-on): Remove math.
55855
55856         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
55857         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55858         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
55859         (Depends-on): Remove math.
55860         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
55861         (Depends-on): Remove math.
55862
55863         * tests/test-round1.c: Include nan.h.
55864         (main): Use NaNd instead of NAN.
55865         * modules/round-tests (Files): Add tests/nan.h.
55866
55867         * tests/test-trunc1.c: Include nan.h.
55868         (main): Use NaNd instead of NAN.
55869         * modules/trunc-tests (Files): Add tests/nan.h.
55870
55871         * tests/test-roundf1.c: Include nan.h.
55872         (main): Use NaNf instead of NAN.
55873         * modules/roundf-tests (Files): Add tests/nan.h.
55874
55875         * tests/test-truncf1.c: Include nan.h.
55876         (main): Use NaNf instead of NAN.
55877         * modules/truncf-tests (Files): Add tests/nan.h.
55878
55879         * tests/test-ceilf1.c: Include nan.h.
55880         (main): Use NaNf instead of NAN.
55881         * modules/ceilf-tests (Files): Add tests/nan.h.
55882
55883         * tests/test-floorf1.c: Include nan.h.
55884         (main): Use NaNf instead of NAN.
55885         * modules/floorf-tests (Files): Add tests/nan.h.
55886
55887         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
55888         (main): Use NaNf instead of NAN.
55889         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
55890
55891         * tests/test-isnand.c: Include nan.h instead of <math.h>.
55892         (main): Use NaNd instead of NAN.
55893         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
55894
55895         * tests/test-frexp.c: Include nan.h.
55896         (main): Use NaNd instead of NAN.
55897         * modules/frexp-tests (Files): Add tests/nan.h.
55898
55899         * lib/isnan.c: Don't include <math.h>.
55900         (FUNC): Don't use NAN macro.
55901         * modules/isnand-nolibm (Depends-on): Remove math.
55902         * modules/isnanf-nolibm (Depends-on): Remove math.
55903         * modules/isnanl (Depends-on): Remove math.
55904         * modules/isnanl-nolibm (Depends-on): Remove math.
55905
55906         * tests/nan.h: New file.
55907
55908 2008-04-01  Eric Blake  <ebb9@byu.net>
55909
55910         Fix typos.
55911         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
55912         values to be the right type.
55913
55914         For now, cater to gnulib strtod inaccuracies.
55915         * tests/test-strtod.c (main): Allow 1-ulp error on expected
55916         fractional results.  While not as nice from a QoI perspective, it
55917         is a quicker patch than correctly implementing decimal to binary
55918         rounding.
55919
55920 2008-03-31  Eric Blake  <ebb9@byu.net>
55921
55922         Guarantee a definition of NAN.
55923         * lib/math.in.h (NAN): Define if missing.
55924         * tests/test-math.c (main): Test it.
55925         * doc/posix-headers/math.texi (math.h): Document this.
55926         * lib/isnan.c (rpl_isnand): Use it.
55927         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
55928         * tests/test-floorf1.c (NaN): Likewise.
55929         * tests/test-frexp.c (NaN): Likewise.
55930         * tests/test-isnand.c (NaN): Likewise.
55931         * tests/test-isnanf.c (NaN): Likewise.
55932         * tests/test-round1.c (NaN): Likewise.
55933         * tests/test-roundf1.c (NaN): Likewise.
55934         * tests/test-snprintf-posix.h (NaN): Likewise.
55935         * tests/test-sprintf-posix.h (NaN): Likewise.
55936         * tests/test-trunc1.c (NaN): Likewise.
55937         * tests/test-truncf1.c (NaN): Likewise.
55938         * tests/test-vasnprintf-posix.c (NaN): Likewise.
55939         * tests/test-vasprintf-posix.c (NaN): Likewise.
55940         * modules/isnand-nolibm (Depends-on): Add math.
55941         * modules/isnanf-nolibm (Depends-on): Likewise.
55942         * modules/isnanl (Depends-on): Likewise.
55943         * modules/isnanl-nolibm (Depends-on): Likewise.
55944         * modules/snprintf-posix-tests (Depends-on): Likewise.
55945         * modules/sprintf-posix-tests (Depends-on): Likewise.
55946         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
55947         * modules/vsprintf-posix-tests (Depends-on): Likewise.
55948         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
55949         * modules/vasprintf-posix-tests (Depends-on): Likewise.
55950
55951 2008-03-31  Bruno Haible  <bruno@clisp.org>
55952
55953         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
55954         * doc/posix-functions/strtod.texi: Likewise.
55955
55956 2008-03-31  Bruno Haible  <bruno@clisp.org>
55957
55958         * tests/test-strtod.c (main): Don't use C99 syntax.
55959
55960 2008-03-31  Bruno Haible  <bruno@clisp.org>
55961
55962         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
55963         Reported by Eric Blake.
55964
55965 2008-03-31  Jim Meyering  <meyering@redhat.com>
55966
55967         Don't compare actual signbit return values.
55968         * tests/test-strtod.c (main): Rather, compare only their
55969         zero/non-zero nature.
55970
55971 2008-03-31  Eric Blake  <ebb9@byu.net>
55972
55973         More strtod documentation.
55974         * doc/posix-functions/strtod.texi (strtod): Interpret more test
55975         failures as distinct bugs.
55976
55977 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55978
55979         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
55980         Problem reported by Erik Benada in
55981         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
55982
55983 2008-03-30  Bruno Haible  <bruno@clisp.org>
55984
55985         * tests/test-strtod.c: Add comments about which assertion fails on which
55986         platform.
55987         * doc/posix-functions/strtod.texi: Add info about many more platforms.
55988
55989 2008-03-30  Eric Blake  <ebb9@byu.net>
55990
55991         Test signbit behavior on zeros.
55992         * tests/test-signbit.c (test_signbitf): Add tests for zero.
55993         (test_signbitd, test_signbitl): Likewise.
55994
55995         More strtod touchups.
55996         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
55997         sign of negative underflow, for now.  Use .5, not .1.
55998         * doc/posix-functions/strtod.texi (strtod): Mention these
55999         limitations.
56000         Reported by Jim Meyering.
56001
56002 2008-03-30  Bruno Haible  <bruno@clisp.org>
56003
56004         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56005         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56006
56007 2008-03-30  Bruno Haible  <bruno@clisp.org>
56008
56009         Avoid failure when attempting to return empty iconv results on some
56010         platforms.
56011         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56012         allocation, don't report ENOMEM when the resulting string is empty.
56013
56014 2008-03-30  Bruno Haible  <bruno@clisp.org>
56015
56016         Fix buffer overrun.
56017         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56018         Don't consider the width for tmp_length. Check count against tmp_length
56019         before doing the padding. Ensure enough allocation during padding.
56020
56021 2008-03-30  Eric Blake  <ebb9@byu.net>
56022
56023         strtod touchups.
56024         * lib/strtod.c (strtod): Avoid compiler warnings.
56025         Reported by Jim Meyering.
56026
56027 2008-03-30  Bruno Haible  <bruno@clisp.org>
56028
56029         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56030         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56031         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56032         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56033         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56034         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56035         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56036         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56037
56038         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56039         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56040         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56041         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56042         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56043         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56044         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56045         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56046
56047         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56048         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56049         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56050         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56051         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56052         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56053         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56054         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56055
56056         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56057         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56058
56059         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56060         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56061
56062         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56063         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56064
56065         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56066         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56067         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56068
56069         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56070         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56071         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56072
56073         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56074         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56075         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56076
56077         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56078         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56079         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56080
56081         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56082         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56083         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56084         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56085         (Depends-on): Add EOVERFLOW.
56086         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56087         (Depends-on): Add EOVERFLOW.
56088         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56089         (Depends-on): Add EOVERFLOW.
56090         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56091         (Depends-on): Add EOVERFLOW.
56092         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56093         (Depends-on): Add EOVERFLOW.
56094         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56095         (Depends-on): Add EOVERFLOW.
56096         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56097         (Depends-on): Add EOVERFLOW.
56098         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56099         (Depends-on): Add EOVERFLOW.
56100
56101         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56102         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56103         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56104
56105         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56106         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56107         * modules/snprintf (Depends-on): Add EOVERFLOW.
56108
56109         * lib/poll.c (EOVERFLOW): Remove fallback.
56110         * modules/poll (Depends-on): Add EOVERFLOW.
56111
56112         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56113         * modules/getugroups (Depends-on): Add EOVERFLOW.
56114
56115         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56116         * modules/getdelim (Depends-on): Add EOVERFLOW.
56117
56118         * lib/ftell.c (EOVERFLOW): Remove fallback.
56119         * modules/ftell (Depends-on): Add EOVERFLOW.
56120
56121         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56122         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56123         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56124
56125         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56126
56127         * modules/EOVERFLOW-tests: New file.
56128         * tests/test-EOVERFLOW.c: New file.
56129
56130         * modules/EOVERFLOW: New file.
56131         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56132
56133 2008-03-30  Bruno Haible  <bruno@clisp.org>
56134
56135         Fix bug introduced on 2007-06-10.
56136         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56137         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56138
56139 2008-03-30  Bruno Haible  <bruno@clisp.org>
56140
56141         Improve freadseek's efficiency after ungetc.
56142         * lib/freadseek.c: Include freadahead.h.
56143         (freadptrinc): New function, extracted from freadseek.
56144         (freadseek): Use it in a loop. Use freadahead to determine the number
56145         of loop iterations.
56146         * modules/freadseek (Depends-on): Add freadahead.
56147         (configure.ac): Require AC_C_INLINE.
56148
56149 2008-03-30  Bruno Haible  <bruno@clisp.org>
56150
56151         * lib/freadseek.c (freadseek): Don't ignore the return value of
56152         freadptr.
56153
56154 2008-03-29  Eric Blake  <ebb9@byu.net>
56155
56156         Add hex float support.
56157         * modules/strtod (Depends-on): Add c-ctype.
56158         (Link): Mention POW_LIB.
56159         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56160         whitespace between 'e' and exponent.
56161         * tests/test-strtod.c (main): Enable hex float tests.
56162         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56163         now provides.
56164
56165         Document various strtod bugs, with some fixes.
56166         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56167         "-0x", "inf", "nan", and hex constants.
56168         * doc/posix-functions/atof.texi (atof): Likewise.
56169         * modules/stdlib (Makefile.am): Support strtod.
56170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56171         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56172         detect additional strtod bugs.
56173         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56174         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56175         bool where appropriate.  Parse 'inf' and 'nan'.
56176         * tests/test-strtod.c: New file.
56177         * modules/strtod (Depends-on): Add stdbool, stdlib.
56178         (configure.ac): Turn on module indicator.
56179         * modules/strtod-tests: New module.
56180
56181 2008-03-29  Eric Blake  <ebb9@byu.net>
56182
56183         Fix ftell on mingw.
56184         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56185         * modules/ftell-tests (Depends-on): Add binary-io.
56186         * modules/ftello-tests (Depends-on): Likewise.
56187         * tests/test-ftell.c (main): Enhance test to cover behavior after
56188         ungetc.  Enforce binary mode.
56189         * tests/test-ftello.c (main): Likewise.
56190
56191         Pass test-freadseek on cygwin.
56192         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56193         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56194         ungetc buffer.
56195
56196         * tests/test-fflush2.c (main): Fix typo.
56197
56198 2008-03-29  Bruno Haible  <bruno@clisp.org>
56199
56200         * tests/test-fflush2.c (main): Temporarily disable the contents of
56201         this test.
56202         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56203         Reported by Eric Blake.
56204
56205 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56206
56207         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56208         (GC_SHA224_DIGEST_SIZE): Add.
56209
56210         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56211         (gc_hash_digest_length): Likewise.
56212         (gc_hash_buffer): Likewise.
56213
56214 2008-03-25  Bruno Haible  <bruno@clisp.org>
56215
56216         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56217         detail which gettext release to use.
56218         Reported by Simon Josefsson.
56219
56220 2008-03-26  Jim Meyering  <meyering@redhat.com>
56221
56222         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56223         * modules/gnumakefile (clean-GNUmakefile): Also, use
56224         test ... && ... || : syntax rather than if-then ... fi.
56225
56226         gnumakefile: Don't double-quote-expand $(VPATH) value.
56227         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56228
56229 2008-03-24  Eric Blake  <ebb9@byu.net>
56230
56231         Alter GNUmakefile to install into top directory.
56232         * modules/maintainer-makefile: Split, and add dependency...
56233         * modules/gnumakefile: to this new module.
56234         * build-aux/GNUmakefile: Move...
56235         * top/GNUmakefile: ...here.
56236         * build-aux/maint.mk: Move...
56237         * top/maint.mk: ...here.
56238         * MODULES.html.sh (Support for maintaining...): Document new
56239         module.
56240
56241 2008-03-23  Bruno Haible  <bruno@clisp.org>
56242
56243         * gnulib-tool: New options --vc-files, --no-vc-files.
56244         (func_usage): Document them.
56245         (vc_files): New variable.
56246         (func_import): Consider vc_files.
56247         (func_create_testdir): Set vc_files to empty.
56248         Suggested by Jim Meyering and Karl Berry.
56249
56250 2008-03-23  Bruno Haible  <bruno@clisp.org>
56251
56252         Fix regex compilation error on HP-UX 11.
56253         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56254         * modules/regex (Files): Add m4/mbstate_t.m4.
56255         Reported by Ton Voon <ton.voon@altinity.com>.
56256
56257 2008-03-23  Bruno Haible  <bruno@clisp.org>
56258
56259         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56260
56261 2008-03-23  Eric Blake  <ebb9@byu.net>
56262             Bruno Haible  <bruno@clisp.org>
56263
56264         Install files from top/ in the destination directory.
56265         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56266         augmentation also for the files from top/.
56267         (func_import, func_create_testdir): Rewrite file names:
56268         top/filename -> filename.
56269
56270 2008-03-23  Bruno Haible  <bruno@clisp.org>
56271
56272         Tweak "gnulib --version" output.
56273         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56274
56275 2008-03-23  Bruno Haible  <bruno@clisp.org>
56276
56277         Tweak "gnulib --version" output.
56278         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56279         rather than contents of ChangeLog, when possible.
56280
56281 2008-03-21  Eric Blake  <ebb9@byu.net>
56282
56283         More --version tweaks.
56284         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56285         date of last ChangeLog entry.
56286
56287 2008-03-21  Jim Meyering  <meyering@redhat.com>
56288
56289         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56290
56291 2008-03-20  Eric Blake  <ebb9@byu.net>
56292
56293         VPATH fix.
56294         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56295
56296 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56297
56298         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56299         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56300
56301 2008-03-20  Eric Blake  <ebb9@byu.net>
56302
56303         Sync GNUmakefile with coreutils.
56304         * build-aux/GNUmakefile (have-Makefile): Rename...
56305         (_have-Makefile): ...to this, for namespace consideration.
56306         (GNUmakefile.cfg): Include, if present.
56307         (_autoreconf): Define a default.
56308         (_is-dist-target): New rule for rebuilds to pick up intra-release
56309         version.
56310         (maint-cfg.mk): Rename...
56311         (cfg.mk): ...to this.
56312
56313 2008-03-18  Jim Meyering  <meyering@redhat.com>
56314
56315         New script and module: mktempd
56316         * MODULES.html.sh (maint+release support): Add mktempd.
56317         * build-aux/mktempd: New file.
56318         * modules/mktempd: New file.
56319
56320 2008-03-15  Jim Meyering  <meyering@redhat.com>
56321
56322         Undo last change.
56323         * lib/sha1.c, lib/md5.c: 63 != ~63.
56324         Reported by Andreas Schwab.
56325
56326         sha1.c, md5.c: Hoist a redundant expression.
56327         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56328         "ctx->buflen" only once, before calling *_process_block.
56329         * lib/md5.c (md5_process_bytes): Likewise.
56330
56331 2008-03-14  Eric Blake  <ebb9@byu.net>
56332
56333         Bump copyright year in files generated by gnulib-tool.
56334         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56335         gnulib-tool, rather than hard-coding it.
56336
56337         Fix 'gnulib-tool --version' output to work with git.
56338         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56339         (startup): ...here.
56340         (func_version): Use it to invoke git-version-gen, rather than
56341         relying on CVS keyword expansion.  Modernize wording.
56342         (cvsdatestamp, last_checkin_date, version): Kill unused
56343         variables.
56344
56345 2008-03-12  Jim Meyering  <meyering@redhat.com>
56346
56347         Recognize optional cast of the argument to free.
56348         * build-aux/useless-if-before-free: Update regexps.
56349
56350         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56351
56352 2008-03-11  Bruno Haible  <bruno@clisp.org>
56353
56354         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56355         by a single package.
56356         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56357         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56358         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56359         Reported by Sam Steingold <sds@gnu.org>.
56360
56361 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56362
56363         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56364         repositories.
56365
56366 2008-03-11  Bruno Haible  <bruno@clisp.org>
56367
56368         Avoid conflicts between local macro definitions.
56369         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56370         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56371
56372 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56373             Bruno Haible  <bruno@clisp.org>
56374
56375         Make va_copy work with some version of xlc on AIX 5.1.
56376         * lib/stdarg.in.h: New file.
56377         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56378         On AIX, use a <stdarg.h> file substitute.
56379         * modules/stdarg (Files): Add lib/stdarg.in.h.
56380         (Depends-on): Add include_next.
56381         (Makefile.am): Build a stdarg.h substitute if requested.
56382         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56383
56384 2008-03-10  Bruno Haible  <bruno@clisp.org>
56385
56386         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56387         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56388         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56389
56390 2008-03-10  Bruno Haible  <bruno@clisp.org>
56391
56392         * modules/stdlib (Depends-on): Add include_next, remove
56393         absolute-header.
56394
56395 2008-03-09  Bruno Haible  <bruno@clisp.org>
56396
56397         * lib/freadahead.h (freadahead): Document more precisely.
56398         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56399         the sum of both buffer sizes.
56400         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56401         * NEWS: Document the change.
56402
56403 2008-03-09  Bruno Haible  <bruno@clisp.org>
56404
56405         Extend freadptr to return also the buffer size.
56406         * lib/freadptr.h (freadptr): Add sizep argument.
56407         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56408         (freadptr): Add sizep argument. Determine buffer size like freadahead
56409         does.
56410         * tests/test-freadptr.c: Don't include freadahead.h.
56411         (main): Adapt for new calling convention of freadptr.
56412         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56413         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56414         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56415         tests/test-freadptr2.sh.
56416         (Depends): Remove freadahead.
56417         (TESTS): Add test-freadptr2.sh.
56418         (check_PROGRAMS): Add test-freadptr2.
56419
56420 2008-03-09  Bruno Haible  <bruno@clisp.org>
56421
56422         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56423         Report and solution by Simon Josefsson.
56424
56425 2008-03-06  Bruno Haible  <bruno@clisp.org>
56426
56427         Make fflush after ungetc work on BSD platforms.
56428         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56429         * tests/test-fflush2.c: New file.
56430         * tests/test-fflush2.sh: New file.
56431         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56432         tests/test-fflush2.c.
56433         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56434         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56435
56436 2008-03-06  Eric Blake  <ebb9@byu.net>
56437
56438         Likewise for ftello.
56439         * modules/ftello (Dependencies): Add extensions.
56440         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56441
56442 2008-03-06  Bruno Haible  <bruno@clisp.org>
56443
56444         * modules/fseeko (Dependencies): Add extensions.
56445         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56446         Needed on glibc systems.
56447
56448 2008-03-06  Bruno Haible  <bruno@clisp.org>
56449
56450         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56451         email address.
56452         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56453
56454 2008-03-06  Bruno Haible  <bruno@clisp.org>
56455
56456         * users.txt: Add libgnupdf.
56457
56458 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56459
56460         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56461         (Header File Substitutes, Function Substitutes,
56462         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56463         (Build robot for gnulib): Fix typo.
56464
56465 2008-03-06  Bruno Haible  <bruno@clisp.org>
56466
56467         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56468         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56469
56470 2008-03-06  Bruno Haible  <bruno@clisp.org>
56471
56472         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56473         * doc/gnulib.texi: Include it.
56474
56475 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56476
56477         * modules/func (License): Change license to unlimited; there was
56478         no LGPL parts in the module anyway.
56479
56480 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56481
56482         * modules/__func__: Renamed to modules/func.
56483         * modules/__func__-tests: Renamed to modules/func-tests.
56484         * tests/test-__func__.c: Renamed to tests/test-func.c.
56485         * m4/__func__.m4: Renamed to m4/func.m4.
56486         * doc/gnulib.texi (__func__): Section renamed to func.
56487         Suggested by Eric Blake <ebb9@byu.net>.
56488
56489 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56490
56491         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56492         about __func__.  Make example self-contained.  Suggested by Eric
56493         Blake <ebb9@byu.net>.
56494
56495         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56496         Suggested by Eric Blake <ebb9@byu.net>.
56497
56498 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56499
56500         * modules/__func__: New file.
56501         * modules/__func__-tests: New file.
56502         * tests/test-__func__.c: New file.
56503         * m4/__func__.m4: New file.
56504         * doc/gnulib.texi (__func__): Document __func__ module.
56505
56506 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56507
56508         * modules/byteswap (License): Re-license as LGPLv2+.
56509
56510 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56511
56512         * doc/Makefile: Add pdf target.
56513
56514 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56515
56516         * modules/inline (License): Use 'unlimited', since there are only
56517         *.m4 files in this module.
56518
56519 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56520             Bruno Haible  <bruno@clisp.org>
56521
56522         Add support for HP C 7.1 on OpenVMS 8.3.
56523         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56524
56525 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56526
56527         Update VMS specifics.
56528         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56529
56530 2008-03-02  Jim Meyering  <meyering@redhat.com>
56531
56532         Remove the last dependency on the "free" module.
56533         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56534         Reported by Bob Proulx.
56535
56536         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56537
56538         Remove useless "if" tests before free.  Deprecate "free" module.
56539         * doc/posix-functions/free.texi: Mention that this
56540         module is no longer useful.
56541         * modules/free (Notice): Say this module is obsolete.
56542         * modules/readutmp (Depends-on): Remove free.
56543         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56544         * lib/putenv.c (putenv): Likewise.
56545         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56546         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56547         * tests/test-c-strcasestr.c (main): Likewise.
56548         * tests/test-c-strstr.c (main): Likewise.
56549         * tests/test-mbscasestr1.c (main): Likewise.
56550         * tests/test-mbscasestr2.c (main): Likewise.
56551         * tests/test-mbsstr1.c (main): Likewise.
56552         * tests/test-mbsstr2.c (main): Likewise.
56553         * tests/test-memmem.c (main): Likewise.
56554         * tests/test-strcasestr.c (main): Likewise.
56555         * tests/test-striconv.c (main): Likewise.
56556         * tests/test-striconveh.c (main): Likewise.
56557         * tests/test-striconveha.c (main): Likewise.
56558         * tests/test-strstr.c (main): Likewise.
56559
56560         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56561
56562         bootstrap: sync from coreutils again
56563         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56564
56565 2008-03-01  Jim Meyering  <meyering@redhat.com>
56566
56567         bootstrap: sync from coreutils
56568         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56569         also when the target doesn't exist.
56570
56571 2008-03-01  Eric Blake  <ebb9@byu.net>
56572
56573         Fix bugs in last patch.
56574         * lib/memchr2.c (memchr2): Fix typo.
56575         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56576         extension.
56577         Reported by Bruce Korb.
56578
56579         New module 'memchr2'.
56580         * modules/memchr2: New file.
56581         * modules/memchr2-tests: Likewise.
56582         * lib/memchr2.h: Likewise.
56583         * lib/memchr2.c: Likewise, based on memchr.c.
56584         * tests/test-memchr2.c: New test.
56585         * MODULES.html.sh (String handling): Add memchr2.
56586
56587 2008-02-29  Bruno Haible  <bruno@clisp.org>
56588
56589         * modules/freadseek-tests: New file.
56590         * tests/test-freadseek.sh: New file.
56591         * tests/test-freadseek.c: New file.
56592
56593         New module 'freadseek'.
56594         * modules/freadseek: New file.
56595         * lib/freadseek.h: New file.
56596         * lib/freadseek.c: New file.
56597         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56598
56599 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56600
56601         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56602         wydawca.
56603
56604         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56605         program_invocation_name and program_invocation_short_name are
56606         present.
56607
56608 2008-02-28  Bruno Haible  <bruno@clisp.org>
56609
56610         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56611         * tests/test-freadptr.sh: Also test non-seekable stdin.
56612
56613 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56614
56615         * build-aux/bootstrap (source_base, m4_base)
56616         (doc_base, tests_base): New variables.
56617         (gnulib_tool_options): Do not hardcode base directories, use
56618         the above variables instead.
56619
56620 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56621
56622         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56623
56624 2008-02-28  Bruno Haible  <bruno@clisp.org>
56625
56626         * modules/freadptr-tests: New file.
56627         * tests/test-freadptr.sh: New file.
56628         * tests/test-freadptr.c: New file.
56629
56630         New module 'freadptr'.
56631         * modules/freadptr: New file.
56632         * lib/freadptr.h: New file.
56633         * lib/freadptr.c: New file.
56634         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56635
56636 2008-02-26  Karl Berry  <karl@freefriends.org>
56637
56638         Sync from Libtool:
56639         * libltdl/argz.c (argz_add, argz_count): New functions.
56640         * libltdl/argz.in.h: Declare them.
56641         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56642
56643 2008-02-22  Bruno Haible  <bruno@clisp.org>
56644
56645         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56646         is a pointer type.  Needed for HP-UX 10.
56647         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56648         * doc/posix-functions/gmtime_r.texi: Likewise.
56649         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56650
56651 2008-02-24  Bruno Haible  <bruno@clisp.org>
56652
56653         * modules/environ-tests: New file.
56654         * tests/test-environ.c: New file.
56655
56656         New module 'environ'.
56657         * modules/environ: New file.
56658         * lib/unistd.in.h (environ): New declaration.
56659         * m4/environ.m4: New file.
56660         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56661         after use.
56662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56663         HAVE_DECL_ENVIRON.
56664         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56665         HAVE_DECL_ENVIRON.
56666         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56667         wrong claim that 'environ' is missing on some systems.
56668         * modules/execute (Depends-on): Add environ.
56669         * lib/execute.c (environ): Remove fallback declaration.
56670         * modules/pipe (Depends-on): Add environ.
56671         * lib/pipe.c (environ): Remove fallback declaration.
56672         * modules/setenv (Depends-on): Add environ.
56673         * lib/setenv.c (environ): Remove fallback declaration.
56674         * modules/unsetenv (Depends-on): Add environ.
56675         * lib/unsetenv.c (environ): Remove fallback declaration.
56676         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56677         m4/environ.m4.
56678         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56679         (gl_PREREQ_UNSETENV): Likewise.
56680
56681 2008-02-24  Bruno Haible  <bruno@clisp.org>
56682
56683         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56684
56685 2008-02-20  Bob Proulx  <bob@proulx.com>
56686
56687         Enable use of older two part flavor 'git describe'.
56688         * build-aux/git-version-gen: If using the older two part flavor of
56689         git version then recreate the third part now present in the
56690         newer three part flavor of git describe.
56691
56692 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56693
56694         * lib/fts.c (fts_build): Typo correction to comment.
56695
56696 2008-02-17  Bruno Haible  <bruno@clisp.org>
56697
56698         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56699         generating no-op conflicts.
56700
56701 2008-02-17  Bruno Haible  <bruno@clisp.org>
56702
56703         Speed up by 10%.
56704         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56705         result_entries, rather than an index-based loop.
56706
56707 2008-02-17  Bruno Haible  <bruno@clisp.org>
56708
56709         Speed up by 25%.
56710         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56711         'hashcode_cached'.
56712         (entry_create): New function.
56713         (entry_hashcode): Use the cached hashcode if possible.
56714         (read_changelog_file, try_split_merged_entry): Use entry_create.
56715
56716 2008-02-17  Bruno Haible  <bruno@clisp.org>
56717
56718         Speed up from O(n^2) to O(n) for long ChangeLog files.
56719         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56720         (read_changelog_file): Change implementation of entries_reversed list
56721         to rbtreehash.
56722         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56723
56724 2008-02-17  Bruno Haible  <bruno@clisp.org>
56725
56726         New option --split-merged-entry.
56727         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56728         (find_paragraph_end, try_split_merged_entry): New functions.
56729         (long_options): Add option --split-merged-entry.
56730         (usage): Document option --split-merged-entry.
56731         (main): Implement option --split-merged-entry.
56732         Reported by Eric Blake.
56733
56734 2008-02-17  Bruno Haible  <bruno@clisp.org>
56735
56736         * lib/git-merge-changelog.c: Include c-strstr.h.
56737         (main): Support the "git pull --rebase" situation.
56738         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56739         Reported by Eric Blake.
56740
56741 2008-02-16  Eric Blake  <ebb9@byu.net>
56742
56743         Avoid doubling \ in common case of "c-maybe" quoting style.
56744         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56745         eliding outer quotes.
56746         * lib/quotearg.h: Document this.
56747         * tests/test-quotearg.c (result_strings, inputs, results_g)
56748         (flag_results, locale_results): Test it by adding a new string to
56749         each test group.
56750         (compare_strings): Test new string.
56751
56752 2008-02-13  Eric Blake  <ebb9@byu.net>
56753
56754         Avoid trigraph quoting in default output.
56755         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56756         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56757         unless explicitly requested.
56758         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56759
56760 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56761
56762         Don't rely on signed integer overflowing to negative value.
56763         * lib/getugroups.c (getugroups): Include <limits.h>.
56764         Instead, compare against INT_MAX, and increment only if the test passes.
56765
56766 2008-02-13  Jim Meyering  <meyering@redhat.com>
56767         and Eric Blake  <ebb9@byu.net>
56768
56769         Avoid shadowing warning and compile errors on Linux.
56770         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56771         forwarding macros on Linux.
56772         (dcgettext): Define a stub, for Linux.
56773         (results_g, main): Avoid warnings.
56774
56775 2008-02-12  Eric Blake  <ebb9@byu.net>
56776
56777         Silence warning in last patch.
56778         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56779
56780         Quotearg part 4: add tests, fix c-maybe colon quoting.
56781         * lib/quotearg.h: Improve documentation.
56782         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56783         escapes when adding outer quotes.  When quoting trigraphs, use
56784         valid C notation.  When quoting NUL, omit extra characters if next
56785         character is not digit.  Alter prototype.
56786         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56787         callers.
56788         * modules/quotearg-tests: New module.
56789         * tests/test-quotearg.c: New test.
56790
56791 2008-02-07  Eric Blake  <ebb9@byu.net>
56792
56793         Quotearg part 3: add flag to control outer quote elision.
56794         * lib/quotearg.h (c_maybe_quoting_style): New style.
56795         (enum quoting_flags): Better documentation of flags.
56796         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56797         c-maybe style.
56798         (quotearg_buffer_restyled): Handle new flag to elide outer
56799         quotes.
56800
56801         Quotearg part 2: add flag that can control NUL elision.
56802         * lib/quotearg.h (set_quoting_flags): New prototype.
56803         * lib/quotearg.c (struct quoting_options): Add flag field.
56804         (set_quoting_flags): New function.
56805         (quotearg_buffer_restyled): Add flags parameter.
56806         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56807         (quotearg_n_options): Set the flag, since length cannot be
56808         returned.
56809         (quoting_options_from_style): Default flags correctly.
56810
56811         Quotearg part 1: more wrappers, restore quotearg_char state.
56812         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56813         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56814         (quotearg_colon_mem): New wrappers.
56815         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56816         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56817         functions.
56818         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56819         (quotearg_colon_mem): New functions.
56820
56821 2008-02-11  Bruno Haible  <bruno@clisp.org>
56822
56823         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56824         library in the current directory: it does not work with parallel make.
56825         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56826
56827 2008-02-11  Bruno Haible  <bruno@clisp.org>
56828
56829         * .gitattributes: New file.
56830
56831 2008-02-11  Jim Meyering  <meyering@redhat.com>
56832
56833         useless-if-before-free: Fix reversed exit values.
56834         * build-aux/useless-if-before-free: Use correct values
56835         for EXIT_MATCH and EXIT_NO_MATCH.
56836
56837         * build-aux/useless-if-before-free: Close stdout carefully.
56838
56839 2008-02-10  Bruno Haible  <bruno@clisp.org>
56840
56841         New module 'git-merge-changelog'.
56842         * modules/git-merge-changelog: New file.
56843         * lib/git-merge-changelog.c: New file.
56844
56845 2008-02-10  Jim Meyering  <meyering@redhat.com>
56846
56847         useless-if-before-free: New option: --list (-l).
56848
56849         useless-if-before-free: Don't exit immediately upon open failure.
56850         * build-aux/useless-if-before-free: Exit 2 for errors.
56851         Upon failure to open a file, don't exit immediately.
56852         Rather, just warn and continue with any remaining files.
56853
56854 2008-02-10  Bruno Haible  <bruno@clisp.org>
56855
56856         New abstract list operation 'node_set_value'.
56857         * lib/gl_list.h (gl_list_node_set_value): New function.
56858         (struct gl_list_implementation): New field node_set_value.
56859         * lib/gl_list.c (gl_list_node_set_value): New function.
56860         * lib/gl_array_list.c (gl_array_node_set_value): New function.
56861         (gl_array_list_implementation): Update.
56862         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
56863         (gl_carray_list_implementation): Update.
56864         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
56865         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56866         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56867         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
56868         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56869         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56870         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56871         Update.
56872         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56873         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
56874         (gl_sublist_list_implementation): Update.
56875
56876 2008-02-10  Bruno Haible  <bruno@clisp.org>
56877
56878         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
56879         Needed when ELEMENT is #defined to 'some_type *'.
56880
56881 2008-02-10  Jim Meyering  <meyering@redhat.com>
56882
56883         New script and module: useless-if-before-free
56884         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
56885         * build-aux/useless-if-before-free: New file.
56886         * modules/useless-if-before-free: New file.
56887
56888         * build-aux/gitlog-to-changelog: Use committer date, not author date.
56889
56890         xstrtol_error: Fix typo.
56891         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
56892         s/exit_failure/exit_status/.
56893
56894 2008-02-09  Jim Meyering  <meyering@redhat.com>
56895
56896         New script and module: gitlog-to-changelog
56897         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
56898         * modules/gitlog-to-changelog: New file.
56899         * build-aux/gitlog-to-changelog: New file.
56900
56901 2008-02-08  Jim Meyering  <meyering@redhat.com>
56902
56903         Avoid two "parameter unused" warnings.
56904         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
56905         Mark "st" as used.
56906
56907         Use "git COMMAND", not "git-COMMAND".
56908         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
56909         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
56910         * build-aux/git-version-gen: Use "git status", not "git-status".
56911
56912 2008-02-07  Bruno Haible  <bruno@clisp.org>
56913
56914         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
56915         Avoids a crash on Windows Vista.
56916         Reported by Adam Strzelecki <ono@java.pl> via
56917         Simon Josefsson <simon@josefsson.org>.
56918
56919 2008-02-06  Bruno Haible  <bruno@clisp.org>
56920
56921         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
56922         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
56923         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
56924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
56925         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56927         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
56928         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
56929         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56930         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56931         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56932         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56933         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56935         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56936         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
56937         left-adjust flag.
56938         * tests/test-snprintf-posix.h (test_function): Likewise.
56939         * tests/test-sprintf-posix.h (test_function): Likewise.
56940         * tests/test-vasprintf-posix.c (test_function): Likewise.
56941         * doc/posix-functions/fprintf.texi: Update.
56942         * doc/posix-functions/printf.texi: Update.
56943         * doc/posix-functions/snprintf.texi: Update.
56944         * doc/posix-functions/sprintf.texi: Update.
56945         * doc/posix-functions/vfprintf.texi: Update.
56946         * doc/posix-functions/vprintf.texi: Update.
56947         * doc/posix-functions/vsnprintf.texi: Update.
56948         * doc/posix-functions/vsprintf.texi: Update.
56949         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56950
56951 2008-02-06  Bruno Haible  <bruno@clisp.org>
56952
56953         Fix bug introduced on 2008-01-26.
56954         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
56955
56956 2008-02-06  Bruno Haible  <bruno@clisp.org>
56957
56958         Fix bug introduced on 2007-06-10.
56959         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
56960         !NEED_PRINTF_FLAG_ZERO.
56961
56962 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
56963
56964         getloadavg: use libperfstat on AIX5
56965         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
56966
56967 2008-02-03  Bruno Haible  <bruno@clisp.org>
56968
56969         * lib/diffseq.h: Add comments about required #includes.
56970         Reported by Michael Biggs <gnulib@doubleplum.net>.
56971
56972 2008-02-01  Bruno Haible  <bruno@clisp.org>
56973
56974         * users.txt: Add gnuit.
56975
56976 2008-01-31  Bruno Haible  <bruno@clisp.org>
56977
56978         * lib/md4.c (set_uint32): Mark as inline.
56979         * lib/md5.c (set_uint32): Likewise.
56980         * lib/sha1.c (set_uint32): Likewise.
56981         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
56982         * m4/md5.m4 (gl_MD5): Likewise.
56983         * m4/sha1.m4 (gl_SHA1): Likewise.
56984
56985 2008-01-31  Jim Meyering  <meyering@redhat.com>
56986
56987         Use "sizeof VAR", rather than a literal "4".
56988         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
56989         * lib/md4.c (md4_read_ctx): Likewise.
56990         * lib/sha1.c (sha1_read_ctx): Likewise.
56991
56992 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56993
56994         * tests/test-sha1.c: New file, based on test-md5.c.
56995
56996         * modules/crypto/sha1-tests: New file.
56997
56998 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56999
57000         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57001
57002 2008-01-31  Jim Meyering  <meyering@redhat.com>
57003
57004         Prefer "sizeof v" over the equivalent "4".
57005         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57006         * lib/md5.c (set_uint32): Likewise.
57007         * lib/sha1.c (set_uint32): Likewise.
57008
57009 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57010
57011         * lib/sha1.c (set_uint32): Mark function as static.
57012
57013 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57014
57015         md2: clarify comments to say that alignment is not required.
57016         * lib/md2.h: Remove warning about alignment in comment.
57017         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57018         never been required.
57019
57020 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57021
57022         md4: adapt alignment constraint fix from sha1.
57023         * lib/md4.c (set_uint32): New function, from sha1.c
57024         (md4_read_ctx): Use it.
57025         (md4_finish_ctx): Doc fix.
57026         * lib/md4.h: Doc fix.
57027
57028 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57029
57030         md5: adapt alignment constraint fix from sha1.
57031         * lib/md5.c (set_uint32): New function, from sha1.c
57032         (md5_read_ctx): Use it.
57033         (md5_finish_ctx): Doc fix.
57034         * lib/md5.h: Doc fix.
57035
57036 2008-01-30  Peter Palfrader  <weasel@debian.org>
57037
57038         sha1: remove the result buffer alignment constraint
57039         * lib/sha1.c (set_uint32): New function.
57040         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57041         constraint.
57042         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57043         * lib/sha1.h: Likewise.
57044
57045 2008-01-30  Andreas Schwab  <schwab@suse.de>
57046             Bruno Haible  <bruno@clisp.org>
57047
57048         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57049         correct definition of LDBL_MIN_EXP.
57050
57051 2008-01-30  Karl Berry  <karl@gnu.org>
57052
57053         * config/srclist-update: try to preserve x bit on updates.
57054         * config/srclistvars.sh: update for karl.
57055
57056 2008-01-29  Jim Meyering  <meyering@redhat.com>
57057
57058         vasnprintf.c: Avoid warning about unused label
57059         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57060         "overflow" label definition and associated code with the
57061         same cpp condition that guards the sole use of that label.
57062
57063 2008-01-26  Bruno Haible  <bruno@clisp.org>
57064
57065         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57066         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57067         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57068         * lib/isnanl-nolibm.h (isnanl): Likewise.
57069         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57070
57071 2008-01-26  Bruno Haible  <bruno@clisp.org>
57072
57073         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57074         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57075
57076 2008-01-26  Bruno Haible  <bruno@clisp.org>
57077
57078         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57079         GCC >= 4.0 built-in.
57080         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57081
57082 2008-01-26  Bruno Haible  <bruno@clisp.org>
57083
57084         Rename isnan, applicable to 'double' only, to isnand.
57085         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57086         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57087         (configure.ac): Update.
57088         (Include): Replace "isnan.h" with "isnand.h".
57089         * m4/isnand.m4: Renamed from m4/isnan.m4.
57090         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57091         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57092         instead of isnan.c.
57093         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57094         instead of HAVE_ISNAN_IN_LIBC.
57095         (isnand): Renamed from isnan.
57096         * lib/isnand.c: New file.
57097         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57098         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57099         (Makefile.am): Update.
57100         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57101         Include isnand.h instead of isnan.h.
57102         (main): Test isnand instead of isnan.
57103         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57104         isnan-nolibm.
57105         * modules/frexp (Depends-on): Likewise.
57106         * modules/frexp-tests (Depends-on): Likewise.
57107         * modules/frexp-nolibm (Depends-on): Likewise.
57108         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57109         * modules/isfinite (Depends-on): Likewise.
57110         * modules/round-tests (Depends-on): Likewise.
57111         * modules/signbit (Depends-on): Likewise.
57112         * modules/signbit-tests (Depends-on): Likewise.
57113         * modules/snprintf-posix (Depends-on): Likewise.
57114         * modules/sprintf-posix (Depends-on): Likewise.
57115         * modules/trunc-tests (Depends-on): Likewise.
57116         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57117         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57118         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57119         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57120         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57121         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57122         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57123         * modules/vasnprintf-posix (Depends-on): Likewise.
57124         * modules/vasprintf-posix (Depends-on): Likewise.
57125         * modules/vfprintf-posix (Depends-on): Likewise.
57126         * modules/vsnprintf-posix (Depends-on): Likewise.
57127         * modules/vsprintf-posix (Depends-on): Likewise.
57128         * lib/frexp.c: Include isnand.h instead of isnan.h.
57129         (ISNAN): Set to isnand instead of isnan.
57130         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57131         (gl_isfinited): Use isnand instead of isnan.
57132         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57133         (gl_signbitd): Use isnand instead of isnan.
57134         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57135         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57136         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57137         (main): Use isnand instead of isnan.
57138         * tests/test-round1.c: Include isnand.h.
57139         (main): Use isnand instead of isnan.
57140         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57141         (ISNAN): Set to isnand instead of isnan.
57142         * tests/test-trunc1.c: Include isnand.h.
57143         (main): Use isnand instead of isnan.
57144         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57145         (equal): Use isnand instead of isnan.
57146         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57147         isnand-nolibm.
57148         * NEWS: Mention the change.
57149
57150 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57151             Bruno Haible  <bruno@clisp.org>
57152
57153         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57154         the GCC builtins for signbits are present and set
57155         REPLACE_SIGNBIT_USING_GCC if so.
57156         * lib/math.in.h (signbit): Define using GCC builtins if
57157         REPLACE_SIGNBIT_USING_GCC is set.
57158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57159         REPLACE_SIGNBIT_USING_GCC.
57160         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57161
57162 2008-01-25  Jim Meyering  <meyering@redhat.com>
57163
57164         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57165         * lib/poll.c: Include <config.h>, not "config.h".
57166         * tests/test-getaddrinfo.c: Likewise.
57167
57168 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57169
57170         * modules/sockets-tests: New file.
57171
57172 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57173
57174         * modules/sockets: New module, can be used to call WSA_Startup and
57175         WSA_Cleanup when needed.
57176
57177         * lib/sockets.h, lib/sockets.c: New files.
57178
57179         * m4/sockets.m4: New file.
57180
57181         * tests/test-sockets.c: New file.
57182
57183 2008-01-19  Bruno Haible  <bruno@clisp.org>
57184
57185         * doc/posix-headers: Renamed from doc/headers.
57186         * doc/posix-functions: Renamed from doc/functions.
57187         * doc/gnulib.texi: Update.
57188
57189 2008-01-19  Bruno Haible  <bruno@clisp.org>
57190
57191         * doc/glibc-functions/strcasestr.texi: Include contents of
57192         doc/functions/strcasestr.texi, fixing the list of platforms.
57193         * doc/functions/strcasestr.texi: Remove file.
57194
57195 2008-01-19  Bruno Haible  <bruno@clisp.org>
57196
57197         * doc/glibc-functions/memmem.texi: Include contents of
57198         doc/functions/memmem.texi.
57199         * doc/functions/memmem.texi: Remove file.
57200
57201 2008-01-18  Bruno Haible  <bruno@clisp.org>
57202
57203         * doc/glibc-functions/*.texi: New files.
57204         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57205         to use the new files.
57206
57207 2008-01-17  Bruno Haible  <bruno@clisp.org>
57208
57209         * tests/test-gethostname.c (main): Fix printf statement.
57210
57211 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57212
57213         * modules/gethostname-tests: New file.
57214
57215         * tests/test-gethostname.c: New file.
57216
57217 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57218
57219         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57220         used by the UNAME case.  Reported by Bruno Haible
57221         <bruno@clisp.org>.
57222
57223 2008-01-17  Eric Blake  <ebb9@byu.net>
57224
57225         Convert c-strcasestr to be more efficient.
57226         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57227         (Depends-on): Add c-strcase, remove malloca, strnlen.
57228         * tests/test-c-strcasestr.c (main): Enhance test.
57229         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57230
57231 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57232
57233         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57234         Use it in creating po/Makevars.
57235
57236 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57237
57238         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57239         Applications that requires it should initialize libgcrypt
57240         manually.
57241
57242 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57243
57244         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57245
57246 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57247
57248         Fix problem with getdate on mingw32 reported by Simon Josefsson
57249         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57250         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57251         tzname", when deciding whether to declare tzname.
57252         * lib/strftime.c (tzname): Likewise.
57253
57254 2008-01-15  Bruno Haible  <bruno@clisp.org>
57255
57256         Work around a MacOS X 10.5 bug in frexpl().
57257         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57258         * doc/functions/frexpl.texi: Document the bug.
57259         Reported by Elias Pipping <pipping@gentoo.org>.
57260
57261 2008-01-14  Eric Blake  <ebb9@byu.net>
57262
57263         Touch up previous patch.
57264         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57265         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57266
57267         Convert strcasestr module to use Two-Way algorithm.
57268         * modules/strcasestr-simple: New module, based on the old
57269         strcasestr, but with Two-Way rather than KMP.
57270         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57271         * lib/string.in.h (rpl_strcasestr): Declare.
57272         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57273         performance.
57274         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57275         * modules/string (Makefile.am): Support strcasestr.
57276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57277         * modules/strcasestr-tests (Depends-on): Check for alarm.
57278         * tests/test-strcasestr.c: Augment test.
57279         * lib/str-two-way.h: Clean up stray macro.
57280         * NEWS: Document new module.
57281         * MODULES.html.sh (string handling): Likewise.
57282         * doc/functions/strcasestr.texi: New file.
57283         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57284         here, since it is not a POSIX function.
57285
57286 2008-01-14  Colin Watson  <cjwatson@debian.org>
57287             Bruno Haible  <bruno@clisp.org>
57288
57289         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57290         works fine; if not, set REPLACE_STRSIGNAL.
57291         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57292         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57293         REPLACE_STRSIGNAL.
57294         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57295         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57296         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57297
57298 2008-01-14  Bruno Haible  <bruno@clisp.org>
57299
57300         * modules/strsignal (Include): Change to <string.h>.
57301
57302 2008-01-14  Colin Watson  <cjwatson@debian.org>
57303
57304         * modules/argp (Notice): Add a notice recommending to change
57305         XGETTEXT_OPTIONS.
57306         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57307
57308 2008-01-13  Colin Watson  <cjwatson@debian.org>
57309
57310         * modules/strsignal-tests: New file.
57311         * tests/test-strsignal.c: New file.
57312
57313         * lib/strsignal.c: New file, from glibc with modifications.
57314         * lib/siglist.h: New file, from glibc with modifications.
57315         * lib/string.in.h (strsignal): New declaration.
57316         * m4/strsignal.m4: New file.
57317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57318         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57319         * modules/strsignal: New file.
57320         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57321         HAVE_DECL_STRSIGNAL.
57322
57323 2008-01-13  Bruno Haible  <bruno@clisp.org>
57324
57325         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57326         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57327         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57328         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57329
57330 2008-01-13  Bruno Haible  <bruno@clisp.org>
57331
57332         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57333         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57334         * lib/argp.h (__attribute__): Likewise.
57335         * lib/c-stack.c (__attribute__): Likewise.
57336         * lib/error.h (__attribute__): Likewise.
57337         * lib/fts.c (__attribute__): Likewise.
57338         * lib/openat.h (__attribute__): Likewise.
57339         * lib/stdio.in.h (__attribute__): Likewise.
57340         * lib/string.in.h (__attribute__): Likewise.
57341         * lib/utimens.c (__attribute__): Likewise.
57342         * lib/vasnprintf.h (__attribute__): Likewise.
57343         * lib/xalloc.h (__attribute__): Likewise.
57344         * lib/xprintf.h (__attribute__): Likewise.
57345         * lib/xstrtol.h (__attribute__): Likewise.
57346         * lib/xvasprintf.h (__attribute__): Likewise.
57347
57348 2008-01-12  Bruno Haible  <bruno@clisp.org>
57349
57350         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57351         * doc/glibc-headers/a.out.texi: New file.
57352         * doc/glibc-headers/aliases.texi: New file.
57353         * doc/glibc-headers/alloca.texi: New file.
57354         * doc/glibc-headers/ar.texi: New file.
57355         * doc/glibc-headers/argp.texi: New file.
57356         * doc/glibc-headers/argz.texi: New file.
57357         * doc/glibc-headers/byteswap.texi: New file.
57358         * doc/glibc-headers/crypt.texi: New file.
57359         * doc/glibc-headers/endian.texi: New file.
57360         * doc/glibc-headers/envz.texi: New file.
57361         * doc/glibc-headers/err.texi: New file.
57362         * doc/glibc-headers/error.texi: New file.
57363         * doc/glibc-headers/execinfo.texi: New file.
57364         * doc/glibc-headers/fpu_control.texi: New file.
57365         * doc/glibc-headers/fstab.texi: New file.
57366         * doc/glibc-headers/fts.texi: New file.
57367         * doc/glibc-headers/getopt.texi: New file.
57368         * doc/glibc-headers/ieee754.texi: New file.
57369         * doc/glibc-headers/ifaddrs.texi: New file.
57370         * doc/glibc-headers/libintl.texi: New file.
57371         * doc/glibc-headers/mcheck.texi: New file.
57372         * doc/glibc-headers/mntent.texi: New file.
57373         * doc/glibc-headers/obstack.texi: New file.
57374         * doc/glibc-headers/paths.texi: New file.
57375         * doc/glibc-headers/printf.texi: New file.
57376         * doc/glibc-headers/pty.texi: New file.
57377         * doc/glibc-headers/resolv.texi: New file.
57378         * doc/glibc-headers/shadow.texi: New file.
57379         * doc/glibc-headers/sysexits.texi: New file.
57380         * doc/glibc-headers/ttyent.texi: New file.
57381
57382 2008-01-12  Jim Meyering  <meyering@redhat.com>
57383
57384         announce-gen: emit Gnulib's git-based version string.
57385         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57386         New option --gnulib-version=V, where V is expected to be
57387         the output of running git describe in the gnulib directory.
57388         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57389         not useful, and plan to stop publishing an xdelta file with each
57390         coreutils release.
57391
57392         * build-aux/announce-gen: Also check for lzma-compressed files.
57393
57394 2008-01-11  Bruno Haible  <bruno@clisp.org>
57395
57396         * tests/test-memmem.c (main): Increase maximum allowed time.
57397         * tests/test-strstr.c (main): Likewise.
57398
57399 2008-01-11  Bruno Haible  <bruno@clisp.org>
57400
57401         * doc/functions/memmem.texi: Add more precisions about platforms.
57402         * doc/functions/strstr.texi: Likewise.
57403
57404 2008-01-10  Eric Blake  <ebb9@byu.net>
57405
57406         * m4/strstr.m4: Delete cruft from copy-n-paste.
57407         Reported by Bruno Haible.
57408
57409 2008-01-10  Bruno Haible  <bruno@clisp.org>
57410
57411         Make c-strstr rely on strstr.
57412         * lib/c-strstr.c: Don't include str-kmp.h.
57413         (c_strstr): Define in terms of strstr.
57414         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57415         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57416
57417 2008-01-10  Bruno Haible  <bruno@clisp.org>
57418
57419         * doc/gnulib.texi (String Functions in C Locale): New section.
57420         * doc/c-ctype.texi: New file.
57421         * doc/c-strcase.texi: New file.
57422         * doc/c-strcaseeq.texi: New file.
57423         * doc/c-strcasestr.texi: New file.
57424         * doc/c-strstr.texi: New file.
57425         * doc/c-strtod.texi: New file.
57426         * doc/c-strtold.texi: New file.
57427
57428 2008-01-10  Eric Blake  <ebb9@byu.net>
57429
57430         * lib/relocatable.h: Fix a comment.
57431
57432 2008-01-10  Eric Blake  <ebb9@byu.net>
57433
57434         Share two-way algorithm.
57435         * lib/str-two-way.h: New file, merged from...
57436         * lib/memmem.c: ...here...
57437         * lib/strstr.c: ...and here.
57438         * modules/memmem (Files): Use it.
57439         * modules/strstr (Files): Likewise.
57440
57441         Avoid quadratic strstr implementations.
57442         * lib/strstr.c: New file.
57443         * m4/strstr.m4: Likewise.
57444         * modules/strstr: Likewise.
57445         * modules/strstr-tests: Likewise.
57446         * tests/test-strstr.c: Likewise.
57447         * lib/string.in.h (rpl_strstr): Declare.
57448         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57450         * modules/string (Makefile.am): Likewise.
57451         * MODULES.html.sh (string handling): Mention new module.
57452         * doc/functions/strstr.texi (strstr): Document the bug.
57453
57454 2008-01-10  Bruno Haible  <bruno@clisp.org>
57455
57456         * lib/relocatable.h (relocate): State whether result is freshly
57457         allocated or not.
57458         * lib/relocatable.c (relocate): Return a freshly allocated string
57459         instead of a pointer to a privately held string.
57460         Reported by Sylvain Beucler <beuc@gnu.org>.
57461
57462 2008-01-10  Colin Watson  <cjwatson@debian.org>
57463
57464         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57465         s/S_ISNLK/S_ISLNK/.
57466
57467 2008-01-09  Bruno Haible  <bruno@clisp.org>
57468
57469         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57470         and other files.
57471         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57472         if it's only a guess.
57473         * modules/memmem: Simplify by depending on memmem-simple.
57474
57475 2008-01-09  Bruno Haible  <bruno@clisp.org>
57476
57477         Work around OpenBSD 4.0 tdelete() bug.
57478         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57479         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57480         macros and don't redefine the enum values.
57481         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57482         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57483         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57484
57485 2008-01-09  Bruno Haible  <bruno@clisp.org>
57486
57487         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57488         (main): Don't perform the tests if setlocale did not install a UTF-8
57489         locale. Needed on OpenBSD 4.0.
57490         * modules/wcwidth-tests (Depends-on): Add localcharset.
57491
57492 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57493
57494         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57495         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57496         * NEWS: announce this.
57497         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57498
57499 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57500         and Eric Blake  <ebb9@byu.net>
57501
57502         Add memmem-simple module.
57503         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57504         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57505         * modules/memmem-simple: New file.
57506         * modules/memmem (Description): Tweak.
57507         * MODULES.html.sh (string handling): Mention new module.
57508         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57509         addressed by memmem-simple.
57510         * NEWS: Document the difference.
57511
57512 2008-01-09  Eric Blake  <ebb9@byu.net>
57513
57514         Give gcc some memmem optimization hints.
57515         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57516         (strcasestr): Declare as pure.
57517         * modules/memmem (Maintainer): Claim my implementation.
57518
57519 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57520
57521         Support AIX 6.1 and higher.
57522         * build-aux/config.libpath: Likewise.
57523         * build-aux/config.rpath: Likewise.
57524
57525 2008-01-08  Jim Meyering  <meyering@redhat.com>
57526             Bruno Haible  <bruno@clisp.org>
57527
57528         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57529         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57530         Reported by Peter Fales in
57531         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57532
57533 2008-01-08  Bruno Haible  <bruno@clisp.org>
57534
57535         * modules/unictype/category-of (Depends-on): Add
57536         unictype/category-none.
57537         * modules/unictype/category-and-tests (Depends-on): Add
57538         unictype/category-{L,N,Lu,Nd}.
57539         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57540         * modules/unictype/category-or-tests (Depends-on): Add
57541         unictype/category-{L,N}.
57542         * modules/unictype/category-name-tests (Depends-on): Add
57543         unictype/category-{Z,Nl}.
57544         Reported by Simon Josefsson.
57545
57546 2008-01-08  Bruno Haible  <bruno@clisp.org>
57547
57548         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57549         convention better.
57550         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57551         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57552         Reported by Peter Miller <millerp@canb.auug.org.au>.
57553
57554 2008-01-08  Eric Blake  <ebb9@byu.net>
57555
57556         Rewrite memmem to guarantee linear complexity without malloc.
57557         * lib/memmem.c (memmem): Use Two-Way rather than
57558         Knuth-Morris-Pratt, to allow O(1) space usage.
57559         (critical_factorization, two_way_short_needle)
57560         (two_way_long_needle): New functions.
57561         (knuth_morris_pratt): Delete.
57562         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57563         Add stdint.
57564         * tests/test-memmem.c (main): Add tests for periodic needle and
57565         sublinear performance.
57566         * doc/functions/memmem.texi (memmem): Document other deficiencies
57567         in cygwin and older glibc.
57568
57569 2008-01-08  Bruno Haible  <bruno@clisp.org>
57570
57571         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57572         augmentation.
57573
57574 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57575
57576         Add a configure time option: --disable-acl.
57577         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57578         AC_ARG_ENABLE(acl).
57579
57580 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57581
57582         * tests/test-localename.c: Don't include obsolete "setenv.h".
57583
57584         * modules/localename-tests (Depends-on): Need unsetenv.
57585
57586 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57587
57588         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57589
57590 2008-01-06  Colin Watson  <cjwatson@debian.org>
57591
57592         * users.txt: Add man-db.
57593
57594 2008-01-07  Bruno Haible  <bruno@clisp.org>
57595
57596         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57597         previous section name.
57598
57599 2008-01-07  Bruno Haible  <bruno@clisp.org>
57600
57601         * lib/progname.c (set_program_name): Don't strip off a leading
57602         "lt-" prefix outside a .libs directory.
57603         Suggested by Paul Eggert.
57604
57605 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57606             Bruno Haible  <bruno@clisp.org>
57607
57608         Improve memory cleanup in 'relocatable' module.
57609         * lib/relocatable.h (compute_curr_prefix): Change return type to
57610         'char *'.
57611         * lib/relocatable.c (compute_curr_prefix): Change return type to
57612         'char *'. Free curr_installdir after use.
57613         (relocate): Free curr_prefix_better after use.
57614         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57615
57616 2008-01-01  Bruno Haible  <bruno@clisp.org>
57617
57618         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57619         failure on older glibc systems.
57620         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57621
57622 2008-01-05  Eric Blake  <ebb9@byu.net>
57623
57624         Avoid quadratic system memmem.
57625         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57626         Reported by Ralf Wildenhues.
57627
57628         Fix memmem test for mingw.
57629         * modules/memmem-tests (configure.ac): Check for alarm.
57630         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57631         it.
57632         * doc/functions/memmem.texi: New file.
57633         * doc/gnulib.texi (Function Substitutes): Add memmem.
57634         Reported by Bruno Haible.
57635
57636 2008-01-04  Bruno Haible  <bruno@clisp.org>
57637
57638         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57639         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57640         gl_HEADER_STRING_H_DEFAULTS.
57641
57642 2008-01-04  Eric Blake  <ebb9@byu.net>
57643
57644         Shorten duration of memmem test.
57645         * tests/test-memmem.c (main): Use alarm to declare failure if test
57646         is taking too long.
57647         Reported by Ralf Wildenhues.
57648
57649 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57650
57651         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57652         string, needed by strerror.
57653
57654 2008-01-03  Colin Watson  <cjwatson@debian.org>
57655             Bruno Haible  <bruno@clisp.org>
57656
57657         * doc/gnulib-tool.texi (Localization): New section.
57658
57659 2008-01-02  Bruno Haible  <bruno@clisp.org>
57660
57661         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57662         variables to 'unsigned char *' type.
57663         Reported by Paul Eggert.
57664
57665 2008-01-02  Jim Meyering  <jim@meyering.net>
57666
57667         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57668
57669 2007-12-31  Jim Meyering  <jim@meyering.net>
57670
57671         Avoid use of private FTS type name.
57672         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57673
57674 2007-12-30  Karl Berry  <karl@gnu.org>
57675
57676         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57677         work around defect in Texinfo and/or the standalone Info browser.
57678
57679 2007-12-30  Bruno Haible  <bruno@clisp.org>
57680
57681         Unify 5 copies of the KMP code.
57682         * lib/str-kmp.h: New file.
57683         * lib/c-strcasestr.c: Include str-kmp.h.
57684         (knuth_morris_pratt): Remove function.
57685         (c_strcasestr): Update.
57686         * lib/c-strstr.c: Include str-kmp.h.
57687         (knuth_morris_pratt): Remove function.
57688         (c_strcasestr): Update.
57689         * lib/mbscasestr.c: Include str-kmp.h.
57690         (knuth_morris_pratt_unibyte): Remove function.
57691         * lib/mbsstr.c: Include str-kmp.h.
57692         (knuth_morris_pratt_unibyte): Remove function.
57693         * lib/strcasestr.c: Include str-kmp.h.
57694         (knuth_morris_pratt): Remove function.
57695         (strcasestr): Update.
57696         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57697         * modules/c-strstr (Files): Likewise.
57698         * modules/mbscasestr (Files): Likewise.
57699         * modules/mbsstr (Files): Likewise.
57700         * modules/strcasestr (Files): Likewise.
57701         Suggested by Paul Eggert.
57702
57703 2007-12-30  Bruno Haible  <bruno@clisp.org>
57704
57705         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57706         defined.
57707
57708 2007-12-30  Bruno Haible  <bruno@clisp.org>
57709
57710         * lib/xmalloca.h: Include xalloc.h.
57711         (xnmalloca): New macro.
57712
57713 2007-12-30  Bruno Haible  <bruno@clisp.org>
57714
57715         * lib/malloca.h (nmalloca): New macro.
57716         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57717         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57718         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57719         knuth_morris_pratt_multibyte): Likewise.
57720         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57721         knuth_morris_pratt_multibyte): Likewise.
57722         * lib/memmem.c (knuth_morris_pratt): Likewise.
57723         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57724
57725 2007-12-25  Bruno Haible  <bruno@clisp.org>
57726
57727         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57728         * lib/glob.c: Don't include openat.h.
57729         (link_exists2_p): Add back the code that deals with the
57730         !GLOB_ALTDIRFUNC case.
57731         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57732         let it do the filename concatenation.
57733         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57734         * modules/glob (Depends-on): Remove openat.
57735
57736 2007-12-31  Bruno Haible  <bruno@clisp.org>
57737
57738         * modules/dirfd (License): Change to LGPLv2+.
57739         Approved by Jim Meyering.
57740
57741 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57742
57743         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57744         when multiplying M by sizeof (size_t).
57745
57746 2007-12-10  Martin Lambers  <marlam@marlam.de>
57747
57748         Override getpagesize on mingw.
57749         * lib/getpagesize.c: New file.
57750         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57751         * modules/getpagesize (Files): Add lib/getpagesize.c.
57752         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57753         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57754         REPLACE_GETPAGESIZE.
57755         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57756
57757 2007-12-25  Bruno Haible  <bruno@clisp.org>
57758
57759         * modules/localcharset (Notice): New field.
57760         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57761         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57762
57763 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57764             Bruno Haible  <bruno@clisp.org>
57765
57766         Avoid using the syntax symbol() in formatted documentation.
57767         * MODULES.html.sh (func_module): When replacing symbol() with a
57768         hyperlink, remove the parentheses. Show an error if some remain.
57769         Recognize and render the '...' syntax.
57770         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57771         Rework. Add paragraph about GCC's inlining.
57772         * doc/alloca.texi: Likewise.
57773         * doc/error.texi: Remove parentheses from symbol reference.
57774         * doc/gnulib-intro.texi: Likewise.
57775         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57776         * modules/fnmatch (Description): Reword to say "the ... function".
57777         * modules/full-read (Description): Likewise.
57778         * modules/full-write (Description): Likewise.
57779         * modules/safe-read (Description): Likewise.
57780         * modules/safe-write (Description): Likewise.
57781         * modules/strchrnul (Description): Likewise.
57782         * modules/trim (Description): Likewise.
57783         * modules/error (Description): Remove parentheses from symbol
57784         references.
57785         * modules/verror (Description): Likewise.
57786         Reported by Karl Berry.
57787
57788 2007-12-25  Bruno Haible  <bruno@clisp.org>
57789
57790         Fixup after 2007-10-16 commit.
57791         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57792
57793 2007-12-24  Bruno Haible  <bruno@clisp.org>
57794
57795         Make --enable-relocatable work with DESTDIR.
57796         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57797         to compute installdir from destprog.
57798         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57799         also set the RELOC_DESTDIR variable.
57800         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57801
57802 2007-12-24  Bruno Haible  <bruno@clisp.org>
57803
57804         Fix link error due to xalloc_die().
57805         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57806         of xreadlink.
57807         * lib/relocwrapper.c: Update comments.
57808         * build-aux/install-reloc: Remove xreadlink.c from file list.
57809         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57810         xreadlink.c.
57811         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57812
57813 2007-12-24  Bruno Haible  <bruno@clisp.org>
57814
57815         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57816         * lib/setenv.h: Remove file.
57817         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57818         lib/setenv.h.
57819         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57820         (Depends-on): Add stdlib.
57821         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57822         gl_FUNC_UNSETENV.
57823         (Include): Replace setenv.h with <stdlib.h>.
57824         * modules/unsetenv: New file.
57825         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
57826         * lib/unsetenv.c: Include <stdlib.h> first.
57827         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
57828         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
57829         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
57830         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
57831         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
57832         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
57834         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57835         * doc/functions/unsetenv.texi: Update.
57836         * modules/xsetenv (Depends-on): Add unsetenv.
57837         * modules/getdate (Depends-on): Likewise.
57838         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
57839         * lib/xsetenv.c: Don't include setenv.h.
57840         * lib/getdate.y: Likewise.
57841         * lib/relocwrapper.c: Likewise.
57842         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
57843         (Depends-on): Add stdlib.
57844         * NEWS: Mention the changes.
57845         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57846
57847 2007-12-23  Bruno Haible  <bruno@clisp.org>
57848
57849         * lib/memmem.c (memmem): Use lowercase variable names. Tab
57850         indentation.
57851
57852 2007-12-23  Bruno Haible  <bruno@clisp.org>
57853
57854         * lib/c-strcasestr.c: Add more comments.
57855         * lib/c-strstr.c: Likewise.
57856         * lib/mbscasestr.c: Likewise.
57857         * lib/mbsstr.c: Likewise.
57858         * lib/strcasestr.c: Likewise.
57859         * lib/memmem.c: Likewise.
57860
57861 2007-12-23  Bruno Haible  <bruno@clisp.org>
57862
57863         * tests/test-memmem.c: Include <string.h> first.
57864
57865 2007-12-22  Bruno Haible  <bruno@clisp.org>
57866
57867         * gnulib-tool (func_create_testdir): Change $auxdir while generating
57868         the contents of $testsbase.
57869         Reported by Ralf Wildenhues.
57870
57871 2007-12-22  Bruno Haible  <bruno@clisp.org>
57872
57873         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
57874         two variables local_ldadd_before, local_ldadd_last.
57875
57876 2007-12-20  Eric Blake  <ebb9@byu.net>
57877
57878         Work around circular library issue when cross-compiling.
57879         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
57880         that progname.o does not need to pull in rpl_memcmp.
57881
57882 2007-12-19  Eric Blake  <ebb9@byu.net>
57883
57884         Fix memmem to avoid O(n^2) worst-case complexity.
57885         * lib/memmem.c (knuth_morris_pratt): New function.
57886         (memmem): Use it if first few naive iterations fail.
57887         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
57888         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
57889         * modules/memchr (License): Likewise.
57890         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
57891         malloca.
57892         * tests/test-memmem.c: Rewrite, borrowing ideas from
57893         test-mbsstr1.c; the old version wouldn't even compile!
57894         * modules/memmem-tests: New file.
57895         * lib/string.in.h (rpl_memmem): Add declaration.
57896         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
57897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
57898         REPLACE_MEMMEM.
57899
57900 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57901
57902         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
57903         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
57904         before any system include files, and undef after them all.  This
57905         should fix a problem on VMS reported by John E. Malmberg in
57906         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
57907
57908 2007-12-17  Eric Blake  <ebb9@byu.net>
57909
57910         Revert addition of verify, for BSD/OS.
57911         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
57912         can't handle large files, for the sake of obsolete platforms.
57913         * modules/fseeko (Depends-on): Remove verify.
57914         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
57915         * doc/functions/ftello.texi (ftello): Likewise.
57916         * doc/functions/fgetpos.texi (fgetpos): Likewise.
57917         Reported by Larry Jones.
57918
57919 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
57920
57921         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
57922         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
57923
57924 2007-12-17  Jim Meyering  <meyering@redhat.com>
57925
57926         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
57927         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
57928         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
57929         * modules/getcwd (Depends-on): Add openat.
57930         Reported by Petr Salinger.
57931
57932 2007-12-17  Bruno Haible  <bruno@clisp.org>
57933
57934         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
57935         avoid a segmentation fault of the configure test on x86_64 systems.
57936
57937 2007-12-15  Jim Meyering  <meyering@redhat.com>
57938
57939         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
57940
57941 2007-12-13  Eric Blake  <ebb9@byu.net>
57942
57943         Another fseek test.
57944         * tests/test-fseek.c (main): Also test ungetc handling.
57945         * tests/test-fseeko.c (main): Likewise.
57946         * modules/fseeko (Depends-on): Add verify.
57947         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
57948         large.
57949         Reported by Larry Jones.
57950
57951         Fix fseeko on mingw.
57952         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
57953         seek.
57954
57955         Beef up fseek tests.
57956         * tests/test-fseek.c (main): Also test eof handling.
57957         * tests/test-fseeko.c (main): Likewise.
57958         Reported by Larry Jones.
57959
57960 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
57961
57962         Fix fseeko on BSD-based platforms.
57963         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
57964         successful seek.
57965
57966 2007-12-12  Eric Blake  <ebb9@byu.net>
57967
57968         Allow circular dependency of separate libtests.a
57969         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
57970         when use_libtests.
57971
57972 2007-12-11  Eric Blake  <ebb9@byu.net>
57973
57974         Fix bug with -0.0L in previous patch.
57975         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
57976         * tests/test-isnan.c (main): Also test on zeroes.
57977         * tests/test-isnanf.c (main): Likewise.
57978         * tests/test-isnanl.h (main): Likewise.
57979
57980         Detect pseudo-denormals on x86 even when cross-compiling.
57981         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
57982         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
57983         invalid bit patterns that happen to satisfy ==.
57984
57985         Avoid link failures with separate libtests.a.
57986         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
57987         last, to satisfy circular dependencies.
57988
57989 2007-12-11  Eric Blake  <ebb9@byu.net>
57990         and Bruno Haible  <bruno@clisp.org>
57991
57992         Fix OpenBSD 4.0 <float.h> handling of long double.
57993         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
57994         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
57995         * doc/headers/float.texi (float.h): Document OpenBSD bug.
57996
57997 2007-12-11  Jim Meyering  <meyering@redhat.com>
57998
57999         * users.txt: Add libvirt.
58000
58001         Support versions of autoconf prior to 2.59c.
58002         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58003         if it is not already defined.
58004
58005 2007-12-09  Bruno Haible  <bruno@clisp.org>
58006
58007         Let 'gnulib-tool --import' collect sources needed for the tests in
58008         tests/ rather than in lib/.
58009         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58010         argument. If true, add rules to generate libtests.a, and put libtests.a
58011         into $(LDADD). Consider source files in subdirectories and set
58012         uses_subdirs.
58013         (func_emit_initmacro_start, func_emit_initmacro_end,
58014         func_emit_initmacro_done): Pass all arguments explicitly.
58015         (func_import): Determine two module lists main_modules,
58016         testsrelated_modules. Determine use_libtests. Determine two variables
58017         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58018         instead of just sed_transform_lib_file. Determine two variables
58019         main_files and testsrelated_files. Compute 'files' as the union of
58020         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58021         func_add_or_update. In the generated gnulib-comp.m4, collect the
58022         object files for tests/ in different variables than those for lib/.
58023         Substitute LIBTESTS_LIBDEPS.
58024         (func_create_testdir): Combine the uses_subdirs results from
58025         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58026
58027 2007-12-09  Bruno Haible  <bruno@clisp.org>
58028
58029         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58030         the build-aux directory.
58031
58032 2007-12-09  Bruno Haible  <bruno@clisp.org>
58033
58034         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58035         introduced on 2006-09-09.
58036
58037 2007-12-07  Jim Meyering  <meyering@redhat.com>
58038
58039         Let these macros work also with autoconf-2.59.
58040         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58041         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58042         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58043
58044 2007-12-06  Jim Meyering  <meyering@redhat.com>
58045
58046         Avoid a configure-time syntax error in gl_FUNC_ACL.
58047         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58048         function in each branch, before testing the cache variable.
58049
58050 2007-12-04  Eric Blake  <ebb9@byu.net>
58051
58052         Make scripts executable.
58053         * build-aux/config.guess: Add execute permissions.
58054         * build-aux/config.sub: Likewise.
58055         * build-aux/gendocs.sh: Likewise.
58056
58057         Fix frexp on mingw.
58058         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58059         cross-compiling.
58060         * doc/functions/frexp.texi (frexp): Document the bug.
58061
58062         Make cygwin fseeko check more reliable.
58063         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58064         version numbers, rather than unrelated feature check.
58065         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58066         * doc/functions/ftello.texi (ftello): Likewise.
58067         Reported by Bruno Haible.
58068
58069         * m4/strerror.m4: Bump version number.
58070
58071 2007-12-03  Bruno Haible  <bruno@clisp.org>
58072
58073         * doc/functions/mprotect.texi: Mention the mingw problem.
58074
58075 2007-12-03  Eric Blake  <ebb9@byu.net>
58076
58077         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58078         REPLACE_STRERROR is initialized before this macro.
58079
58080 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58081
58082         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58083         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58084         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58085         put -lsec in even for programs other than 'ls'.  This fixes a problem
58086         for gettext reported by Bruno Haible in
58087         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58088         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58089         Add support for Solaris 10.  This isn't efficient, but should get the
58090         job done for now.
58091
58092 2007-12-03  James Youngman  <jay@gnu.org>
58093
58094         * doc/regexprops-generic.texi: change "an close-group" to "a
58095         close-group" and "illegal" to "not allowed".
58096
58097 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58098
58099         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58100         pr_byname.h. Needed for the rare case when the maintainer has done
58101         "make maintainer-clean" in the source directory and then attempts a
58102         build outside the source directory.
58103         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58104         scripts_byname.h.
58105
58106 2007-12-02  Martin Lambers <marlam@marlam.de>
58107             Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/getpagesize.h: Remove file.
58110         * lib/unistd.in.h: Include declaration of getpagesize here.
58111         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58112         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58113         HAVE_SYS_PARAM_H.
58114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58115         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58116         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58117         (Depends-on): Add unistd.
58118         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58119         (Include): Use <unistd.h> instead of getpagesize.h.
58120         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58121         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58122         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58123         gl_GETPAGESIZE invocation, already handled by module dependency.
58124         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58125
58126 2007-12-02  Bruno Haible  <bruno@clisp.org>
58127
58128         * modules/strings-tests: New file.
58129         * tests/test-strings.c: New file.
58130
58131         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58132         * lib/strings.in.h: New file.
58133         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58134         * m4/strings_h.m4: New file.
58135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58136         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58137         * modules/strings: New file.
58138         * modules/string (Makefile.am): Update.
58139         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58140         Reported by Karl Berry.
58141
58142 2007-12-01  Eric Blake  <ebb9@byu.net>
58143
58144         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58145         accomodate fix in cygwin 1.5.25.
58146
58147 2007-12-01  Jim Meyering  <meyering@redhat.com>
58148
58149         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58150         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58151         that would inhibit utf8-optimization of a regexp containing line-
58152         or buffer-anchors, e.g., `^', `$'.
58153
58154 2007-11-30  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58157         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58158         glthread_recursive_lock_init.
58159         * lib/lock.c (glthread_recursive_lock_init)
58160         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58161         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58162
58163 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58164
58165         New function qset_acl, like set_acl but with syscall semantics.
58166         * lib/acl.h (qset_acl): New decl.
58167         * lib/acl.c (qset_acl): New function.
58168         (set_acl): Use new function.  Use more-consistent diagnostics.
58169
58170 2007-11-28  Jim Meyering  <meyering@redhat.com>
58171
58172         * modules/physmem (License): Change from GPL to LGPLv2+.
58173
58174 2007-11-26  Bruno Haible  <bruno@clisp.org>
58175
58176         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58177         'long double' type has excess precision.
58178         Reported by Jim Meyering in
58179         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58180
58181 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58182
58183         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58184         Sync from <http://gnu.org/licenses>.
58185         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58186         with license text from same location.
58187         * doc/maintain.texi, doc/standards.texi:  Sync from
58188         <http://savannah.gnu.org/projects/gnustandards>.
58189
58190 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58191         and Jim Meyering  <meyering@redhat.com>
58192
58193         Adjust getdate' grammar to accept a slightly more regular language.
58194         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58195         Before, the former was rejected.
58196         * lib/getdate.y (digits_to_date_time): New function, factored
58197         out of ...
58198         (number): ...here.  Just call digits_to_date_time.
58199         (hybrid): New non-terminal to handle an <unsigned number,
58200         signed relative offset> sequence consistently.
58201
58202 2007-11-18  Jim Meyering  <meyering@redhat.com>
58203
58204         Pull my changes from coreutils:
58205         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58206         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58207         use of $gnulib_tool_option_extras, so that it's separated from the
58208         preceding argument.
58209
58210         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58211         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58212         parent destination directories before copying a file into place.
58213
58214 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58215
58216         bootstrap: work also with 4-argument variant of AC_INIT
58217         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58218
58219 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58220
58221         Port test-getaddrinfo to Solaris.
58222         Problem reported by Bruno Haible in
58223         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58224         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58225         explanation of setting 'hints'.
58226         Don't reject an implementation merely because it returns EAI_SERVICE.
58227         (EAI_SERVICE): Define to 0 if not defined.
58228
58229 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58230
58231         The license of gnu-make and posix-shell is now "GPLed build tool".
58232         * modules/gnu-make (License): Likewise.
58233         * modules/posix-shell (License): Likewise.
58234
58235         New module posix-shell, for determining a POSIX shell
58236         or perhaps something that is close enough to a POSIX shell.
58237         * m4/posix-shell.m4: New file.
58238         * modules/posix-shell: New file.
58239
58240         * MODULES.html.sh: Mention new module.
58241
58242         New module gnu-make, for determining whether we're using GNU Make.
58243         * m4/gnu-make.m4: New file.
58244         * modules/gnu-make: New file.
58245         * MODULES.html.sh: Mention new module.
58246
58247 2007-11-14  Jim Meyering  <meyering@redhat.com>
58248
58249         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58250         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58251         use this macro to create a function _definition_.
58252         Remove useless "#undef ARGMATCH_DIE".
58253
58254 2007-11-14  Bruno Haible  <bruno@clisp.org>
58255
58256         * lib/config.charset: Update for OpenBSD 4.1.
58257         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58258
58259 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58260
58261         Document 64-bit #if problems in stdint.texi.
58262         * doc/headers/stdint.texi (stdint.h): Mention problems with
58263         64-bit-#if, and how to work around them.
58264
58265         Don't insist on 'long long int' support in the preprocessor.  It
58266         breaks too many things.  For example, PRIdMAX still uses a 'long
58267         long int' format with the latest Sun compiler, even though
58268         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58269         preprocessor problem.  This causes the latest coreutils to dump
58270         core on Solaris 10 sparc with the Sun C compiler.
58271         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58272         the troublesome expressions at configure-time, not at #if-time.
58273         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58274         preprocessor.
58275         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58276         compile-time C checks, done at 'configure'-time.
58277         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58278         * modules/inttypes (Makefile): Substitute the new symbols that
58279         gl_INTTYPES_H now generates.
58280         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58281
58282 2007-11-12  Bruno Haible  <bruno@clisp.org>
58283
58284         Tests for Unicode character classification functions.
58285
58286         * modules/unictype/bidicategory-byname-tests: New file.
58287         * modules/unictype/bidicategory-name-tests: New file.
58288         * modules/unictype/bidicategory-of-tests: New file.
58289         * modules/unictype/bidicategory-test-tests: New file.
58290         * modules/unictype/block-list-tests: New file.
58291         * modules/unictype/block-of-tests: New file.
58292         * modules/unictype/block-test-tests: New file.
58293         * modules/unictype/category-C-tests: New file.
58294         * modules/unictype/category-Cc-tests: New file.
58295         * modules/unictype/category-Cf-tests: New file.
58296         * modules/unictype/category-Cn-tests: New file.
58297         * modules/unictype/category-Co-tests: New file.
58298         * modules/unictype/category-Cs-tests: New file.
58299         * modules/unictype/category-L-tests: New file.
58300         * modules/unictype/category-Ll-tests: New file.
58301         * modules/unictype/category-Lm-tests: New file.
58302         * modules/unictype/category-Lo-tests: New file.
58303         * modules/unictype/category-Lt-tests: New file.
58304         * modules/unictype/category-Lu-tests: New file.
58305         * modules/unictype/category-M-tests: New file.
58306         * modules/unictype/category-Mc-tests: New file.
58307         * modules/unictype/category-Me-tests: New file.
58308         * modules/unictype/category-Mn-tests: New file.
58309         * modules/unictype/category-N-tests: New file.
58310         * modules/unictype/category-Nd-tests: New file.
58311         * modules/unictype/category-Nl-tests: New file.
58312         * modules/unictype/category-No-tests: New file.
58313         * modules/unictype/category-P-tests: New file.
58314         * modules/unictype/category-Pc-tests: New file.
58315         * modules/unictype/category-Pd-tests: New file.
58316         * modules/unictype/category-Pe-tests: New file.
58317         * modules/unictype/category-Pf-tests: New file.
58318         * modules/unictype/category-Pi-tests: New file.
58319         * modules/unictype/category-Po-tests: New file.
58320         * modules/unictype/category-Ps-tests: New file.
58321         * modules/unictype/category-S-tests: New file.
58322         * modules/unictype/category-Sc-tests: New file.
58323         * modules/unictype/category-Sk-tests: New file.
58324         * modules/unictype/category-Sm-tests: New file.
58325         * modules/unictype/category-So-tests: New file.
58326         * modules/unictype/category-Z-tests: New file.
58327         * modules/unictype/category-Zl-tests: New file.
58328         * modules/unictype/category-Zp-tests: New file.
58329         * modules/unictype/category-Zs-tests: New file.
58330         * modules/unictype/category-and-not-tests: New file.
58331         * modules/unictype/category-and-tests: New file.
58332         * modules/unictype/category-byname-tests: New file.
58333         * modules/unictype/category-name-tests: New file.
58334         * modules/unictype/category-none-tests: New file.
58335         * modules/unictype/category-of-tests: New file.
58336         * modules/unictype/category-or-tests: New file.
58337         * modules/unictype/category-test-withtable-tests: New file.
58338         * modules/unictype/combining-class-tests: New file.
58339         * modules/unictype/ctype-alnum-tests: New file.
58340         * modules/unictype/ctype-alpha-tests: New file.
58341         * modules/unictype/ctype-blank-tests: New file.
58342         * modules/unictype/ctype-cntrl-tests: New file.
58343         * modules/unictype/ctype-digit-tests: New file.
58344         * modules/unictype/ctype-graph-tests: New file.
58345         * modules/unictype/ctype-lower-tests: New file.
58346         * modules/unictype/ctype-print-tests: New file.
58347         * modules/unictype/ctype-punct-tests: New file.
58348         * modules/unictype/ctype-space-tests: New file.
58349         * modules/unictype/ctype-upper-tests: New file.
58350         * modules/unictype/ctype-xdigit-tests: New file.
58351         * modules/unictype/decimal-digit-tests: New file.
58352         * modules/unictype/digit-tests: New file.
58353         * modules/unictype/mirror-tests: New file.
58354         * modules/unictype/numeric-tests: New file.
58355         * modules/unictype/property-alphabetic-tests: New file.
58356         * modules/unictype/property-ascii-hex-digit-tests: New file.
58357         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58358         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58359         * modules/unictype/property-bidi-block-separator-tests: New file.
58360         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58361         * modules/unictype/property-bidi-common-separator-tests: New file.
58362         * modules/unictype/property-bidi-control-tests: New file.
58363         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58364         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58365         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58366         * modules/unictype/property-bidi-european-digit-tests: New file.
58367         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58368         * modules/unictype/property-bidi-left-to-right-tests: New file.
58369         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58370         * modules/unictype/property-bidi-other-neutral-tests: New file.
58371         * modules/unictype/property-bidi-pdf-tests: New file.
58372         * modules/unictype/property-bidi-segment-separator-tests: New file.
58373         * modules/unictype/property-bidi-whitespace-tests: New file.
58374         * modules/unictype/property-byname-tests: New file.
58375         * modules/unictype/property-combining-tests: New file.
58376         * modules/unictype/property-composite-tests: New file.
58377         * modules/unictype/property-currency-symbol-tests: New file.
58378         * modules/unictype/property-dash-tests: New file.
58379         * modules/unictype/property-decimal-digit-tests: New file.
58380         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58381         * modules/unictype/property-deprecated-tests: New file.
58382         * modules/unictype/property-diacritic-tests: New file.
58383         * modules/unictype/property-extender-tests: New file.
58384         * modules/unictype/property-format-control-tests: New file.
58385         * modules/unictype/property-grapheme-base-tests: New file.
58386         * modules/unictype/property-grapheme-extend-tests: New file.
58387         * modules/unictype/property-grapheme-link-tests: New file.
58388         * modules/unictype/property-hex-digit-tests: New file.
58389         * modules/unictype/property-hyphen-tests: New file.
58390         * modules/unictype/property-id-continue-tests: New file.
58391         * modules/unictype/property-id-start-tests: New file.
58392         * modules/unictype/property-ideographic-tests: New file.
58393         * modules/unictype/property-ids-binary-operator-tests: New file.
58394         * modules/unictype/property-ids-trinary-operator-tests: New file.
58395         * modules/unictype/property-ignorable-control-tests: New file.
58396         * modules/unictype/property-iso-control-tests: New file.
58397         * modules/unictype/property-join-control-tests: New file.
58398         * modules/unictype/property-left-of-pair-tests: New file.
58399         * modules/unictype/property-line-separator-tests: New file.
58400         * modules/unictype/property-logical-order-exception-tests: New file.
58401         * modules/unictype/property-lowercase-tests: New file.
58402         * modules/unictype/property-math-tests: New file.
58403         * modules/unictype/property-non-break-tests: New file.
58404         * modules/unictype/property-not-a-character-tests: New file.
58405         * modules/unictype/property-numeric-tests: New file.
58406         * modules/unictype/property-other-alphabetic-tests: New file.
58407         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58408         * modules/unictype/property-other-grapheme-extend-tests: New file.
58409         * modules/unictype/property-other-id-continue-tests: New file.
58410         * modules/unictype/property-other-id-start-tests: New file.
58411         * modules/unictype/property-other-lowercase-tests: New file.
58412         * modules/unictype/property-other-math-tests: New file.
58413         * modules/unictype/property-other-uppercase-tests: New file.
58414         * modules/unictype/property-paired-punctuation-tests: New file.
58415         * modules/unictype/property-paragraph-separator-tests: New file.
58416         * modules/unictype/property-pattern-syntax-tests: New file.
58417         * modules/unictype/property-pattern-white-space-tests: New file.
58418         * modules/unictype/property-private-use-tests: New file.
58419         * modules/unictype/property-punctuation-tests: New file.
58420         * modules/unictype/property-quotation-mark-tests: New file.
58421         * modules/unictype/property-radical-tests: New file.
58422         * modules/unictype/property-sentence-terminal-tests: New file.
58423         * modules/unictype/property-soft-dotted-tests: New file.
58424         * modules/unictype/property-space-tests: New file.
58425         * modules/unictype/property-terminal-punctuation-tests: New file.
58426         * modules/unictype/property-test-tests: New file.
58427         * modules/unictype/property-titlecase-tests: New file.
58428         * modules/unictype/property-unassigned-code-value-tests: New file.
58429         * modules/unictype/property-unified-ideograph-tests: New file.
58430         * modules/unictype/property-uppercase-tests: New file.
58431         * modules/unictype/property-variation-selector-tests: New file.
58432         * modules/unictype/property-white-space-tests: New file.
58433         * modules/unictype/property-xid-continue-tests: New file.
58434         * modules/unictype/property-xid-start-tests: New file.
58435         * modules/unictype/property-zero-width-tests: New file.
58436         * modules/unictype/scripts-tests: New file.
58437         * modules/unictype/syntax-c-ident-tests: New file.
58438         * modules/unictype/syntax-c-whitespace-tests: New file.
58439         * modules/unictype/syntax-java-ident-tests: New file.
58440         * modules/unictype/syntax-java-whitespace-tests: New file.
58441         * tests/unictype/test-bidi_byname.c: New file.
58442         * tests/unictype/test-bidi_name.c: New file.
58443         * tests/unictype/test-bidi_of.c: New file.
58444         * tests/unictype/test-bidi_test.c: New file.
58445         * tests/unictype/test-block_list.c: New file.
58446         * tests/unictype/test-block_of.c: New file.
58447         * tests/unictype/test-block_test.c: New file.
58448         * tests/unictype/test-categ_and.c: New file.
58449         * tests/unictype/test-categ_and_not.c: New file.
58450         * tests/unictype/test-categ_byname.c: New file.
58451         * tests/unictype/test-categ_name.c: New file.
58452         * tests/unictype/test-categ_none.c: New file.
58453         * tests/unictype/test-categ_of.c: New file.
58454         * tests/unictype/test-categ_or.c: New file.
58455         * tests/unictype/test-categ_test_withtable.c: New file.
58456         * tests/unictype/test-combining.c: New file.
58457         * tests/unictype/test-decdigit.c: New file.
58458         * tests/unictype/test-digit.c: New file.
58459         * tests/unictype/test-mirror.c: New file.
58460         * tests/unictype/test-numeric.c: New file.
58461         * tests/unictype/test-pr_byname.c: New file.
58462         * tests/unictype/test-pr_test.c: New file.
58463         * tests/unictype/test-predicate-part1.h: New file.
58464         * tests/unictype/test-predicate-part2.h: New file.
58465         * tests/unictype/test-scripts.c: New file.
58466         * tests/unictype/test-sy_c_ident.c: New file.
58467         * tests/unictype/test-sy_java_ident.c: New file.
58468
58469         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58470         for Unicode 5.0.0.
58471         * tests/unictype/test-categ_Cc.c: Likewise.
58472         * tests/unictype/test-categ_Cf.c: Likewise.
58473         * tests/unictype/test-categ_Cn.c: Likewise.
58474         * tests/unictype/test-categ_Co.c: Likewise.
58475         * tests/unictype/test-categ_Cs.c: Likewise.
58476         * tests/unictype/test-categ_L.c: Likewise.
58477         * tests/unictype/test-categ_Ll.c: Likewise.
58478         * tests/unictype/test-categ_Lm.c: Likewise.
58479         * tests/unictype/test-categ_Lo.c: Likewise.
58480         * tests/unictype/test-categ_Lt.c: Likewise.
58481         * tests/unictype/test-categ_Lu.c: Likewise.
58482         * tests/unictype/test-categ_M.c: Likewise.
58483         * tests/unictype/test-categ_Mc.c: Likewise.
58484         * tests/unictype/test-categ_Me.c: Likewise.
58485         * tests/unictype/test-categ_Mn.c: Likewise.
58486         * tests/unictype/test-categ_N.c: Likewise.
58487         * tests/unictype/test-categ_Nd.c: Likewise.
58488         * tests/unictype/test-categ_Nl.c: Likewise.
58489         * tests/unictype/test-categ_No.c: Likewise.
58490         * tests/unictype/test-categ_P.c: Likewise.
58491         * tests/unictype/test-categ_Pc.c: Likewise.
58492         * tests/unictype/test-categ_Pd.c: Likewise.
58493         * tests/unictype/test-categ_Pe.c: Likewise.
58494         * tests/unictype/test-categ_Pf.c: Likewise.
58495         * tests/unictype/test-categ_Pi.c: Likewise.
58496         * tests/unictype/test-categ_Po.c: Likewise.
58497         * tests/unictype/test-categ_Ps.c: Likewise.
58498         * tests/unictype/test-categ_S.c: Likewise.
58499         * tests/unictype/test-categ_Sc.c: Likewise.
58500         * tests/unictype/test-categ_Sk.c: Likewise.
58501         * tests/unictype/test-categ_Sm.c: Likewise.
58502         * tests/unictype/test-categ_So.c: Likewise.
58503         * tests/unictype/test-categ_Z.c: Likewise.
58504         * tests/unictype/test-categ_Zl.c: Likewise.
58505         * tests/unictype/test-categ_Zp.c: Likewise.
58506         * tests/unictype/test-categ_Zs.c: Likewise.
58507         * tests/unictype/test-ctype_alnum.c: Likewise.
58508         * tests/unictype/test-ctype_alpha.c: Likewise.
58509         * tests/unictype/test-ctype_blank.c: Likewise.
58510         * tests/unictype/test-ctype_cntrl.c: Likewise.
58511         * tests/unictype/test-ctype_digit.c: Likewise.
58512         * tests/unictype/test-ctype_graph.c: Likewise.
58513         * tests/unictype/test-ctype_lower.c: Likewise.
58514         * tests/unictype/test-ctype_print.c: Likewise.
58515         * tests/unictype/test-ctype_punct.c: Likewise.
58516         * tests/unictype/test-ctype_space.c: Likewise.
58517         * tests/unictype/test-ctype_upper.c: Likewise.
58518         * tests/unictype/test-ctype_xdigit.c: Likewise.
58519         * tests/unictype/test-decdigit.h: Likewise.
58520         * tests/unictype/test-digit.h: Likewise.
58521         * tests/unictype/test-numeric.h: Likewise.
58522         * tests/unictype/test-pr_alphabetic.c: Likewise.
58523         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58524         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58525         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58526         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58527         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58528         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58529         * tests/unictype/test-pr_bidi_control.c: Likewise.
58530         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58531         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58532         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58533         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58534         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58535         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58536         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58537         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58538         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58539         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58540         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58541         * tests/unictype/test-pr_combining.c: Likewise.
58542         * tests/unictype/test-pr_composite.c: Likewise.
58543         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58544         * tests/unictype/test-pr_dash.c: Likewise.
58545         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58546         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58547         * tests/unictype/test-pr_deprecated.c: Likewise.
58548         * tests/unictype/test-pr_diacritic.c: Likewise.
58549         * tests/unictype/test-pr_extender.c: Likewise.
58550         * tests/unictype/test-pr_format_control.c: Likewise.
58551         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58552         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58553         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58554         * tests/unictype/test-pr_hex_digit.c: Likewise.
58555         * tests/unictype/test-pr_hyphen.c: Likewise.
58556         * tests/unictype/test-pr_id_continue.c: Likewise.
58557         * tests/unictype/test-pr_id_start.c: Likewise.
58558         * tests/unictype/test-pr_ideographic.c: Likewise.
58559         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58560         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58561         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58562         * tests/unictype/test-pr_iso_control.c: Likewise.
58563         * tests/unictype/test-pr_join_control.c: Likewise.
58564         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58565         * tests/unictype/test-pr_line_separator.c: Likewise.
58566         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58567         * tests/unictype/test-pr_lowercase.c: Likewise.
58568         * tests/unictype/test-pr_math.c: Likewise.
58569         * tests/unictype/test-pr_non_break.c: Likewise.
58570         * tests/unictype/test-pr_not_a_character.c: Likewise.
58571         * tests/unictype/test-pr_numeric.c: Likewise.
58572         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58573         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58574         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58575         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58576         * tests/unictype/test-pr_other_id_start.c: Likewise.
58577         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58578         * tests/unictype/test-pr_other_math.c: Likewise.
58579         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58580         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58581         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58582         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58583         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58584         * tests/unictype/test-pr_private_use.c: Likewise.
58585         * tests/unictype/test-pr_punctuation.c: Likewise.
58586         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58587         * tests/unictype/test-pr_radical.c: Likewise.
58588         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58589         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58590         * tests/unictype/test-pr_space.c: Likewise.
58591         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58592         * tests/unictype/test-pr_titlecase.c: Likewise.
58593         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58594         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58595         * tests/unictype/test-pr_uppercase.c: Likewise.
58596         * tests/unictype/test-pr_variation_selector.c: Likewise.
58597         * tests/unictype/test-pr_white_space.c: Likewise.
58598         * tests/unictype/test-pr_xid_continue.c: Likewise.
58599         * tests/unictype/test-pr_xid_start.c: Likewise.
58600         * tests/unictype/test-pr_zero_width.c: Likewise.
58601         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58602         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58603
58604 2007-11-12  Bruno Haible  <bruno@clisp.org>
58605
58606         Unicode character classification functions.
58607         * lib/unictype.h: New file.
58608         * modules/unictype/base: New file.
58609         * modules/unictype/category-L: New file.
58610         * modules/unictype/category-Lu: New file.
58611         * modules/unictype/category-Ll: New file.
58612         * modules/unictype/category-Lt: New file.
58613         * modules/unictype/category-Lm: New file.
58614         * modules/unictype/category-Lo: New file.
58615         * modules/unictype/category-M: New file.
58616         * modules/unictype/category-Mn: New file.
58617         * modules/unictype/category-Mc: New file.
58618         * modules/unictype/category-Me: New file.
58619         * modules/unictype/category-N: New file.
58620         * modules/unictype/category-Nd: New file.
58621         * modules/unictype/category-Nl: New file.
58622         * modules/unictype/category-No: New file.
58623         * modules/unictype/category-P: New file.
58624         * modules/unictype/category-Pc: New file.
58625         * modules/unictype/category-Pd: New file.
58626         * modules/unictype/category-Ps: New file.
58627         * modules/unictype/category-Pe: New file.
58628         * modules/unictype/category-Pi: New file.
58629         * modules/unictype/category-Pf: New file.
58630         * modules/unictype/category-Po: New file.
58631         * modules/unictype/category-S: New file.
58632         * modules/unictype/category-Sm: New file.
58633         * modules/unictype/category-Sc: New file.
58634         * modules/unictype/category-Sk: New file.
58635         * modules/unictype/category-So: New file.
58636         * modules/unictype/category-Z: New file.
58637         * modules/unictype/category-Zs: New file.
58638         * modules/unictype/category-Zl: New file.
58639         * modules/unictype/category-Zp: New file.
58640         * modules/unictype/category-C: New file.
58641         * modules/unictype/category-Cc: New file.
58642         * modules/unictype/category-Cf: New file.
58643         * modules/unictype/category-Cs: New file.
58644         * modules/unictype/category-Co: New file.
58645         * modules/unictype/category-Cn: New file.
58646         * modules/unictype/category-or: New file.
58647         * modules/unictype/category-of: New file.
58648         * modules/unictype/category-test: New file.
58649         * modules/unictype/category-test-withtable: New file.
58650         * modules/unictype/category-byname: New file.
58651         * modules/unictype/category-none: New file.
58652         * modules/unictype/category-and: New file.
58653         * modules/unictype/category-and-not: New file.
58654         * modules/unictype/category-name: New file.
58655         * modules/unictype/combining-class: New file.
58656         * modules/unictype/category-all: New file.
58657         * modules/unictype/bidicategory-all: New file.
58658         * modules/unictype/bidicategory-byname: New file.
58659         * modules/unictype/bidicategory-name: New file.
58660         * modules/unictype/bidicategory-of: New file.
58661         * modules/unictype/bidicategory-test: New file.
58662         * modules/unictype/decimal-digit: New file.
58663         * modules/unictype/digit: New file.
58664         * modules/unictype/numeric: New file.
58665         * modules/unictype/mirror: New file.
58666         * modules/unictype/property-white-space: New file.
58667         * modules/unictype/property-alphabetic: New file.
58668         * modules/unictype/property-other-alphabetic: New file.
58669         * modules/unictype/property-not-a-character: New file.
58670         * modules/unictype/property-default-ignorable-code-point: New file.
58671         * modules/unictype/property-other-default-ignorable-code-point: New
58672         file.
58673         * modules/unictype/property-deprecated: New file.
58674         * modules/unictype/property-logical-order-exception: New file.
58675         * modules/unictype/property-variation-selector: New file.
58676         * modules/unictype/property-private-use: New file.
58677         * modules/unictype/property-unassigned-code-value: New file.
58678         * modules/unictype/property-uppercase: New file.
58679         * modules/unictype/property-other-uppercase: New file.
58680         * modules/unictype/property-lowercase: New file.
58681         * modules/unictype/property-other-lowercase: New file.
58682         * modules/unictype/property-titlecase: New file.
58683         * modules/unictype/property-soft-dotted: New file.
58684         * modules/unictype/property-id-start: New file.
58685         * modules/unictype/property-other-id-start: New file.
58686         * modules/unictype/property-id-continue: New file.
58687         * modules/unictype/property-other-id-continue: New file.
58688         * modules/unictype/property-xid-start: New file.
58689         * modules/unictype/property-xid-continue: New file.
58690         * modules/unictype/property-pattern-white-space: New file.
58691         * modules/unictype/property-pattern-syntax: New file.
58692         * modules/unictype/property-join-control: New file.
58693         * modules/unictype/property-grapheme-base: New file.
58694         * modules/unictype/property-grapheme-extend: New file.
58695         * modules/unictype/property-other-grapheme-extend: New file.
58696         * modules/unictype/property-grapheme-link: New file.
58697         * modules/unictype/property-bidi-control: New file.
58698         * modules/unictype/property-bidi-left-to-right: New file.
58699         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58700         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58701         * modules/unictype/property-bidi-european-digit: New file.
58702         * modules/unictype/property-bidi-eur-num-separator: New file.
58703         * modules/unictype/property-bidi-eur-num-terminator: New file.
58704         * modules/unictype/property-bidi-arabic-digit: New file.
58705         * modules/unictype/property-bidi-common-separator: New file.
58706         * modules/unictype/property-bidi-block-separator: New file.
58707         * modules/unictype/property-bidi-segment-separator: New file.
58708         * modules/unictype/property-bidi-whitespace: New file.
58709         * modules/unictype/property-bidi-non-spacing-mark: New file.
58710         * modules/unictype/property-bidi-boundary-neutral: New file.
58711         * modules/unictype/property-bidi-pdf: New file.
58712         * modules/unictype/property-bidi-embedding-or-override: New file.
58713         * modules/unictype/property-bidi-other-neutral: New file.
58714         * modules/unictype/property-hex-digit: New file.
58715         * modules/unictype/property-ascii-hex-digit: New file.
58716         * modules/unictype/property-ideographic: New file.
58717         * modules/unictype/property-unified-ideograph: New file.
58718         * modules/unictype/property-radical: New file.
58719         * modules/unictype/property-ids-binary-operator: New file.
58720         * modules/unictype/property-ids-trinary-operator: New file.
58721         * modules/unictype/property-zero-width: New file.
58722         * modules/unictype/property-space: New file.
58723         * modules/unictype/property-non-break: New file.
58724         * modules/unictype/property-iso-control: New file.
58725         * modules/unictype/property-format-control: New file.
58726         * modules/unictype/property-dash: New file.
58727         * modules/unictype/property-hyphen: New file.
58728         * modules/unictype/property-punctuation: New file.
58729         * modules/unictype/property-line-separator: New file.
58730         * modules/unictype/property-paragraph-separator: New file.
58731         * modules/unictype/property-quotation-mark: New file.
58732         * modules/unictype/property-sentence-terminal: New file.
58733         * modules/unictype/property-terminal-punctuation: New file.
58734         * modules/unictype/property-currency-symbol: New file.
58735         * modules/unictype/property-math: New file.
58736         * modules/unictype/property-other-math: New file.
58737         * modules/unictype/property-paired-punctuation: New file.
58738         * modules/unictype/property-left-of-pair: New file.
58739         * modules/unictype/property-combining: New file.
58740         * modules/unictype/property-composite: New file.
58741         * modules/unictype/property-decimal-digit: New file.
58742         * modules/unictype/property-numeric: New file.
58743         * modules/unictype/property-diacritic: New file.
58744         * modules/unictype/property-extender: New file.
58745         * modules/unictype/property-ignorable-control: New file.
58746         * modules/unictype/property-test: New file.
58747         * modules/unictype/property-byname: New file.
58748         * modules/unictype/property-all: New file.
58749         * modules/unictype/scripts: New file.
58750         * modules/unictype/scripts-all: New file.
58751         * modules/unictype/block-of: New file.
58752         * modules/unictype/block-test: New file.
58753         * modules/unictype/block-list: New file.
58754         * modules/unictype/block-all: New file.
58755         * modules/unictype/syntax-c-whitespace: New file.
58756         * modules/unictype/syntax-java-whitespace: New file.
58757         * modules/unictype/syntax-c-ident: New file.
58758         * modules/unictype/syntax-java-ident: New file.
58759         * modules/unictype/ctype-alnum: New file.
58760         * modules/unictype/ctype-alpha: New file.
58761         * modules/unictype/ctype-cntrl: New file.
58762         * modules/unictype/ctype-digit: New file.
58763         * modules/unictype/ctype-graph: New file.
58764         * modules/unictype/ctype-lower: New file.
58765         * modules/unictype/ctype-print: New file.
58766         * modules/unictype/ctype-punct: New file.
58767         * modules/unictype/ctype-space: New file.
58768         * modules/unictype/ctype-upper: New file.
58769         * modules/unictype/ctype-xdigit: New file.
58770         * modules/unictype/ctype-blank: New file.
58771         * lib/unictype/bidi_byname.c: New file.
58772         * lib/unictype/bidi_name.c: New file.
58773         * lib/unictype/bidi_of.c: New file.
58774         * lib/unictype/bidi_test.c: New file.
58775         * lib/unictype/bitmap.h: New file.
58776         * lib/unictype/block_test.c: New file.
58777         * lib/unictype/blocks.c: New file.
58778         * lib/unictype/categ_C.c: New file.
58779         * lib/unictype/categ_Cc.c: New file.
58780         * lib/unictype/categ_Cf.c: New file.
58781         * lib/unictype/categ_Cn.c: New file.
58782         * lib/unictype/categ_Co.c: New file.
58783         * lib/unictype/categ_Cs.c: New file.
58784         * lib/unictype/categ_L.c: New file.
58785         * lib/unictype/categ_Ll.c: New file.
58786         * lib/unictype/categ_Lm.c: New file.
58787         * lib/unictype/categ_Lo.c: New file.
58788         * lib/unictype/categ_Lt.c: New file.
58789         * lib/unictype/categ_Lu.c: New file.
58790         * lib/unictype/categ_M.c: New file.
58791         * lib/unictype/categ_Mc.c: New file.
58792         * lib/unictype/categ_Me.c: New file.
58793         * lib/unictype/categ_Mn.c: New file.
58794         * lib/unictype/categ_N.c: New file.
58795         * lib/unictype/categ_Nd.c: New file.
58796         * lib/unictype/categ_Nl.c: New file.
58797         * lib/unictype/categ_No.c: New file.
58798         * lib/unictype/categ_P.c: New file.
58799         * lib/unictype/categ_Pc.c: New file.
58800         * lib/unictype/categ_Pd.c: New file.
58801         * lib/unictype/categ_Pe.c: New file.
58802         * lib/unictype/categ_Pf.c: New file.
58803         * lib/unictype/categ_Pi.c: New file.
58804         * lib/unictype/categ_Po.c: New file.
58805         * lib/unictype/categ_Ps.c: New file.
58806         * lib/unictype/categ_S.c: New file.
58807         * lib/unictype/categ_Sc.c: New file.
58808         * lib/unictype/categ_Sk.c: New file.
58809         * lib/unictype/categ_Sm.c: New file.
58810         * lib/unictype/categ_So.c: New file.
58811         * lib/unictype/categ_Z.c: New file.
58812         * lib/unictype/categ_Zl.c: New file.
58813         * lib/unictype/categ_Zp.c: New file.
58814         * lib/unictype/categ_Zs.c: New file.
58815         * lib/unictype/categ_and.c: New file.
58816         * lib/unictype/categ_and_not.c: New file.
58817         * lib/unictype/categ_byname.c: New file.
58818         * lib/unictype/categ_name.c: New file.
58819         * lib/unictype/categ_none.c: New file.
58820         * lib/unictype/categ_of.c: New file.
58821         * lib/unictype/categ_or.c: New file.
58822         * lib/unictype/categ_test.c: New file.
58823         * lib/unictype/combining.c: New file.
58824         * lib/unictype/ctype_alnum.c: New file.
58825         * lib/unictype/ctype_alpha.c: New file.
58826         * lib/unictype/ctype_blank.c: New file.
58827         * lib/unictype/ctype_cntrl.c: New file.
58828         * lib/unictype/ctype_digit.c: New file.
58829         * lib/unictype/ctype_graph.c: New file.
58830         * lib/unictype/ctype_lower.c: New file.
58831         * lib/unictype/ctype_print.c: New file.
58832         * lib/unictype/ctype_punct.c: New file.
58833         * lib/unictype/ctype_space.c: New file.
58834         * lib/unictype/ctype_upper.c: New file.
58835         * lib/unictype/ctype_xdigit.c: New file.
58836         * lib/unictype/decdigit.c: New file.
58837         * lib/unictype/digit.c: New file.
58838         * lib/unictype/identsyntaxmap.h: New file.
58839         * lib/unictype/mirror.c: New file.
58840         * lib/unictype/numeric.c: New file.
58841         * lib/unictype/pr_alphabetic.c: New file.
58842         * lib/unictype/pr_ascii_hex_digit.c: New file.
58843         * lib/unictype/pr_bidi_arabic_digit.c: New file.
58844         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
58845         * lib/unictype/pr_bidi_block_separator.c: New file.
58846         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
58847         * lib/unictype/pr_bidi_common_separator.c: New file.
58848         * lib/unictype/pr_bidi_control.c: New file.
58849         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
58850         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
58851         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
58852         * lib/unictype/pr_bidi_european_digit.c: New file.
58853         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
58854         * lib/unictype/pr_bidi_left_to_right.c: New file.
58855         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
58856         * lib/unictype/pr_bidi_other_neutral.c: New file.
58857         * lib/unictype/pr_bidi_pdf.c: New file.
58858         * lib/unictype/pr_bidi_segment_separator.c: New file.
58859         * lib/unictype/pr_bidi_whitespace.c: New file.
58860         * lib/unictype/pr_byname.c: New file.
58861         * lib/unictype/pr_byname.gperf: New file.
58862         * lib/unictype/pr_combining.c: New file.
58863         * lib/unictype/pr_composite.c: New file.
58864         * lib/unictype/pr_currency_symbol.c: New file.
58865         * lib/unictype/pr_dash.c: New file.
58866         * lib/unictype/pr_decimal_digit.c: New file.
58867         * lib/unictype/pr_default_ignorable_code_point.c: New file.
58868         * lib/unictype/pr_deprecated.c: New file.
58869         * lib/unictype/pr_diacritic.c: New file.
58870         * lib/unictype/pr_extender.c: New file.
58871         * lib/unictype/pr_format_control.c: New file.
58872         * lib/unictype/pr_grapheme_base.c: New file.
58873         * lib/unictype/pr_grapheme_extend.c: New file.
58874         * lib/unictype/pr_grapheme_link.c: New file.
58875         * lib/unictype/pr_hex_digit.c: New file.
58876         * lib/unictype/pr_hyphen.c: New file.
58877         * lib/unictype/pr_id_continue.c: New file.
58878         * lib/unictype/pr_id_start.c: New file.
58879         * lib/unictype/pr_ideographic.c: New file.
58880         * lib/unictype/pr_ids_binary_operator.c: New file.
58881         * lib/unictype/pr_ids_trinary_operator.c: New file.
58882         * lib/unictype/pr_ignorable_control.c: New file.
58883         * lib/unictype/pr_iso_control.c: New file.
58884         * lib/unictype/pr_join_control.c: New file.
58885         * lib/unictype/pr_left_of_pair.c: New file.
58886         * lib/unictype/pr_line_separator.c: New file.
58887         * lib/unictype/pr_logical_order_exception.c: New file.
58888         * lib/unictype/pr_lowercase.c: New file.
58889         * lib/unictype/pr_math.c: New file.
58890         * lib/unictype/pr_non_break.c: New file.
58891         * lib/unictype/pr_not_a_character.c: New file.
58892         * lib/unictype/pr_numeric.c: New file.
58893         * lib/unictype/pr_other_alphabetic.c: New file.
58894         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
58895         * lib/unictype/pr_other_grapheme_extend.c: New file.
58896         * lib/unictype/pr_other_id_continue.c: New file.
58897         * lib/unictype/pr_other_id_start.c: New file.
58898         * lib/unictype/pr_other_lowercase.c: New file.
58899         * lib/unictype/pr_other_math.c: New file.
58900         * lib/unictype/pr_other_uppercase.c: New file.
58901         * lib/unictype/pr_paired_punctuation.c: New file.
58902         * lib/unictype/pr_paragraph_separator.c: New file.
58903         * lib/unictype/pr_pattern_syntax.c: New file.
58904         * lib/unictype/pr_pattern_white_space.c: New file.
58905         * lib/unictype/pr_private_use.c: New file.
58906         * lib/unictype/pr_punctuation.c: New file.
58907         * lib/unictype/pr_quotation_mark.c: New file.
58908         * lib/unictype/pr_radical.c: New file.
58909         * lib/unictype/pr_sentence_terminal.c: New file.
58910         * lib/unictype/pr_soft_dotted.c: New file.
58911         * lib/unictype/pr_space.c: New file.
58912         * lib/unictype/pr_terminal_punctuation.c: New file.
58913         * lib/unictype/pr_test.c: New file.
58914         * lib/unictype/pr_titlecase.c: New file.
58915         * lib/unictype/pr_unassigned_code_value.c: New file.
58916         * lib/unictype/pr_unified_ideograph.c: New file.
58917         * lib/unictype/pr_uppercase.c: New file.
58918         * lib/unictype/pr_variation_selector.c: New file.
58919         * lib/unictype/pr_white_space.c: New file.
58920         * lib/unictype/pr_xid_continue.c: New file.
58921         * lib/unictype/pr_xid_start.c: New file.
58922         * lib/unictype/pr_zero_width.c: New file.
58923         * lib/unictype/scripts.c: New file.
58924         * lib/unictype/sy_c_ident.c: New file.
58925         * lib/unictype/sy_c_whitespace.c: New file.
58926         * lib/unictype/sy_java_ident.c: New file.
58927         * lib/unictype/sy_java_whitespace.c: New file.
58928
58929         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
58930         Unicode 5.0.0.
58931         * lib/unictype/blocks.h: Likewise.
58932         * lib/unictype/categ_C.h: Likewise.
58933         * lib/unictype/categ_Cc.h: Likewise.
58934         * lib/unictype/categ_Cf.h: Likewise.
58935         * lib/unictype/categ_Cn.h: Likewise.
58936         * lib/unictype/categ_Co.h: Likewise.
58937         * lib/unictype/categ_Cs.h: Likewise.
58938         * lib/unictype/categ_L.h: Likewise.
58939         * lib/unictype/categ_Ll.h: Likewise.
58940         * lib/unictype/categ_Lm.h: Likewise.
58941         * lib/unictype/categ_Lo.h: Likewise.
58942         * lib/unictype/categ_Lt.h: Likewise.
58943         * lib/unictype/categ_Lu.h: Likewise.
58944         * lib/unictype/categ_M.h: Likewise.
58945         * lib/unictype/categ_Mc.h: Likewise.
58946         * lib/unictype/categ_Me.h: Likewise.
58947         * lib/unictype/categ_Mn.h: Likewise.
58948         * lib/unictype/categ_N.h: Likewise.
58949         * lib/unictype/categ_Nd.h: Likewise.
58950         * lib/unictype/categ_Nl.h: Likewise.
58951         * lib/unictype/categ_No.h: Likewise.
58952         * lib/unictype/categ_P.h: Likewise.
58953         * lib/unictype/categ_Pc.h: Likewise.
58954         * lib/unictype/categ_Pd.h: Likewise.
58955         * lib/unictype/categ_Pe.h: Likewise.
58956         * lib/unictype/categ_Pf.h: Likewise.
58957         * lib/unictype/categ_Pi.h: Likewise.
58958         * lib/unictype/categ_Po.h: Likewise.
58959         * lib/unictype/categ_Ps.h: Likewise.
58960         * lib/unictype/categ_S.h: Likewise.
58961         * lib/unictype/categ_Sc.h: Likewise.
58962         * lib/unictype/categ_Sk.h: Likewise.
58963         * lib/unictype/categ_Sm.h: Likewise.
58964         * lib/unictype/categ_So.h: Likewise.
58965         * lib/unictype/categ_Z.h: Likewise.
58966         * lib/unictype/categ_Zl.h: Likewise.
58967         * lib/unictype/categ_Zp.h: Likewise.
58968         * lib/unictype/categ_Zs.h: Likewise.
58969         * lib/unictype/categ_of.h: Likewise.
58970         * lib/unictype/combining.h: Likewise.
58971         * lib/unictype/ctype_alnum.h: Likewise.
58972         * lib/unictype/ctype_alpha.h: Likewise.
58973         * lib/unictype/ctype_blank.h: Likewise.
58974         * lib/unictype/ctype_cntrl.h: Likewise.
58975         * lib/unictype/ctype_digit.h: Likewise.
58976         * lib/unictype/ctype_graph.h: Likewise.
58977         * lib/unictype/ctype_lower.h: Likewise.
58978         * lib/unictype/ctype_print.h: Likewise.
58979         * lib/unictype/ctype_punct.h: Likewise.
58980         * lib/unictype/ctype_space.h: Likewise.
58981         * lib/unictype/ctype_upper.h: Likewise.
58982         * lib/unictype/ctype_xdigit.h: Likewise.
58983         * lib/unictype/decdigit.h: Likewise.
58984         * lib/unictype/digit.h: Likewise.
58985         * lib/unictype/mirror.h: Likewise.
58986         * lib/unictype/numeric.h: Likewise.
58987         * lib/unictype/pr_alphabetic.h: Likewise.
58988         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58989         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58990         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58991         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58992         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58993         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58994         * lib/unictype/pr_bidi_control.h: Likewise.
58995         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58996         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58997         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58998         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58999         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59000         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59001         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59002         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59003         * lib/unictype/pr_bidi_pdf.h: Likewise.
59004         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59005         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59006         * lib/unictype/pr_combining.h: Likewise.
59007         * lib/unictype/pr_composite.h: Likewise.
59008         * lib/unictype/pr_currency_symbol.h: Likewise.
59009         * lib/unictype/pr_dash.h: Likewise.
59010         * lib/unictype/pr_decimal_digit.h: Likewise.
59011         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59012         * lib/unictype/pr_deprecated.h: Likewise.
59013         * lib/unictype/pr_diacritic.h: Likewise.
59014         * lib/unictype/pr_extender.h: Likewise.
59015         * lib/unictype/pr_format_control.h: Likewise.
59016         * lib/unictype/pr_grapheme_base.h: Likewise.
59017         * lib/unictype/pr_grapheme_extend.h: Likewise.
59018         * lib/unictype/pr_grapheme_link.h: Likewise.
59019         * lib/unictype/pr_hex_digit.h: Likewise.
59020         * lib/unictype/pr_hyphen.h: Likewise.
59021         * lib/unictype/pr_id_continue.h: Likewise.
59022         * lib/unictype/pr_id_start.h: Likewise.
59023         * lib/unictype/pr_ideographic.h: Likewise.
59024         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59025         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59026         * lib/unictype/pr_ignorable_control.h: Likewise.
59027         * lib/unictype/pr_iso_control.h: Likewise.
59028         * lib/unictype/pr_join_control.h: Likewise.
59029         * lib/unictype/pr_left_of_pair.h: Likewise.
59030         * lib/unictype/pr_line_separator.h: Likewise.
59031         * lib/unictype/pr_logical_order_exception.h: Likewise.
59032         * lib/unictype/pr_lowercase.h: Likewise.
59033         * lib/unictype/pr_math.h: Likewise.
59034         * lib/unictype/pr_non_break.h: Likewise.
59035         * lib/unictype/pr_not_a_character.h: Likewise.
59036         * lib/unictype/pr_numeric.h: Likewise.
59037         * lib/unictype/pr_other_alphabetic.h: Likewise.
59038         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59039         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59040         * lib/unictype/pr_other_id_continue.h: Likewise.
59041         * lib/unictype/pr_other_id_start.h: Likewise.
59042         * lib/unictype/pr_other_lowercase.h: Likewise.
59043         * lib/unictype/pr_other_math.h: Likewise.
59044         * lib/unictype/pr_other_uppercase.h: Likewise.
59045         * lib/unictype/pr_paired_punctuation.h: Likewise.
59046         * lib/unictype/pr_paragraph_separator.h: Likewise.
59047         * lib/unictype/pr_pattern_syntax.h: Likewise.
59048         * lib/unictype/pr_pattern_white_space.h: Likewise.
59049         * lib/unictype/pr_private_use.h: Likewise.
59050         * lib/unictype/pr_punctuation.h: Likewise.
59051         * lib/unictype/pr_quotation_mark.h: Likewise.
59052         * lib/unictype/pr_radical.h: Likewise.
59053         * lib/unictype/pr_sentence_terminal.h: Likewise.
59054         * lib/unictype/pr_soft_dotted.h: Likewise.
59055         * lib/unictype/pr_space.h: Likewise.
59056         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59057         * lib/unictype/pr_titlecase.h: Likewise.
59058         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59059         * lib/unictype/pr_unified_ideograph.h: Likewise.
59060         * lib/unictype/pr_uppercase.h: Likewise.
59061         * lib/unictype/pr_variation_selector.h: Likewise.
59062         * lib/unictype/pr_white_space.h: Likewise.
59063         * lib/unictype/pr_xid_continue.h: Likewise.
59064         * lib/unictype/pr_xid_start.h: Likewise.
59065         * lib/unictype/pr_zero_width.h: Likewise.
59066         * lib/unictype/scripts.h: Likewise.
59067         * lib/unictype/scripts_byname.gperf: Likewise.
59068         * lib/unictype/sy_c_ident.h: Likewise.
59069         * lib/unictype/sy_c_whitespace.h: Likewise.
59070         * lib/unictype/sy_java_ident.h: Likewise.
59071         * lib/unictype/sy_java_whitespace.h: Likewise.
59072
59073         * lib/unictype/Makefile: New file.
59074         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59075         glibc.
59076         * lib/unictype/3level.h: New file, copied from glibc.
59077         * lib/unictype/3levelbit.h: New file.
59078
59079 2007-11-11  Bruno Haible  <bruno@clisp.org>
59080
59081         * modules/gperf: New file.
59082         * modules/iconv_open (Depends-on): Add it.
59083         (Makefile.am): Remove the GPERF definition.
59084
59085 2007-11-11  Bruno Haible  <bruno@clisp.org>
59086
59087         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59088         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59089
59090 2007-11-11  Bruno Haible  <bruno@clisp.org>
59091
59092         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59093         (usage): Remove function.
59094
59095 2007-11-11  Bruno Haible  <bruno@clisp.org>
59096
59097         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59098         gl_FUNC_CEILF_LIBS.
59099         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59100         gl_FUNC_CEIL_LIBS.
59101         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59102         gl_FUNC_CEILL_LIBS.
59103         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59104         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59105         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59106
59107 2007-11-11  Bruno Haible  <bruno@clisp.org>
59108
59109         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59110         roundf were declared but do not exist on functions.
59111         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59112         roundl were declared but do not exist on functions.
59113         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59114         HAVE_FLOORL_AND_CEILL, respectively.
59115         Needed for Sun C on Solaris 10.
59116
59117 2007-11-11  Bruno Haible  <bruno@clisp.org>
59118
59119         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59120         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59121         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59122         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59123         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59124         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59125         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59126         HAVE_DECL_ROUNDF.
59127         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59128         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59129         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59130         of HAVE_DECL_ROUND*.
59131         * modules/math (Makefile.am): Update.
59132
59133 2007-11-10  Bruno Haible  <bruno@clisp.org>
59134
59135         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59136         ptrdiff_t as m4/intl.m4.
59137
59138 2007-11-10  Jim Meyering  <meyering@redhat.com>
59139
59140         Avoid link failure for the argmatch test.
59141         * tests/test-argmatch.c (usage): Define function to avoid a link
59142         failure: argmatch_die requires a usage function.
59143
59144 2007-11-09  Bruno Haible  <bruno@clisp.org>
59145
59146         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59147         * doc/functions/vsnprintf.texi: Likewise.
59148         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59149         with a size argument < 2.
59150
59151 2007-11-09  Bruno Haible  <bruno@clisp.org>
59152
59153         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59154         buffer. Fixes an inefficiency introduced on 2007-11-03.
59155
59156 2007-11-09  Bruno Haible  <bruno@clisp.org>
59157
59158         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59159         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59160
59161 2007-11-08  Jim Meyering  <meyering@redhat.com>
59162
59163         Change cache variable name prefix "jm_" to "gl_" everywhere.
59164         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59165         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59166         * m4/uptime.m4: s/gl_/jm_/
59167
59168 2007-11-07  Bruno Haible  <bruno@clisp.org>
59169
59170         Update to GNU gettext 0.17.
59171         * m4/intl.m4: Update to GNU gettext 0.17.
59172         * m4/po.m4: Likewise.
59173         * modules/gettext (Files): Remove m4/ulonglong.m4.
59174         (configure.ac): Require gettext infrastructure from version 0.17.
59175
59176 2007-11-06  Bruno Haible  <bruno@clisp.org>
59177
59178         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59179         symbolic values are not defined in a public header.
59180         * lib/freadable.c (freadable) [QNX]: Likewise.
59181         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59182         * lib/freading.c (freading) [QNX]: Likewise.
59183         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59184         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59185         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59186         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59187         Reported by Alain Magloire.
59188
59189         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59190
59191 2007-11-05  Bruno Haible  <bruno@clisp.org>
59192
59193         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59194         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59195         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59196         Reported by Eric Blake.
59197
59198 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59199             Bruno Haible  <bruno@clisp.org>
59200
59201         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59202         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59203         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59204         (malloc): Undefine also before including <stdlib.h>.
59205         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59206         Needed on OSF/1 4.0.
59207
59208 2007-11-05  Jim Meyering  <meyering@redhat.com>
59209
59210         git-version-gen: sync from coreutils.
59211         * build-aux/git-version-gen: Add comments.
59212         Change the first '-' to '.' in the snapshot version string,
59213         e.g., 6.9-377-08144 -> 6.9.377-08144
59214         Remove first parameter.
59215         Don't declare a version "-dirty" merely because a time
59216         stamp has changed.
59217
59218 2007-11-04  Bruno Haible  <bruno@clisp.org>
59219
59220         * lib/lock.h: Protect all macro definitions containing an 'if'
59221         statement through a "do { ... } while (0)".
59222         * lib/tls.h: Likewise.
59223
59224 2007-11-04  Bruno Haible  <bruno@clisp.org>
59225
59226         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59227
59228 2007-11-04  Bruno Haible  <bruno@clisp.org>
59229
59230         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59231         * modules/fprintf-posix (Depends-on): Add nocrash.
59232         * modules/snprintf-posix (Depends-on): Likewise.
59233         * modules/sprintf-posix (Depends-on): Likewise.
59234         * modules/vasnprintf-posix (Depends-on): Likewise.
59235         * modules/vasprintf-posix (Depends-on): Likewise.
59236         * modules/vfprintf-posix (Depends-on): Likewise.
59237         * modules/vsnprintf-posix (Depends-on): Likewise.
59238         * modules/vsprintf-posix (Depends-on): Likewise.
59239         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59240         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59241         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59242         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59243         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59244         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59245         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59246
59247 2007-11-04  Bruno Haible  <bruno@clisp.org>
59248
59249         * modules/nocrash: New file.
59250         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59251         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59252
59253 2007-11-04  Bruno Haible  <bruno@clisp.org>
59254
59255         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59256         precision handling.
59257         * tests/test-vasprintf-posix.c (test_function): Likewise.
59258         * tests/test-snprintf-posix.h (test_function): Likewise.
59259         * tests/test-sprintf-posix.h (test_function): Likewise.
59260
59261         Fix *printf behaviour for large precisions on mingw and BeOS.
59262         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59263         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59265         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59266         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59267         gl_PRINTF_PRECISION and test its result. Invoke
59268         gl_PREREQ_VASNPRINTF_PRECISION.
59269         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59270         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59271         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59272         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59273         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59274         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59275         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59276         * doc/functions/fprintf.texi: Update.
59277         * doc/functions/printf.texi: Update.
59278         * doc/functions/snprintf.texi: Update.
59279         * doc/functions/sprintf.texi: Update.
59280         * doc/functions/vfprintf.texi: Update.
59281         * doc/functions/vprintf.texi: Update.
59282         * doc/functions/vsnprintf.texi: Update.
59283         * doc/functions/vsprintf.texi: Update.
59284
59285 2007-11-04  Bruno Haible  <bruno@clisp.org>
59286
59287         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59288
59289 2007-11-04  Bruno Haible  <bruno@clisp.org>
59290
59291         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59292         Reported by Sylvain Beucler <beuc@gnu.org>.
59293
59294 2007-11-03  Bruno Haible  <bruno@clisp.org>
59295
59296         * tests/test-fprintf-posix2.sh: New file.
59297         * tests/test-fprintf-posix2.c: New file.
59298         * modules/fprintf-posix-tests (Files): Add them.
59299         (TESTS): Add test-fprintf-posix2.sh.
59300         (configure.ac): Check for getrlimit and setrlimit.
59301         (check_PROGRAMS): Add test-fprintf-posix2.
59302
59303         * tests/test-printf-posix2.sh: New file.
59304         * tests/test-printf-posix2.c: New file.
59305         * modules/printf-posix-tests (Files): Add them.
59306         (TESTS): Add test-printf-posix2.sh.
59307         (configure.ac): Check for getrlimit and setrlimit.
59308         (check_PROGRAMS): Add test-printf-posix2.
59309
59310         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59311         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59312         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59313         (decode_double): New function, copied from decode_long_double.
59314         (scale10_round_decimal_decoded): New function, extracted from
59315         scale10_round_decimal_long_double.
59316         (scale10_round_decimal_long_double): Use it.
59317         (scale10_round_decimal_double): New function.
59318         (floorlog10): New function.
59319         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59320         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59321         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59322         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59323         gl_PRINTF_ENOMEM and test its result. Invoke
59324         gl_PREREQ_VASNPRINTF_ENOMEM.
59325         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59326         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59327         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59328         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59329         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59330         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59331         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59332         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59333         * modules/snprintf-posix (Depends-on): Likewise.
59334         * modules/sprintf-posix (Depends-on): Likewise.
59335         * modules/vasnprintf-posix (Depends-on): Likewise.
59336         * modules/vasprintf-posix (Depends-on): Likewise.
59337         * modules/vfprintf-posix (Depends-on): Likewise.
59338         * modules/vsnprintf-posix (Depends-on): Likewise.
59339         * modules/vsprintf-posix (Depends-on): Likewise.
59340         * doc/functions/fprintf.texi: Update.
59341         * doc/functions/printf.texi: Update.
59342         * doc/functions/snprintf.texi: Update.
59343         * doc/functions/sprintf.texi: Update.
59344         * doc/functions/vfprintf.texi: Update.
59345         * doc/functions/vprintf.texi: Update.
59346         * doc/functions/vsnprintf.texi: Update.
59347         * doc/functions/vsprintf.texi: Update.
59348
59349 2007-11-03  Bruno Haible  <bruno@clisp.org>
59350
59351         * modules/frexp-nolibm-tests: New file.
59352
59353         * modules/frexp-nolibm: New file.
59354         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59355
59356 2007-11-03  Bruno Haible  <bruno@clisp.org>
59357
59358         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59359         value is C99 compliant.
59360         Needed for OSF/1 5.1.
59361
59362 2007-11-03  Bruno Haible  <bruno@clisp.org>
59363
59364         Fix out-of-memory handling of vasnprintf.
59365         * lib/printf-parse.c: Include <errno.h>.
59366         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59367         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59368         is already set.
59369
59370 2007-11-02  Eric Blake  <ebb9@byu.net>
59371
59372         Fix tests on cygwin.
59373         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59374
59375 2007-11-01  Bruno Haible  <bruno@clisp.org>
59376
59377         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59378         warning.
59379         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59380         needed for POSIX compatibility.
59381
59382 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59383
59384         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59385         for compatibility with GNU.
59386
59387 2007-11-01  Bruno Haible  <bruno@clisp.org>
59388
59389         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59390         (putenv): Renamed from rpl_putenv. Change argument type from
59391         'const char *' to 'char *'.
59392         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59393         of defining putenv in config.h, just set REPLACE_PUTENV.
59394         * modules/putenv (Depends-on): Add stdlib.
59395         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59396         (Include): Use <stdlib.h>.
59397         * lib/stdlib.in.h (putenv): New declaration.
59398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59399         REPLACE_PUTENV.
59400         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59401         REPLACE_PUTENV.
59402         Needed for MacOS X 10.5.0.
59403         Reported by Peter O'Gorman <peter@pogma.com>.
59404
59405 2007-11-01  Jim Meyering  <meyering@redhat.com>
59406
59407         Treat an empty date string exactly like "0".
59408         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59409         if the remaining date string (to be parsed) is empty, use "0".
59410         Reported by Mischa Molhoek and discussed in this thread:
59411         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59412
59413 2007-10-31  Bruno Haible  <bruno@clisp.org>
59414
59415         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59416         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59417         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59418         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59419         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59420         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59421
59422 2007-10-31  Bruno Haible  <bruno@clisp.org>
59423
59424         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59425         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59426         (AC_TYPE_LONG_LONG_INT): Use it.
59427         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59428         it as well.
59429         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59430         to m4/longlong.m4.
59431         * modules/stdint (Files): Remove m4/ulonglong.m4.
59432         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59433         m4/ulonglong.m4.
59434         * modules/strtoumax (Files): Likewise.
59435
59436 2007-10-30  Bruno Haible  <bruno@clisp.org>
59437
59438         * modules/xvasprintf-posix: New file.
59439         Suggested by Eric Blake.
59440
59441 2007-10-30  Bruno Haible  <bruno@clisp.org>
59442
59443         * modules/xprintf-posix-tests: New file.
59444         * tests/test-xprintf-posix.sh: New file.
59445         * tests/test-xprintf-posix.c: New file.
59446         * tests/test-xfprintf-posix.c: New file.
59447
59448         * modules/xprintf-posix: New file.
59449
59450 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59451
59452         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59453         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59454         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59455
59456 2007-10-29  Bruno Haible  <bruno@clisp.org>
59457
59458         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59459         contain the special marker '_cv_'.
59460         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59461         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59462         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59463         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59464         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59465         Reported by Ralf Wildenhues.
59466
59467 2007-10-29  Bruno Haible  <bruno@clisp.org>
59468
59469         * gnulib-tool (func_import): When --lgpl is not specified, set
59470         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59471         GPLv3.
59472         Reported by Simon Josefsson.
59473
59474 2007-10-28  Bruno Haible  <bruno@clisp.org>
59475
59476         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59477         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59478         HAVE_DECL_ISFINITE.
59479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59480         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59481         HAVE_DECL_ISFINITE.
59482
59483 2007-10-28  Bruno Haible  <bruno@clisp.org>
59484
59485         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59486         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59487
59488 2007-10-28  Bruno Haible  <bruno@clisp.org>
59489
59490         Fix link errors with Sun C 5.0 on Solaris 10.
59491         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59492         function is declared but not present in the compiler's libm.
59493         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59494         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59495         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59496         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59497         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59498         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59499         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59501         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59502         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59503         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59504         HAVE_DECL_FLOORL.
59505
59506 2007-10-28  Bruno Haible  <bruno@clisp.org>
59507
59508         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59509         gl_FUNC_FLOORL. Cache the result.
59510         (gl_FUNC_FLOORL): Use it.
59511         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59512         gl_FUNC_CEILL. Cache the result.
59513         (gl_FUNC_CEILL): Use it.
59514
59515         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59516         gl_FUNC_FLOOR. Cache the result.
59517         (gl_FUNC_FLOOR): Use it.
59518         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59519         gl_FUNC_CEIL. Cache the result.
59520         (gl_FUNC_CEIL): Use it.
59521
59522         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59523         gl_FUNC_FLOORF. Cache the result.
59524         (gl_FUNC_FLOORF): Use it.
59525         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59526         gl_FUNC_CEILF. Cache the result.
59527         (gl_FUNC_CEILF): Use it.
59528
59529 2007-10-28  Bruno Haible  <bruno@clisp.org>
59530
59531         * gnulib-tool: Allow specifying the LGPL version number through
59532         --lgpl=2 or --lgpl=3.
59533         (func_usage): Document --lgpl with argument.
59534         Handle --lgpl=... arguments.
59535         (func_import): Recognize also gl_LGPL calls with an argument. When
59536         --lgpl=2 is used and the module's license is just LGPL, report an
59537         error. Set sed_transform_lib_file according to the lgpl variable. In
59538         the generated files, use --lgpl or gl_LGPL invocations with argument,
59539         if necessary.
59540         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59541         an LGPv2+ license.
59542         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59543         gl_LGPL macro.
59544
59545 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59546             Bruno Haible  <bruno@clisp.org>
59547
59548         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59549         (u16_uctomb_aux): Likewise.
59550         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59551         !HAVE_INLINE.
59552         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59553
59554 2007-10-28  Bruno Haible  <bruno@clisp.org>
59555
59556         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59557         Invoke AM_GETTEXT_OPTION if it exists.
59558         * modules/vasprintf: Likewise.
59559         * modules/verror: Likewise.
59560         * modules/xprintf: Likewise.
59561         * modules/xvasprintf: Likewise.
59562
59563 2007-10-27  Ben Pfaff  <blp@gnu.org>
59564
59565         * lib/math.in.h: Define isfinite macro and prototypes for
59566         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59567         implementations.
59568         * m4/math_h.m4: New substitutions for isfinite module.
59569         * lib/isfinite.c: New file.
59570         * m4/isfinite.m4: New file.
59571         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59572         * modules/isfinite: New file.
59573         * modules/isfinite-tests: New file.
59574         * tests/tests-isfinite.c: New file.
59575         * doc/functions/isfinite.texi: Mention isfinite module.
59576         * MODULES.html.sh: Mention new module.
59577
59578 2007-10-27  Ben Pfaff  <blp@gnu.org>
59579
59580         Ralf Wildenhues reported that Tru64 4.0D declares the round
59581         functions but does not have definitions.
59582         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59583         cannot be found in any library, set the output variable to
59584         "missing" instead of "".
59585         * m4/round.m4: Also use our substitute if we cannot find round in
59586         any library, even if it is declared.
59587         * m4/roundf.m4: Likewise for roundf.
59588         * m4/roundl.m4: Likewise for roundl.
59589         * lib/math.in.h: Undefine roundf, round, roundl before defining
59590         their replacements, to allow for hypothetical systems where these
59591         may be defined as macros but not available in libraries.
59592
59593 2007-10-27  Bruno Haible  <bruno@clisp.org>
59594
59595         * doc/gnulib.texi: Invoke @firstparagraphindent.
59596         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59597         changes in gnulib.
59598         (Source changes): New section.
59599
59600 2007-10-26  Bruno Haible  <bruno@clisp.org>
59601
59602         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59603         borrowed from autoconf.
59604
59605 2007-10-26  Bruno Haible  <bruno@clisp.org>
59606
59607         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59608         strerror returned the empty string. Needed on HP-UX 11.00.
59609
59610 2007-10-24  Micah Cowan  <micah@cowan.name>
59611
59612         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59613         * build-aux/bootstrap: Remove support for now-unnecessary option,
59614         --cvs-user, and envvars CVS_USER, CVS_RSH.
59615
59616 2007-10-24  Jim Meyering  <meyering@redhat.com>
59617
59618         Avoid diagnostics from sha1sum when there is no cached checksum.
59619         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59620         if the po.s1 file hasn't been created yet.
59621
59622         * build-aux/bootstrap: Sync from coreutils:
59623         2007-10-24  Jim Meyering  <meyering@redhat.com>
59624         Get gnulib from the git repository, not from an obsolete cvs one.
59625         * build-aux/bootstrap: Suggestion from Micah Cowan.
59626         2007-10-04  Jim Meyering  <jim@meyering.net>
59627         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59628         (update_po_files): Work also when there are no .po files in po/.
59629
59630 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         * README: Append ".git" to git and cg examples.
59633         Problem reported by Benoit Sigoure.
59634
59635 2007-10-23  Micah Cowan  <micah@cowan.name>
59636
59637         * users.txt: Add wget.
59638
59639 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59640
59641         Fix linking of some unistdio tests on FreeBSD.
59642         * modules/unistdio/u16-vsnprintf-tests
59643         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59644         * modules/unistdio/u16-vsprintf-tests
59645         (test_u16_vsnprintf1_LDADD): Likewise.
59646         * modules/unistdio/u32-vsnprintf-tests
59647         (test_u32_vsnprintf1_LDADD): Likewise.
59648         * modules/unistdio/u32-vsprintf-tests
59649         (test_u32_vsprintf1_LDADD): Likewise.
59650         * modules/unistdio/u8-vsnprintf-tests
59651         (test_u8_vsnprintf1_LDADD): Likewise.
59652         * modules/unistdio/u8-vsprintf-tests
59653         (test_u8_vsprintf1_LDADD): Likewise.
59654         * modules/unistdio/ulc-vsnprintf-tests
59655         (test_ulc_vsnprintf1_LDADD): Likewise.
59656         * modules/unistdio/ulc-vsprintf-tests
59657         (test_ulc_vsprintf1_LDADD): Likewise.
59658
59659         Fix linking of some uniconv tests on FreeBSD.
59660         * modules/uniconv/u16-conv-from-enc-tests
59661         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59662         * modules/uniconv/u16-conv-to-enc-tests
59663         (test_u16_conv_to_enc_LDADD): Likewise.
59664         * modules/uniconv/u16-strconv-from-enc-tests
59665         (test_u16_strconv_from_enc_LDADD): Likewise.
59666         * modules/uniconv/u16-strconv-to-enc-tests
59667         (test_u16_strconv_to_enc_LDADD): Likewise.
59668         * modules/uniconv/u32-conv-from-enc-tests
59669         (test_u32_conv_from_enc_LDADD): Likewise.
59670         * modules/uniconv/u32-conv-to-enc-tests
59671         (test_u32_conv_to_enc_LDADD): Likewise.
59672         * modules/uniconv/u32-strconv-from-enc-tests
59673         (test_u32_strconv_from_enc_LDADD): Likewise.
59674         * modules/uniconv/u32-strconv-to-enc-tests
59675         (test_u32_strconv_to_enc_LDADD): Likewise.
59676         * modules/uniconv/u8-conv-from-enc-tests
59677         (test_u8_conv_from_enc_LDADD): Likewise.
59678         * modules/uniconv/u8-conv-to-enc-tests
59679         (test_u8_conv_to_enc_LDADD): Likewise.
59680         * modules/uniconv/u8-strconv-from-enc-tests
59681         (test_u8_strconv_from_enc_LDADD): Likewise.
59682         * modules/uniconv/u8-strconv-to-enc-tests
59683         (test_u8_strconv_to_enc_LDADD): Likewise.
59684
59685 2007-10-22  Bruno Haible  <bruno@clisp.org>
59686
59687         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59688         size.
59689
59690 2007-10-22  Eric Blake  <ebb9@byu.net>
59691
59692         Tweak x*printf documentation.
59693         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59694         variable name and comments.
59695         Suggested by Bruno Haible.
59696
59697 2007-10-22  Bruno Haible  <bruno@clisp.org>
59698
59699         * lib/acl.c (copy_acl): Fix file name in comment.
59700
59701 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59702
59703         Fix Tru64 problem with stdbool.h.
59704         * lib/stdbool.in.h (false, true):
59705         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59706         Don't declare as an enum in this situation; it runs afoul of Tru64.
59707         Problem reported by Steven M. Schweda in
59708         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59709
59710 2007-10-22  Eric Blake  <ebb9@byu.net>
59711
59712         Also wrap vf?printf.
59713         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59714         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59715         (xvprintf, xvfprintf): New functions.
59716
59717 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59718
59719         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59720         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59721
59722         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59723         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59724
59725 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59726
59727         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59728         by Bruno Haible.
59729
59730 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59731
59732         * lib/getloadavg.c
59733         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59734         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59735
59736         * tests/test-i-ring.c: Work for C89.
59737
59738 2007-10-22  Bruno Haible  <bruno@clisp.org>
59739
59740         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59741         -1u, in preprocessor expression, so that we don't test for the bug
59742         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59744
59745 2007-10-22  Eric Blake  <ebb9@byu.net>
59746
59747         * tests/test-yesno.sh: Silence stderr during test.
59748
59749 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59750
59751         * modules/crypto/gc-camellia: New file.
59752
59753         * m4/gc-camellia.m4: New file.
59754
59755         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59756
59757         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59758
59759 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59760
59761         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59762         --help to stdout.  Reported by sms@antinode.org (Steven
59763         M. Schweda).
59764
59765 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59766
59767         * users.txt: Fix link to libksba.
59768
59769 2007-10-21  Ben Pfaff  <blp@gnu.org>
59770
59771         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59772         round.c roundf implementation that depends on floorf and ceilf to
59773         be tested unconditionally.
59774
59775 2007-10-21  Ben Pfaff  <blp@gnu.org>
59776
59777         * m4/check-libm-func.m4: Removed.
59778         * m4/check-math-lib.m4: New file.
59779         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59780         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59781         definition and lack of AC_LIBOBJ([roundf]).
59782         * m4/roundl.m4: Ditto, and similarly for roundl.
59783         * modules/round: Reference new m4 file.
59784         * modules/roundf: Ditto.
59785         * modules/roundl: Ditto.
59786         * tests/test-round2.c (main): Use ROUND instead of round.
59787         Bug report from Bruno Haible.
59788
59789 2007-10-21  Bruno Haible  <bruno@clisp.org>
59790
59791         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59792         context.
59793
59794 2007-10-21  Bruno Haible  <bruno@clisp.org>
59795
59796         * tests/test-wcwidth.c (main): Allow negative result for some control
59797         characters.
59798
59799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59800         Needed on OSF/1 5.1.
59801
59802 2007-10-21  Bruno Haible  <bruno@clisp.org>
59803
59804         * tests/test-floorf1.c: Include isnanf.h.
59805         (main): Use isnanf() instead of isnan().
59806         * tests/test-ceilf1.c: Include isnanf.h.
59807         (main): Use isnanf() instead of isnan().
59808         * tests/test-truncf1.c: Include isnanf.h.
59809         (main): Use isnanf() instead of isnan().
59810         * tests/test-roundf1.c: Include isnanf.h.
59811         (main): Use isnanf() instead of isnan().
59812
59813 2007-10-21  Eric Blake  <ebb9@byu.net>
59814
59815         * users.txt: Update URL for m4.
59816
59817 2007-10-21  Bruno Haible  <bruno@clisp.org>
59818
59819         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59820
59821 2007-10-21  Bruno Haible  <bruno@clisp.org>
59822
59823         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59824         Git's management files if the CVS files are not present.
59825
59826 2007-10-20  Bruno Haible  <bruno@clisp.org>
59827
59828         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
59829         gcc-3.4.x.
59830
59831 2007-10-20  Ben Pfaff  <blp@gnu.org>
59832
59833         * lib/math.in.h: Declare round, roundf, roundl if we are providing
59834         implementations.
59835         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
59836         * lib/round.c: New file.
59837         * lib/roundf.c: New file.
59838         * lib/roundl.c: New file.
59839         * m4/round.m4: New file.
59840         * m4/roundf.m4: New file.
59841         * m4/roundl.m4: New file.
59842         * m4/check-libm-func-m4: New file.
59843         * modules/math: Replace round, roundf, roundl related @VARS@ in
59844         math.in.h.
59845         * modules/round: New file.
59846         * modules/round-tests: New file.
59847         * modules/roundf: New file.
59848         * modules/roundf-tests: New file.
59849         * modules/roundl: New file.
59850         * modules/roundl-tests: New file.
59851         * tests/test-round1.c: New file.
59852         * tests/test-round2.c: New file.
59853         * tests/test-roundf1.c: New file.
59854         * tests/test-roundf2.c: New file.
59855         * tests/test-roundl.c: New file.
59856         * doc/functions/round.texi: Mention round module.
59857         * doc/functions/roundf.texi: Mention roundf module.
59858         * doc/functions/roundl.texi: Mention roundl module.
59859         * MODULES.html.sh: Mention new modules.
59860         Thanks to Bruno Haible for suggestions.
59861
59862 2007-10-20  Jim Meyering  <meyering@redhat.com>
59863
59864         * lib/xprintf.c: Include <config.h> unconditionally.
59865
59866         Change xprintf's license to GPL.
59867         * modules/xprintf (License): s/LGPL/GPL/, since this module
59868         depends on modules (exit and exitfail) which are GPL.
59869         Suggestion from Bruno Haible.
59870
59871         xprintf fixes.
59872         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
59873         Use a clearer diagnostic.
59874         Patch from Bruno Haible.
59875
59876 2007-10-20  Bruno Haible  <bruno@clisp.org>
59877
59878         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
59879         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
59880         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59881
59882 2007-10-20  Bruno Haible  <bruno@clisp.org>
59883
59884         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
59885         precision in the comparison result > x - 1 or similar.
59886         * tests/test-ceilf2.c (correct_result_p): Likewise.
59887         * tests/test-truncf2.c (correct_result_p): Likewise.
59888         * tests/test-trunc2.c (correct_result_p): Likewise.
59889         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59890
59891 2007-10-20  Bruno Haible  <bruno@clisp.org>
59892
59893         * modules/ceil: New file.
59894         * m4/ceil.m4: New file.
59895         * doc/functions/ceil.texi: Mention the 'ceil' module.
59896
59897 2007-10-20  Bruno Haible  <bruno@clisp.org>
59898
59899         * modules/floor: New file.
59900         * m4/floor.m4: New file.
59901         * doc/functions/floor.texi: Mention the 'floor' module.
59902
59903 2007-10-20  Bruno Haible  <bruno@clisp.org>
59904
59905         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
59906         of %a.
59907         * modules/floorf-tests (Depends-on): Likewise.
59908         * modules/truncf-tests (Depends-on): Likewise.
59909         * modules/trunc-tests (Depends-on): Likewise.
59910         Reported by Ben Pfaff.
59911
59912 2007-10-19  Jim Meyering  <meyering@redhat.com>
59913
59914         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
59915         Don't bother testing specific errno values.  Just test ferror.
59916
59917         New module: xprintf
59918         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
59919
59920 2007-10-19  Bruno Haible  <bruno@clisp.org>
59921
59922         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
59923         syntax.
59924         * modules/javaexec (Makefile.am): Likewise.
59925         * modules/relocatable-prog (Makefile.am): Likewise.
59926         Suggested by Jim Meyering.
59927
59928 2007-10-18  Bruno Haible  <bruno@clisp.org>
59929
59930         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
59931         Reported by Jim Meyering.
59932
59933 2007-10-18  Eric Blake  <ebb9@byu.net>
59934
59935         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
59936
59937 2007-10-18  Bruno Haible  <bruno@clisp.org>
59938
59939         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
59940         the format string into writable memory. Needed in Fortify conditions.
59941
59942 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
59943             Bruno Haible  <bruno@clisp.org>
59944
59945         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
59946         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
59947         * modules/trim (Depends-on): Add mbchar.
59948         (configure.ac): Add gl_FUNC_MBRTOWC.
59949         (Makefile.am): Augment lib_SOURCES.
59950
59951 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59952
59953         Modify glob.c to use fstatat and dirfd, to simplify it.
59954         Suggested by Eric Blake.
59955         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
59956         Don't include <stdbool.h>; not used.
59957         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
59958         (link_exists_p): Simplify implementation, since we can now assume
59959         dirfd and fstatat.
59960         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
59961
59962 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59963
59964         * gnulib-tool (func_get_dependencies): Fix sed script to
59965         match only tests.
59966
59967 2007-10-17  Bruno Haible  <bruno@clisp.org>
59968
59969         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
59970         allow locale names without encoding suffix.
59971         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59972         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59973
59974 2007-10-16  Bruno Haible  <bruno@clisp.org>
59975
59976         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
59977         * lib/getgroups.c (getgroups): Likewise.
59978         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
59979
59980 2007-10-16  Bruno Haible  <bruno@clisp.org>
59981
59982         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
59983         * modules/malloc-posix (License): Likewise.
59984         * modules/realloc-posix (License): Likewise.
59985         * modules/calloc-posix (License): Likewise.
59986         * modules/intprops (License): Change from GPL to LGPL, with
59987         Paul Eggert's approval.
59988
59989 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59990
59991         Merge glibc changes into lib/glob.c.
59992
59993         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
59994         2007-10-15 04:59:03 UTC.  Here are the changes:
59995
59996         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
59997
59998         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
59999
60000         * lib/glob.c: Add some branch prediction throughout.
60001
60002         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60003
60004         [BZ #5103]
60005         * lib/glob.c (glob): Recognize patterns starting \/.
60006
60007         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60008
60009         [BZ #3996]
60010         * lib/glob.c (attribute_hidden): Define if not defined.
60011         (glob): Unescape dirname, filename or username when needed and not
60012         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60013         is NULL.  Handle unescaped [ in pattern without closing ].
60014         Don't pass GLOB_CHECK down to recursive glob for directories.
60015         (__glob_pattern_type): New function.
60016         (__glob_pattern_p): Implement using __glob_pattern_type.
60017         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60018         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60019         Remove unreachable code.
60020
60021         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60022
60023         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60024         explain why there are no leaks.
60025
60026         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60027
60028         [BZ #3253]
60029         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60030         time, rather allocate increasingly bigger arrays of pointers, if
60031         possible with alloca, if too large with malloc.
60032
60033 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60034
60035         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60036         Problem reported by H.Merijn Brand in
60037         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60038         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60039         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60040
60041 2007-10-15  Bruno Haible  <bruno@clisp.org>
60042
60043         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60044         with explicit rpl_ prefix.
60045         * lib/fopen.c (fopen): Likewise.
60046         * lib/freopen.c (freopen): Likewise.
60047         * lib/iconv.c (iconv): Likewise.
60048         * lib/iconv_close.c (iconv_close): Likewise.
60049
60050 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60051
60052         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60053
60054 2007-10-15  Bruno Haible  <bruno@clisp.org>
60055
60056         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60057         <stddef.h> instead of <stdlib.h> since we only need NULL.
60058         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60059
60060 2007-10-15  Bruno Haible  <bruno@clisp.org>
60061
60062         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60063         Replace paragraph talking about LIBOBJS.
60064         Reported by Colin Watson <cjwatson@debian.org>.
60065
60066 2007-10-15  Bruno Haible  <bruno@clisp.org>
60067
60068         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60069         <stdlib.h> before using NULL.
60070
60071 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60072
60073         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60074         Reported by Albert Chin <china@thewrittenword.com>.
60075
60076 2007-10-14  Bruno Haible  <bruno@clisp.org>
60077
60078         * modules/iconv_open-utf-tests: New file.
60079         * tests/test-iconv-utf.c: New file.
60080
60081         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60082         * modules/iconv_open-utf: New file.
60083         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60084         (iconv, iconv_close): New declarations.
60085         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60086         be defined.
60087         (iconv_open): Add special handling of conversion between UTF-8 and
60088         UTF-{16,32}{BE,LE}.
60089         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60090         * lib/iconv_close.c: New file.
60091         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60092         gl_FUNC_ICONV_OPEN.
60093         (gl_FUNC_ICONV_OPEN): Use it.
60094         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60095         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60096         and REPLACE_ICONV_UTF.
60097         * modules/iconv_open (Depends-on): Add c-strcase.
60098         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60099         ICONV_CONST.
60100         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60101
60102 2007-10-13  Albert Chin  <china@thewrittenword.com>
60103             Bruno Haible  <bruno@clisp.org>
60104
60105         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60106         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60107
60108 2007-10-13  Bruno Haible  <bruno@clisp.org>
60109
60110         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60111         defined, use the ISO C99 inline semantics.
60112         * lib/argp.h (ARGP_EI): Likewise.
60113
60114 2007-10-13  Bruno Haible  <bruno@clisp.org>
60115
60116         Handle 'inline' change in gcc 4.3.0.
60117         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60118         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60119         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60120         argp_fmtstream_point): Disable 'extern' declaration if the function
60121         definition is going to be provided inline.
60122         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60123         semantics, not the ISO C99 inline semantics.
60124         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60125         'extern' declaration if the function definition is going to be provided
60126         inline.
60127         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60128         the GNU C inline semantics, not the ISO C99 inline semantics. With
60129         GCC 4.2, avoid a warning.
60130
60131 2007-10-13  Bruno Haible  <bruno@clisp.org>
60132
60133         * lib/freading.h (freading): Enable the use of __freading for
60134         glibc >= 2.7.
60135         * lib/freading.c (freading): Likewise.
60136
60137 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60138
60139         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60140         "warning: C99 inline functions are not supported; using GNU89".
60141
60142 2007-10-12  Bruno Haible  <bruno@clisp.org>
60143
60144         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60145         of 2.
60146         * tests/test-ceilf2.c: New file.
60147         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60148
60149         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60150         * modules/ceilf-tests: Update.
60151
60152 2007-10-12  Bruno Haible  <bruno@clisp.org>
60153
60154         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60155         of 2.
60156         * tests/test-floorf2.c: New file.
60157         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60158
60159         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60160         * modules/floorf-tests: Update.
60161
60162 2007-10-12  Bruno Haible  <bruno@clisp.org>
60163
60164         * tests/test-trunc2.c: New file.
60165         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60166
60167         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60168         * modules/trunc-tests: Update.
60169
60170 2007-10-12  Bruno Haible  <bruno@clisp.org>
60171
60172         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60173         of 2.
60174         * tests/test-truncf2.c: New file.
60175         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60176
60177         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60178         * modules/truncf-tests: Update.
60179
60180 2007-10-11  Eric Blake  <ebb9@byu.net>
60181
60182         Don't claim strerror is broken on Interix.
60183         * doc/functions/strerror.texi (strerror): Known broken systems are
60184         now Solaris 8, and not Interix.
60185         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60186         Interix on cross-compile.
60187         Reported by Martin Koeppe in
60188         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60189
60190 2007-10-11  Bruno Haible  <bruno@clisp.org>
60191
60192         * modules/i-ring-tests: New file.
60193         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60194         instead of assert.
60195
60196 2007-10-11  Bruno Haible  <bruno@clisp.org>
60197
60198         * modules/filenamecat-tests: New file.
60199         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60200         * lib/filenamecat.c: Remove test code.
60201
60202 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60203
60204         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60205
60206         * lib/strerror.c: Include <string.h> always, to test interface,
60207         and to remove the need for the dummy.
60208         Include intprops.h to compute width instead of doing it ourselves
60209         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60210         (strerror): Define it to return NULL if there's no system strerror.
60211         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60212         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60213         ancient pre-strerror Unix systems well any more.  Saying "unknown
60214         system error" is enough.
60215         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60216         simpler strerror.c implementation.
60217         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60218         Simplify the tests to reflect the simpler strerror implementation.
60219         * modules/strerror (Depends-on): Add intprops.
60220
60221 2007-10-09  Eric Blake  <ebb9@byu.net>
60222
60223         Silence test-fpending.
60224         * modules/fpending-tests (Files): Add wrapper script.
60225         * tests/test-fpending.sh: New file.
60226
60227 2007-10-09  Bruno Haible  <bruno@clisp.org>
60228
60229         * MODULES.html.sh (func_module): Don't create a hyperlink for
60230         function names like 'printf_frexp'.
60231         (Misc): Add crc, memxor.
60232         (Characteristics of floating types): New section.
60233         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60234         isnanf-nolibm, signbit, trunc, truncf, truncl.
60235         (Enhancements for ISO C 99 functions): New subsection Input/output.
60236         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60237         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60238         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60239         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60240         (Enhancements for POSIX:2001 functions): Add chdir-long.
60241         (File system functions): Add areadlink, chdir-safer, read-file.
60242         Remove cycle-check.
60243         (File system as inode set): New section.
60244         (Date and time): Add gethrxtime.
60245         (Multithreading): Add openmp.
60246         (Internationalization functions): Add localename.
60247         (Unicode string functions): Add unistr/u*-mbsnlen.
60248         (Support for maintaining and releasing projects): Add git-version-gen.
60249         (Lone files): Remove directories.
60250
60251 2007-10-08  Ben Pfaff  <blp@gnu.org>
60252
60253         * lib/xmalloca.h: Fix typo in comment.
60254
60255 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60256
60257         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60258         when avoiding problems with integer overflow.  Use a portable test
60259         instead.
60260
60261 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60262
60263         * modules/dummy (License): Change to LGPLv2+.
60264         * modules/float (License): Likewise
60265         * modules/realloc (License): Likewise
60266         * modules/stdlib (License): Likewise
60267
60268 2007-10-07  Bruno Haible  <bruno@clisp.org>
60269
60270         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60271         * floor.c (TWO_MANT_DIG): Likewise.
60272         * ceil.c (TWO_MANT_DIG): Likewise.
60273         Reported by Ben Pfaff.
60274
60275 2007-10-07  Bruno Haible  <bruno@clisp.org>
60276
60277         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60278         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60279         * lib/frexp.c (FUNC): Likewise.
60280         * lib/printf-frexp.h (printf_frexp): Likewise.
60281         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60282         * lib/printf-frexp.c (FUNC): Likewise.
60283         Suggested by Jim Meyering.
60284
60285 2007-10-07  Jim Meyering  <meyering@redhat.com>
60286
60287         Make xnanosleep's integer overflow test more robust.
60288         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60289         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60290
60291 2007-10-07  Bruno Haible  <bruno@clisp.org>
60292
60293         * NEWS: Mention the license change.
60294
60295         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60296         abbreviations in the modules files.
60297
60298         Change copyright notice from GPLv2+ to GPLv3+.
60299         * README: Change copyright notice.
60300         * MODULES.html.sh: Likewise.
60301         * build-aux/bootstrap.conf: Likewise.
60302         * build-aux/config.libpath: Likewise.
60303         * build-aux/csharpcomp.sh.in: Likewise.
60304         * build-aux/csharpexec.sh.in: Likewise.
60305         * build-aux/install-reloc: Likewise.
60306         * build-aux/javacomp.sh.in: Likewise.
60307         * build-aux/javaexec.sh.in: Likewise.
60308         * build-aux/ldd.sh.in: Likewise.
60309         * build-aux/reloc-ldflags: Likewise.
60310         * build-aux/relocatable.sh.in: Likewise.
60311         * build-aux/x-to-1.in: Likewise.
60312         * check-module: Likewise.
60313         * config/srclistvars.sh: Likewise.
60314         * gnulib-tool: Likewise.
60315         * lib/acl-internal.h: Likewise.
60316         * lib/acl.c: Likewise.
60317         * lib/acl.h: Likewise.
60318         * lib/acl_entries.c: Likewise.
60319         * lib/areadlink-with-size.c: Likewise.
60320         * lib/areadlink.c: Likewise.
60321         * lib/areadlink.h: Likewise.
60322         * lib/argmatch.c: Likewise.
60323         * lib/argmatch.h: Likewise.
60324         * lib/argp-ba.c: Likewise.
60325         * lib/argp-eexst.c: Likewise.
60326         * lib/argp-fmtstream.c: Likewise.
60327         * lib/argp-fmtstream.h: Likewise.
60328         * lib/argp-fs-xinl.c: Likewise.
60329         * lib/argp-help.c: Likewise.
60330         * lib/argp-namefrob.h: Likewise.
60331         * lib/argp-parse.c: Likewise.
60332         * lib/argp-pin.c: Likewise.
60333         * lib/argp-pv.c: Likewise.
60334         * lib/argp-pvh.c: Likewise.
60335         * lib/argp-xinl.c: Likewise.
60336         * lib/argp.h: Likewise.
60337         * lib/at-func.c: Likewise.
60338         * lib/atanl.c: Likewise.
60339         * lib/backupfile.c: Likewise.
60340         * lib/backupfile.h: Likewise.
60341         * lib/basename.c: Likewise.
60342         * lib/binary-io.h: Likewise.
60343         * lib/byteswap.in.h: Likewise.
60344         * lib/c-stack.c: Likewise.
60345         * lib/c-stack.h: Likewise.
60346         * lib/c-strcasestr.c: Likewise.
60347         * lib/c-strcasestr.h: Likewise.
60348         * lib/c-strstr.c: Likewise.
60349         * lib/c-strstr.h: Likewise.
60350         * lib/c-strtod.c: Likewise.
60351         * lib/calloc.c: Likewise.
60352         * lib/canon-host.c: Likewise.
60353         * lib/canon-host.h: Likewise.
60354         * lib/canonicalize-lgpl.c: Likewise.
60355         * lib/canonicalize.c: Likewise.
60356         * lib/canonicalize.h: Likewise.
60357         * lib/ceil.c: Likewise.
60358         * lib/ceilf.c: Likewise.
60359         * lib/ceill.c: Likewise.
60360         * lib/chdir-long.c: Likewise.
60361         * lib/chdir-long.h: Likewise.
60362         * lib/chdir-safer.c: Likewise.
60363         * lib/chdir-safer.h: Likewise.
60364         * lib/chown.c: Likewise.
60365         * lib/classpath.c: Likewise.
60366         * lib/classpath.h: Likewise.
60367         * lib/clean-temp.c: Likewise.
60368         * lib/clean-temp.h: Likewise.
60369         * lib/cloexec.c: Likewise.
60370         * lib/close-stream.c: Likewise.
60371         * lib/closein.c: Likewise.
60372         * lib/closein.h: Likewise.
60373         * lib/closeout.c: Likewise.
60374         * lib/closeout.h: Likewise.
60375         * lib/concat-filename.c: Likewise.
60376         * lib/copy-file.c: Likewise.
60377         * lib/copy-file.h: Likewise.
60378         * lib/count-one-bits.h: Likewise.
60379         * lib/crc.c: Likewise.
60380         * lib/crc.h: Likewise.
60381         * lib/creat-safer.c: Likewise.
60382         * lib/csharpcomp.c: Likewise.
60383         * lib/csharpcomp.h: Likewise.
60384         * lib/csharpexec.c: Likewise.
60385         * lib/csharpexec.h: Likewise.
60386         * lib/cycle-check.c: Likewise.
60387         * lib/cycle-check.h: Likewise.
60388         * lib/diacrit.c: Likewise.
60389         * lib/diacrit.h: Likewise.
60390         * lib/diffseq.h: Likewise.
60391         * lib/dirchownmod.c: Likewise.
60392         * lib/dirent.in.h: Likewise.
60393         * lib/dirfd.c: Likewise.
60394         * lib/dirfd.h: Likewise.
60395         * lib/dirname.c: Likewise.
60396         * lib/dirname.h: Likewise.
60397         * lib/dummy.c: Likewise.
60398         * lib/dup-safer.c: Likewise.
60399         * lib/dup2.c: Likewise.
60400         * lib/eealloc.h: Likewise.
60401         * lib/error.c: Likewise.
60402         * lib/error.h: Likewise.
60403         * lib/euidaccess.c: Likewise.
60404         * lib/exclude.c: Likewise.
60405         * lib/exclude.h: Likewise.
60406         * lib/execute.c: Likewise.
60407         * lib/execute.h: Likewise.
60408         * lib/exitfail.c: Likewise.
60409         * lib/exitfail.h: Likewise.
60410         * lib/expl.c: Likewise.
60411         * lib/fatal-signal.c: Likewise.
60412         * lib/fatal-signal.h: Likewise.
60413         * lib/fbufmode.c: Likewise.
60414         * lib/fbufmode.h: Likewise.
60415         * lib/fchdir.c: Likewise.
60416         * lib/fchmodat.c: Likewise.
60417         * lib/fchownat.c: Likewise.
60418         * lib/fcntl--.h: Likewise.
60419         * lib/fcntl-safer.h: Likewise.
60420         * lib/fcntl.in.h: Likewise.
60421         * lib/fd-safer.c: Likewise.
60422         * lib/fflush.c: Likewise.
60423         * lib/file-has-acl.c: Likewise.
60424         * lib/file-set.c: Likewise.
60425         * lib/file-type.c: Likewise.
60426         * lib/file-type.h: Likewise.
60427         * lib/fileblocks.c: Likewise.
60428         * lib/filemode.c: Likewise.
60429         * lib/filemode.h: Likewise.
60430         * lib/filename.h: Likewise.
60431         * lib/filenamecat.c: Likewise.
60432         * lib/filenamecat.h: Likewise.
60433         * lib/findprog.c: Likewise.
60434         * lib/findprog.h: Likewise.
60435         * lib/float.in.h: Likewise.
60436         * lib/floor.c: Likewise.
60437         * lib/floorf.c: Likewise.
60438         * lib/floorl.c: Likewise.
60439         * lib/fopen-safer.c: Likewise.
60440         * lib/fopen.c: Likewise.
60441         * lib/fpending.c: Likewise.
60442         * lib/fpending.h: Likewise.
60443         * lib/fprintf.c: Likewise.
60444         * lib/fprintftime.h: Likewise.
60445         * lib/fpucw.h: Likewise.
60446         * lib/fpurge.c: Likewise.
60447         * lib/fpurge.h: Likewise.
60448         * lib/freadable.c: Likewise.
60449         * lib/freadable.h: Likewise.
60450         * lib/freadahead.c: Likewise.
60451         * lib/freadahead.h: Likewise.
60452         * lib/freading.c: Likewise.
60453         * lib/freading.h: Likewise.
60454         * lib/free.c: Likewise.
60455         * lib/freopen.c: Likewise.
60456         * lib/frexp.c: Likewise.
60457         * lib/frexpl.c: Likewise.
60458         * lib/fseek.c: Likewise.
60459         * lib/fseterr.c: Likewise.
60460         * lib/fseterr.h: Likewise.
60461         * lib/fstatat.c: Likewise.
60462         * lib/fstrcmp.c: Likewise.
60463         * lib/fstrcmp.h: Likewise.
60464         * lib/fsusage.c: Likewise.
60465         * lib/fsusage.h: Likewise.
60466         * lib/ftell.c: Likewise.
60467         * lib/ftello.c: Likewise.
60468         * lib/fts-cycle.c: Likewise.
60469         * lib/fts.c: Likewise.
60470         * lib/fts_.h: Likewise.
60471         * lib/full-read.c: Likewise.
60472         * lib/full-read.h: Likewise.
60473         * lib/full-write.c: Likewise.
60474         * lib/full-write.h: Likewise.
60475         * lib/fwritable.c: Likewise.
60476         * lib/fwritable.h: Likewise.
60477         * lib/fwriteerror.c: Likewise.
60478         * lib/fwriteerror.h: Likewise.
60479         * lib/fwriting.c: Likewise.
60480         * lib/fwriting.h: Likewise.
60481         * lib/gcd.c: Likewise.
60482         * lib/gcd.h: Likewise.
60483         * lib/getcwd.c: Likewise.
60484         * lib/getdate.h: Likewise.
60485         * lib/getdate.y: Likewise.
60486         * lib/getdomainname.c: Likewise.
60487         * lib/getdomainname.h: Likewise.
60488         * lib/getgroups.c: Likewise.
60489         * lib/gethostname.c: Likewise.
60490         * lib/gethrxtime.c: Likewise.
60491         * lib/gethrxtime.h: Likewise.
60492         * lib/getloadavg.c: Likewise.
60493         * lib/getndelim2.c: Likewise.
60494         * lib/getndelim2.h: Likewise.
60495         * lib/getnline.c: Likewise.
60496         * lib/getnline.h: Likewise.
60497         * lib/getopt.c: Likewise.
60498         * lib/getopt.in.h: Likewise.
60499         * lib/getopt1.c: Likewise.
60500         * lib/getopt_int.h: Likewise.
60501         * lib/getpagesize.h: Likewise.
60502         * lib/getsubopt.c: Likewise.
60503         * lib/gettime.c: Likewise.
60504         * lib/getugroups.c: Likewise.
60505         * lib/getugroups.h: Likewise.
60506         * lib/getusershell.c: Likewise.
60507         * lib/gl_anyavltree_list1.h: Likewise.
60508         * lib/gl_anyavltree_list2.h: Likewise.
60509         * lib/gl_anyhash_list1.h: Likewise.
60510         * lib/gl_anyhash_list2.h: Likewise.
60511         * lib/gl_anylinked_list1.h: Likewise.
60512         * lib/gl_anylinked_list2.h: Likewise.
60513         * lib/gl_anyrbtree_list1.h: Likewise.
60514         * lib/gl_anyrbtree_list2.h: Likewise.
60515         * lib/gl_anytree_list1.h: Likewise.
60516         * lib/gl_anytree_list2.h: Likewise.
60517         * lib/gl_anytree_oset.h: Likewise.
60518         * lib/gl_anytreehash_list1.h: Likewise.
60519         * lib/gl_anytreehash_list2.h: Likewise.
60520         * lib/gl_array_list.c: Likewise.
60521         * lib/gl_array_list.h: Likewise.
60522         * lib/gl_array_oset.c: Likewise.
60523         * lib/gl_array_oset.h: Likewise.
60524         * lib/gl_avltree_list.c: Likewise.
60525         * lib/gl_avltree_list.h: Likewise.
60526         * lib/gl_avltree_oset.c: Likewise.
60527         * lib/gl_avltree_oset.h: Likewise.
60528         * lib/gl_avltreehash_list.c: Likewise.
60529         * lib/gl_avltreehash_list.h: Likewise.
60530         * lib/gl_carray_list.c: Likewise.
60531         * lib/gl_carray_list.h: Likewise.
60532         * lib/gl_linked_list.c: Likewise.
60533         * lib/gl_linked_list.h: Likewise.
60534         * lib/gl_linkedhash_list.c: Likewise.
60535         * lib/gl_linkedhash_list.h: Likewise.
60536         * lib/gl_list.c: Likewise.
60537         * lib/gl_list.h: Likewise.
60538         * lib/gl_oset.c: Likewise.
60539         * lib/gl_oset.h: Likewise.
60540         * lib/gl_rbtree_list.c: Likewise.
60541         * lib/gl_rbtree_list.h: Likewise.
60542         * lib/gl_rbtree_oset.c: Likewise.
60543         * lib/gl_rbtree_oset.h: Likewise.
60544         * lib/gl_rbtreehash_list.c: Likewise.
60545         * lib/gl_rbtreehash_list.h: Likewise.
60546         * lib/gl_sublist.c: Likewise.
60547         * lib/gl_sublist.h: Likewise.
60548         * lib/group-member.c: Likewise.
60549         * lib/group-member.h: Likewise.
60550         * lib/hard-locale.c: Likewise.
60551         * lib/hard-locale.h: Likewise.
60552         * lib/hash-pjw.c: Likewise.
60553         * lib/hash-pjw.h: Likewise.
60554         * lib/hash-triple.c: Likewise.
60555         * lib/hash.c: Likewise.
60556         * lib/hash.h: Likewise.
60557         * lib/human.c: Likewise.
60558         * lib/human.h: Likewise.
60559         * lib/i-ring.c: Likewise.
60560         * lib/i-ring.h: Likewise.
60561         * lib/idcache.c: Likewise.
60562         * lib/imaxabs.c: Likewise.
60563         * lib/imaxdiv.c: Likewise.
60564         * lib/inet_pton.c: Likewise.
60565         * lib/inet_pton.h: Likewise.
60566         * lib/intprops.h: Likewise.
60567         * lib/inttostr.c: Likewise.
60568         * lib/inttostr.h: Likewise.
60569         * lib/inttypes.in.h: Likewise.
60570         * lib/isapipe.c: Likewise.
60571         * lib/isdir.c: Likewise.
60572         * lib/isnan.c: Likewise.
60573         * lib/isnan.h: Likewise.
60574         * lib/isnanf.c: Likewise.
60575         * lib/isnanf.h: Likewise.
60576         * lib/isnanl-nolibm.h: Likewise.
60577         * lib/isnanl.c: Likewise.
60578         * lib/isnanl.h: Likewise.
60579         * lib/javacomp.c: Likewise.
60580         * lib/javacomp.h: Likewise.
60581         * lib/javaexec.c: Likewise.
60582         * lib/javaexec.h: Likewise.
60583         * lib/javaversion.c: Likewise.
60584         * lib/javaversion.h: Likewise.
60585         * lib/javaversion.java: Likewise.
60586         * lib/lbrkprop.h: Likewise.
60587         * lib/lchmod.h: Likewise.
60588         * lib/lchown.c: Likewise.
60589         * lib/ldexpl.c: Likewise.
60590         * lib/linebreak.c: Likewise.
60591         * lib/linebreak.h: Likewise.
60592         * lib/linebuffer.c: Likewise.
60593         * lib/linebuffer.h: Likewise.
60594         * lib/locale.in.h: Likewise.
60595         * lib/logl.c: Likewise.
60596         * lib/long-options.c: Likewise.
60597         * lib/long-options.h: Likewise.
60598         * lib/lstat.c: Likewise.
60599         * lib/lstat.h: Likewise.
60600         * lib/math.in.h: Likewise.
60601         * lib/mbchar.c: Likewise.
60602         * lib/mbchar.h: Likewise.
60603         * lib/mbfile.h: Likewise.
60604         * lib/mbiter.h: Likewise.
60605         * lib/mbscasecmp.c: Likewise.
60606         * lib/mbscasestr.c: Likewise.
60607         * lib/mbschr.c: Likewise.
60608         * lib/mbscspn.c: Likewise.
60609         * lib/mbslen.c: Likewise.
60610         * lib/mbsncasecmp.c: Likewise.
60611         * lib/mbsnlen.c: Likewise.
60612         * lib/mbspbrk.c: Likewise.
60613         * lib/mbspcasecmp.c: Likewise.
60614         * lib/mbsrchr.c: Likewise.
60615         * lib/mbssep.c: Likewise.
60616         * lib/mbsspn.c: Likewise.
60617         * lib/mbsstr.c: Likewise.
60618         * lib/mbstok_r.c: Likewise.
60619         * lib/mbswidth.c: Likewise.
60620         * lib/mbswidth.h: Likewise.
60621         * lib/mbuiter.h: Likewise.
60622         * lib/memcasecmp.c: Likewise.
60623         * lib/memcasecmp.h: Likewise.
60624         * lib/memchr.c: Likewise.
60625         * lib/memcmp.c: Likewise.
60626         * lib/memcoll.c: Likewise.
60627         * lib/memcoll.h: Likewise.
60628         * lib/memcpy.c: Likewise.
60629         * lib/memrchr.c: Likewise.
60630         * lib/mkancesdirs.c: Likewise.
60631         * lib/mkdir-p.c: Likewise.
60632         * lib/mkdir-p.h: Likewise.
60633         * lib/mkdir.c: Likewise.
60634         * lib/mkdirat.c: Likewise.
60635         * lib/mkdtemp.c: Likewise.
60636         * lib/mkstemp-safer.c: Likewise.
60637         * lib/mkstemp.c: Likewise.
60638         * lib/modechange.c: Likewise.
60639         * lib/modechange.h: Likewise.
60640         * lib/mountlist.c: Likewise.
60641         * lib/mountlist.h: Likewise.
60642         * lib/mpsort.c: Likewise.
60643         * lib/nanosleep.c: Likewise.
60644         * lib/obstack.c: Likewise.
60645         * lib/obstack.h: Likewise.
60646         * lib/open-safer.c: Likewise.
60647         * lib/open.c: Likewise.
60648         * lib/openat-die.c: Likewise.
60649         * lib/openat-priv.h: Likewise.
60650         * lib/openat-proc.c: Likewise.
60651         * lib/openat.c: Likewise.
60652         * lib/openat.h: Likewise.
60653         * lib/pagealign_alloc.c: Likewise.
60654         * lib/pagealign_alloc.h: Likewise.
60655         * lib/physmem.c: Likewise.
60656         * lib/physmem.h: Likewise.
60657         * lib/pipe-safer.c: Likewise.
60658         * lib/pipe.c: Likewise.
60659         * lib/pipe.h: Likewise.
60660         * lib/posixtm.c: Likewise.
60661         * lib/posixtm.h: Likewise.
60662         * lib/posixver.c: Likewise.
60663         * lib/printf-frexp.c: Likewise.
60664         * lib/printf-frexp.h: Likewise.
60665         * lib/printf-frexpl.c: Likewise.
60666         * lib/printf-frexpl.h: Likewise.
60667         * lib/printf.c: Likewise.
60668         * lib/progname.c: Likewise.
60669         * lib/progname.h: Likewise.
60670         * lib/progreloc.c: Likewise.
60671         * lib/putenv.c: Likewise.
60672         * lib/quote.c: Likewise.
60673         * lib/quote.h: Likewise.
60674         * lib/quotearg.c: Likewise.
60675         * lib/quotearg.h: Likewise.
60676         * lib/raise.c: Likewise.
60677         * lib/readline.c: Likewise.
60678         * lib/readline.h: Likewise.
60679         * lib/readlink.c: Likewise.
60680         * lib/readtokens.c: Likewise.
60681         * lib/readtokens.h: Likewise.
60682         * lib/readtokens0.c: Likewise.
60683         * lib/readtokens0.h: Likewise.
60684         * lib/readutmp.c: Likewise.
60685         * lib/readutmp.h: Likewise.
60686         * lib/realloc.c: Likewise.
60687         * lib/relocwrapper.c: Likewise.
60688         * lib/rename-dest-slash.c: Likewise.
60689         * lib/rename.c: Likewise.
60690         * lib/rmdir.c: Likewise.
60691         * lib/rpmatch.c: Likewise.
60692         * lib/safe-read.c: Likewise.
60693         * lib/safe-read.h: Likewise.
60694         * lib/safe-write.c: Likewise.
60695         * lib/safe-write.h: Likewise.
60696         * lib/same-inode.h: Likewise.
60697         * lib/same.c: Likewise.
60698         * lib/same.h: Likewise.
60699         * lib/save-cwd.c: Likewise.
60700         * lib/save-cwd.h: Likewise.
60701         * lib/savedir.c: Likewise.
60702         * lib/savedir.h: Likewise.
60703         * lib/savewd.c: Likewise.
60704         * lib/savewd.h: Likewise.
60705         * lib/search.in.h: Likewise.
60706         * lib/setenv.c: Likewise.
60707         * lib/setenv.h: Likewise.
60708         * lib/settime.c: Likewise.
60709         * lib/sh-quote.c: Likewise.
60710         * lib/sh-quote.h: Likewise.
60711         * lib/sig2str.c: Likewise.
60712         * lib/sig2str.h: Likewise.
60713         * lib/signal.in.h: Likewise.
60714         * lib/signbitd.c: Likewise.
60715         * lib/signbitf.c: Likewise.
60716         * lib/signbitl.c: Likewise.
60717         * lib/sigprocmask.c: Likewise.
60718         * lib/sincosl.c: Likewise.
60719         * lib/sleep.c: Likewise.
60720         * lib/sprintf.c: Likewise.
60721         * lib/sqrtl.c: Likewise.
60722         * lib/stat-time.h: Likewise.
60723         * lib/stdio--.h: Likewise.
60724         * lib/stdio-safer.h: Likewise.
60725         * lib/stdlib--.h: Likewise.
60726         * lib/stdlib-safer.h: Likewise.
60727         * lib/stdlib.in.h: Likewise.
60728         * lib/stpcpy.c: Likewise.
60729         * lib/stpncpy.c: Likewise.
60730         * lib/strchrnul.c: Likewise.
60731         * lib/strcspn.c: Likewise.
60732         * lib/strerror.c: Likewise.
60733         * lib/strftime.c: Likewise.
60734         * lib/strftime.h: Likewise.
60735         * lib/striconveh.c: Likewise.
60736         * lib/striconveh.h: Likewise.
60737         * lib/striconveha.c: Likewise.
60738         * lib/striconveha.h: Likewise.
60739         * lib/stripslash.c: Likewise.
60740         * lib/strnlen1.c: Likewise.
60741         * lib/strnlen1.h: Likewise.
60742         * lib/strtod.c: Likewise.
60743         * lib/strtoimax.c: Likewise.
60744         * lib/strtok_r.c: Likewise.
60745         * lib/strtol.c: Likewise.
60746         * lib/strtoll.c: Likewise.
60747         * lib/strtoul.c: Likewise.
60748         * lib/strtoull.c: Likewise.
60749         * lib/sysexits.in.h: Likewise.
60750         * lib/tempname.c: Likewise.
60751         * lib/tempname.h: Likewise.
60752         * lib/timespec.h: Likewise.
60753         * lib/tls.c: Likewise.
60754         * lib/tls.h: Likewise.
60755         * lib/tmpdir.c: Likewise.
60756         * lib/tmpdir.h: Likewise.
60757         * lib/tmpfile-safer.c: Likewise.
60758         * lib/tmpfile.c: Likewise.
60759         * lib/trigl.c: Likewise.
60760         * lib/trigl.h: Likewise.
60761         * lib/trim.c: Likewise.
60762         * lib/trim.h: Likewise.
60763         * lib/trunc.c: Likewise.
60764         * lib/truncf.c: Likewise.
60765         * lib/truncl.c: Likewise.
60766         * lib/tsearch.c: Likewise.
60767         * lib/unicodeio.c: Likewise.
60768         * lib/unicodeio.h: Likewise.
60769         * lib/unistd--.h: Likewise.
60770         * lib/unistd-safer.h: Likewise.
60771         * lib/unistdio/ulc-fprintf.c: Likewise.
60772         * lib/unistdio/ulc-vfprintf.c: Likewise.
60773         * lib/unlinkdir.c: Likewise.
60774         * lib/unlinkdir.h: Likewise.
60775         * lib/unlocked-io.h: Likewise.
60776         * lib/unsetenv.c: Likewise.
60777         * lib/userspec.c: Likewise.
60778         * lib/utime.c: Likewise.
60779         * lib/utimecmp.c: Likewise.
60780         * lib/utimecmp.h: Likewise.
60781         * lib/utimens.c: Likewise.
60782         * lib/verify.h: Likewise.
60783         * lib/verror.c: Likewise.
60784         * lib/verror.h: Likewise.
60785         * lib/version-etc-fsf.c: Likewise.
60786         * lib/version-etc.c: Likewise.
60787         * lib/version-etc.h: Likewise.
60788         * lib/vfprintf.c: Likewise.
60789         * lib/vprintf.c: Likewise.
60790         * lib/vsprintf.c: Likewise.
60791         * lib/w32spawn.h: Likewise.
60792         * lib/wait-process.c: Likewise.
60793         * lib/wait-process.h: Likewise.
60794         * lib/wcwidth.c: Likewise.
60795         * lib/write-any-file.c: Likewise.
60796         * lib/xalloc-die.c: Likewise.
60797         * lib/xalloc.h: Likewise.
60798         * lib/xasprintf.c: Likewise.
60799         * lib/xgetcwd.c: Likewise.
60800         * lib/xgetcwd.h: Likewise.
60801         * lib/xgetdomainname.c: Likewise.
60802         * lib/xgetdomainname.h: Likewise.
60803         * lib/xgethostname.c: Likewise.
60804         * lib/xmalloc.c: Likewise.
60805         * lib/xmalloca.c: Likewise.
60806         * lib/xmalloca.h: Likewise.
60807         * lib/xmemcoll.c: Likewise.
60808         * lib/xnanosleep.c: Likewise.
60809         * lib/xreadlink.c: Likewise.
60810         * lib/xreadlink.h: Likewise.
60811         * lib/xsetenv.c: Likewise.
60812         * lib/xsetenv.h: Likewise.
60813         * lib/xstriconv.c: Likewise.
60814         * lib/xstriconv.h: Likewise.
60815         * lib/xstrndup.c: Likewise.
60816         * lib/xstrndup.h: Likewise.
60817         * lib/xstrtod.c: Likewise.
60818         * lib/xstrtod.h: Likewise.
60819         * lib/xstrtol-error.c: Likewise.
60820         * lib/xstrtol.c: Likewise.
60821         * lib/xstrtol.h: Likewise.
60822         * lib/xtime.h: Likewise.
60823         * lib/xvasprintf.c: Likewise.
60824         * lib/xvasprintf.h: Likewise.
60825         * lib/yesno.c: Likewise.
60826         * lib/yesno.h: Likewise.
60827         * posix-modules: Likewise.
60828         * tests/test-alloca-opt.c: Likewise.
60829         * tests/test-arcfour.c: Likewise.
60830         * tests/test-arctwo.c: Likewise.
60831         * tests/test-argmatch.c: Likewise.
60832         * tests/test-argp-2.sh: Likewise.
60833         * tests/test-argp.c: Likewise.
60834         * tests/test-arpa_inet.c: Likewise.
60835         * tests/test-array_list.c: Likewise.
60836         * tests/test-array_oset.c: Likewise.
60837         * tests/test-atexit.c: Likewise.
60838         * tests/test-avltree_list.c: Likewise.
60839         * tests/test-avltree_oset.c: Likewise.
60840         * tests/test-avltreehash_list.c: Likewise.
60841         * tests/test-base64.c: Likewise.
60842         * tests/test-binary-io.c: Likewise.
60843         * tests/test-byteswap.c: Likewise.
60844         * tests/test-c-ctype.c: Likewise.
60845         * tests/test-c-strcasecmp.c: Likewise.
60846         * tests/test-c-strcasestr.c: Likewise.
60847         * tests/test-c-strncasecmp.c: Likewise.
60848         * tests/test-c-strstr.c: Likewise.
60849         * tests/test-canonicalize-lgpl.c: Likewise.
60850         * tests/test-canonicalize.c: Likewise.
60851         * tests/test-carray_list.c: Likewise.
60852         * tests/test-ceilf.c: Likewise.
60853         * tests/test-ceill.c: Likewise.
60854         * tests/test-count-one-bits.c: Likewise.
60855         * tests/test-crc.c: Likewise.
60856         * tests/test-dirname.c: Likewise.
60857         * tests/test-fbufmode.c: Likewise.
60858         * tests/test-fcntl.c: Likewise.
60859         * tests/test-fflush.c: Likewise.
60860         * tests/test-floorf.c: Likewise.
60861         * tests/test-floorl.c: Likewise.
60862         * tests/test-fopen.c: Likewise.
60863         * tests/test-fprintf-posix.c: Likewise.
60864         * tests/test-fprintf-posix.h: Likewise.
60865         * tests/test-fpurge.c: Likewise.
60866         * tests/test-freadable.c: Likewise.
60867         * tests/test-freadahead.c: Likewise.
60868         * tests/test-freading.c: Likewise.
60869         * tests/test-freopen.c: Likewise.
60870         * tests/test-frexp.c: Likewise.
60871         * tests/test-frexpl.c: Likewise.
60872         * tests/test-fseek.c: Likewise.
60873         * tests/test-fseeko.c: Likewise.
60874         * tests/test-fseterr.c: Likewise.
60875         * tests/test-fstrcmp.c: Likewise.
60876         * tests/test-ftell.c: Likewise.
60877         * tests/test-ftello.c: Likewise.
60878         * tests/test-fwritable.c: Likewise.
60879         * tests/test-fwriting.c: Likewise.
60880         * tests/test-getaddrinfo.c: Likewise.
60881         * tests/test-getpass.c: Likewise.
60882         * tests/test-gettimeofday.c: Likewise.
60883         * tests/test-hmac-md5.c: Likewise.
60884         * tests/test-hmac-sha1.c: Likewise.
60885         * tests/test-iconv.c: Likewise.
60886         * tests/test-iconvme.c: Likewise.
60887         * tests/test-inttypes.c: Likewise.
60888         * tests/test-isnan.c: Likewise.
60889         * tests/test-isnanf.c: Likewise.
60890         * tests/test-isnanl-nolibm.c: Likewise.
60891         * tests/test-isnanl.c: Likewise.
60892         * tests/test-isnanl.h: Likewise.
60893         * tests/test-ldexpl.c: Likewise.
60894         * tests/test-linked_list.c: Likewise.
60895         * tests/test-linkedhash_list.c: Likewise.
60896         * tests/test-locale.c: Likewise.
60897         * tests/test-localename.c: Likewise.
60898         * tests/test-lock.c: Likewise.
60899         * tests/test-lseek.c: Likewise.
60900         * tests/test-malloca.c: Likewise.
60901         * tests/test-math.c: Likewise.
60902         * tests/test-mbscasecmp.c: Likewise.
60903         * tests/test-mbscasestr1.c: Likewise.
60904         * tests/test-mbscasestr2.c: Likewise.
60905         * tests/test-mbscasestr3.c: Likewise.
60906         * tests/test-mbscasestr4.c: Likewise.
60907         * tests/test-mbschr.c: Likewise.
60908         * tests/test-mbscspn.c: Likewise.
60909         * tests/test-mbsncasecmp.c: Likewise.
60910         * tests/test-mbspbrk.c: Likewise.
60911         * tests/test-mbspcasecmp.c: Likewise.
60912         * tests/test-mbsrchr.c: Likewise.
60913         * tests/test-mbsspn.c: Likewise.
60914         * tests/test-mbsstr1.c: Likewise.
60915         * tests/test-mbsstr2.c: Likewise.
60916         * tests/test-mbsstr3.c: Likewise.
60917         * tests/test-md5.c: Likewise.
60918         * tests/test-memmem.c: Likewise.
60919         * tests/test-netinet_in.c: Likewise.
60920         * tests/test-open.c: Likewise.
60921         * tests/test-printf-frexp.c: Likewise.
60922         * tests/test-printf-frexpl.c: Likewise.
60923         * tests/test-printf-posix.c: Likewise.
60924         * tests/test-printf-posix.h: Likewise.
60925         * tests/test-rbtree_list.c: Likewise.
60926         * tests/test-rbtree_oset.c: Likewise.
60927         * tests/test-rbtreehash_list.c: Likewise.
60928         * tests/test-read-file.c: Likewise.
60929         * tests/test-rijndael.c: Likewise.
60930         * tests/test-search.c: Likewise.
60931         * tests/test-signbit.c: Likewise.
60932         * tests/test-sleep.c: Likewise.
60933         * tests/test-snprintf-posix.c: Likewise.
60934         * tests/test-snprintf-posix.h: Likewise.
60935         * tests/test-snprintf.c: Likewise.
60936         * tests/test-sprintf-posix.c: Likewise.
60937         * tests/test-sprintf-posix.h: Likewise.
60938         * tests/test-stat-time.c: Likewise.
60939         * tests/test-stdbool.c: Likewise.
60940         * tests/test-stdint.c: Likewise.
60941         * tests/test-stdio.c: Likewise.
60942         * tests/test-stdlib.c: Likewise.
60943         * tests/test-stpncpy.c: Likewise.
60944         * tests/test-strcasestr.c: Likewise.
60945         * tests/test-striconv.c: Likewise.
60946         * tests/test-striconveh.c: Likewise.
60947         * tests/test-striconveha.c: Likewise.
60948         * tests/test-string.c: Likewise.
60949         * tests/test-sys_select.c: Likewise.
60950         * tests/test-sys_socket.c: Likewise.
60951         * tests/test-sys_stat.c: Likewise.
60952         * tests/test-sys_time.c: Likewise.
60953         * tests/test-sysexits.c: Likewise.
60954         * tests/test-time.c: Likewise.
60955         * tests/test-tls.c: Likewise.
60956         * tests/test-trunc.c: Likewise.
60957         * tests/test-truncf.c: Likewise.
60958         * tests/test-truncl.c: Likewise.
60959         * tests/test-unistd.c: Likewise.
60960         * tests/test-vasnprintf-posix.c: Likewise.
60961         * tests/test-vasnprintf-posix2.c: Likewise.
60962         * tests/test-vasnprintf.c: Likewise.
60963         * tests/test-vasprintf-posix.c: Likewise.
60964         * tests/test-vasprintf.c: Likewise.
60965         * tests/test-verify.c: Likewise.
60966         * tests/test-vfprintf-posix.c: Likewise.
60967         * tests/test-vprintf-posix.c: Likewise.
60968         * tests/test-vsnprintf-posix.c: Likewise.
60969         * tests/test-vsnprintf.c: Likewise.
60970         * tests/test-vsprintf-posix.c: Likewise.
60971         * tests/test-wchar.c: Likewise.
60972         * tests/test-wctype.c: Likewise.
60973         * tests/test-wcwidth.c: Likewise.
60974         * tests/test-xstrtol.c: Likewise.
60975         * tests/test-xvasprintf.c: Likewise.
60976         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
60977         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
60978         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60979         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60980         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60981         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
60982         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60983         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60984         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60985         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
60986         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60987         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60988         * tests/uniname/test-uninames.c: Likewise.
60989         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
60990         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
60991         * tests/unistdio/test-u16-printf1.h: Likewise.
60992         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
60993         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
60994         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
60995         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
60996         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
60997         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
60998         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
60999         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61000         * tests/unistdio/test-u32-printf1.h: Likewise.
61001         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61002         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61003         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61004         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61005         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61006         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61007         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61008         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61009         * tests/unistdio/test-u8-printf1.h: Likewise.
61010         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61011         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61012         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61013         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61014         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61015         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61016         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61017         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61018         * tests/unistdio/test-ulc-printf1.h: Likewise.
61019         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61020         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61021         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61022         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61023         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61024         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61025         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61026         * tests/uniwidth/test-u16-width.c: Likewise.
61027         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61028         * tests/uniwidth/test-u32-width.c: Likewise.
61029         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61030         * tests/uniwidth/test-u8-width.c: Likewise.
61031         * tests/uniwidth/test-uc_width.c: Likewise.
61032         * config/srclist-update: Likewise.
61033         (fixlicense): Update to GPLv3+.
61034
61035         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61036         * tests/test-tsearch.c: Change copyright notice.
61037
61038         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61039         * lib/c-strcaseeq.h: Change copyright notice.
61040         * lib/streq.h: Likewise.
61041         * lib/uniconv.h: Likewise.
61042         * lib/uniconv/u-conv-from-enc.h: Likewise.
61043         * lib/uniconv/u-conv-to-enc.h: Likewise.
61044         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61045         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61046         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61047         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61048         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61049         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61050         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61051         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61052         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61053         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61054         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61055         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61056         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61057         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61058         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61059         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61060         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61061         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61062         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61063         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61064         * lib/uniname.h: Likewise.
61065         * lib/uniname/uniname.c: Likewise.
61066         * lib/unistdio.h: Likewise.
61067         * lib/unistdio/u-asnprintf.h: Likewise.
61068         * lib/unistdio/u-asprintf.h: Likewise.
61069         * lib/unistdio/u-printf-args.c: Likewise.
61070         * lib/unistdio/u-printf-args.h: Likewise.
61071         * lib/unistdio/u-printf-parse.h: Likewise.
61072         * lib/unistdio/u-snprintf.h: Likewise.
61073         * lib/unistdio/u-sprintf.h: Likewise.
61074         * lib/unistdio/u-vasprintf.h: Likewise.
61075         * lib/unistdio/u-vsnprintf.h: Likewise.
61076         * lib/unistdio/u-vsprintf.h: Likewise.
61077         * lib/unistdio/u16-asnprintf.c: Likewise.
61078         * lib/unistdio/u16-asprintf.c: Likewise.
61079         * lib/unistdio/u16-printf-parse.c: Likewise.
61080         * lib/unistdio/u16-snprintf.c: Likewise.
61081         * lib/unistdio/u16-sprintf.c: Likewise.
61082         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61083         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61084         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61085         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61086         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61087         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61088         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61089         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61090         * lib/unistdio/u16-vasnprintf.c: Likewise.
61091         * lib/unistdio/u16-vasprintf.c: Likewise.
61092         * lib/unistdio/u16-vsnprintf.c: Likewise.
61093         * lib/unistdio/u16-vsprintf.c: Likewise.
61094         * lib/unistdio/u32-asnprintf.c: Likewise.
61095         * lib/unistdio/u32-asprintf.c: Likewise.
61096         * lib/unistdio/u32-printf-parse.c: Likewise.
61097         * lib/unistdio/u32-snprintf.c: Likewise.
61098         * lib/unistdio/u32-sprintf.c: Likewise.
61099         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61100         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61101         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61102         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61103         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61104         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61105         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61106         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61107         * lib/unistdio/u32-vasnprintf.c: Likewise.
61108         * lib/unistdio/u32-vasprintf.c: Likewise.
61109         * lib/unistdio/u32-vsnprintf.c: Likewise.
61110         * lib/unistdio/u32-vsprintf.c: Likewise.
61111         * lib/unistdio/u8-asnprintf.c: Likewise.
61112         * lib/unistdio/u8-asprintf.c: Likewise.
61113         * lib/unistdio/u8-printf-parse.c: Likewise.
61114         * lib/unistdio/u8-snprintf.c: Likewise.
61115         * lib/unistdio/u8-sprintf.c: Likewise.
61116         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61117         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61118         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61119         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61120         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61121         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61122         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61123         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61124         * lib/unistdio/u8-vasnprintf.c: Likewise.
61125         * lib/unistdio/u8-vasprintf.c: Likewise.
61126         * lib/unistdio/u8-vsnprintf.c: Likewise.
61127         * lib/unistdio/u8-vsprintf.c: Likewise.
61128         * lib/unistdio/ulc-asnprintf.c: Likewise.
61129         * lib/unistdio/ulc-asprintf.c: Likewise.
61130         * lib/unistdio/ulc-printf-parse.c: Likewise.
61131         * lib/unistdio/ulc-snprintf.c: Likewise.
61132         * lib/unistdio/ulc-sprintf.c: Likewise.
61133         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61134         * lib/unistdio/ulc-vasprintf.c: Likewise.
61135         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61136         * lib/unistdio/ulc-vsprintf.c: Likewise.
61137         * lib/unistr.h: Likewise.
61138         * lib/unistr/u-cpy-alloc.h: Likewise.
61139         * lib/unistr/u-cpy.h: Likewise.
61140         * lib/unistr/u-endswith.h: Likewise.
61141         * lib/unistr/u-move.h: Likewise.
61142         * lib/unistr/u-set.h: Likewise.
61143         * lib/unistr/u-startswith.h: Likewise.
61144         * lib/unistr/u-stpcpy.h: Likewise.
61145         * lib/unistr/u-stpncpy.h: Likewise.
61146         * lib/unistr/u-strcat.h: Likewise.
61147         * lib/unistr/u-strcpy.h: Likewise.
61148         * lib/unistr/u-strcspn.h: Likewise.
61149         * lib/unistr/u-strdup.h: Likewise.
61150         * lib/unistr/u-strlen.h: Likewise.
61151         * lib/unistr/u-strncat.h: Likewise.
61152         * lib/unistr/u-strncpy.h: Likewise.
61153         * lib/unistr/u-strnlen.h: Likewise.
61154         * lib/unistr/u-strpbrk.h: Likewise.
61155         * lib/unistr/u-strspn.h: Likewise.
61156         * lib/unistr/u-strstr.h: Likewise.
61157         * lib/unistr/u-strtok.h: Likewise.
61158         * lib/unistr/u16-check.c: Likewise.
61159         * lib/unistr/u16-chr.c: Likewise.
61160         * lib/unistr/u16-cmp.c: Likewise.
61161         * lib/unistr/u16-cpy-alloc.c: Likewise.
61162         * lib/unistr/u16-cpy.c: Likewise.
61163         * lib/unistr/u16-endswith.c: Likewise.
61164         * lib/unistr/u16-mblen.c: Likewise.
61165         * lib/unistr/u16-mbsnlen.c: Likewise.
61166         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61167         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61168         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61169         * lib/unistr/u16-mbtouc.c: Likewise.
61170         * lib/unistr/u16-mbtoucr.c: Likewise.
61171         * lib/unistr/u16-move.c: Likewise.
61172         * lib/unistr/u16-next.c: Likewise.
61173         * lib/unistr/u16-prev.c: Likewise.
61174         * lib/unistr/u16-set.c: Likewise.
61175         * lib/unistr/u16-startswith.c: Likewise.
61176         * lib/unistr/u16-stpcpy.c: Likewise.
61177         * lib/unistr/u16-stpncpy.c: Likewise.
61178         * lib/unistr/u16-strcat.c: Likewise.
61179         * lib/unistr/u16-strchr.c: Likewise.
61180         * lib/unistr/u16-strcmp.c: Likewise.
61181         * lib/unistr/u16-strcpy.c: Likewise.
61182         * lib/unistr/u16-strcspn.c: Likewise.
61183         * lib/unistr/u16-strdup.c: Likewise.
61184         * lib/unistr/u16-strlen.c: Likewise.
61185         * lib/unistr/u16-strmblen.c: Likewise.
61186         * lib/unistr/u16-strmbtouc.c: Likewise.
61187         * lib/unistr/u16-strncat.c: Likewise.
61188         * lib/unistr/u16-strncmp.c: Likewise.
61189         * lib/unistr/u16-strncpy.c: Likewise.
61190         * lib/unistr/u16-strnlen.c: Likewise.
61191         * lib/unistr/u16-strpbrk.c: Likewise.
61192         * lib/unistr/u16-strrchr.c: Likewise.
61193         * lib/unistr/u16-strspn.c: Likewise.
61194         * lib/unistr/u16-strstr.c: Likewise.
61195         * lib/unistr/u16-strtok.c: Likewise.
61196         * lib/unistr/u16-to-u32.c: Likewise.
61197         * lib/unistr/u16-to-u8.c: Likewise.
61198         * lib/unistr/u16-uctomb-aux.c: Likewise.
61199         * lib/unistr/u16-uctomb.c: Likewise.
61200         * lib/unistr/u32-check.c: Likewise.
61201         * lib/unistr/u32-chr.c: Likewise.
61202         * lib/unistr/u32-cmp.c: Likewise.
61203         * lib/unistr/u32-cpy-alloc.c: Likewise.
61204         * lib/unistr/u32-cpy.c: Likewise.
61205         * lib/unistr/u32-endswith.c: Likewise.
61206         * lib/unistr/u32-mblen.c: Likewise.
61207         * lib/unistr/u32-mbsnlen.c: Likewise.
61208         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61209         * lib/unistr/u32-mbtouc.c: Likewise.
61210         * lib/unistr/u32-mbtoucr.c: Likewise.
61211         * lib/unistr/u32-move.c: Likewise.
61212         * lib/unistr/u32-next.c: Likewise.
61213         * lib/unistr/u32-prev.c: Likewise.
61214         * lib/unistr/u32-set.c: Likewise.
61215         * lib/unistr/u32-startswith.c: Likewise.
61216         * lib/unistr/u32-stpcpy.c: Likewise.
61217         * lib/unistr/u32-stpncpy.c: Likewise.
61218         * lib/unistr/u32-strcat.c: Likewise.
61219         * lib/unistr/u32-strchr.c: Likewise.
61220         * lib/unistr/u32-strcmp.c: Likewise.
61221         * lib/unistr/u32-strcpy.c: Likewise.
61222         * lib/unistr/u32-strcspn.c: Likewise.
61223         * lib/unistr/u32-strdup.c: Likewise.
61224         * lib/unistr/u32-strlen.c: Likewise.
61225         * lib/unistr/u32-strmblen.c: Likewise.
61226         * lib/unistr/u32-strmbtouc.c: Likewise.
61227         * lib/unistr/u32-strncat.c: Likewise.
61228         * lib/unistr/u32-strncmp.c: Likewise.
61229         * lib/unistr/u32-strncpy.c: Likewise.
61230         * lib/unistr/u32-strnlen.c: Likewise.
61231         * lib/unistr/u32-strpbrk.c: Likewise.
61232         * lib/unistr/u32-strrchr.c: Likewise.
61233         * lib/unistr/u32-strspn.c: Likewise.
61234         * lib/unistr/u32-strstr.c: Likewise.
61235         * lib/unistr/u32-strtok.c: Likewise.
61236         * lib/unistr/u32-to-u16.c: Likewise.
61237         * lib/unistr/u32-to-u8.c: Likewise.
61238         * lib/unistr/u32-uctomb.c: Likewise.
61239         * lib/unistr/u8-check.c: Likewise.
61240         * lib/unistr/u8-chr.c: Likewise.
61241         * lib/unistr/u8-cmp.c: Likewise.
61242         * lib/unistr/u8-cpy-alloc.c: Likewise.
61243         * lib/unistr/u8-cpy.c: Likewise.
61244         * lib/unistr/u8-endswith.c: Likewise.
61245         * lib/unistr/u8-mblen.c: Likewise.
61246         * lib/unistr/u8-mbsnlen.c: Likewise.
61247         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61248         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61249         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61250         * lib/unistr/u8-mbtouc.c: Likewise.
61251         * lib/unistr/u8-mbtoucr.c: Likewise.
61252         * lib/unistr/u8-move.c: Likewise.
61253         * lib/unistr/u8-next.c: Likewise.
61254         * lib/unistr/u8-prev.c: Likewise.
61255         * lib/unistr/u8-set.c: Likewise.
61256         * lib/unistr/u8-startswith.c: Likewise.
61257         * lib/unistr/u8-stpcpy.c: Likewise.
61258         * lib/unistr/u8-stpncpy.c: Likewise.
61259         * lib/unistr/u8-strcat.c: Likewise.
61260         * lib/unistr/u8-strchr.c: Likewise.
61261         * lib/unistr/u8-strcmp.c: Likewise.
61262         * lib/unistr/u8-strcpy.c: Likewise.
61263         * lib/unistr/u8-strcspn.c: Likewise.
61264         * lib/unistr/u8-strdup.c: Likewise.
61265         * lib/unistr/u8-strlen.c: Likewise.
61266         * lib/unistr/u8-strmblen.c: Likewise.
61267         * lib/unistr/u8-strmbtouc.c: Likewise.
61268         * lib/unistr/u8-strncat.c: Likewise.
61269         * lib/unistr/u8-strncmp.c: Likewise.
61270         * lib/unistr/u8-strncpy.c: Likewise.
61271         * lib/unistr/u8-strnlen.c: Likewise.
61272         * lib/unistr/u8-strpbrk.c: Likewise.
61273         * lib/unistr/u8-strrchr.c: Likewise.
61274         * lib/unistr/u8-strspn.c: Likewise.
61275         * lib/unistr/u8-strstr.c: Likewise.
61276         * lib/unistr/u8-strtok.c: Likewise.
61277         * lib/unistr/u8-to-u16.c: Likewise.
61278         * lib/unistr/u8-to-u32.c: Likewise.
61279         * lib/unistr/u8-uctomb-aux.c: Likewise.
61280         * lib/unistr/u8-uctomb.c: Likewise.
61281         * lib/unitypes.h: Likewise.
61282         * lib/uniwidth.h: Likewise.
61283         * lib/uniwidth/cjk.h: Likewise.
61284         * lib/uniwidth/u16-strwidth.c: Likewise.
61285         * lib/uniwidth/u16-width.c: Likewise.
61286         * lib/uniwidth/u32-strwidth.c: Likewise.
61287         * lib/uniwidth/u32-width.c: Likewise.
61288         * lib/uniwidth/u8-strwidth.c: Likewise.
61289         * lib/uniwidth/u8-width.c: Likewise.
61290         * lib/uniwidth/width.c: Likewise.
61291
61292 2007-10-07  Bruno Haible  <bruno@clisp.org>
61293
61294         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61295         The file is still under LGPL (see modules/inttypes).
61296
61297 2007-10-06  Bruno Haible  <bruno@clisp.org>
61298
61299         * modules/trunc (Dependencies): Add 'extensions'.
61300         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61301         Reported by Ben Pfaff <blp@gnu.org>.
61302
61303 2007-10-06  Bruno Haible  <bruno@clisp.org>
61304
61305         * modules/freopen-tests: New file.
61306         * tests/test-freopen.c: New file.
61307
61308         * modules/fopen-tests: New file.
61309         * tests/test-fopen.c: New file.
61310
61311         * modules/fopen: New file.
61312         * lib/fopen.c: New file.
61313         * m4/fopen.m4: New file.
61314         * modules/freopen: New file.
61315         * lib/freopen.c: New file.
61316         * m4/freopen.m4: New file.
61317         * lib/stdio.in.h (fopen, freopen): New declarations.
61318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61319         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61320         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61321         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61322         * doc/functions/fopen.texi: Mention the 'fopen' module.
61323         * doc/functions/freopen.texi: Mention the 'freopen' module.
61324
61325 2007-10-06  Bruno Haible  <bruno@clisp.org>
61326
61327         * modules/open-tests: New file.
61328         * tests/test-open.c: New file.
61329
61330         * modules/open: New file.
61331         * lib/open.c: New file.
61332         * m4/open.m4: New file.
61333         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61334         lib/open.c does.
61335         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61336         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61337         macros.
61338         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61339         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61340         REPLACE_OPEN.
61341         * doc/functions/open.texi: Mention the 'open' module.
61342
61343 2007-10-04  Bruno Haible  <bruno@clisp.org>
61344
61345         * modules/ceill-tests: New file.
61346         * tests/test-ceill.c: New file.
61347
61348         * modules/ceill: New file.
61349         * lib/ceill.c: Replace entire file.
61350         * m4/ceill.m4: New file.
61351         * lib/math.in.h (ceill): Replace declaration.
61352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61353         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61354         * doc/functions/ceill.texi: Mention the 'ceill' module.
61355         * modules/mathl (Files): Remove lib/ceill.c.
61356         (Depends-on): Add ceill.
61357
61358 2007-10-04  Bruno Haible  <bruno@clisp.org>
61359
61360         * modules/ceilf-tests: New file.
61361         * tests/test-ceilf.c: New file.
61362
61363         * modules/ceilf: New file.
61364         * lib/ceil.c: New file.
61365         * lib/ceilf.c: New file.
61366         * m4/ceilf.m4: New file.
61367         * lib/math.in.h (ceilf): New declaration.
61368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61369         HAVE_DECL_CEILF.
61370         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61371         HAVE_DECL_CEILF.
61372         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61373
61374 2007-10-04  Bruno Haible  <bruno@clisp.org>
61375
61376         * modules/floorl-tests: New file.
61377         * tests/test-floorl.c: New file.
61378
61379         * modules/floorl: New file.
61380         * lib/floorl.c: Replace entire file.
61381         * m4/floorl.m4: New file.
61382         * lib/math.in.h (floorl): Replace declaration.
61383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61384         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61385         * doc/functions/floorl.texi: Mention the 'floorl' module.
61386         * modules/mathl (Files): Remove lib/floorl.c.
61387         (Depends-on): Add floorl.
61388
61389 2007-10-04  Bruno Haible  <bruno@clisp.org>
61390
61391         * modules/floorf-tests: New file.
61392         * tests/test-floorf.c: New file.
61393
61394         * modules/floorf: New file.
61395         * lib/floor.c: New file.
61396         * lib/floorf.c: New file.
61397         * m4/floorf.m4: New file.
61398         * lib/math.in.h (floorf): New declaration.
61399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61400         HAVE_DECL_FLOORF.
61401         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61402         HAVE_DECL_FLOORF.
61403         * doc/functions/floorf.texi: Mention the 'floorf' module.
61404
61405 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61406             Bruno Haible  <bruno@clisp.org>
61407
61408         Advertise for the Git server instead of the CVS server.
61409         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61410         repository instead of the CVS one.
61411         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61412         about all VCS systems generically.
61413         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61414
61415 2007-10-04  Bruno Haible  <bruno@clisp.org>
61416
61417         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61418         means.
61419         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61420
61421 2007-10-04  Bruno Haible  <bruno@clisp.org>
61422
61423         * modules/truncl-tests: New file.
61424         * tests/test-truncl.c: New file.
61425
61426         * modules/truncl: New file.
61427         * lib/truncl.c: New file.
61428         * m4/truncl.m4: New file.
61429         * lib/math.in.h (truncl): New declaration.
61430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61431         HAVE_DECL_TRUNCL.
61432         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61433         HAVE_DECL_TRUNCL.
61434         * doc/functions/truncl.texi: Mention the 'truncl' module.
61435
61436 2007-10-04  Bruno Haible  <bruno@clisp.org>
61437
61438         * modules/truncf-tests: New file.
61439         * tests/test-truncf.c: New file.
61440
61441         * modules/truncf: New file.
61442         * lib/trunc.c: Make paramerizable through USE_* macros.
61443         * lib/truncf.c: New file.
61444         * m4/truncf.m4: New file.
61445         * lib/math.in.h (truncf): New declaration.
61446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61447         HAVE_DECL_TRUNCF.
61448         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61449         HAVE_DECL_TRUNCF.
61450         * doc/functions/truncf.texi: Mention the 'truncf' module.
61451
61452 2007-10-03  Bruno Haible  <bruno@clisp.org>
61453
61454         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61455         augmentation also for tests modules.
61456         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61457         * modules/atexit-tests (Makefile.am): Likewise.
61458         * modules/binary-io-tests (Makefile.am): Likewise.
61459         * modules/c-strcase-tests (Makefile.am): Likewise.
61460         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61461         * modules/canonicalize-tests (Makefile.am): Likewise.
61462         * modules/closein-tests (Makefile.am): Likewise.
61463         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61464         * modules/freadahead-tests (Makefile.am): Likewise.
61465         * modules/fseek-tests (Makefile.am): Likewise.
61466         * modules/fseeko-tests (Makefile.am): Likewise.
61467         * modules/ftell-tests (Makefile.am): Likewise.
61468         * modules/ftello-tests (Makefile.am): Likewise.
61469         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61470         * modules/isnanl-tests (Makefile.am): Likewise.
61471         * modules/lseek-tests (Makefile.am): Likewise.
61472         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61473         * modules/mbscasestr-tests (Makefile.am): Likewise.
61474         * modules/mbschr-tests (Makefile.am): Likewise.
61475         * modules/mbscspn-tests (Makefile.am): Likewise.
61476         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61477         * modules/mbspbrk-tests (Makefile.am): Likewise.
61478         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61479         * modules/mbsrchr-tests (Makefile.am): Likewise.
61480         * modules/mbsspn-tests (Makefile.am): Likewise.
61481         * modules/mbsstr-tests (Makefile.am): Likewise.
61482         * modules/printf-posix-tests (Makefile.am): Likewise.
61483         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61484         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61485         * modules/tsearch-tests (Makefile.am): Likewise.
61486         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61487         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61488         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61489         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61490         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61491         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61492         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61493         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61494         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61495         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61496         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61497         * modules/xstrtol-tests (Makefile.am): Likewise.
61498         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61499         * modules/yesno-tests (Makefile.am): Likewise.
61500
61501 2007-10-03  Bruno Haible  <bruno@clisp.org>
61502
61503         * modules/trunc-tests: New file.
61504         * tests/test-trunc.c: New file.
61505
61506         * modules/trunc: New file.
61507         * lib/trunc.c: New file.
61508         * m4/trunc.m4: New file.
61509         * lib/math.in.h (trunc): New declaration.
61510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61511         HAVE_DECL_TRUNC.
61512         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61513         HAVE_DECL_TRUNC.
61514         * doc/functions/trunc.texi: Mention the 'trunc' module.
61515
61516 2007-10-03  Bruno Haible  <bruno@clisp.org>
61517
61518         * tests/test-fpending.c: New file, mostly copied
61519         from coreutils/lib/t-fpending.c.
61520         * modules/fpending-tests: New file.
61521
61522 2007-10-03  Bruno Haible  <bruno@clisp.org>
61523
61524         Port the stdio extensions to QNX (untested).
61525         * lib/fseterr.c (fseterr): Add support for QNX.
61526         * lib/fbufmode.c (fbufmode): Likewise.
61527         * lib/freadable.c (freadable): Likewise.
61528         * lib/fwritable.c (fwritable): Likewise.
61529         * lib/freading.c (freading): Likewise.
61530         * lib/fwriting.c (fwriting): Likewise.
61531         * lib/freadahead.c (freadahed): Likewise.
61532         * lib/fpurge.c (fpurge): Likewise.
61533         * lib/fseeko.c (rpl_fseeko): Likewise.
61534
61535 2007-10-03  Bruno Haible  <bruno@clisp.org>
61536             Jim Meyering  <jim@meyering.net>
61537             Eric Blake  <ebb9@byu.net>
61538
61539         * doc/relocatable.texi: Use @command instead of @program.
61540
61541 2007-10-02  Jim Meyering  <jim@meyering.net>
61542
61543         Perform one more "_.h" -> ".in.h" substitution.
61544         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61545         instead of unistd_.h here, too.
61546
61547 2007-10-01  Bruno Haible  <bruno@clisp.org>
61548
61549         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61550         Needed for the alloca-opt module.
61551
61552 2007-09-30  Bruno Haible  <bruno@clisp.org>
61553
61554         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61555         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61556         alloca_.h.
61557         * lib/argz.in.h: Renamed from lib/argz_.h.
61558         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61559         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61560         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61561         byteswap_.h.
61562         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61563         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61564         dirent_.h.
61565         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61566         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61567         fcntl_.h.
61568         * lib/float.in.h: Renamed from lib/float_.h.
61569         * modules/float (Files, Makefile.am): Use float.in.h instead of
61570         float_.h.
61571         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61572         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61573         fnmatch_.h.
61574         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61575         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61576         getopt_.h.
61577         * lib/glob.in.h: Renamed from lib/glob_.h.
61578         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61579         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61580         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61581         iconv_.h.
61582         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61583         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61584         inttypes_.h.
61585         * lib/locale.in.h: Renamed from lib/locale_.h.
61586         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61587         locale_.h.
61588         * lib/math.in.h: Renamed from lib/math_.h.
61589         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61590         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61591         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61592         of netinet_in_.h. Add dependency.
61593         * lib/poll.in.h: Renamed from lib/poll_.h.
61594         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61595         * lib/search.in.h: Renamed from lib/search_.h.
61596         * modules/search (Files, Makefile.am): Use search.in.h instead of
61597         search_.h.
61598         * lib/signal.in.h: Renamed from lib/signal_.h.
61599         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61600         _signal.h.
61601         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61602         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61603         stdbool_.h.
61604         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61605         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61606         stdint_.h.
61607         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61608         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61609         stdio_.h.
61610         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61611         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61612         stdlib_.h.
61613         * lib/string.in.h: Renamed from lib/string_.h.
61614         * modules/string (Files, Makefile.am): Use string.in.h instead of
61615         string_.h.
61616         * doc/gnulib-tool.texi (Initial import): Update.
61617         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61618         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61619         of sys_select_.h. Add dependency.
61620         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61621         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61622         of sys_socket_.h.
61623         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61624         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61625         sys_stat_.h.
61626         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61627         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61628         sys_time_.h.
61629         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61630         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61631         sysexits_.h.
61632         * lib/time.in.h: Renamed from lib/time_.h.
61633         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61634         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61635         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61636         unistd_.h.
61637         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61638         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61639         wchar_.h.
61640         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61641         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61642         wctype_.h.
61643         * build-aux/bootstrap (slurp): Update.
61644         * lib/.cppi-disable: Update.
61645
61646 2007-09-30  Bruno Haible  <bruno@clisp.org>
61647
61648         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61649         Needed on BeOS.
61650
61651 2007-09-30  Bruno Haible  <bruno@clisp.org>
61652
61653         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61654
61655 2007-09-29  Bruno Haible  <bruno@clisp.org>
61656
61657         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61658
61659 2007-09-29  Bruno Haible  <bruno@clisp.org>
61660
61661         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61662         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61663         * build-aux/install-reloc: Compile also areadlink.c.
61664         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61665
61666 2007-09-29  Bruno Haible  <bruno@clisp.org>
61667
61668         * gnulib-tool (func_emit_initmacro_done): Indentation.
61669
61670 2007-09-29  Bruno Haible  <bruno@clisp.org>
61671
61672         * README: Add CVS checkout update instructions.
61673         Info from Bob Proulx <bob@proulx.com>.
61674
61675 2007-09-28  Eric Blake  <ebb9@byu.net>
61676
61677         Provide move-if-change.
61678         * build-aux/move-if-change: New file, based on best practice
61679         rather than any canonical upstream location.
61680
61681 2007-09-28  Jim Meyering  <jim@meyering.net>
61682
61683         Fix canonicalize loop-detection corner case.
61684         Do not attempt to stat the symlink values stored via seen_triple.
61685         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61686         on linux-2.6.18, (but not 2.6.22).
61687         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61688         triple_compare.  The former compares dev,ino,filename, while the latter
61689         would actually stat dirname(filename) when dev and ino were equal.
61690         * lib/hash-triple.c: Install <string.h>.
61691         (STREQ): Define.
61692         (triple_compare_ino_str): New function.
61693         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61694
61695 2007-09-28  Eric Blake  <ebb9@byu.net>
61696
61697         Enforce that AC_REPLACE_FUNCS files exist.
61698         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61699         override check for typos.
61700
61701         Fix test-closein on Solaris 10.
61702         * tests/test-closein.c (main): Don't assume stdin can be inherited
61703         closed on all systems.
61704         * tests/test-closein.sh: Likewise.
61705         Reported by Piotr Tarnowski.
61706
61707 2007-09-28  Jim Meyering  <jim@meyering.net>
61708
61709         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61710
61711 2007-09-27  Jim Meyering  <jim@meyering.net>
61712
61713         canonicalize: Avoid a false-positive cycle failure.
61714         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61715         Sort.  Remove cycle-check.
61716         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61717         not cycle-check.h.
61718         (seen_triple): New function.
61719         (canonicalize_filename_mode): Use it instead of cycle-check.
61720         * tests/test-canonicalize.c: Add a test for this bug.
61721         * tests/test-canonicalize.sh: Set up and run the test.
61722
61723         New module, file-set, from coreutils.
61724         * modules/file-set: Define it.
61725         * lib/file-set.c, lib/file-set.h: Implement.
61726
61727         New module, hash-triple, from coreutils.
61728         * modules/hash-triple: Define it.
61729         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61730
61731 2007-09-25  Eric Blake  <ebb9@byu.net>
61732
61733         Fix strerror on Interix.
61734         * lib/string_.h (strerror): Declare replacement.
61735         * doc/functions/strerror.texi (strerror): Document the Interix
61736         shortcoming.
61737         * modules/string (Makefile.am): Support new hooks.
61738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61739         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61740         gl_FUNC_STRERROR_SEPARATE.
61741         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61742         * lib/strerror.c (rpl_strerror): Provide replacement.
61743         * modules/strerror (Depends-on): Add string.
61744         (configure.ac): Detect use of module.
61745         * tests/test-strerror.c: New file.
61746         * modules/strerror-tests: New test module.
61747         * modules/argp (Depends-on): Add strerror.
61748         * modules/error (Depends-on): Likewise.
61749         Reported by Martin Koeppe.
61750
61751 2007-09-24  Bruno Haible  <bruno@clisp.org>
61752
61753         * README: Update git instructions.
61754
61755 2007-09-24  Eric Blake  <ebb9@byu.net>
61756
61757         Revert fpending breakage from 2007-09-08.
61758         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61759         __fpending.c.
61760
61761 2007-09-24  Jim Meyering  <jim@meyering.net>
61762
61763         filenamecat.c: Add a test.
61764         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61765         showing how the function works when DIR is the empty string.
61766
61767 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61768
61769         * tests/test-canonicalize.sh: Turn on executable bit.
61770
61771 2007-09-19  Eric Blake  <ebb9@byu.net>
61772
61773         * README: Update CVS instructions.
61774
61775 2007-09-18  Bruno Haible  <bruno@clisp.org>
61776
61777         * modules/areadlink: New file.
61778         * lib/areadlink.h (areadlink): New declaration.
61779         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61780
61781 2007-09-17  Jim Meyering  <jim@meyering.net>
61782
61783         * lib/savewd.c (ESTALE) [!defined]: Define.
61784         Reported to be required on Interix by Martin Koeppe.
61785
61786 2007-09-17  Bruno Haible  <bruno@clisp.org>
61787
61788         * gnulib-tool (func_version): Use $version.
61789
61790 2007-09-16  Bruno Haible  <bruno@clisp.org>
61791
61792         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61793         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61794         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61795         Reported by Greg Schafer <gschafer@zip.com.au>.
61796
61797 2007-09-15  Bruno Haible  <bruno@clisp.org>
61798
61799         * gnulib-tool (sed): Try a little harder to make bash understand the
61800         alias.
61801         Reported by Bruce Korb <bruce.korb@gmail.com>.
61802
61803 2007-09-13  Eric Blake  <ebb9@byu.net>
61804
61805         * ChangeLog: Remove conflict markers.
61806
61807 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61808
61809         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61810         Reported by Bruno Haible <bruno@clisp.org>.
61811
61812 2007-09-12  Bruno Haible  <bruno@clisp.org>
61813
61814         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61815         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61816         is not defined.
61817
61818 2007-09-12  Eric Blake  <ebb9@byu.net>
61819
61820         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61821         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61822         Autoconf definition.
61823         * modules/euidaccess (Depends-on): Add extensions, for
61824         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61825         * modules/fnmatch (Depends-on): Likewise.
61826         * modules/getaddrinfo (Depends-on): Likewise.
61827         * modules/getdelim (Depends-on): Likewise.
61828         * modules/getline (Depends-on): Likewise.
61829         * modules/getsubopt (Depends-on): Likewise.
61830         * modules/gettext (Depends-on): Likewise.
61831         * modules/group-member (Depends-on): Likewise.
61832         * modules/mbchar (Depends-on): Likewise.
61833         * modules/memmem (Depends-on): Likewise.
61834         * modules/mempcpy (Depends-on): Likewise.
61835         * modules/memrchr (Depends-on): Likewise.
61836         * modules/pagealign_alloc (Depends-on): Likewise.
61837         * modules/readutmp (Depends-on): Likewise.
61838         * modules/stpcpy (Depends-on): Likewise.
61839         * modules/stpncpy (Depends-on): Likewise.
61840         * modules/strchrnul (Depends-on): Likewise.
61841         * modules/strndup (Depends-on): Likewise.
61842         * modules/strsep (Depends-on): Likewise.
61843         * modules/strverscmp (Depends-on): Likewise.
61844         * modules/vasprintf (Depends-on): Likewise.
61845         * modules/wcwidth (Depends-on): Likewise.
61846         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
61847         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
61848         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
61849         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
61850         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61851         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61852         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
61853         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61854         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
61855         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
61856         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61857         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61858         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61859         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61860         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
61861         * m4/readutmp.m4 (gl_READUTMP): Likewise.
61862         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61863         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61864         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61865         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61866         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61867         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61868         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61869         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
61870         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
61871         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61872         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
61873         so that lock.m4 can be used in gettext without extensions module.
61874
61875 2007-09-11  Bruno Haible  <bruno@clisp.org>
61876
61877         * m4/isc-posix.m4: Remove file.
61878         Suggested by Eric Blake.
61879
61880 2007-09-11  Eric Blake  <ebb9@byu.net>
61881
61882         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
61883
61884 2007-09-10  Bruno Haible  <bruno@clisp.org>
61885
61886         * posix-modules: Fix typo in error message.
61887         Reported by Matt <mkraai@beckman.com>.
61888
61889 2007-09-09  Bruno Haible  <bruno@clisp.org>
61890
61891         * doc/functions/getdelim.texi: Update list of platforms lacking the
61892         function.
61893         * doc/functions/getline.texi: Likewise.
61894
61895 2007-09-09  Jim Meyering  <jim@meyering.net>
61896
61897         * lib/hash.c (hash_initialize): Detect calloc failure.
61898         Reported by Bruno Haible.
61899
61900 2007-09-09  Bruno Haible  <bruno@clisp.org>
61901
61902         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
61903         malloc or realloc fails.
61904
61905 2007-09-09  Bruno Haible  <bruno@clisp.org>
61906
61907         * modules/getcwd (Depends-on): Add malloc-posix.
61908         * modules/glob (Depends-on): Likewise.
61909         * modules/putenv (Depends-on): Likewise.
61910         * modules/strdup (Depends-on): Likewise.
61911         * modules/getdelim (Depends-on): Add realloc-posix.
61912         * modules/read-file (Depends-on): Likewise.
61913
61914 2007-09-09  Bruno Haible  <bruno@clisp.org>
61915
61916         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
61917         (gl_FUNC_MALLOC_POSIX): Require it.
61918         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
61919         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
61920         * modules/realloc (Files): Add m4/malloc.m4.
61921         * modules/calloc (Files): Likewise.
61922
61923 2007-09-09  Bruno Haible  <bruno@clisp.org>
61924
61925         * modules/malloc-posix: New file.
61926         * modules/malloc (Depends-on): Add malloc-posix.
61927         * lib/malloc.c: Include errno.h.
61928         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
61929         and a POSIX-compatible malloc into a single function. Set ENOMEM
61930         when returning NULL.
61931         * m4/malloc.m4: New file.
61932         * doc/functions/malloc.texi: Mention the malloc-posix module.
61933         * lib/stdlib_.h (malloc): New declaration.
61934         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61935         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
61936         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
61937         and HAVE_MALLOC_POSIX.
61938
61939 2007-09-09  Bruno Haible  <bruno@clisp.org>
61940
61941         * modules/realloc-posix: New file.
61942         * modules/realloc (Depends-on): Add realloc-posix.
61943         * lib/realloc.c: Include errno.h.
61944         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
61945         and a POSIX-compatible realloc into a single function. Set ENOMEM
61946         when returning NULL.
61947         * m4/realloc.m4: New file.
61948         * doc/functions/realloc.texi: Mention the realloc-posix module.
61949         * lib/stdlib_.h (realloc): New declaration.
61950         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61951         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
61952         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
61953         and HAVE_REALLOC_POSIX.
61954
61955 2007-09-09  Bruno Haible  <bruno@clisp.org>
61956
61957         * modules/calloc-posix: New file.
61958         * modules/calloc (Depends-on): Add calloc-posix.
61959         * lib/calloc.c: Include errno.h.
61960         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
61961         and a POSIX-compatible calloc into a single function. Set ENOMEM
61962         when returning NULL.
61963         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
61964         * doc/functions/calloc.texi: Mention the calloc-posix module.
61965         * lib/stdlib_.h (calloc): New declaration.
61966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61967         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
61968         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
61969         and HAVE_CALLOC_POSIX.
61970
61971 2007-09-09  Bruno Haible  <bruno@clisp.org>
61972
61973         Allow for modules to show an arbitrary notice.
61974         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
61975         * gnulib-tool: New option --extract-notice.
61976         (func_usage): Document it.
61977         (sed_extract_prog): Update.
61978         (func_get_notice): New function.
61979         (func_modules_notice): New function.
61980         (func_import, func_create_testdir): Invoke it.
61981         Suggested by Jim Meyering.
61982
61983 2007-09-09  Bruno Haible  <bruno@clisp.org>
61984
61985         * gnulib-tool: New options --verbose, --quiet.
61986         (func_usage): Document them.
61987         (verbose): New variable.
61988         (func_execute_command): New function.
61989         (func_import): Don't show the module list and the file list if
61990         $verbose < 0.
61991         (func_create_testdir): Likewise. Use func_execute_command.
61992         (func_create_megatestdir): Use func_execute_command.
61993
61994 2007-09-08  Bruno Haible  <bruno@clisp.org>
61995
61996         * gnulib-tool (func_import): Prefer rsync over wget when available,
61997         for fetching the PO files.
61998
61999 2007-09-08  Bruno Haible  <bruno@clisp.org>
62000
62001         * posix-modules: New file. Portions copied from gnulib-tool.
62002         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62003
62004 2007-09-08  Jim Meyering  <jim@meyering.net>
62005
62006         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62007         * lib/fpending.h: Rename from __fpending.h.
62008         * lib/fpending.c: Rename from __fpending.c.
62009         Include "fpending.h", not "__fpending.h".
62010         * lib/__fpending.h, lib/__fpending.c: Remove files.
62011         * modules/fpending (Files): Reflect new file names.
62012         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62013
62014 2007-09-08  Bruno Haible  <bruno@clisp.org>
62015
62016         * m4/inttypes-h.m4: Remove stub file.
62017
62018 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62019
62020         * doc/headers/stdint.texi: Discuss #include_next issue.
62021
62022 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62023
62024         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62025
62026 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62027
62028         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62029         in variable name.
62030
62031 2007-09-03  Jim Meyering  <jim@meyering.net>
62032
62033         New module: git-version-gen.
62034         * modules/git-version-gen: New file.
62035
62036         Import changes from coreutils for bootstrap script.
62037
62038         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62039
62040         bootstrap: uses rsync to download the .po files
62041         * build-aux/bootstrap (po_download_command_format): New global.
62042         (download_po_files): Use rsync.
62043         (update_po_files): Don't remove .po files after download,
62044         so future rsync runs can take advantage of the copies.
62045
62046         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62047
62048         Solve the unnecessary-.po-file-regeneration problem once and for all.
62049         * build-aux/bootstrap (download_po_files): New function, renamed from
62050         get_translations.  Now, downloads, but doesn't update LINGUAS.
62051         (update_po_files): New function.
62052
62053         bootstrap: Ignore more.
62054         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62055         uniwidth to e.g., lib/.gitignore.
62056         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62057
62058         * build-aux/bootstrap: New setting: vc_ignore.
62059         (insert_sorted_if_absent): Create $file if absent.
62060         Adapt to new, possibly empty, list: $vc_ignore.
62061
62062         bootstrap: generate more ignorable names
62063         * build-aux/bootstrap (slurp): When generating ignorable names,
62064         also map .sin to .sed, .gperf to .c, and .y to .c.
62065
62066 2007-09-03  Jim Meyering  <jim@meyering.net>
62067
62068         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62069         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62070
62071 2007-09-02  Bruno Haible  <bruno@clisp.org>
62072
62073         Fix mis-recognition of 'mcs' on QNX 6.
62074         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62075         output contains the string "Mono".
62076         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62077         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62078
62079 2007-09-01  Bruno Haible  <bruno@clisp.org>
62080
62081         Fix collision between uniwidth/* and linebreak modules.
62082         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62083         u32_width): Remove declarations.
62084         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62085         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62086         streq3, streq2, streq1, streq0): Remove functions.
62087         (STREQ): Remove macro.
62088         (is_cjk_encoding): Remove function.
62089         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62090         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62091         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62092         * NEWS: Document the change.
62093
62094 2007-09-01  Bruno Haible  <bruno@clisp.org>
62095
62096         * lib/streq.h: Add double-inclusion guard.
62097
62098 2007-09-01  Karl Berry  <karl@gnu.org>
62099
62100         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62101
62102 2007-08-28  Jim Meyering  <jim@meyering.net>
62103
62104         Rename mreadlink_with_size to areadlink_with_size.
62105         * NEWS: Document the change.
62106         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62107         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62108         * lib/mreadlink.h: Rename this to...
62109         * lib/areadlink.h: ...this.
62110         * modules/mreadlink-with-size: Rename this to...
62111         * modules/areadlink-with-size: ...this.
62112         * lib/canonicalize.c: Reflect the renaming.
62113         * modules/canonicalize: Likewise.
62114
62115 2007-08-26  Bruno Haible  <bruno@clisp.org>
62116
62117         * gnulib-tool (func_import): When deciding which files to remove,
62118         consider also dangling symbolic links.
62119         Reported by Eric Blake.
62120
62121 2007-08-26  Bruno Haible  <bruno@clisp.org>
62122
62123         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62124
62125 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62126
62127         * lib/readline.c: Don't include getline.h, the prototype is now
62128         found in stdio.h.
62129
62130 2007-08-23  Jim Meyering  <jim@meyering.net>
62131
62132         Getdelim touchup.
62133         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62134         around the funlockfile call, since funlockfile never sets errno.
62135         Don't set errno upon failed realloc.
62136
62137 2007-08-22  Eric Blake  <ebb9@byu.net>
62138
62139         Getline touchups.
62140         * lib/getdelim.c (getdelim): Revert regression that required *n to
62141         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62142         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62143         getdelim, rather than whether implementation is missing.
62144         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62145         * lib/stdio_.h (getline): Also declare if replacement is
62146         required.
62147         * doc/functions/getdelim.texi: New file.
62148         * doc/functions/getline.texi: Likewise.
62149         * doc/gnulib.texi (Function Substitutes): Add new files.
62150         Reported by Bruno Haible.
62151
62152 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62153
62154         * users.txt: Add Guile.
62155
62156 2007-08-22  Eric Blake  <ebb9@byu.net>
62157
62158         * tests/test-getdelim.c (main): Use remove, not unlink.
62159         * tests/test-getline.c (main): Likewise.
62160
62161         Move getline and getdelim into stdio.h, per POSIX 200x.
62162         * modules/getline (Files): Remove getline.h.
62163         (Depends-on): Add stdio.
62164         (configure.ac): Add module indicator.
62165         * modules/getdelim (Files): Remove getdelim.h.
62166         (Depends-on): Add stdio.
62167         (configure.ac): Add module indicator.
62168         * modules/stdio (Makefile.am): Work with new indicators.
62169         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62170         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62171         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62172         * lib/getdelim.h: Delete.
62173         * lib/getline.h: Delete.
62174         * lib/stdio_.h (getdelim, getline): Declare.
62175         * modules/getdelim-tests: New module.
62176         * modules/getline-tests: Likewise.
62177         * tests/test-getdelim.c: New file.
62178         * tests/test-getline.c: Likewise.
62179         * NEWS: Document the change.
62180         * lib/getline.c: Update choice of header.
62181         * lib/csharpcomp.c: Likewise.
62182         * lib/getpass.c: Likewise.
62183         * lib/javacomp.c: Likewise.
62184         * lib/javaversion.c: Likewise.
62185         * lib/yesno.c: Likewise.
62186         * lib/getdelim.c: Likewise.
62187         (getdelim): Set errno on failure, and avoid memory leak.
62188
62189 2007-08-19  Bruno Haible  <bruno@clisp.org>
62190
62191         * modules/closein (Depends-on): Add freadahead.
62192         * lib/closein.c: Include freadahead.h.
62193         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62194         is zero.
62195
62196 2007-08-19  Bruno Haible  <bruno@clisp.org>
62197
62198         * modules/freadahead-tests: New file.
62199         * tests/test-freadahead.sh: New file.
62200         * tests/test-freadahead.c: New file.
62201
62202         * modules/freadahead: New file.
62203         * lib/freadahead.h: New file.
62204         * lib/freadahead.c: New file.
62205         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62206         fbufmode, fpurge, freadable, fwritable.
62207
62208 2007-08-19  Eric Blake  <ebb9@byu.net>
62209
62210         Test yesno in combination with closein.
62211         * lib/yesno.c (yesno): Document use of stdin.
62212         * modules/yesno-tests (Files): New module.
62213         * tests/test-yesno.c (main): New file.
62214         * tests/test-yesno.sh: Likewise.
62215
62216 2007-08-19  Bruno Haible  <bruno@clisp.org>
62217
62218         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62219         * lib/fseeko.c (rpl_fseeko): Likewise.
62220         * lib/fseterr.c (fseterr): Likewise.
62221
62222 2007-08-19  Bruno Haible  <bruno@clisp.org>
62223
62224         * tests/test-lseek.c (main): Disable a test for BeOS.
62225         * doc/functions/lseek.texi: Document the BeOS bug.
62226
62227 2007-08-19  Bruno Haible  <bruno@clisp.org>
62228             Eric Blake  <ebb9@byu.net>
62229
62230         * lib/lseek.c: Include <sys/stat.h>.
62231         (rpl_lseek): Add workaround code also for Unix platforms.
62232         Needed for BeOS.
62233         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62234         * doc/functions/lseek.texi: Document BeOS definiency.
62235
62236 2007-08-18  Bruno Haible  <bruno@clisp.org>
62237
62238         * modules/fstrcmp-tests: New file.
62239         * tests/test-fstrcmp.c: New file.
62240
62241 2007-08-18  Bruno Haible  <bruno@clisp.org>
62242
62243         * modules/fstrcmp: New file, from GNU gettext with modifications.
62244         * lib/fstrcmp.h: New file, from GNU gettext.
62245         * lib/fstrcmp.c: New file, from GNU gettext.
62246         * MODULES.html.sh (String handling): Add fstrcmp.
62247
62248 2007-08-18  Bruno Haible  <bruno@clisp.org>
62249
62250         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62251         'bool'.
62252         (diag, compareseq): Remove const from the ctxt argument.
62253         (USE_HEURISTIC): Undefine at the end.
62254
62255 2007-08-18  Jim Meyering  <jim@meyering.net>
62256
62257         New file: lib/idcache.h
62258         * NEWS: Mention the addition.
62259         * modules/idcache (Files): Add lib/idcache.h
62260         * lib/idcache.c: Include "idcache.h".
62261         Don't include <sys/types.h>.
62262         Add a FIXME comment.
62263         Move file-scoped "static" declarations to the top.
62264         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62265
62266 2007-08-17  Bruno Haible  <bruno@clisp.org>
62267         and Paul Eggert  <eggert@cs.ucla.edu>
62268
62269         * MODULES.html.sh: Add diffseq.
62270         * modules/diffseq: New file.
62271         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62272         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62273
62274 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62275
62276         Import changes from coreutils for bootstrap script.
62277
62278         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62279
62280         * build-aux/bootstrap (slurp): Work even in environments where
62281         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62282         current code does not slurp files whose names start with ".", and
62283         this looks like it might be a troublesome area.
62284
62285         2007-07-11  Jim Meyering  <jim@meyering.net>
62286
62287         If there's a GPL vN copyright comment, require that N == 3.
62288
62289         2007-07-08  Jim Meyering  <jim@meyering.net>
62290
62291         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62292         * build-aux/bootstrap (mam_template): Move definition out of loop.
62293
62294         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62295
62296         * build-aux/bootstrap (symlink_to_dir): Rename function from
62297         symlink_to_gnulib.  Add a directory parameter.  Update all
62298         callers.
62299         (cp_mark_as_generated): Also check for -- and link to -- files in
62300         gl/.
62301
62302         2007-07-08  Jim Meyering  <jim@meyering.net>
62303
62304         Adapt to deeper hierarchy in gnulib.
62305         * build-aux/bootstrap (symlink_to_dir): If the destination
62306         directory doesn't exist, create it. This is required at least for
62307         "lib/uniwidth/cjk.h".
62308
62309         2007-05-15  Jim Meyering  <jim@meyering.net>
62310
62311         * build-aux/bootstrap: Now that generated Makefile.am files
62312         are no longer under version control, they must be created at
62313         bootstrap time.
62314
62315 2007-08-14  Ben Pfaff  <blp@gnu.org>
62316
62317         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62318
62319 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62320
62321         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62322         given the changes below.
62323         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62324         even on hosts that have padding bits beyond the supported 64.
62325
62326 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62327
62328         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62329         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62330         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62331         depends on it.
62332         (xstrtol_error): Remove.
62333         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62334         but with a different signature.
62335         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62336         * lib/xstrtol-error.c: Include exitfail.h.
62337         (xstrtol_fatal): New function, with a different signature from the
62338         old xstrtol_error, so that the caller need not worry about passing
62339         in an exit status, or about storage management of the option argument.
62340         (xstrtol_error): Now a static function.  Redo signature to
62341         implement xstrtol_fatal.  Output the correct number of hyphens in
62342         front of the option so that the caller need not worry about
62343         storage management.
62344         (N_): New macro.
62345         (_): Remove; not used now.
62346         * modules/xstrtol: Depend on getopt.
62347         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62348         of old STRTOL_FATAL_ERROR macro.
62349         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62350         of test program.
62351         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62352         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62353
62354 2007-08-08  Eric Blake  <ebb9@byu.net>
62355
62356         * lib/xstrtol-error.c: Add missing include.
62357
62358         Move xstrtol messages into gnulib domain, when --pobase is used.
62359         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62360         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62361         * modules/xstrtol (Files): Distribute new file.
62362         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62363         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62364         * tests/test-xstrtol.c: ...into new file.
62365         * tests/test-xstrtoul.c: Also test xstrtoul.
62366         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62367         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62368         * tests/test-xstrtol.sh: Drive the tests.
62369         * tests/test-xstrtoimax.sh: Likewise.
62370         * tests/test-xstrtoumax.sh: Likewise.
62371         * modules/xstrtol-tests: New module.
62372         * modules/xstrtoimax-tests: Likewise.
62373         * modules/xstrtoumax-tests: Likewise.
62374
62375 2007-08-08  Jim Meyering  <jim@meyering.net>
62376
62377         New function: mfile_name_concat.
62378         * lib/filenamecat.c (mfile_name_concat): New function, just like
62379         file_name_concat, but return NULL upon failure rather than exiting
62380         with a diagnostic.
62381         * lib/filenamecat.h: Declare it.
62382
62383 2007-08-07  Bruno Haible  <bruno@clisp.org>
62384
62385         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62386         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62387         warning from gcc.
62388         Reported by Eric Blake.
62389
62390 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62391
62392         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62393         * modules/crypto/arcfour (License): Likewise.
62394         * modules/crypto/des-tests (License): Likewise.
62395         * modules/crypto/gc-arctwo-tests (License): Likewise.
62396         * modules/crypto/gc-des-tests (License): Likewise.
62397         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62398         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62399         * modules/crypto/gc-md2-tests (License): Likewise.
62400         * modules/crypto/gc-md4-tests (License): Likewise.
62401         * modules/crypto/gc-md5-tests (License): Likewise.
62402         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62403         * modules/crypto/gc-rijndael-tests (License): Likewise.
62404         * modules/crypto/gc-sha1-tests (License): Likewise.
62405         * modules/crypto/gc-tests (License): Likewise.
62406         * modules/crypto/hmac-md5 (License): Likewise.
62407         * modules/crypto/hmac-sha1 (License): Likewise.
62408         * modules/crypto/md2-tests (License): Likewise.
62409         * modules/crypto/md4-tests (License): Likewise.
62410         * modules/crypto/md5 (License): Likewise.
62411         * modules/crypto/rijndael (License): Likewise.
62412         * modules/crypto/sha1 (License): Likewise.
62413         * modules/memxor (License): Likewise.
62414
62415 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62416         and Bruno Haible  <bruno@clisp.org>
62417
62418         * NEWS: Describe interface changes to human, xstrtol.
62419         * lib/human.h: Include <xstrtol.h>.
62420         (human_options): Return enum strtol_error, not int.  Remove
62421         bool arg; take int * instead.
62422         * lib/human.c: Don't include "gettext.h".
62423         (_): Remove; no longer used.
62424         Don't include <xstrtol.h>, since human.h does it.
62425         (human_options): Adjust to abovementioned interface changes.
62426         Do not report error to stderr; that's now the caller's
62427         responsibility.
62428         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62429         interface change.
62430         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62431         Str, Argument_type_string.  All uses changed.  Put " argument"
62432         in diagnostics to make them clearer.  Change wording of suffix
62433         message for clarity.
62434         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62435         Argument_type_string.
62436         (STRTOL_FATAL_WARN): Remove; no longer used.
62437         * modules/human (Depends-on): Remove gettext-h.
62438
62439 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62440
62441         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62442
62443 2007-07-31  Bruno Haible  <bruno@clisp.org>
62444
62445         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62446         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62447         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62448
62449 2007-07-31  Bruno Haible  <bruno@clisp.org>
62450
62451         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62452         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62453
62454 2007-07-30  Bruno Haible  <bruno@clisp.org>
62455
62456         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62457         * modules/c-ctype (License): Likewise.
62458         * modules/c-strcase (License): Likewise.
62459         * modules/check-version (License): Likewise.
62460         * modules/iconv (License): Likewise.
62461         * modules/iconv_open (License): Likewise.
62462         * modules/read-file (License): Likewise.
62463         * modules/striconv (License): Likewise.
62464         * modules/strverscmp (License): Likewise.
62465         * modules/vasprintf (License): Likewise.
62466         * modules/crypto/des (License): Likewise.
62467         * modules/crypto/gc (License): Likewise.
62468         * modules/crypto/gc-arcfour (License): Likewise.
62469         * modules/crypto/gc-arctwo (License): Likewise.
62470         * modules/crypto/gc-des (License): Likewise.
62471         * modules/crypto/gc-hmac-md5 (License): Likewise.
62472         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62473         * modules/crypto/gc-md2 (License): Likewise.
62474         * modules/crypto/gc-md4 (License): Likewise.
62475         * modules/crypto/gc-md5 (License): Likewise.
62476         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62477         * modules/crypto/gc-random (License): Likewise.
62478         * modules/crypto/gc-rijndael (License): Likewise.
62479         * modules/crypto/gc-sha1 (License): Likewise.
62480         * modules/crypto/md2 (License): Likewise.
62481         * modules/crypto/md4 (License): Likewise.
62482
62483 2007-07-30  Jim Meyering  <jim@meyering.net>
62484
62485         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62486         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62487         it has valid stat data.  This bug would cause du not to count the
62488         sizes of inaccessible directories.
62489         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62490         in <http://bugzilla.redhat.com/250077>.
62491
62492 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62493             Bruno Haible  <bruno@clisp.org>
62494
62495         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62496         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62497         #include_next, gives a diagnostic about it, but reports no error in
62498         the exit code.
62499         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62500
62501 2007-07-24  Ben Pfaff  <blp@gnu.org>
62502
62503         Improve name: "count-one-bits" is better than "popcount".
62504         * MODULES.html.sh: Update name.
62505         * lib/popcount.h: Renamed lib/count-one-bits.h.
62506         (popcount): Renamed count_one_bits.
62507         (popcountl): Renamed count_one_bits_l.
62508         (popcountll): Renamed count_one_bits_ll.
62509         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62510         * modules/popcount: Renamed module/count-one-bits.
62511         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62512         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62513
62514 2007-07-23  Ben Pfaff  <blp@gnu.org>
62515
62516         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62517         better code generation, and add U to large constants to avoid
62518         warnings, in non-GCC case.
62519         Suggested by Bruno Haible.
62520
62521 2007-07-23  Ben Pfaff  <blp@gnu.org>
62522
62523         * lib/popcount.h: Use verify_true instead of if...abort.
62524         * modules/popcount: Depend on verify module.
62525         Suggested by Jim Meyering.
62526
62527 2007-07-23  Bruno Haible  <bruno@clisp.org>
62528
62529         * gnulib-tool (func_import): Create a .cvsignore file also when the
62530         directory is not yet in CVS but the toplevel directory is. When
62531         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62532         Reported by Karl Berry.
62533
62534 2007-07-22  Ben Pfaff  <blp@gnu.org>
62535
62536         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62537         case.
62538         Suggested by Eric Blake.
62539
62540 2007-07-22  Ben Pfaff  <blp@gnu.org>
62541
62542         New module: popcount.
62543         * MODULES.html.sh: Add popcount.
62544         * modules/popcount: New file.
62545         * modules/popcount-tests: New file.
62546         * tests/test-popcount.c: New file.
62547         * lib/popcount.h: New file.
62548         * m4/popcount.m4: New file.
62549
62550 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62551
62552         * build-aux/announce-gen: Update to GPLv3.
62553
62554         * build-aux/config.guess: Update from config.
62555
62556 2007-07-21  Bruno Haible  <bruno@clisp.org>
62557
62558         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62559         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62560
62561 2007-07-20  Jim Meyering  <jim@meyering.net>
62562
62563         * check-module: Diagnose a self-dependency.
62564
62565 2007-07-19  Bruno Haible  <bruno@clisp.org>
62566
62567         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62568         empty.
62569         Reported by Eric Blake.
62570
62571 2007-07-18  Bruno Haible  <bruno@clisp.org>
62572
62573         * gnulib-tool: New options --po-base, --po-domain.
62574         (func_usage): Document them.
62575         (pobase, po_domain): New variables.
62576         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62577         DEFAULT_TEXT_DOMAIN.
62578         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62579         (func_import): Consider pobase and po_domain. Create a po/ directory.
62580         (func_create_testdir): Set pobase and po_domain to empty.
62581         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62582         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62583
62584 2007-07-18  Bruno Haible  <bruno@clisp.org>
62585
62586         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62587         EXTRA_DIST augmentation for files in build-aux/.
62588
62589 2007-07-16  Bruno Haible  <bruno@clisp.org>
62590
62591         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62592         * modules/getdelim (License): Likewise.
62593
62594 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62595
62596         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62597         * modules/d-type (License): Likewise.
62598         * modules/extensions (License): Likewise.
62599         * modules/fnmatch (License): Likewise.
62600         * modules/fseeko (License): Likewise.
62601         * modules/getaddrinfo (License): Likewise.
62602         * modules/getline (License): Likewise.
62603         * modules/getlogin_r (License): Likewise.
62604         * modules/getpass (License): Likewise.
62605         * modules/gettimeofday (License): Likewise.
62606         * modules/glob (License): Likewise.
62607         * modules/inet_ntop (License): Likewise.
62608         * modules/malloc (License): Likewise.
62609         * modules/malloca (License): Likewise.
62610         * modules/memmem (License): Likewise.
62611         * modules/mempcpy (License): Likewise.
62612         * modules/memset (License): Likewise.
62613         * modules/minmax (License): Likewise.
62614         * modules/mktime (License): Likewise.
62615         * modules/netinet_in (License): Likewise.
62616         * modules/pathmax (License): Likewise.
62617         * modules/poll (License): Likewise.
62618         * modules/regex (License): Likewise.
62619         * modules/snprintf (License): Likewise.
62620         * modules/stdbool (License): Likewise.
62621         * modules/stdint (License): Likewise.
62622         * modules/stdio (License): Likewise.
62623         * modules/strcase (License): Likewise.
62624         * modules/strcasestr (License): Likewise.
62625         * modules/strdup (License): Likewise.
62626         * modules/string (License): Likewise.
62627         * modules/strndup (License): Likewise.
62628         * modules/strnlen (License): Likewise.
62629         * modules/strpbrk (License): Likewise.
62630         * modules/strptime (License): Likewise.
62631         * modules/strsep (License): Likewise.
62632         * modules/sys_select (License): Likewise.
62633         * modules/sys_socket (License): Likewise.
62634         * modules/sys_stat (License): Likewise.
62635         * modules/sys_time (License): Likewise.
62636         * modules/time (License): Likewise.
62637         * modules/time_r (License): Likewise.
62638         * modules/timegm (License): Likewise.
62639         * modules/unistd (License): Likewise.
62640         * modules/vsnprintf (License): Likewise.
62641         * modules/wctype (License): Likewise.
62642
62643 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62644
62645         * modules/argz (License): LGPLv2+.
62646
62647 2007-07-15  Karl Berry  <karl@gnu.org>
62648
62649         * doc/gnulib.texi: revise node structure per new fdl.texi.
62650
62651 2007-07-14  Bruno Haible  <bruno@clisp.org>
62652
62653         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62654         the output file.
62655         * lib/uniname/uninames.h: Regenerated.
62656
62657 2007-07-14  Karl Berry  <karl@gnu.org>
62658
62659         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62660         omitting sectioning and index commands.
62661
62662 2007-07-13  Bruno Haible  <bruno@clisp.org>
62663
62664         New gnulib-tool option --more-symlinks.
62665         * gnulib-tool (func_usage): Document --more-symlinks.
62666         (do_copyrights): New variable.
62667         Recognize option --more-symlinks.
62668         (func_import): Don't add a copyright notice transform to
62669         sed_transform_lib_file if do_copyrights is empty.
62670
62671 2007-07-13  Bruno Haible  <bruno@clisp.org>
62672
62673         * lib/vasnprintf.c (decimal_point_char): Define also if
62674         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62675         && !NEED_PRINTF_DIRECTIVE_A.
62676         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62677         Gary V. Vaughan <gary@gnu.org>.
62678
62679 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62680
62681         * lib/inttypes_.h: Undo previous change, since it was fixed
62682         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62683
62684 2007-07-13  Bruno Haible  <bruno@clisp.org>
62685
62686         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62687         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62688
62689 2007-07-13  Jim Meyering  <jim@meyering.net>
62690
62691         df: Don't fail for Tru64's "file-on-file mount".
62692         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62693         so we fall through and use statfs instead.  Details here:
62694         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62695         Reported by Albert Chin.
62696
62697 2007-07-13  Bruno Haible  <bruno@clisp.org>
62698
62699         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62700         * modules/configmake (License): Likewise.
62701         * modules/gettext (License): Likewise.
62702         * modules/gettext-h (License): Likewise.
62703         * modules/include_next (License): Likewise.
62704         * modules/link-warning (License): Likewise.
62705         * modules/localcharset (License): Likewise.
62706         * modules/localename (License): Likewise.
62707         * modules/lock (License): Likewise.
62708         * modules/relocatable-lib-lgpl (License): Likewise.
62709         * modules/size_max (License): Likewise.
62710         * modules/vasnprintf (License): Likewise.
62711         * modules/wchar (License): Likewise.
62712         * modules/xsize (License): Likewise.
62713
62714 2007-07-13  Bruno Haible  <bruno@clisp.org>
62715
62716         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62717         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62718
62719 2007-07-12  Bruno Haible  <bruno@clisp.org>
62720
62721         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62722         in the modules files.
62723
62724 2007-07-11  Karl Berry  <karl@gnu.org>
62725
62726         * MODULES.html.sh (func_module): use
62727          sed -e '\|^'"${includefile}"'$|d'
62728          instead of /.../d, to avoid errors on $includefile's containing /.
62729
62730 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62731
62732         * gnulib-tool (func_import): Avoid duplication of --avoid
62733         statements
62734         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62735         names to `_' in variable names.
62736
62737 2007-07-10  Eric Blake  <ebb9@byu.net>
62738
62739         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62740         * NEWS: Document this change.
62741
62742 2007-07-08  Bruno Haible  <bruno@clisp.org>
62743
62744         Update to Unicode 5.0.
62745         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62746         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62747         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62748         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62749         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62750         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62751         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62752         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62753         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62754         U+10A3F, U+1D242..U+1D244.
62755         (nonspacing_table_ind): Update.
62756         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62757         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62758
62759 2007-07-08  Bruno Haible  <bruno@clisp.org>
62760
62761         Update to Unicode 5.0.
62762         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62763         code transform. Extend the name index field of unicode_name_to_code and
62764         unicode_code_to_name from 16 to 24 bits.
62765         * lib/uniname/uniname.c (unicode_character_name,
62766         unicode_name_character): Add the range 0x12xxx to the code transform.
62767         * lib/uniname/uninames.h: Regenerated.
62768         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62769
62770 2007-07-07  Bruno Haible  <bruno@clisp.org>
62771
62772         * modules/wcwidth-tests: New file.
62773         * tests/test-wcwidth.c: New file.
62774
62775         Work around MacOS X wcwidth() bug.
62776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62777         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62778         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62779         original wcwidth in non-UTF-8 locales.
62780         * modules/wcwidth (Depends-on): Add localcharset, streq,
62781         uniwidth/width.
62782         * doc/functions/wcwidth.texi: Update.
62783
62784 2007-07-07  Bruno Haible  <bruno@clisp.org>
62785
62786         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62787         (wcwidth): New declaration.
62788         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62789         macros.
62790         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62791         here. Prepare for creating <wchar.h> unconditionally.
62792         * modules/wchar (Depends-on): Add link-warning.
62793         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62794         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62795         * lib/wcwidth.h: Remove file.
62796         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62797         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62798         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62799         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62800         (Include): Replace wcwidth.h with <wchar.h>.
62801         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62802         * lib/mbchar.h: Don't include wcwidth.h.
62803         * lib/mbswidth.c: Likewise.
62804         * NEWS: Mention the change.
62805
62806 2007-07-07  Bruno Haible  <bruno@clisp.org>
62807
62808         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62809         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62810         definition with an external declaration.
62811         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62812         defined as a function. Remove AC_C_INLINE requirement.
62813         * modules/wcwidth (Files): Add lib/wcwidth.c.
62814         (Makefile.am): Remove redundant statement.
62815
62816 2007-07-07  Bruno Haible  <bruno@clisp.org>
62817
62818         * MODULES.html.sh (Unicode string functions): Add the new modules.
62819
62820         * tests/uniwidth/test-u32-strwidth.c: New file.
62821         * modules/uniwidth/u32-strwidth-tests: New file.
62822
62823         * lib/uniwidth/u32-strwidth.c: New file.
62824         * modules/uniwidth/u32-strwidth: New file.
62825
62826         * tests/uniwidth/test-u16-strwidth.c: New file.
62827         * modules/uniwidth/u16-strwidth-tests: New file.
62828
62829         * lib/uniwidth/u16-strwidth.c: New file.
62830         * modules/uniwidth/u16-strwidth: New file.
62831
62832         * tests/uniwidth/test-u8-strwidth.c: New file.
62833         * modules/uniwidth/u8-strwidth-tests: New file.
62834
62835         * lib/uniwidth/u8-strwidth.c: New file.
62836         * modules/uniwidth/u8-strwidth: New file.
62837
62838         * tests/uniwidth/test-u32-width.c: New file.
62839         * modules/uniwidth/u32-width-tests: New file.
62840
62841         * lib/uniwidth/u32-width.c: New file.
62842         * modules/uniwidth/u32-width: New file.
62843
62844         * tests/uniwidth/test-u16-width.c: New file.
62845         * modules/uniwidth/u16-width-tests: New file.
62846
62847         * lib/uniwidth/u16-width.c: New file.
62848         * modules/uniwidth/u16-width: New file.
62849
62850         * tests/uniwidth/test-u8-width.c: New file.
62851         * modules/uniwidth/u8-width-tests: New file.
62852
62853         * lib/uniwidth/u8-width.c: New file.
62854         * modules/uniwidth/u8-width: New file.
62855
62856         * tests/uniwidth/test-uc_width.c: New file.
62857         * modules/uniwidth/width-tests: New file.
62858
62859         * lib/uniwidth/width.c: New file, from GNU libiconv.
62860         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
62861         * modules/uniwidth/width: New file.
62862
62863         * lib/uniwidth.h: New file, from GNU libiconv.
62864         * modules/uniwidth/base: New file.
62865
62866 2007-07-07  Bruno Haible  <bruno@clisp.org>
62867
62868         * lib/uniname.h: New file, from GNU gettext.
62869         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
62870         * lib/uniname/uninames.h: New file, from GNU gettext.
62871         * lib/uniname/uniname.c: New file, from GNU gettext.
62872         * tests/uniname/test-uninames.sh: New file.
62873         * tests/uniname/test-uninames.c: New file, from GNU gettext.
62874         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
62875         * modules/uniname/base: New file.
62876         * modules/uniname/uniname: New file.
62877         * modules/uniname/uniname-tests: New file.
62878         * MODULES.html.sh (Unicode string functions): Add the new modules.
62879
62880 2007-07-06  Bruno Haible  <bruno@clisp.org>
62881
62882         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
62883
62884 2007-07-06  Bruno Haible  <bruno@clisp.org>
62885
62886         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
62887         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
62888         includes <cygwin/sys_time.h> which includes <sys/select.h> which
62889         include <sys/time.h>.
62890         Reported by Eric Blake.
62891
62892 2007-07-06  Eric Blake  <ebb9@byu.net>
62893
62894         Fix testing canonicalize on cygwin.
62895         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62896         Revert patch from 2007-06-19.
62897         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
62898         canonicalize module is also in use.
62899         * tests/test-canonicalize.c: New file.
62900         * tests/test-canonicalize.sh: Likewise.
62901         * modules/canonicalize-tests: Likewise.
62902
62903 2007-07-06  Jim Meyering  <jim@meyering.net>
62904
62905         * lib/getugroups.c (getugroups): Detect getgrent failure.
62906         Adjust comment to reflect reality: this function may return -1.
62907
62908 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62909
62910         * build-aux/bootstrap (TP_URL,get_translations): Update to use
62911         the new TP address.
62912         (usage): Fix typo
62913         (gnulib_mk): New variable.
62914
62915 2007-07-05  Jim Meyering  <jim@meyering.net>
62916
62917         Don't let endgrent clobber errno, no matter how improbable.
62918         * lib/getugroups.c (getugroups): Save and restore errno around
62919         endgrent call.
62920
62921         Close the group DB even when failing with 2^31 or more members.
62922         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
62923
62924 2007-07-04  Jim Meyering  <jim@meyering.net>
62925
62926         * lib/getugroups.h: New file.
62927         * lib/getugroups.c: Include "getugroups.h".
62928         Remove uses of "register" keyword.
62929         Move local variable, "cp", down into scope where used.
62930         Give "username" parameter the "const" attribute.
62931         * modules/getugroups (Files): Add lib/getugroups.h
62932
62933 2007-07-04  Karl Berry  <karl@gnu.org>
62934
62935         * MODULES.html.sh (func_all_modules): Complete rename of
62936         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
62937
62938 2007-07-02  Bruno Haible  <bruno@clisp.org>
62939
62940         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
62941         mode, when inttypes.h comes from gnulib.
62942         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62943
62944 2007-07-02  Simon Josefsson  <simon@josefsson.org>
62945
62946         * NEWS: Mention lgpl module name change.
62947
62948         * modules/lgpl-2.1: Renamed from lgpl.
62949
62950         * NEWS: Mention gpl module name change.
62951
62952         * modules/gpl-3.0: New file, based on gpl-2.0.
62953
62954         * modules/gpl-2.0: Renamed from gpl.
62955
62956         * modules/gpl: Fix filename, doc/gpl.texi is now found at
62957         doc/gpl-2.0.texi.
62958
62959 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62960
62961         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
62962         #define __STDC_LIMIT_MACROS temporarily while including
62963         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
62964         Problem reported by Joel E. Denny in
62965         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
62966
62967 2007-07-01  Bruno Haible  <bruno@clisp.org>
62968
62969         * lib/unistdio.h: New file.
62970         * lib/unistdio/u-asnprintf.h: New file.
62971         * lib/unistdio/u-asprintf.h: New file.
62972         * lib/unistdio/u-printf-args.c: New file.
62973         * lib/unistdio/u-printf-args.h: New file.
62974         * lib/unistdio/u-printf-parse.h: New file.
62975         * lib/unistdio/u-snprintf.h: New file.
62976         * lib/unistdio/u-sprintf.h: New file.
62977         * lib/unistdio/u-vasprintf.h: New file.
62978         * lib/unistdio/u-vsnprintf.h: New file.
62979         * lib/unistdio/u-vsprintf.h: New file.
62980         * lib/unistdio/ulc-asnprintf.c: New file.
62981         * lib/unistdio/ulc-asprintf.c: New file.
62982         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
62983         * lib/unistdio/ulc-printf-parse.c: New file.
62984         * lib/unistdio/ulc-snprintf.c: New file.
62985         * lib/unistdio/ulc-sprintf.c: New file.
62986         * lib/unistdio/ulc-vasnprintf.c: New file.
62987         * lib/unistdio/ulc-vasprintf.c: New file.
62988         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
62989         * lib/unistdio/ulc-vsnprintf.c: New file.
62990         * lib/unistdio/ulc-vsprintf.c: New file.
62991         * lib/unistdio/u8-asnprintf.c: New file.
62992         * lib/unistdio/u8-asprintf.c: New file.
62993         * lib/unistdio/u8-printf-parse.c: New file.
62994         * lib/unistdio/u8-snprintf.c: New file.
62995         * lib/unistdio/u8-sprintf.c: New file.
62996         * lib/unistdio/u8-vasnprintf.c: New file.
62997         * lib/unistdio/u8-vasprintf.c: New file.
62998         * lib/unistdio/u8-vsnprintf.c: New file.
62999         * lib/unistdio/u8-vsprintf.c: New file.
63000         * lib/unistdio/u8-u8-asnprintf.c: New file.
63001         * lib/unistdio/u8-u8-asprintf.c: New file.
63002         * lib/unistdio/u8-u8-snprintf.c: New file.
63003         * lib/unistdio/u8-u8-sprintf.c: New file.
63004         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63005         * lib/unistdio/u8-u8-vasprintf.c: New file.
63006         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63007         * lib/unistdio/u8-u8-vsprintf.c: New file.
63008         * lib/unistdio/u16-asnprintf.c: New file.
63009         * lib/unistdio/u16-asprintf.c: New file.
63010         * lib/unistdio/u16-printf-parse.c: New file.
63011         * lib/unistdio/u16-snprintf.c: New file.
63012         * lib/unistdio/u16-sprintf.c: New file.
63013         * lib/unistdio/u16-vasnprintf.c: New file.
63014         * lib/unistdio/u16-vasprintf.c: New file.
63015         * lib/unistdio/u16-vsnprintf.c: New file.
63016         * lib/unistdio/u16-vsprintf.c: New file.
63017         * lib/unistdio/u16-u16-asnprintf.c: New file.
63018         * lib/unistdio/u16-u16-asprintf.c: New file.
63019         * lib/unistdio/u16-u16-snprintf.c: New file.
63020         * lib/unistdio/u16-u16-sprintf.c: New file.
63021         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63022         * lib/unistdio/u16-u16-vasprintf.c: New file.
63023         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63024         * lib/unistdio/u16-u16-vsprintf.c: New file.
63025         * lib/unistdio/u32-asnprintf.c: New file.
63026         * lib/unistdio/u32-asprintf.c: New file.
63027         * lib/unistdio/u32-printf-parse.c: New file.
63028         * lib/unistdio/u32-snprintf.c: New file.
63029         * lib/unistdio/u32-sprintf.c: New file.
63030         * lib/unistdio/u32-vasnprintf.c: New file.
63031         * lib/unistdio/u32-vasprintf.c: New file.
63032         * lib/unistdio/u32-vsnprintf.c: New file.
63033         * lib/unistdio/u32-vsprintf.c: New file.
63034         * lib/unistdio/u32-u32-asnprintf.c: New file.
63035         * lib/unistdio/u32-u32-asprintf.c: New file.
63036         * lib/unistdio/u32-u32-snprintf.c: New file.
63037         * lib/unistdio/u32-u32-sprintf.c: New file.
63038         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63039         * lib/unistdio/u32-u32-vasprintf.c: New file.
63040         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63041         * lib/unistdio/u32-u32-vsprintf.c: New file.
63042         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63043         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63044         * tests/unistdio/test-ulc-printf1.h: New file.
63045         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63046         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63047         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63048         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63049         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63050         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63051         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63052         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63053         * tests/unistdio/test-u8-asnprintf1.c: New file.
63054         * tests/unistdio/test-u8-asnprintf1.h: New file.
63055         * tests/unistdio/test-u8-printf1.h: New file.
63056         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63057         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63058         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63059         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63060         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63061         * tests/unistdio/test-u8-vasprintf1.c: New file.
63062         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63063         * tests/unistdio/test-u8-vsprintf1.c: New file.
63064         * tests/unistdio/test-u16-asnprintf1.c: New file.
63065         * tests/unistdio/test-u16-asnprintf1.h: New file.
63066         * tests/unistdio/test-u16-printf1.h: New file.
63067         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63068         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63069         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63070         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63071         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63072         * tests/unistdio/test-u16-vasprintf1.c: New file.
63073         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63074         * tests/unistdio/test-u16-vsprintf1.c: New file.
63075         * tests/unistdio/test-u32-asnprintf1.c: New file.
63076         * tests/unistdio/test-u32-asnprintf1.h: New file.
63077         * tests/unistdio/test-u32-printf1.h: New file.
63078         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63079         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63080         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63081         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63082         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63083         * tests/unistdio/test-u32-vasprintf1.c: New file.
63084         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63085         * tests/unistdio/test-u32-vsprintf1.c: New file.
63086         * modules/unistdio/base: New file.
63087         * modules/unistdio/u-printf-args: New file.
63088         * modules/unistdio/ulc-asnprintf: New file.
63089         * modules/unistdio/ulc-asprintf: New file.
63090         * modules/unistdio/ulc-fprintf: New file.
63091         * modules/unistdio/ulc-printf-parse: New file.
63092         * modules/unistdio/ulc-snprintf: New file.
63093         * modules/unistdio/ulc-sprintf: New file.
63094         * modules/unistdio/ulc-vasnprintf: New file.
63095         * modules/unistdio/ulc-vasprintf: New file.
63096         * modules/unistdio/ulc-vfprintf: New file.
63097         * modules/unistdio/ulc-vsnprintf: New file.
63098         * modules/unistdio/ulc-vsprintf: New file.
63099         * modules/unistdio/u8-asnprintf: New file.
63100         * modules/unistdio/u8-asprintf: New file.
63101         * modules/unistdio/u8-printf-parse: New file.
63102         * modules/unistdio/u8-snprintf: New file.
63103         * modules/unistdio/u8-sprintf: New file.
63104         * modules/unistdio/u8-vasnprintf: New file.
63105         * modules/unistdio/u8-vasprintf: New file.
63106         * modules/unistdio/u8-vsnprintf: New file.
63107         * modules/unistdio/u8-vsprintf: New file.
63108         * modules/unistdio/u8-u8-asnprintf: New file.
63109         * modules/unistdio/u8-u8-asprintf: New file.
63110         * modules/unistdio/u8-u8-snprintf: New file.
63111         * modules/unistdio/u8-u8-sprintf: New file.
63112         * modules/unistdio/u8-u8-vasnprintf: New file.
63113         * modules/unistdio/u8-u8-vasprintf: New file.
63114         * modules/unistdio/u8-u8-vsnprintf: New file.
63115         * modules/unistdio/u8-u8-vsprintf: New file.
63116         * modules/unistdio/u16-asnprintf: New file.
63117         * modules/unistdio/u16-asprintf: New file.
63118         * modules/unistdio/u16-printf-parse: New file.
63119         * modules/unistdio/u16-snprintf: New file.
63120         * modules/unistdio/u16-sprintf: New file.
63121         * modules/unistdio/u16-vasnprintf: New file.
63122         * modules/unistdio/u16-vasprintf: New file.
63123         * modules/unistdio/u16-vsnprintf: New file.
63124         * modules/unistdio/u16-vsprintf: New file.
63125         * modules/unistdio/u16-u16-asnprintf: New file.
63126         * modules/unistdio/u16-u16-asprintf: New file.
63127         * modules/unistdio/u16-u16-snprintf: New file.
63128         * modules/unistdio/u16-u16-sprintf: New file.
63129         * modules/unistdio/u16-u16-vasnprintf: New file.
63130         * modules/unistdio/u16-u16-vasprintf: New file.
63131         * modules/unistdio/u16-u16-vsnprintf: New file.
63132         * modules/unistdio/u16-u16-vsprintf: New file.
63133         * modules/unistdio/u32-asnprintf: New file.
63134         * modules/unistdio/u32-asprintf: New file.
63135         * modules/unistdio/u32-printf-parse: New file.
63136         * modules/unistdio/u32-snprintf: New file.
63137         * modules/unistdio/u32-sprintf: New file.
63138         * modules/unistdio/u32-vasnprintf: New file.
63139         * modules/unistdio/u32-vasprintf: New file.
63140         * modules/unistdio/u32-vsnprintf: New file.
63141         * modules/unistdio/u32-vsprintf: New file.
63142         * modules/unistdio/u32-u32-asnprintf: New file.
63143         * modules/unistdio/u32-u32-asprintf: New file.
63144         * modules/unistdio/u32-u32-snprintf: New file.
63145         * modules/unistdio/u32-u32-sprintf: New file.
63146         * modules/unistdio/u32-u32-vasnprintf: New file.
63147         * modules/unistdio/u32-u32-vasprintf: New file.
63148         * modules/unistdio/u32-u32-vsnprintf: New file.
63149         * modules/unistdio/u32-u32-vsprintf: New file.
63150         * modules/unistdio/ulc-asnprintf-tests: New file.
63151         * modules/unistdio/ulc-vasnprintf-tests: New file.
63152         * modules/unistdio/ulc-vasprintf-tests: New file.
63153         * modules/unistdio/ulc-vsnprintf-tests: New file.
63154         * modules/unistdio/ulc-vsprintf-tests: New file.
63155         * modules/unistdio/u8-asnprintf-tests: New file.
63156         * modules/unistdio/u8-vasnprintf-tests: New file.
63157         * modules/unistdio/u8-vasprintf-tests: New file.
63158         * modules/unistdio/u8-vsnprintf-tests: New file.
63159         * modules/unistdio/u8-vsprintf-tests: New file.
63160         * modules/unistdio/u16-asnprintf-tests: New file.
63161         * modules/unistdio/u16-vasnprintf-tests: New file.
63162         * modules/unistdio/u16-vasprintf-tests: New file.
63163         * modules/unistdio/u16-vsnprintf-tests: New file.
63164         * modules/unistdio/u16-vsprintf-tests: New file.
63165         * modules/unistdio/u32-asnprintf-tests: New file.
63166         * modules/unistdio/u32-vasnprintf-tests: New file.
63167         * modules/unistdio/u32-vasprintf-tests: New file.
63168         * modules/unistdio/u32-vsnprintf-tests: New file.
63169         * modules/unistdio/u32-vsprintf-tests: New file.
63170         * MODULES.html.sh (Unicode string functions): Add the new modules.
63171
63172 2007-07-01  Bruno Haible  <bruno@clisp.org>
63173
63174         * lib/sprintf.c (sprintf): Limit the available length estimation,
63175         to avoid address wraparound.
63176         * lib/vsprintf.c (vsprintf): Likewise.
63177         * modules/sprintf-posix (Dependencies): Add stdint.
63178         * modules/vsprintf-posix (Dependencies): Likewise.
63179
63180 2007-07-01  Bruno Haible  <bruno@clisp.org>
63181
63182         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63183         Windows PATH as well. Conservative double-quoting. Comments.
63184
63185 2007-07-01  Bruno Haible  <bruno@clisp.org>
63186             Eric Blake  <ebb9@byu.net>
63187             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63188
63189         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63190         empty components in $PATH, denoting '.'.
63191
63192 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63193
63194         * gnulib-tool: Fix indentation.
63195         (func_create_megatestdir): Likewise.
63196         Report by Bruno Haible.
63197
63198 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63199
63200         Sync from Automake.
63201         * build-aux/gnupload: Fix shell portability issues with for loops.
63202         Report by Karl Berry.
63203
63204 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63205
63206         * build-aux/maint.mk (POURL): Use translationproject.org.
63207
63208 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63209             Bruno Haible  <bruno@clisp.org>
63210
63211         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63212         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63213         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63214         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63215         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63216
63217 2007-06-27  Bruno Haible  <bruno@clisp.org>
63218
63219         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63220         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63221
63222 2007-06-26  Karl Berry  <karl@gnu.org>
63223
63224         * MODULES.html.sh: remove xreadlink-with-size.
63225
63226 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63227
63228         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63229         method that I hope also handles the double-include problem noted
63230         by Bruno Haible in
63231         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63232
63233 2007-06-23  Bruno Haible  <bruno@clisp.org>
63234
63235         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63236         Don't let the 'mostlyclean' target fail if the last subdirectory could
63237         not be removed.
63238         Reported by Karl Berry.
63239
63240 2007-06-23  Bruno Haible  <bruno@clisp.org>
63241
63242         * gnulib-tool (echo): Add a speedier workaround for ksh.
63243         * tests/test-echo.sh: Likewise.
63244
63245 2007-06-23  Bruno Haible  <bruno@clisp.org>
63246
63247         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63248         * tests/test-echo.sh: Likewise.
63249
63250 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63251
63252         * gnulib-tool (IFS): Initialize early, so we don't set it to
63253         empty later.
63254         (self_abspathname): Rewrite algorithm to set it, reindent.
63255         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63256         (func_create_megatestdir): Merge some sed scripts.
63257
63258 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63259
63260         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63261         exposed by Sun Studio 11 cc on Solaris 8.
63262
63263 2007-06-22  Bruno Haible  <bruno@clisp.org>
63264
63265         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63266         backslashes.
63267         * tests/test-echo.sh: New file.
63268
63269 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63270
63271         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63272         simplify `sed_replace_build_aux' scripts, they are portable but
63273         echoing them with `echo' is not.
63274         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63275
63276 2007-06-21  Karl Berry  <karl@gnu.org>
63277
63278         * config/srclist.txt: guess we can't handle the licenses via
63279         srclist at the moment.
63280
63281 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63282
63283         * MODULES.html.sh: Add include_next.
63284         * modules/include_next: New file.
63285
63286 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63287
63288         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63289         INCLUDE_NEXT.
63290         (gl_CHECK_NEXT_HEADERS): New macro.
63291         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63292         the obsolescent gl_ABSOLUTE_HEADER.
63293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63294         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63295         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63296         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63297         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63298         * m4/math_h.m4 (gl_MATH_H): Likewise.
63299         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63300         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63301         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63302         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63303         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63304         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63305         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63306         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63307         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63308         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63309         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63310         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63311         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63312         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63313         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63314         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63315         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63316         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63317         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63318         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63319         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63320         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63321         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63322         * lib/float_.h: Likewise.
63323         * lib/inttypes_.h: Likewise.
63324         * lib/math_.h: Likewise.
63325         * lib/search_.h: Likewise.
63326         * lib/signal_.h: Likewise.
63327         * lib/stdint_.h: Likewise.
63328         * lib/stdio_.h: Likewise.
63329         * lib/stdlib_.h: Likewise.
63330         * lib/string_.h: Likewise.
63331         * lib/sys_stat_.h: Likewise.
63332         * lib/sys_time_.h: Likewise.
63333         * lib/time_.h: Likewise.
63334         * lib/unistd_.h: Likewise.
63335         * lib/wchar_.h: Likewise.
63336         * lib/wctype_.h: Likewise.
63337         * lib/dirent_.h: Likewise.
63338         * lib/iconv_.h: Likewise.
63339         * lib/locale_.h: Likewise.
63340         * lib/netinet_in_.h: Likewise.
63341         * lib/sys_select_.h: Likewise.
63342         * lib/sys_socket_.h: Likewise.
63343         * lib/sysexits_.h: Likewise.
63344         * modules/fcntl (Depends-on): Depend on include_next, not
63345         absolute_header.
63346         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63347         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63348         * modules/fchdir: Likewise.
63349         * modules/float: Likewise.
63350         * modules/iconv_open: Likewise.
63351         * modules/inttypes: Likewise.
63352         * modules/locale: Likewise.
63353         * modules/math: Likewise.
63354         * modules/netinet_in: Likewise.
63355         * modules/search: Likewise.
63356         * modules/signal: Likewise.
63357         * modules/stdint: Likewise.
63358         * modules/stdio: Likewise.
63359         * modules/stdlib: Likewise.
63360         * modules/string: Likewise.
63361         * modules/sys_select: Likewise.
63362         * modules/sys_socket: Likewise.
63363         * modules/sys_stat: Likewise.
63364         * modules/sys_time: Likewise.
63365         * modules/sysexits: Likewise.
63366         * modules/time: Likewise.
63367         * modules/unistd: Likewise.
63368         * modules/wchar: Likewise.
63369         * modules/wctype: Likewise.
63370         * modules/sys_stat: Change maintainer to "all".
63371         * modules/unistd: Likewise.
63372
63373 2007-06-20  Karl Berry  <karl@gnu.org>
63374
63375         * config/srclist.txt: track www changes in license files.
63376
63377 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63378
63379         * build-aux/bootstrap: Remove stray dot.
63380         Make sure build_aux settings are honored when linking
63381         gnulib_extra_files.
63382
63383 2007-06-19  Eric Blake  <ebb9@byu.net>
63384
63385         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63386         Allow compilation on cygwin.
63387
63388 2007-06-19  Jim Meyering  <jim@meyering.net>
63389
63390         xreadlink-with-size: Remove module.  No longer used.
63391         Ex-callers now use xreadlink or mreadlink-with-size.
63392         * modules/xreadlink-with-size: Remove module.
63393         * lib/xreadlink-with-size.c: Remove file.
63394         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63395         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63396         just before the function definition *is* accurate.
63397
63398         Eliminate one way canonicalize_filename_mode could exit.
63399         * lib/canonicalize.c (canonicalize_filename_mode):
63400         Use mreadlink_with_size, not xreadlink_with_size.
63401
63402 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63403
63404         Detect porting problems to FreeBSD/arm, which has time_t wider than
63405         long int.  Original problem reported for GNU diff by Xin Li in
63406         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63407         * modules/getdate (Depends-on): Add intprops, verify.
63408         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63409         is an integer type no wider than long int.
63410
63411 2007-06-18  Jim Meyering  <jim@meyering.net>
63412
63413         New module: mreadlink-with-size.
63414         * MODULES.html.sh: Add mreadlink-with-size.
63415         * modules/mreadlink-with-size: New module
63416         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63417         not xreadlink-with-size.
63418         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63419
63420 2007-06-16  Bruno Haible  <bruno@clisp.org>
63421
63422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63423         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63424         Reported by Gary V. Vaughan <gary@gnu.org>.
63425
63426 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63427
63428         Revamp lchown so that it lives in unistd.h where it belongs.
63429         * lib/lchown.h: Remove.
63430         * lib/dirchownmod.c: Don't include lib/lchown.h.
63431         * lib/fchownat.c: Likewise.
63432         * lib/openat.c: Likewise.
63433         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63434         does not follow symlinks.
63435         (EOPNOTSUPP): Define if not defined.
63436         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63437         is defined to 0.
63438         (lchown): New decl.
63439         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63440         Do not check for lchown decl.
63441         Set REPLACE_LCHOWN.
63442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63443         REPLACE_LCHOWN.
63444         * modules/chown: Make it clear it follows symlinks.
63445         * modules/lchown: Make it clear it doesn't follow symlinks.
63446         (Files): Remove lib/lchown.h
63447         (Depends-on): Add unistd.
63448         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63449         (Include): Include <unistd.h>, not "lchown.h".
63450         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63451         REPLACE_LCHOWN.
63452
63453 2007-06-15  Jim Meyering  <jim@meyering.net>
63454
63455         Change license (GPL to LGPL) of fsusage and dependents.
63456         * modules/fsusage (License): Change to LGPL.
63457         * modules/full-read (License): Likewise.
63458         * modules/full-write (License): Likewise.
63459         * modules/safe-read (License): Likewise.
63460         * modules/safe-write (License): Likewise.
63461
63462 2007-06-14  Ben Pfaff  <blp@gnu.org>
63463
63464         Missing part of allocsa -> malloca transition.
63465         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63466         gl_MALLOCA.
63467
63468 2007-06-12  Bruno Haible  <bruno@clisp.org>
63469
63470         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63471         to ia64, x86_64, i386.
63472         Reported by Eric Blake.
63473
63474 2007-06-12  Bruno Haible  <bruno@clisp.org>
63475
63476         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63477         cross-compiling to x86_64.
63478
63479 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63480
63481         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63482         glitch reported by Ralf Wildenhues in
63483         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63484
63485         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63486         Vin Shelton.
63487
63488 2007-06-11  Bruno Haible  <bruno@clisp.org>
63489
63490         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63491         replacement string.
63492         Reported by Eric Blake.
63493
63494 2007-06-10  Bruno Haible  <bruno@clisp.org>
63495
63496         Prepare vasnprintf code for use with Unicode strings.
63497         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63498         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63499         TYPE_U32_STRING.
63500         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63501         a_u32_string variants.
63502         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63503         * lib/printf-args.c: Don't include config.h and the specification
63504         header if PRINTF_FETCHARGS is already defined.
63505         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63506         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63507         TYPE_U16_STRING, TYPE_U32_STRING.
63508         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63509         u16_directive, u16_directives, u32_directive, u32_directives): New
63510         types.
63511         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63512         New declarations.
63513         * lib/printf-parse.c: Don't include config.h and the specification
63514         header if PRINTF_PARSE is already defined. Eliminate the set of
63515         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63516         them now. Include c-ctype.h.
63517         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63518         directive and CHAR_T_ONLY_ASCII.
63519         * lib/vasnprintf.c: Don't include config.h and the specification header
63520         if VASNPRINTF is already defined.
63521         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63522         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63523         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63524         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63525         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63526         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63527         code accordingly.
63528         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63529         pad_ourselves also in this case, with the 'c' and 's' directives, and
63530         with a different notion of "width".
63531         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63532
63533 2007-06-10  Bruno Haible  <bruno@clisp.org>
63534
63535         * modules/unistr/u32-mbsnlen: New file.
63536         * lib/unistr/u32-mbsnlen.c: New file.
63537
63538         * modules/unistr/u16-mbsnlen: New file.
63539         * lib/unistr/u16-mbsnlen.c: New file.
63540
63541         * modules/unistr/u8-mbsnlen: New file.
63542         * lib/unistr/u8-mbsnlen.c: New file.
63543
63544         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63545         declarations.
63546
63547 2007-06-10  Bruno Haible  <bruno@clisp.org>
63548
63549         * lib/string_.h (mbsnlen): New declaration.
63550         * lib/mbsnlen.c: New file.
63551         * m4/mbsnlen.m4: New file.
63552         * modules/mbsnlen: New file.
63553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63554         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63555         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63556
63557 2007-06-10  Bruno Haible  <bruno@clisp.org>
63558
63559         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63560
63561 2007-06-10  Bruno Haible  <bruno@clisp.org>
63562
63563         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63564         * lib/mbuiter.h: Likewise.
63565
63566 2007-06-10  Bruno Haible  <bruno@clisp.org>
63567
63568         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63569         declaration.
63570
63571 2007-06-10  Karl Berry  <karl@gnu.org>
63572
63573         * config/srclist.txt: remove gettext entries, Bruno prefers
63574         to update individually.
63575
63576 2007-06-10  Bruno Haible  <bruno@clisp.org>
63577
63578         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63579         'maxlen'. Ensure only length + width bytes are allocated, not
63580         length + 1 + width.
63581
63582 2007-06-09  Bruno Haible  <bruno@clisp.org>
63583
63584         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63585         (CHAR_T): Remove macro.
63586         (VASNPRINTF): Update.
63587
63588 2007-06-09  Bruno Haible  <bruno@clisp.org>
63589
63590         * MODULES.html.sh (Unicode string functions): Add the new modules.
63591
63592         * modules/uniconv/u32-conv-to-enc: New file.
63593         * lib/uniconv/u32-conv-to-enc.c: New file.
63594         * modules/uniconv/u32-conv-to-enc-tests: New file.
63595         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63596
63597         * modules/uniconv/u16-conv-to-enc: New file.
63598         * lib/uniconv/u16-conv-to-enc.c: New file.
63599         * lib/uniconv/u-conv-to-enc.h: New file.
63600         * modules/uniconv/u16-conv-to-enc-tests: New file.
63601         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63602
63603         * modules/uniconv/u8-conv-to-enc: New file.
63604         * lib/uniconv/u8-conv-to-enc.c: New file.
63605         * modules/uniconv/u8-conv-to-enc-tests: New file.
63606         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63607
63608         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63609         u32_conv_to_encoding): New declarations.
63610
63611 2007-06-09  Bruno Haible  <bruno@clisp.org>
63612
63613         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63614
63615 2007-06-09  Bruno Haible  <bruno@clisp.org>
63616
63617         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63618         * modules/malloca: Renamed from modules/allocsa, updated.
63619         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63620         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63621         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63622         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63623         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63624         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63625         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63626         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63627         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63628         * modules/c-strcasestr (Depends-on): Update.
63629         * lib/c-strcasestr.c: Update.
63630         * modules/c-strstr (Depends-on): Update.
63631         * lib/c-strstr.c: Update.
63632         * modules/canonicalize-lgpl (Depends-on): Update.
63633         * lib/canonicalize-lgpl.c: Update.
63634         * modules/clean-temp (Depends-on): Update.
63635         * lib/clean-temp.c: Update.
63636         * modules/csharpcomp (Depends-on): Update.
63637         * lib/csharpcomp.c: Update.
63638         * modules/csharpexec (Depends-on): Update.
63639         * lib/csharpexec.c: Update.
63640         * modules/javacomp (Depends-on): Update.
63641         * lib/javacomp.c: Update.
63642         * modules/javaexec (Depends-on): Update.
63643         * lib/javaexec.c: Update.
63644         * modules/mbscasestr (Depends-on): Update.
63645         * lib/mbscasestr.c: Update.
63646         * modules/mbsstr (Depends-on): Update.
63647         * lib/mbsstr.c: Update.
63648         * modules/setenv (Depends-on): Update.
63649         * lib/setenv.c: Update.
63650         * modules/strcasestr (Depends-on): Update.
63651         * lib/strcasestr.c: Update.
63652         * modules/striconveha (Depends-on): Update.
63653         * lib/striconveha.c: Update.
63654         * modules/relocatable-prog-wrapper (Files): Update.
63655         * lib/relocwrapper.c: Update.
63656         * build-aux/install-reloc: Update.
63657         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63658
63659 2007-06-08  Bruno Haible  <bruno@clisp.org>
63660
63661         Port to uClibc.
63662         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63663         * lib/fpurge.c (fpurge): Likewise.
63664         * lib/freading.c (freading): Likewise.
63665         * lib/fseeko.c (rpl_fseeko): Likewise.
63666         * lib/fseterr.c (fseterr): Likewise.
63667         * lib/fwriting.c (fwriting): Likewise.
63668         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63669
63670 2007-06-08  Bruno Haible  <bruno@clisp.org>
63671
63672         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63673         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63674         * modules/gettext (Files): Add m4/intlmacosx.m4.
63675
63676 2007-06-07  Bruno Haible  <bruno@clisp.org>
63677
63678         * modules/localename-tests: New file.
63679         * tests/test-localename.c: New file.
63680
63681         New module 'localename'.
63682         * lib/localename.h: New file.
63683         * lib/localename.c: New file, from GNU gettext.
63684         * m4/localename.m4: New file.
63685         * modules/localename: New file.
63686
63687 2007-06-07  Bruno Haible  <bruno@clisp.org>
63688
63689         Work around the lack of <wchar.h> on some builds of uClibc.
63690         * doc/headers/wchar.texi: Update.
63691         * lib/wchar_.h: Include <wchar.h> only if it exists.
63692         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63693         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63694         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63695         doesn't exist.
63696         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63697         * modules/mbfile (Depends-on): Add wchar.
63698         * modules/mbiter (Depends-on): Likewise.
63699         * modules/mbuiter (Depends-on): Likewise.
63700         Reported by Simon Josefsson.
63701
63702 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63703
63704         Work around problem reported by Steven M. Schweda in
63705         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63706         Tru64 5.1B with the Compaq compiler environment installed declares
63707         an 'isblank' function but does not define it in the C library.
63708         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63709         * lib/regex_internal.h (isblank): Likewise.
63710         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63711         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63712
63713 2007-06-05  Bruno Haible  <bruno@clisp.org>
63714
63715         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63716         ia64.
63717         * modules/printf-safe: New file.
63718         * modules/fprintf-posix (Depends-on): Add printf-safe.
63719         * modules/printf-posix (Depends-on): Likewise.
63720         * modules/snprintf-posix (Depends-on): Likewise.
63721         * modules/sprintf-posix (Depends-on): Likewise.
63722         * modules/vasnprintf-posix (Depends-on): Likewise.
63723         * modules/vasprintf-posix (Depends-on): Likewise.
63724         * modules/vfprintf-posix (Depends-on): Likewise.
63725         * modules/vprintf-posix (Depends-on): Likewise.
63726         * modules/vsnprintf-posix (Depends-on): Likewise.
63727         * modules/vsprintf-posix (Depends-on): Likewise.
63728         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63729         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63730         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63731         "no" on i386, x86_64, ia64.
63732         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63733         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63734         on i386, x86_64, ia64.
63735         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63736         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63737         on i386, x86_64, ia64.
63738         * tests/test-vasnprintf-posix.c: Include float.h.
63739         (LDBL80_WORDS): New macro.
63740         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63741         on i386, x86_64, ia64.
63742         * tests/test-vasprintf-posix.c: Include float.h.
63743         (LDBL80_WORDS): New macro.
63744         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63745         on i386, x86_64, ia64.
63746         * tests/test-snprintf-posix.c: Include float.h.
63747         * tests/test-sprintf-posix.c: Likewise.
63748         * tests/test-vsnprintf-posix.c: Likewise.
63749         * tests/test-vsprintf-posix.c: Likewise.
63750
63751 2007-06-05  Bruno Haible  <bruno@clisp.org>
63752
63753         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63754         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63755         non-IEEE numbers on i386, x86_64, ia64.
63756         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63757         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63758         * tests/test-isnanl.h: Include float.h.
63759         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63760
63761 2007-06-05  Bruno Haible  <bruno@clisp.org>
63762
63763         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63764         also the %a / %A. Handle the %a / %A code before this extra handling.
63765
63766 2007-06-05  Bruno Haible  <bruno@clisp.org>
63767
63768         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63769         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63770
63771 2007-06-05  Bruno Haible  <bruno@clisp.org>
63772
63773         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63774         typo in variable name.
63775
63776 2007-06-05  Eric Blake  <ebb9@byu.net>
63777
63778         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63779         Reported by Simon Josefsson.
63780
63781 2007-06-04  Bruno Haible  <bruno@clisp.org>
63782
63783         Avoid test failures on some PowerPC platforms.
63784         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63785         Define differently for PowerPC.
63786         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63787         Reported by Gary V. Vaughan <gary@gnu.org>.
63788
63789 2007-06-02  Bruno Haible  <bruno@clisp.org>
63790
63791         Fix test-stdint failure on FreeBSD/ia64.
63792         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63793         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63794         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63795         * doc/headers/stdint.texi: Update.
63796
63797 2007-06-01  Bruno Haible  <bruno@clisp.org>
63798
63799         * tests/test-binary-io.c (main): Pass a third argument to open().
63800         Reported by Gary V. Vaughan <gary@gnu.org>.
63801
63802 2007-06-01  Bruno Haible  <bruno@clisp.org>
63803
63804         * doc/functions/frexpl.texi: Update for mingw.
63805
63806 2007-06-01  Bruno Haible  <bruno@clisp.org>
63807
63808         * tests/test-lseek.c (main): Disable test of errno for invalid third
63809         argument.
63810         * doc/functions/lseek.texi: Update.
63811         Reported by Gary V. Vaughan <gary@gnu.org>.
63812
63813 2007-05-28  Bruno Haible  <bruno@clisp.org>
63814
63815         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63816
63817 2007-05-31  Eric Blake  <ebb9@byu.net>
63818
63819         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63820         cross compiling.
63821
63822 2007-05-30  Eric Blake  <ebb9@byu.net>
63823         and Bruno Haible  <bruno@clisp.org>
63824
63825         Work around mingw test failures exposed by m4-1.4.9b.
63826         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
63827         * tests/test-unistd.c: Disable uid_t and git_t tests for the
63828         moment.
63829
63830 2007-05-30  Bruno Haible  <bruno@clisp.org>
63831
63832         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
63833         assuming that they are closed. Needed on HP-UX 11.
63834
63835 2007-05-29  Bruno Haible  <bruno@clisp.org>
63836
63837         Fix a problem with #include_next.
63838         * lib/dirent_.h: Split the double-inclusion guard.
63839         * lib/fcntl_.h: Likewise.
63840         * lib/float_.h: Likewise.
63841         * lib/iconv_.h: Likewise.
63842         * lib/inttypes_.h: Likewise.
63843         * lib/locale_.h: Likewise.
63844         * lib/math_.h: Likewise.
63845         * lib/netinet_in_.h: Likewise.
63846         * lib/search_.h: Likewise.
63847         * lib/signal_.h: Likewise.
63848         * lib/stdint_.h: Likewise.
63849         * lib/stdio_.h: Likewise.
63850         * lib/stdlib_.h: Likewise.
63851         * lib/string_.h: Likewise.
63852         * lib/sys_select_.h: Likewise.
63853         * lib/sys_socket_.h: Likewise.
63854         * lib/sys_stat_.h: Likewise.
63855         * lib/sys_time_.h: Likewise.
63856         * lib/sysexits_.h: Likewise.
63857         * lib/time_.h: Likewise.
63858         * lib/unistd_.h: Likewise.
63859         * lib/wchar_.h: Likewise.
63860         * lib/wctype_.h: Likewise.
63861
63862 2007-05-29  Bruno Haible  <bruno@clisp.org>
63863
63864         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
63865         for the moment.
63866
63867 2007-05-29  Bruno Haible  <bruno@clisp.org>
63868
63869         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
63870         invocation.
63871         Reported by Eric Blake.
63872
63873 2007-05-29  Bruno Haible  <bruno@clisp.org>
63874
63875         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
63876         compiling case.
63877
63878 2007-05-29  Eric Blake  <ebb9@byu.net>
63879             Bruno Haible  <bruno@clisp.org>
63880
63881         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
63882         cross compiles.
63883
63884 2007-05-28  Eric Blake  <ebb9@byu.net>
63885
63886         * modules/closein-tests (test_closein_LDADD): Support test on
63887         cygwin with libtool.
63888
63889 2007-05-28  Bruno Haible  <bruno@clisp.org>
63890
63891         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
63892         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63893         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63894         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63895         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63896         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63897         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63898         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63899         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63900
63901 2007-05-28  Eric Blake  <ebb9@byu.net>
63902
63903         Unconditionally include <config.h> in unit tests.
63904         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
63905         * tests/test-allocsa.c, tests/test-arcfour.c,
63906         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
63907         tests/test-array_list.c, tests/test-array_oset.c,
63908         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
63909         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
63910         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
63911         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
63912         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
63913         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
63914         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
63915         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
63916         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
63917         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
63918         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
63919         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
63920         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
63921         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
63922         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
63923         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
63924         test-md5.c, test-memmem.c, test-printf-posix.c,
63925         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
63926         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
63927         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
63928         test-strcasestr.c, test-striconv.c, test-striconveh.c,
63929         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
63930         test-vasnprintf-posix2.c, test-vasnprintf.c,
63931         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
63932         test-vfprintf-posix.c, test-vprintf-posix.c,
63933         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
63934         test-xvasprintf.c: Likewise.
63935
63936 2007-05-28  Bruno Haible  <bruno@clisp.org>
63937
63938         * gnulib-tool (func_import): Remember the --with-tests command-line
63939         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
63940         Reported by Eric Blake.
63941
63942 2007-05-28  Bruno Haible  <bruno@clisp.org>
63943
63944         * modules/ftell-tests: New file.
63945         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
63946         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
63947
63948         * lib/ftell.c: New file.
63949         * modules/ftell: New file.
63950         * m4/ftell.m4: New file.
63951         * doc/functions/ftell.texi: Update.
63952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
63953         REPLACE_FTELL.
63954         * lib/stdio_.h (rpl_ftell): New declaration.
63955         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
63956         REPLACE_FTELL.
63957
63958 2007-05-28  Eric Blake  <ebb9@byu.net>
63959
63960         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
63961
63962 2007-05-28  Bruno Haible  <bruno@clisp.org>
63963
63964         * modules/fseek-tests: New file.
63965         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
63966         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
63967
63968         * lib/fseek.c: New file.
63969         * modules/fseek: New file.
63970         * m4/fseek.m4: New file.
63971         * doc/functions/fseek.texi: Update.
63972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
63973         REPLACE_FSEEK.
63974         * lib/stdio_.h (rpl_fseek): New declaration.
63975         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
63976         REPLACE_FSEEK.
63977
63978 2007-05-28  Bruno Haible  <bruno@clisp.org>
63979
63980         * lib/stdio_.h (fflush): More comments.
63981
63982 2007-05-28  Bruno Haible  <bruno@clisp.org>
63983
63984         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
63985         runtime test.
63986
63987 2007-05-28  Eric Blake  <ebb9@byu.net>
63988
63989         Improve lseek module.
63990         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
63991         * lib/unistd_.h (lseek): Scale back link warning message.
63992         * tests/test-lseek.c: Beef up test.
63993         * tests/test-lseek.sh: Exercise more facets of lseek.
63994         Reported by Bruno Haible.
63995
63996 2007-05-28  Bruno Haible  <bruno@clisp.org>
63997
63998         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
63999         to define.
64000
64001 2007-05-27  Bruno Haible  <bruno@clisp.org>
64002
64003         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64004
64005 2007-05-27  Bruno Haible  <bruno@clisp.org>
64006
64007         * modules/openmp: New file.
64008         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64009         Noah Misch.
64010
64011 2007-05-26  Bruno Haible  <bruno@clisp.org>
64012
64013         * modules/chdir-long (Depends-on): Add fchdir.
64014         * modules/chdir-safer (Depends-on): Likewise.
64015         * modules/fts (Depends-on): Likewise.
64016         * modules/fts-lgpl (Depends-on): Likewise.
64017         * modules/openat (Depends-on): Likewise.
64018         * modules/savewd (Depends-on): Likewise.
64019
64020 2007-05-24  Eric Blake  <ebb9@byu.net>
64021
64022         Fix lseek on mingw.
64023         * modules/lseek: New module.
64024         * m4/lseek.m4: New file.
64025         * lib/lseek.c: New file.
64026         * modules/lseek-tests: New file.
64027         * tests/test-lseek.c: New file.
64028         * tests/test-lseek.sh: New file.
64029         * MODULES.html.sh: Document lseek module.
64030         * modules/fflush (Depends-on): Add lseek, fseeko.
64031         * modules/fseeko (Depends-on): Likewise.
64032         * modules/ftello (Depends-on): Likewise.
64033         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64034         broken.
64035         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64036         broken.
64037         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64038         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64039         * lib/ftello.c (rpl_ftello): Likewise.
64040         * tests/test-fseeko.c (main): Test this.
64041         * tests/test-fseeko.sh: Likewise.
64042         * tests/test-ftello.c (main): Likewise.
64043         * tests/test-ftello.sh: Likewise.
64044         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64045         implies replacing fseek.
64046         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64047         HAVE_FTELLO.
64048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64049         * modules/unistd (Makefile.am): Likewise.
64050         * lib/unistd_.h (lseek): Declare a replacement.
64051         * doc/functions/lseek.texi (lseek): Document this fix.
64052         * doc/functions/fseek.texi (fseek): Likewise.
64053         * doc/functions/ftell.texi (ftell): Likewise.
64054
64055 2007-05-24  Bruno Haible  <bruno@clisp.org>
64056
64057         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64058         in the printed representation of a NaN.
64059         * tests/test-vasprintf-posix.c (test_function): Likewise.
64060         * tests/test-snprintf-posix.h (test_function): Likewise.
64061         * tests/test-sprintf-posix.h (test_function): Likewise.
64062         Reported by Eric Blake.
64063
64064 2007-05-23  Eric Blake  <ebb9@byu.net>
64065
64066         Fix fseeko/ftello on cygwin 1.5.24.
64067         * doc/functions/fseeko.texi (fseeko): Document the fix.
64068         * doc/functions/ftello.texi (ftello): Document the fix.
64069         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64070         * doc/functions/stdout.text (stdout): New file.
64071         * doc/functions/stderr.text (stderr): New file.
64072         * doc/gnulib.texi (Function Substitutes): Use new files.
64073         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64074         prior to 1.7.0.
64075         * tests/test-ftello.c (main): Likewise for ftello.
64076         * tests/test-fseeko.sh: New file.
64077         * tests/test-ftello.sh: New file.
64078         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64079         with seekable stdin.
64080         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64081         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64082         (gl_REPLACE_FSEEKO): New macro.
64083         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64084         * modules/fseeko (Files): Distribute fseeko.c.
64085         * modules/ftello (Files): Distribute ftello.c.
64086         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64087         mode.
64088         * lib/ftello.c (rpl_ftello): New file.
64089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64090         fseeko, ftello.
64091         (gl_STDIN_LARGE_OFFSET): New macro.
64092         * modules/stdio (Makefile.am): Perform the replacement.
64093         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64094
64095 2007-05-23  Bruno Haible  <bruno@clisp.org>
64096
64097         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64098         GNULIB_POSIXCHECK is defined.
64099
64100 2007-05-21  Bruno Haible  <bruno@clisp.org>
64101
64102         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64103         Check also the output for NaN arguments. When cross-compiling, guess
64104         no on IRIX.
64105         * lib/vasnprintf.c: Update comments.
64106         * tests/test-vasnprintf-posix.c (strisnan): New function.
64107         (test_function): Use it.
64108         * tests/test-vasprintf-posix.c (strisnan): New function.
64109         (test_function): Use it.
64110         * tests/test-snprintf-posix.h (strisnan): New function.
64111         (test_function): Use it.
64112         * tests/test-sprintf-posix.h (strisnan): New function.
64113         (test_function): Use it.
64114         Reported by Eric Blake.
64115
64116 2007-05-20  Bruno Haible  <bruno@clisp.org>
64117
64118         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64119         numbers that fails on BeOS.
64120         * doc/functions/frexpl.texi: Update.
64121
64122 2007-05-20  Jim Meyering  <jim@meyering.net>
64123
64124         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64125         forced upon us by glibc-2.6.
64126
64127 2007-05-20  Bruno Haible  <bruno@clisp.org>
64128
64129         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64130         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64131         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64132         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64133         NEED_PRINTF_INFINITE.
64134         (is_infinitel): New function.
64135         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64137         gl_PREREQ_VASNPRINTF_INFINITE.
64138         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64139         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64140         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64141         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64142         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64143         gl_PREREQ_VASNPRINTF_INFINITE.
64144         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64145         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64146         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64147         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64148         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64149         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64150         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64151         * doc/functions/fprintf.texi: Update.
64152         * doc/functions/printf.texi: Update.
64153         * doc/functions/snprintf.texi: Update.
64154         * doc/functions/sprintf.texi: Update.
64155         * doc/functions/vfprintf.texi: Update.
64156         * doc/functions/vprintf.texi: Update.
64157         * doc/functions/vsnprintf.texi: Update.
64158         * doc/functions/vsprintf.texi: Update.
64159
64160 2007-05-20  Bruno Haible  <bruno@clisp.org>
64161
64162         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64163         was not found in libc.
64164         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64165
64166 2007-05-20  Bruno Haible  <bruno@clisp.org>
64167
64168         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64169         printed as "-nan" instead of "nan".
64170         * tests/test-vasprintf-posix.c (test_function): Likewise.
64171         * tests/test-snprintf-posix.h (test_function): Likewise.
64172         * tests/test-sprintf-posix.h (test_function): Likewise.
64173         Needed for HP-UX 11.
64174
64175 2007-05-20  Jim Meyering  <jim@meyering.net>
64176
64177         Fix buggy test for the fchownat-deref bug.
64178         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64179         symlink required for the run-test.  Without it, this test would
64180         always declare that fchownat doesn't work, and client code would
64181         unnecessarily use the replacement function with fixed libc.
64182         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64183         Reported by Greg Schafer.
64184
64185 2007-05-19  Bruno Haible  <bruno@clisp.org>
64186
64187         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64188         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64189         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64190         Needed for IRIX 6.5 and Solaris 2.5.1.
64191
64192 2007-05-19  Bruno Haible  <bruno@clisp.org>
64193
64194         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64195         (test_function): Skip tests involving -0.0 on platforms where
64196         -0.0 = 0.0.
64197         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64198         (test_function): Skip tests involving -0.0 on platforms where
64199         -0.0 = 0.0.
64200         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64201         (test_function): Skip tests involving -0.0 on platforms where
64202         -0.0 = 0.0.
64203         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64204         (test_function): Skip tests involving -0.0 on platforms where
64205         -0.0 = 0.0.
64206         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64207         tests.
64208         * tests/test-printf-posix.h (test_function): Likewise.
64209         * tests/test-printf-posix.output: Remove all -0.0 related results.
64210         Needed for IRIX 6.5.
64211
64212 2007-05-19  Bruno Haible  <bruno@clisp.org>
64213
64214         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64215         printed as "nan0x7fffffff" instead of "nan".
64216         * tests/test-vasprintf-posix.c (test_function): Likewise.
64217         * tests/test-snprintf-posix.h (test_function): Likewise.
64218         * tests/test-sprintf-posix.h (test_function): Likewise.
64219         * tests/test-fprintf-posix.h (NaN): Remove macro.
64220         (test_function): Remove all NaN related tests.
64221         * tests/test-printf-posix.h (NaN): Remove macro.
64222         (test_function): Remove all NaN related tests.
64223         * tests/test-printf-posix.output: Remove all NaN related results.
64224         Needed for IRIX 6.5.
64225
64226 2007-05-19  Bruno Haible  <bruno@clisp.org>
64227
64228         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64229         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64230
64231 2007-05-19  Bruno Haible  <bruno@clisp.org>
64232
64233         * lib/float_.h: New file.
64234         * m4/float_h.m4: New file.
64235         * modules/float: New file.
64236         * modules/isnanl (Dependencies): Add float.
64237         * modules/isnanl-nolibm (Dependencies): Likewise.
64238         * modules/mathl (Dependencies): Likewise.
64239         * modules/printf-frexpl (Dependencies): Likewise.
64240         * modules/signbit (Dependencies): Likewise.
64241         * modules/vasnprintf (Dependencies): Likewise.
64242         * doc/headers/float.texi: Update.
64243
64244 2007-05-19  Jim Meyering  <jim@meyering.net>
64245
64246         * lib/utimens.c (gl_futimens): Rename from futimens,
64247         now that glibc-2.6 declares futimens.
64248         * lib/utimens.h: Likewise.
64249
64250 2007-05-19  Bruno Haible  <bruno@clisp.org>
64251
64252         Avoid test failures on mingw.
64253         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64254         * tests/test-printf-posix.sh: Likewise.
64255         * tests/test-vfprintf-posix.sh: Likewise.
64256         * tests/test-vprintf-posix.sh: Likewise.
64257
64258 2007-05-19  Bruno Haible  <bruno@clisp.org>
64259
64260         Fix *printf result for NaN, Inf, -0.0 on mingw.
64261         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64262         * lib/vasnprintf.c: Include math.h and isnan.h.
64263         (is_infinite_or_zero): New function.
64264         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64265         values in the %f, %F, %e, %E, %g, %G directives.
64266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64267         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64268         gl_PRINTF_INFINITE and test its result. Invoke
64269         gl_PREREQ_VASNPRINTF_INFINITE.
64270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64271         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64272         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64273         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64274         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64275         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64276         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64277         * doc/functions/fprintf.texi: Update.
64278         * doc/functions/printf.texi: Update.
64279         * doc/functions/snprintf.texi: Update.
64280         * doc/functions/sprintf.texi: Update.
64281         * doc/functions/vfprintf.texi: Update.
64282         * doc/functions/vprintf.texi: Update.
64283         * doc/functions/vsnprintf.texi: Update.
64284         * doc/functions/vsprintf.texi: Update.
64285
64286 2007-05-19  Bruno Haible  <bruno@clisp.org>
64287
64288         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64289         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64290         Instead of multiplying with 10^k, set extra_zeroes to k.
64291         (scale10_round_long_double): Remove function.
64292
64293 2007-05-18  Bruno Haible  <bruno@clisp.org>
64294
64295         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64296         introduced on 2007-05-06.
64297
64298 2007-05-18  Bruno Haible  <bruno@clisp.org>
64299
64300         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64301         %g directives.
64302         * tests/test-vasprintf-posix.c (test_function): Likewise.
64303         * tests/test-snprintf-posix.h (test_function): Likewise.
64304         * tests/test-sprintf-posix.h (test_function): Likewise.
64305
64306 2007-05-18  Bruno Haible  <bruno@clisp.org>
64307
64308         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64309         (strmatch): New function.
64310         (test_function): Test the %f directive on numbers of various exponents.
64311         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64312         (strmatch): New function.
64313         (test_function): Test the %f directive on numbers of various exponents.
64314         * tests/test-snprintf-posix.h (strmatch): New function.
64315         (test_function): Test the %f directive on numbers of various exponents.
64316         * tests/test-sprintf-posix.h (strmatch): New function.
64317         (test_function): Test the %f directive on numbers of various exponents.
64318         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64319         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64320         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64321         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64322
64323 2007-05-18  Bruno Haible  <bruno@clisp.org>
64324
64325         Add support for 'long double' number output.
64326         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64327         * lib/vasnprintf.c: Include math.h and float+.h.
64328         (mp_limb_t): New type.
64329         (GMP_LIMB_BITS): New macro.
64330         (mp_twolimb_t): New type.
64331         (GMP_TWOLIMB_BITS): New macro.
64332         (mpn_t): New type.
64333         (multiply, divide, convert_to_decimal, decode_long_double,
64334         scale10_round_long_double, scale10_round_decimal_long_double,
64335         floorlog10l): New functions.
64336         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64337         for the %f, %F, %e, %E, %g, %G directives.
64338         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64339         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64340         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64341         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64342         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64344         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64345         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64346         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64347         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64348         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64349         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64350         * modules/snprintf-posix (Depends-on): Likewise.
64351         * modules/sprintf-posix (Depends-on): Likewise.
64352         * modules/vasnprintf-posix (Depends-on): Likewise.
64353         * modules/vasprintf-posix (Depends-on): Likewise.
64354         * modules/vfprintf-posix (Depends-on): Likewise.
64355         * modules/vsnprintf-posix (Depends-on): Likewise.
64356         * modules/vsprintf-posix (Depends-on): Likewise.
64357         * modules/vasnprintf (Files): Add lib/float+.h.
64358         * doc/functions/fprintf.texi: Update.
64359         * doc/functions/printf.texi: Update.
64360         * doc/functions/snprintf.texi: Update.
64361         * doc/functions/sprintf.texi: Update.
64362         * doc/functions/vfprintf.texi: Update.
64363         * doc/functions/vprintf.texi: Update.
64364         * doc/functions/vsnprintf.texi: Update.
64365         * doc/functions/vsprintf.texi: Update.
64366
64367 2007-05-18  Bruno Haible  <bruno@clisp.org>
64368
64369         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64370
64371 2007-05-18  Bruno Haible  <bruno@clisp.org>
64372
64373         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64374         for printing 64-bit integers. Needed for mingw.
64375
64376 2007-05-18  Bruno Haible  <bruno@clisp.org>
64377
64378         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64379         gl_FUNC_FREXPL_WORKS.
64380         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64381
64382 2007-05-18  Bruno Haible  <bruno@clisp.org>
64383
64384         * modules/frexpl-nolibm-tests: New file.
64385
64386         * modules/frexpl-nolibm: New file.
64387         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64388
64389 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64390
64391         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64392         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64393         GCC 4.2, which otherwise issues a lot of warnings.
64394         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64395         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64396         Likewise.
64397         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64398         * modules/iconv_open (iconv.h): Likewise.
64399         * modules/locale (locale.h): Likewise.
64400         * modules/netinet_in (netinet/in.h): Likewise.
64401         * modules/sys_select (sys_select.h): Likewise.
64402         * modules/sys_socket (sys/socket.h): Likewise.
64403         * modules/sys_stat (sys/stat.h): Likewise.
64404         * modules/sysexits (sysexits.h): Likewise.
64405         * modules/unistd (unistd.h): Likewise.
64406
64407 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64408
64409         * modules/closein-tests (Makefile.am): Distribute
64410         `test-closein.sh'.
64411
64412 2007-05-17  Bruno Haible  <bruno@clisp.org>
64413
64414         * tests/test-printf-posix.output: Renamed from
64415         tests/test-fprintf-posix.out.
64416         * modules/fprintf-posix-tests: Update.
64417         * modules/printf-posix-tests: Update.
64418         * modules/vfprintf-posix-tests: Update.
64419         * modules/vprintf-posix-tests: Update.
64420         * tests/test-fprintf-posix.sh: Update.
64421         * tests/test-printf-posix.sh: Update.
64422         * tests/test-vfprintf-posix.sh: Update.
64423         * tests/test-vprintf-posix.sh: Update.
64424         Reported by Ralf Wildenhues.
64425
64426 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64427
64428         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64429         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64430         GCC 4.2, which otherwise issues a lot of warnings.
64431         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64432         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64433         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64434         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64435         it should no longer be needed.
64436         * lib/string_.h: Likewise.
64437         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64438         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64439         * modules/inttypes (inttypes.h): Likewise.
64440         * modules/math (math.h): Likewise.
64441         * modules/search (search.h): Likewise.
64442         * modules/signal (signal.h): Likewise.
64443         * modules/stdint (stdint.h): Likewise.
64444         * modules/stdio (stdio.h): Likewise.
64445         * modules/stdlib (stdlib.h): Likewise.
64446         * modules/string (string.h): Likewise.
64447         * modules/sys_time (sys/time.h): Likewise.
64448         * modules/time (time.h): Likewise.
64449         * modules/wchar (wchar.h): Likewise.
64450         * modules/wctype (wtype.h): Likewise.
64451
64452 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64453
64454         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64455
64456 2007-05-13  Bruno Haible  <bruno@clisp.org>
64457
64458         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64459         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64460         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64461         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64462         (gl_PREREQ_STRTOK_R): Don't require it here.
64463
64464 2007-05-13  Bruno Haible  <bruno@clisp.org>
64465
64466         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64467         when used in C++ mode.
64468
64469 2007-05-12  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/linebuffer.h: Tweak doc.
64472         * lib/linebuffer.c: Likewise.
64473
64474 2007-05-12  James Youngman  <jay@gnu.org>
64475
64476         * lib/linebuffer.c (readlinebuffer_delim): New function,
64477         like readlinebuffer, but use a caller-specified delimiter.
64478         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64479         as the delimiter.
64480         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64481
64482 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64483
64484         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64485         * modules/openat (Files): Remove openat-die.c.
64486         (Depends-on): Add openat-die.
64487         * modules/openat-die: New module.
64488
64489 2007-05-06  Bruno Haible  <bruno@clisp.org>
64490
64491         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64492         Update with info about Cygwin.
64493         * doc/functions/fprintf.texi: Update.
64494         * doc/functions/printf.texi: Update.
64495         * doc/functions/snprintf.texi: Update.
64496         * doc/functions/sprintf.texi: Update.
64497         * doc/functions/vfprintf.texi: Update.
64498         * doc/functions/vprintf.texi: Update.
64499         * doc/functions/vsnprintf.texi: Update.
64500         * doc/functions/vsprintf.texi: Update.
64501         Reported by Eric Blake.
64502
64503 2007-05-06  Bruno Haible  <bruno@clisp.org>
64504
64505         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64506         padding ourselves for the floating-point directives.
64507         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64508         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64509         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64510         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64511         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64512         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64514         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64516         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64517         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64518         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64519         * tests/test-snprintf-posix.h (test_function): Also check the width
64520         and some flags in the %f directive.
64521         * tests/test-sprintf-posix.h (test_function): Likewise.
64522         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64523         * tests/test-vasprintf-posix.c (test_function): Likewise.
64524         * doc/functions/fprintf.texi: Update.
64525         * doc/functions/printf.texi: Update.
64526         * doc/functions/snprintf.texi: Update.
64527         * doc/functions/sprintf.texi: Update.
64528         * doc/functions/vfprintf.texi: Update.
64529         * doc/functions/vprintf.texi: Update.
64530         * doc/functions/vsnprintf.texi: Update.
64531         * doc/functions/vsprintf.texi: Update.
64532
64533 2007-05-06  Bruno Haible  <bruno@clisp.org>
64534
64535         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64536         pass the ' flag character to sprintf or snprintf.
64537         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64538         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64539         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64540         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64541         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64542         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64543         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64544         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64545         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64546         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64548         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64549         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64550         flag.
64551         * tests/test-sprintf-posix.h (test_function): Likewise.
64552         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64553         * tests/test-vasprintf-posix.c (test_function): Likewise.
64554         * doc/functions/fprintf.texi: Update.
64555         * doc/functions/printf.texi: Update.
64556         * doc/functions/snprintf.texi: Update.
64557         * doc/functions/sprintf.texi: Update.
64558         * doc/functions/vfprintf.texi: Update.
64559         * doc/functions/vprintf.texi: Update.
64560         * doc/functions/vsnprintf.texi: Update.
64561         * doc/functions/vsprintf.texi: Update.
64562
64563 2007-05-01  Bruno Haible  <bruno@clisp.org>
64564
64565         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64566
64567 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64568
64569         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64570         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64571
64572 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64573
64574         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64575         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64577
64578 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64579
64580         * lib/argp-help.c (struct hol_entry): New member `ord'.
64581         (HOL_ENTRY_PTRCMP): Use ord for comparison
64582         (hol_sort): Initialize ord.
64583
64584 2007-05-01  Bruno Haible  <bruno@clisp.org>
64585
64586         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64587         Reported by Eric Blake.
64588         * doc/gnulib.texi (Function Substitutes): Update.
64589
64590 2007-05-01  Bruno Haible  <bruno@clisp.org>
64591
64592         * doc/functions.texi: Remove file, now redundant through
64593         doc/functions/*.texi.
64594
64595 2007-05-01  Bruno Haible  <bruno@clisp.org>
64596
64597         * modules/argp (Depends-on): Add sleep.
64598
64599 2007-05-01  Bruno Haible  <bruno@clisp.org>
64600
64601         * modules/sleep-tests: New file.
64602         * tests/test-sleep.c: New file.
64603
64604         * modules/sleep: New file.
64605         * lib/sleep.c: New file.
64606         * m4/sleep.m4: New file.
64607         * lib/unistd_.h (sleep): New declaration.
64608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64609         HAVE_SLEEP.
64610         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64611         * doc/functions/sleep.texi: Document the sleep module.
64612
64613 2007-05-01  Bruno Haible  <bruno@clisp.org>
64614
64615         * lib/sigprocmask.h: Remove file.
64616         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64617         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64618         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64619         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64620         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64621         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64622         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64623         HAVE_SIGSET_T as a shell variable.
64624         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64625         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64626         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64627         (Depends-on): Add signal. Remove verify.
64628         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64629         (Include): Mention <signal.h> instead of sigprocmask.h.
64630         * NEWS: Mention the change.
64631         * lib/fatal-signal.c: Don't include sigprocmask.h.
64632
64633 2007-05-01  Bruno Haible  <bruno@clisp.org>
64634
64635         * modules/signal: New file.
64636         * lib/signal_.h: New file.
64637         * m4/signal_h.m4: New file.
64638
64639 2007-05-01  Bruno Haible  <bruno@clisp.org>
64640
64641         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64642         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64643         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64644         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64645
64646 2007-05-01  Bruno Haible  <bruno@clisp.org>
64647
64648         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64649         configure time.
64650         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64651         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64652         * modules/sys_stat (Makefile.am): Substitute their values into
64653         sys/stat.h.
64654
64655 2007-05-01  Bruno Haible  <bruno@clisp.org>
64656
64657         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64658         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64659         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64660
64661 2007-05-01  Bruno Haible  <bruno@clisp.org>
64662
64663         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64664         'assert' module here.
64665
64666 2007-05-01  Bruno Haible  <bruno@clisp.org>
64667
64668         * doc/functions/*.texi: New files.
64669         * doc/functions/google-ranking.txt: New file.
64670         * doc/gnulib.texi (Function Substitutes): New chapter.
64671         (ctime, inet_ntoa): Remove sections.
64672         * doc/ctime.texi: Remove file.
64673         * doc/inet_ntoa.texi: Remove file.
64674         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64675         dependencies.
64676         (%.info): New rule, specifying a --reference-limit.
64677
64678 2007-05-01  Bruno Haible  <bruno@clisp.org>
64679
64680         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64681
64682 2007-05-01  Bruno Haible  <bruno@clisp.org>
64683
64684         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64685         the portability of 'mkdir' to mingw systems.
64686
64687 2007-05-01  Bruno Haible  <bruno@clisp.org>
64688
64689         * doc/headers/google-ranking.txt: New file.
64690
64691 2007-04-30  Eric Blake  <ebb9@byu.net>
64692
64693         Prefer fseeko to fseek.
64694         * modules/getpass (Depends-on): Add fseeko.
64695         * lib/getpass.c (getpass): Use fseeko, not fseek.
64696
64697 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64698
64699         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64700         assumes the sorting is stable, while most qsort implementations
64701         are not.  Use argument addresses to ensure they never compare as
64702         equal.
64703
64704         * tests/test-argp-2.sh (usage-indent test): Fix output
64705         (func_compare): Restore diff options
64706         * tests/test-argp.c: Restore #include "progname.h"
64707
64708 2007-04-29  Bruno Haible  <bruno@clisp.org>
64709
64710         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64712         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64713         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64714         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64715         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64716         (TESTS, check_PROGRAMS): Add test-snprintf.
64717         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64718         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64719         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64720         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64721         assertions that fail on HP-UX, OSF/1, or IRIX.
64722         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64723
64724 2007-04-29  Bruno Haible  <bruno@clisp.org>
64725
64726         * MODULES.html.sh (posix_functions): Remove 'contents'.
64727
64728 2007-04-29  Karl Berry  <karl@gnu.org>
64729
64730         * config/srclist.txt (gendocs_template_min): new entry.
64731
64732 2007-04-29  Bruno Haible  <bruno@clisp.org>
64733
64734         Work around fpurge bug on BSD systems.
64735         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64736         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64737         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64738         fpurge to rpl_fpurge if the system already has this function.
64739         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64740         the case where the system already has this function. Correct invariants
64741         on BSD systems.
64742         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64743         BSD systems.
64744
64745 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64746
64747         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64748         proposed by Sven Verdoolaege.
64749
64750         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64751         options.
64752         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64753         (usage and help tests): Update
64754
64755 2007-04-29  Bruno Haible  <bruno@clisp.org>
64756
64757         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64758         Print more information in case of failure. Disable a test on BeOS.
64759
64760 2007-04-29  Bruno Haible  <bruno@clisp.org>
64761
64762         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64763         This helps debugging on systems on which no gdb is available.
64764
64765 2007-04-29  Bruno Haible  <bruno@clisp.org>
64766
64767         * lib/freading.h: Improve comments.
64768         * lib/fwriting.h: Likewise.
64769         * tests/test-freading.c (main): Don't check freading immediately after
64770         repositioning. Needed for glibc.
64771
64772 2007-04-29  Bruno Haible  <bruno@clisp.org>
64773
64774         * lib/freading.c (freading): Trivial simplification.
64775
64776 2007-04-28  Bruno Haible  <bruno@clisp.org>
64777
64778         * tests/test-fwriting.c (main): Also test the interaction between
64779         fflush and fwriting.
64780         * modules/fwriting-tests (Depends-on): Add fflush.
64781
64782         * tests/test-freading.c (main): Also test the interaction between
64783         fflush and freading.
64784         * modules/freading-tests (Depends-on): Add fflush.
64785
64786 2007-04-28  Bruno Haible  <bruno@clisp.org>
64787
64788         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64789         fseeko and ftello.
64790         Suggested by Eric Blake.
64791
64792 2007-04-28  Jim Meyering  <jim@meyering.net>
64793
64794         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64795         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64796         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64797
64798 2007-04-27  Eric Blake  <ebb9@byu.net>
64799
64800         * doc/headers/assert.texi (assert.h): Document assert module use.
64801
64802 2007-04-27  Bruno Haible  <bruno@clisp.org>
64803
64804         * doc/headers/*.texi: New files.
64805         * doc/gnulib.texi (Header File Substitutes): New chapter.
64806         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64807         dependencies.
64808         (standards.info ,standards.html, standards.dvi): Update dependencies.
64809         (mostlyclean, clean): New targets.
64810
64811 2007-04-27  Bruno Haible  <bruno@clisp.org>
64812
64813         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64814         * modules/sysexits (Files, Makefile.am): Update.
64815
64816         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64817         * modules/sys_socket (Files, Makefile.am): Update.
64818
64819         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64820         * modules/sys_stat (Files, Makefile.am): Update.
64821
64822 2007-04-27  Eric Blake  <ebb9@byu.net>
64823
64824         * lib/freading.h: Improve comments.
64825         * lib/fwriting.h: Likewise.
64826         * lib/fflush.c: Likewise.
64827
64828         Fix closein for mingw.
64829         * modules/closein-tests: Add tests for closein.
64830         * tests/test-closein.c: New file.
64831         * tests/test-closein.sh: Likewise.
64832         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
64833         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
64834
64835 2007-04-27  Bruno Haible  <bruno@clisp.org>
64836
64837         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
64838         version is < 6.
64839         * lib/math_.h [__DECC]: Likewise.
64840         * lib/stdio_.h [__DECC]: Likewise.
64841         * lib/stdlib_.h [__DECC]: Likewise.
64842         * lib/string_.h [__DECC]: Likewise.
64843         * lib/time_.h [__DECC]: Likewise.
64844         * lib/wchar_.h [__DECC]: Likewise.
64845         * lib/wctype_.h [__DECC]: Likewise.
64846
64847 2007-04-27  Bruno Haible  <bruno@clisp.org>
64848
64849         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
64850
64851 2007-04-27  Bruno Haible  <bruno@clisp.org>
64852
64853         * lib/fflush.c: Add comments.
64854         * modules/fpurge-tests (Depends-on): Add fflush.
64855         * modules/freadable-tests (Depends-on): Likewise.
64856         * modules/fwritable-tests (Depends-on): Likewise.
64857
64858 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
64859
64860         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
64861         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
64862         Report by Bruno Haible <bruno@clisp.org>.
64863
64864 2007-04-26  Eric Blake  <ebb9@byu.net>
64865
64866         Fix fflush on mingw.
64867         * modules/fflush (Depends-on): Add freading.
64868         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
64869         but unread data.
64870
64871 2007-04-26  Eric Blake  <ebb9@byu.net>
64872         and Bruno Haible  <bruno@clisp.org>
64873
64874         Implement freading and fwriting.
64875         * lib/freading.c: New file.
64876         * lib/freading.h: Likewise.
64877         * m4/freading.m4: Likewise.
64878         * modules/freading: Likewise.
64879         * modules/freading-tests: Likewise.
64880         * tests/test-freading.c: Likewise.
64881         * lib/fwriting.c: New file.
64882         * lib/fwriting.h: Likewise.
64883         * m4/fwriting.m4: Likewise.
64884         * modules/fwriting: Likewise.
64885         * modules/fwriting-tests: Likewise.
64886         * tests/test-fwriting.c: Likewise.
64887         * MODULES.html.sh (File stream based Input/Output): Mention them.
64888
64889 2007-04-26  Bruno Haible  <bruno@clisp.org>
64890
64891         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
64892         'long' when we assume it.
64893         Suggested by Eric Blake.
64894
64895 2007-04-26  Bruno Haible  <bruno@clisp.org>
64896
64897         Ensure fseeko, ftello are declared on glibc systems.
64898         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
64899         * modules/fseeko (configure.ac-early): Likewise.
64900         * modules/ftello (configure.ac-early): Likewise.
64901         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
64902         AC_FUNC_FSEEKO for this.
64903         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
64904         (gl_CHECK_FSEEKO): Remove macro.
64905
64906 2007-04-26  Bruno Haible  <bruno@clisp.org>
64907
64908         * tests/test-fflush.c (main): Also check the ftell result after
64909         fflush and fseek/fseeko.
64910         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
64911         file descriptor position cache in the stream.
64912         * lib/fseeko.c (rpl_fseeko): Likewise.
64913
64914 2007-04-26  Bruno Haible  <bruno@clisp.org>
64915
64916         * modules/fflush-tests (Depends-on): Add fseeko.
64917
64918 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
64919             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64920
64921         * lib/argz_.h: ensure error_t definition is obtained in same
64922         mechanism system argz.h would have.
64923         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
64924         argz facilities are known bad.  Err on the side of caution if
64925         cross-compiling.
64926
64927 2007-04-25  Eric Blake  <ebb9@byu.net>
64928
64929         * lib/fpurge.c (includes): Use stdlib.h for free.
64930         * tests/test-fflush.c (main): Also test fflush-fseeko.
64931
64932 2007-04-25  Bruno Haible  <bruno@clisp.org>
64933
64934         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
64935         * lib/fseeko.c: New file.
64936         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
64937         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
64938         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
64939         gl_FUNC_FSEEKO.
64940         (gl_FUNC_FSEEKO): Invoke it.
64941         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
64942         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
64943         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
64944
64945 2007-04-25  Bruno Haible  <bruno@clisp.org>
64946
64947         * modules/fflush (Depends-on): Add ftello.
64948
64949 2007-04-25  Bruno Haible  <bruno@clisp.org>
64950
64951         * modules/ftello-tests: New file.
64952         * tests/test-ftello.c: New file.
64953
64954         * modules/ftello: New file.
64955         * m4/ftello.m4: New file.
64956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
64957         HAVE_FTELLO.
64958         * lib/stdio_.h (ftello): New declaration.
64959         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
64960         HAVE_FTELLO.
64961
64962 2007-04-25  Bruno Haible  <bruno@clisp.org>
64963
64964         * modules/fseeko-tests: New file.
64965         * tests/test-fseeko.c: New file.
64966
64967         * modules/fseeko: New file.
64968         * m4/fseeko.m4: New file.
64969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
64970         HAVE_FSEEKO.
64971         * lib/stdio_.h (fseeko): New declaration.
64972         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
64973         HAVE_FSEEKO.
64974
64975 2007-04-25  Bruno Haible  <bruno@clisp.org>
64976
64977         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
64978
64979 2007-04-25  Bruno Haible  <bruno@clisp.org>
64980
64981         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
64982         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
64983         * tests/test-unistd.c: Likewise.
64984         * tests/test-fcntl.c: Likewise.
64985
64986 2007-04-23  Eric Blake  <ebb9@byu.net>
64987
64988         * lib/fflush.c: Fix missing include.
64989         Reported by Bruno Haible.
64990
64991 2007-04-23  Bruno Haible  <bruno@clisp.org>
64992
64993         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
64994         Reported by Eric Blake.
64995
64996 2007-04-23  Bruno Haible  <bruno@clisp.org>
64997
64998         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
64999
65000 2007-04-23  Bruno Haible  <bruno@clisp.org>
65001
65002         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65003
65004 2007-04-23  Bruno Haible  <bruno@clisp.org>
65005
65006         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65007         Needed on HP-UX 11.
65008
65009 2007-04-16  Eric Blake  <ebb9@byu.net>
65010
65011         Make fflush rely on fpurge.
65012         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65013         open coding all variants.
65014         * modules/fflush (Depends-on): Add fpurge and unistd.
65015         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65016         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65017
65018         Fix --with-tests compilation on cygwin.
65019         * modules/argmatch-tests (Makefile.am): List gnulib library first
65020         in LDADD.
65021         * modules/argp-tests (Makefile.am): Likewise.
65022         * modules/array-list-tests (Makefile.am): Likewise.
65023         * modules/array-oset-tests (Makefile.am): Likewise.
65024         * modules/avltree-list-tests (Makefile.am): Likewise.
65025         * modules/avltree-oset-tests (Makefile.am): Likewise.
65026         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65027         * modules/carray-list-tests (Makefile.am): Likewise.
65028         * modules/dirname-tests (Makefile.am): Likewise.
65029         * modules/frexp-tests (Makefile.am): Likewise.
65030         * modules/isnanl-tests (Makefile.am): Likewise.
65031         * modules/linked-list-tests (Makefile.am): Likewise.
65032         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65033         * modules/lock-tests (Makefile.am): Likewise.
65034         * modules/rbtree-list-tests (Makefile.am): Likewise.
65035         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65036         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65037         * modules/tls-tests (Makefile.am): Likewise.
65038         * modules/tsearch-tests (Makefile.am): Likewise.
65039         * modules/xvasprintf-tests (Makefile.am): Likewise.
65040
65041         Fix fpurge for cygwin.
65042         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65043         value.
65044         * modules/fpurge-tests (Depends-on): Clean up trash.
65045
65046 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65047
65048         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65049
65050         * m4/autobuild.m4: Re-indent.
65051
65052 2007-04-13  Bruno Haible  <bruno@clisp.org>
65053
65054         * modules/fpurge-tests: New file.
65055         * tests/test-fpurge.c: New file.
65056
65057         * modules/fpurge: New file.
65058         * lib/fpurge.h: New file.
65059         * lib/fpurge.c: New file.
65060         * m4/fpurge.m4: New file.
65061
65062 2007-04-13  Bruno Haible  <bruno@clisp.org>
65063
65064         * modules/fbufmode-tests: New file.
65065         * tests/test-fbufmode.c: New file.
65066
65067         * modules/fbufmode: New file.
65068         * lib/fbufmode.h: New file.
65069         * lib/fbufmode.c: New file.
65070         * m4/fbufmode.m4: New file.
65071
65072 2007-04-13  Bruno Haible  <bruno@clisp.org>
65073
65074         * modules/fwritable-tests: New file.
65075         * tests/test-fwritable.c: New file.
65076
65077         * modules/fwritable: New file.
65078         * lib/fwritable.h: New file.
65079         * lib/fwritable.c: New file.
65080         * m4/fwritable.m4: New file.
65081
65082 2007-04-13  Bruno Haible  <bruno@clisp.org>
65083
65084         * modules/freadable-tests: New file.
65085         * tests/test-freadable.c: New file.
65086
65087         * modules/freadable: New file.
65088         * lib/freadable.h: New file.
65089         * lib/freadable.c: New file.
65090         * m4/freadable.m4: New file.
65091
65092 2007-04-13  Bruno Haible  <bruno@clisp.org>
65093
65094         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65095         MOSTLYCLEANFILES.
65096
65097 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65098
65099         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65100         gzip bootstrap.conf to avoid dragging in i18n machinery.
65101         (gnulib_tool_option): Use it.
65102
65103 2007-04-13  Bruno Haible  <bruno@clisp.org>
65104
65105         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65106         %F directives.
65107         * tests/test-vasprintf-posix.c (test_function): Likewise.
65108         * tests/test-snprintf-posix.h (test_function): Likewise.
65109         * tests/test-sprintf-posix.h (test_function): Likewise.
65110         * tests/test-fprintf-posix.h (test_function): Likewise.
65111         * tests/test-printf-posix.h (test_function): Likewise.
65112         * tests/test-fprintf-posix.out: Likewise.
65113
65114 2007-04-13  Bruno Haible  <bruno@clisp.org>
65115
65116         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65117         * modules/tls-tests (configure.ac): Likewise.
65118         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65119
65120 2007-04-13  Bruno Haible  <bruno@clisp.org>
65121
65122         * lib/tls.c (glthread_tls_get): Fix return type.
65123         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65124
65125 2007-04-12  Eric Blake  <ebb9@byu.net>
65126
65127         * modules/gettime (Depends-on): Remove gettime.
65128         Reported by Dmitry V. Levin.
65129
65130 2007-04-12  Bruno Haible  <bruno@clisp.org>
65131
65132         * modules/fflush (Include): Mention <stdio.h>.
65133         * modules/strtoimax (Include): Mention <inttypes.h>.
65134         * modules/strtoumax (Include): Likewise.
65135
65136 2007-04-12  Eric Blake  <ebb9@byu.net>
65137
65138         * .cvsignore: New file.
65139         * .gitignore: Likewise.
65140
65141 2007-04-12  Bruno Haible  <bruno@clisp.org>
65142
65143         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65144         not before, since $(LDADD) often contains libgnu.a.
65145         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65146         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65147         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65148         Needed on Cygwin.
65149
65150 2007-04-12  Eric Blake  <ebb9@byu.net>
65151
65152         Work around glibc's failure to flush stdin on fclose.
65153         * lib/closein.c (close_stdin): Flush stdin before closing.
65154
65155         Work around glibc's failure to reset seekable stdin on exit.
65156         * modules/closein: New module.
65157         * lib/closein.c: New file.
65158         * lib/closein.h: Likewise.
65159         * m4/closein.m4: Likewise.
65160         * MODULES.html.sh (File stream based Input/Output): Document it.
65161
65162 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65163
65164         * gnulib-tool: Rename generated 'autobuild' script to
65165         'do-autobuild' in --create-megatestdir output.
65166
65167         * doc/gnulib.texi (Build robot for gnulib): Fix.
65168
65169 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65170
65171         * modules/sysexits (Depends-on): Add absolute-header.
65172
65173 2007-04-12  Eric Blake  <ebb9@byu.net>
65174
65175         No need to preserve errno on success.
65176         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65177         Reported by Bruno Haible.
65178
65179 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65180
65181         * MODULES.html.sh (Support for maintaining and releasing
65182         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65183
65184 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65185
65186         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65187
65188 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65189
65190         * modules/autobuild: New module.
65191
65192         * m4/autobuild.m4: New file.
65193
65194 2007-04-11  Bruno Haible  <bruno@clisp.org>
65195
65196         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65197         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65198         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65199         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65200         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65201         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65202         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65203         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65204         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65205         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65206         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65207         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65208         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65209         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65210         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65211         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65212         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65213         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65214         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65215         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65216         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65217         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65218         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65219         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65220         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65222         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65223         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65224         Reported by Eric Blake.
65225
65226 2007-04-11  Bruno Haible  <bruno@clisp.org>
65227
65228         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65229
65230 2007-04-10  Bruno Haible  <bruno@clisp.org>
65231
65232         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65233         for NaN and Infinity. Needed on FreeBSD 6.1.
65234         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65235         regarding results for "%010a" of Infinity and NaN.
65236         * tests/test-vasprintf-posix.c (test_function): Likewise.
65237         * tests/test-snprintf-posix.h (test_function): Likewise.
65238         * tests/test-sprintf-posix.h (test_function): Likewise.
65239         * tests/test-fprintf-posix.h (test_function): Likewise.
65240         * tests/test-printf-posix.h (test_function): Likewise.
65241         * tests/test-fprintf-posix.out: Likewise.
65242
65243 2007-04-10  Bruno Haible  <bruno@clisp.org>
65244
65245         * modules/locale-tests: New file.
65246         * tests/test-locale.c: New file.
65247
65248         * modules/locale: New file.
65249         * lib/locale_.h: New file.
65250         * m4/locale_h.m4: New file.
65251
65252 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65253             Bruno Haible  <bruno@clisp.org>
65254
65255         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65256         be determined, test for availability of the copysignf, copysign,
65257         copysignl functions.
65258         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65259         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65260         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65261
65262 2007-04-09  Eric Blake  <ebb9@byu.net>
65263
65264         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65265         * modules/stdio (Makefile.am): Support fflush.
65266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65267         * modules/fflush: New file.
65268         * lib/fflush.c: Likewise.
65269         * m4/fflush.m4: Likewise.
65270         * modules/fflush-tests: New test.
65271         * tests/test-fflush.c: Likewise.
65272         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65273
65274 2007-04-06  Bruno Haible  <bruno@clisp.org>
65275
65276         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65277         (VASNPRINTF): Use signbit for faster determination whether to print a
65278         minus sign.
65279         * modules/vasnprintf (Files): Remove lib/float+.h.
65280         * modules/fprintf-posix (Depends-on): Add signbit.
65281         * modules/snprintf-posix (Depends-on): Likewise.
65282         * modules/sprintf-posix (Depends-on): Likewise.
65283         * modules/vasnprintf-posix (Depends-on): Likewise.
65284         * modules/vasprintf-posix (Depends-on): Likewise.
65285         * modules/vfprintf-posix (Depends-on): Likewise.
65286         * modules/vsnprintf-posix (Depends-on): Likewise.
65287         * modules/vsprintf-posix (Depends-on): Likewise.
65288
65289 2007-04-06  Bruno Haible  <bruno@clisp.org>
65290
65291         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65292         * tests/test-frexpl.c (main): Likewise.
65293         * tests/test-ldexpl.c (main): Likewise.
65294         * modules/frexp-tests (Depends-on): Add signbit.
65295         * modules/frexpl-tests (Depdends-on): Likewise.
65296         * modules/ldexpl-tests (Depdends-on): Likewise.
65297
65298 2007-04-06  Bruno Haible  <bruno@clisp.org>
65299
65300         * modules/signbit-tests: New file.
65301         * tests/test-signbit.c: New file.
65302
65303         * modules/signbit: New file.
65304         * lib/signbitf.c: New file.
65305         * lib/signbitd.c: New file.
65306         * lib/signbitl.c: New file.
65307         * m4/signbit.m4: New file.
65308         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65309         (signbit): New macro.
65310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65311         REPLACE_SIGNBIT.
65312         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65313         REPLACE_FREXPL into math.h.
65314
65315 2007-04-06  Bruno Haible  <bruno@clisp.org>
65316
65317         * modules/isnanf-nolibm-tests: New file.
65318         * tests/test-isnanf.c: New file.
65319
65320         * modules/isnanf-nolibm: New file.
65321         * lib/isnanf.h: New file.
65322         * lib/isnanf.c: New file.
65323         * lib/isnan.c: Consider the USE_FLOAT macro.
65324         * m4/isnanf.m4: New file.
65325
65326 2007-04-06  Bruno Haible  <bruno@clisp.org>
65327
65328         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65329         (Link): New section.
65330
65331         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65332
65333 2007-04-06  Bruno Haible  <bruno@clisp.org>
65334
65335         Assume the 'long double' type.
65336         * m4/longdouble.m4: Remove file.
65337         * config/srclist.txt: Don't mention longdouble.m4.
65338         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65339         * lib/float+.h: Likewise.
65340         * lib/frexp.c: Likewise.
65341         * lib/printf-args.h: Likewise.
65342         * lib/printf-args.c: Likewise.
65343         * lib/printf-frexp.c: Likewise.
65344         * lib/printf-parse.c: Likewise.
65345         * lib/vasnprintf.c: Likewise.
65346         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65347         * m4/intl.m4: Likewise.
65348         * m4/isnanl.m4: Likewise.
65349         * m4/printf.m4: Likewise.
65350         * m4/printf-frexpl.m4: Likewise.
65351         * m4/vasnprintf.m4: Likewise.
65352         * modules/allocsa (Files): Remove m4/longdouble.m4.
65353         * modules/gettext (Files): Likewise.
65354         * modules/relocatable-prog-wrapper (Files): Likewise.
65355         * modules/vasnprintf (Files): Likewise.
65356         * modules/isnanl (Files): Likewise.
65357         (Include): Simplify.
65358         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65359         (Include): Simplify.
65360         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65361         (Include): Simplify.
65362         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65363         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65364         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65365         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65366         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65367         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65368         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65369         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65370         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65371         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65372         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65373         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65374         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65375         * tests/test-isnanl.c: Likewise.
65376         * tests/test-snprintf-posix.h: Likewise.
65377         * tests/test-sprintf-posix.h: Likewise.
65378         * tests/test-vasnprintf-posix.c: Likewise.
65379         * tests/test-vasnprintf-posix2.c: Likewise.
65380         * tests/test-vasprintf-posix.c: Likewise.
65381
65382 2007-04-06  Bruno Haible  <bruno@clisp.org>
65383
65384         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65385         * lib/math_.h [__DECC]: Include the overridden include file through
65386         #include_next, outside the double-inclusion guard.
65387         * lib/stdio_.h [__DECC]: Likewise.
65388         * lib/stdlib_.h [__DECC]: Likewise.
65389         * lib/string_.h [__DECC]: Likewise.
65390         * lib/time_.h [__DECC]: Likewise.
65391         * lib/wchar_.h [__DECC]: Likewise.
65392         * lib/wctype_.h [__DECC]: Likewise.
65393         * lib/inttypes_.h [__DECC]: Likewise.
65394         Reported by Albert Chin <china@thewrittenword.com> in
65395         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65396
65397 2007-04-04  Eric Blake  <ebb9@byu.net>
65398
65399         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65400         1.5.x.
65401
65402 2007-04-04  Bruno Haible  <bruno@clisp.org>
65403
65404         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65405         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65406
65407 2007-04-04  Bruno Haible  <bruno@clisp.org>
65408
65409         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65410         results for "%010a" of Infinity and NaN.
65411         * tests/test-vasprintf-posix.c (test_function): Likewise.
65412         * tests/test-snprintf-posix.h (test_function): Likewise.
65413         * tests/test-sprintf-posix.h (test_function): Likewise.
65414         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65415         * tests/test-printf-posix.h (test_function): Likewise.
65416         * tests/test-fprintf-posix.out: Update.
65417         Needed for FreeBSD 6.1.
65418
65419 2007-04-04  Bruno Haible  <bruno@clisp.org>
65420
65421         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65422         directly used by the gnulib modules nor by gnulib-tool.
65423
65424 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         * DEPENDENCIES: Give overall description of version dependency
65427         desirability.  Use more-typical names for apps.
65428         Add shell, coreutils, diffutils, grep, tar, gzip.
65429
65430 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65431
65432         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65433
65434 2007-04-04  Karl Berry  <karl@gnu.org>
65435
65436         * MODULES.html.sh (func_module): missing '.
65437
65438 2007-04-03  Bruno Haible  <bruno@clisp.org>
65439
65440         * modules/argmatch-tests (Makefile.am): New variable
65441         test_argmatch_LDADD.
65442         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65443         * modules/array-list-tests (Makefile.am): New variable
65444         test_array_list_LDADD.
65445         * modules/array-oset-tests (Makefile.am): New variable
65446         test_array_oset_LDADD.
65447         * modules/avltree-list-tests (Makefile.am): New variable
65448         test_avltree_list_LDADD.
65449         * modules/avltree-oset-tests (Makefile.am): New variable
65450         test_avltree_oset_LDADD.
65451         * modules/avltreehash-list-tests (Makefile.am): New variable
65452         test_avltreehash_list_LDADD.
65453         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65454         test_canonicalize_lgpl_LDADD.
65455         * modules/carray-list-tests (Makefile.am): New variable
65456         test_carray_list_LDADD.
65457         * modules/dirname-tests (Makefile.am): New variable
65458         test_dirname_LDADD.
65459         * modules/linked-list-tests (Makefile.am): New variable
65460         test_linked_list_LDADD.
65461         * modules/linkedhash-list-tests (Makefile.am): New variable
65462         test_linkedhash_list_LDADD.
65463         * modules/rbtree-list-tests (Makefile.am): New variable
65464         test_rbtree_list_LDADD.
65465         * modules/rbtree-oset-tests (Makefile.am): New variable
65466         test_rbtree_oset_LDADD.
65467         * modules/rbtreehash-list-tests (Makefile.am): New variable
65468         test_rbtreehash_list_LDADD.
65469         * modules/xvasprintf-tests (Makefile.am): New variable
65470         test_xvasprintf_LDADD.
65471         Reported by Eric Blake.
65472
65473 2007-04-03  Eric Blake  <ebb9@byu.net>
65474
65475         * DEPENDENCIES: Weaken m4 requirements.
65476
65477 2007-04-03  Bruno Haible  <bruno@clisp.org>
65478
65479         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65480         * modules/isnanl-tests (configure.ac): Likewise.
65481
65482 2007-04-03  Ben Pfaff  <blp@gnu.org>
65483
65484         * modules/iconv_open: Add $(srcdir)/ to source directory
65485         references in Makefile fragments that call gperf, to fix VPATH
65486         builds.
65487
65488 2007-04-03  Bruno Haible  <bruno@clisp.org>
65489
65490         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65491         * lib/ldexpl.c: Undo last change.
65492
65493 2007-04-03  Bruno Haible  <bruno@clisp.org>
65494
65495         * modules/printf-frexpl (Depends-on): Undo last change.
65496         (Files): Add m4/ldexpl.m4.
65497
65498 2007-04-03  Bruno Haible  <bruno@clisp.org>
65499
65500         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65501         * modules/isnanl (Link): New section.
65502
65503         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65504         * modules/frexp (Link): New section.
65505
65506         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65507         * modules/frexpl (Link): New section.
65508
65509         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65510         * modules/ldexpl (Link): New section.
65511
65512 2007-04-03  Bruno Haible  <bruno@clisp.org>
65513
65514         * modules/TEMPLATE-EXTENDED: New file.
65515         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65516
65517 2007-04-03  Bruno Haible  <bruno@clisp.org>
65518
65519         * DEPENDENCIES: New file.
65520         Suggested by Simon Josefsson.
65521
65522 2007-04-03  Bruno Haible  <bruno@clisp.org>
65523
65524         * doc/gnulib.texi: Escape @.
65525
65526 2007-04-03  James Youngman  <jay@gnu.org>
65527         and Paul Eggert  <eggert@cs.ucla.edu>
65528
65529         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65530         birthtime on all systems that have birthtime, not just those which
65531         use st_birthtimensec rather than st_birthtim.  Putting zero in
65532         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65533         that the birth time is not available for files on an NFS mount.
65534
65535 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65536
65537         * modules/memxor: Move back from crypto/, suggested by Bruno.
65538         * modules/crypto/hmac-sha1: Fix memxor dependency.
65539
65540         * modules/crypto/gc: Moved from ../.
65541
65542 2007-04-02  Eric Blake  <ebb9@byu.net>
65543
65544         * lib/ldexpl.c (includes): Avoid libm.
65545
65546         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65547
65548 2007-04-02  Bruno Haible  <bruno@clisp.org>
65549
65550         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65551         on IRIX.
65552
65553 2007-04-02  Bruno Haible  <bruno@clisp.org>
65554
65555         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65556         x86 or x86_64 platforms running MacOS X.
65557         Reported by Ryan Schmidt <@ryandesign.com>.
65558
65559 2007-04-02  Bruno Haible  <bruno@clisp.org>
65560
65561         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65562         i386.
65563
65564 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65565
65566         * modules/crypto/arcfour: Moved from ../.
65567         * modules/crypto/arcfour-tests: Moved from ../.
65568         * modules/crypto/arctwo: Moved from ../.
65569         * modules/crypto/arctwo-tests: Moved from ../.
65570         * modules/crypto/des: Moved from ../.
65571         * modules/crypto/des-tests: Moved from ../.
65572         * modules/crypto/gc-arcfour: Moved from ../.
65573         * modules/crypto/gc-arcfour-tests: Moved from ../.
65574         * modules/crypto/gc-arctwo: Moved from ../.
65575         * modules/crypto/gc-arctwo-tests: Moved from ../.
65576         * modules/crypto/gc-des: Moved from ../.
65577         * modules/crypto/gc-des-tests: Moved from ../.
65578         * modules/crypto/gc-hmac-md5: Moved from ../.
65579         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65580         * modules/crypto/gc-hmac-sha1: Moved from ../.
65581         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65582         * modules/crypto/gc-md2: Moved from ../.
65583         * modules/crypto/gc-md2-tests: Moved from ../.
65584         * modules/crypto/gc-md4: Moved from ../.
65585         * modules/crypto/gc-md4-tests: Moved from ../.
65586         * modules/crypto/gc-md5: Moved from ../.
65587         * modules/crypto/gc-md5-tests: Moved from ../.
65588         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65589         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65590         * modules/crypto/gc-random: Moved from ../.
65591         * modules/crypto/gc-rijndael: Moved from ../.
65592         * modules/crypto/gc-rijndael-tests: Moved from ../.
65593         * modules/crypto/gc-sha1: Moved from ../.
65594         * modules/crypto/gc-sha1-tests: Moved from ../.
65595         * modules/crypto/gc-tests: Moved from ../.
65596         * modules/crypto/hmac-md5: Moved from ../.
65597         * modules/crypto/hmac-md5-tests: Moved from ../.
65598         * modules/crypto/hmac-sha1: Moved from ../.
65599         * modules/crypto/hmac-sha1-tests: Moved from ../.
65600         * modules/crypto/md2: Moved from ../.
65601         * modules/crypto/md2-tests: Moved from ../.
65602         * modules/crypto/md4: Moved from ../.
65603         * modules/crypto/md4-tests: Moved from ../.
65604         * modules/crypto/md5: Moved from ../.
65605         * modules/crypto/md5-tests: Moved from ../.
65606         * modules/crypto/memxor: Moved from ../.
65607         * modules/crypto/rijndael: Moved from ../.
65608         * modules/crypto/rijndael-tests: Moved from ../.
65609         * modules/crypto/sha1: Moved from ../.
65610
65611 2007-03-30  James Youngman  <jay@gnu.org>
65612
65613         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65614         rename() to change the ctime of a file (because ctime is unaffected
65615         by rename on jfs2 on AIX 5.1).
65616         (main): Start by doing cleanup, in case a previous run failed leaving
65617         test files behind.
65618
65619 2007-03-31  Bruno Haible  <bruno@clisp.org>
65620
65621         Support old proprietary implementations of iconv.
65622         * modules/iconv_open: New file.
65623         * lib/iconv_.h: New file.
65624         * m4/iconv_h.m4: New file.
65625         * lib/iconv_open.c: New file.
65626         * lib/iconv_open-aix.gperf: New file.
65627         * lib/iconv_open-hpux.gperf: New file.
65628         * lib/iconv_open-irix.gperf: New file.
65629         * lib/iconv_open-osf.gperf: New file.
65630         * m4/iconv_open.m4: New file.
65631         * modules/linebreak (Depends-on): Add iconv_open.
65632         * modules/striconv (Depends-on): Likewise.
65633         * modules/striconveh (Depends-on): Likewise.
65634         * modules/unicodeio (Depends-on): Likewise.
65635         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65636         (iconv_t)(-1).
65637         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65638         conversion if cd is (iconv_t)(-1).
65639         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65640         is not possible.
65641
65642 2007-03-31  Bruno Haible  <bruno@clisp.org>
65643
65644         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65645         work on Solaris either. Protect also second use of "autodetect_jp".
65646
65647 2007-03-31  Bruno Haible  <bruno@clisp.org>
65648
65649         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65650         the function is not present.
65651
65652 2007-03-31  Bruno Haible  <bruno@clisp.org>
65653
65654         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65655         the function is not present.
65656
65657 2007-03-31  Bruno Haible  <bruno@clisp.org>
65658
65659         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65660         a bug in HP-UX iconv_open().
65661
65662 2007-03-31  Bruno Haible  <bruno@clisp.org>
65663
65664         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65665         (Mathematics <math.h>): New section, add fpieee.
65666         (Input/output <stdio.h>): Add fseterr.
65667         (Mathematics <math.h>): New section, add printf-frexp.
65668         (Container data structures): Add sublist.
65669         (Core language properties): Add fpucw, inline.
65670         (Functions for greatest-width integer types <inttypes.h>): Add
65671         imaxabs, imaxdiv, inttypes.
65672         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65673         isnanl-nolibm, ldexp.
65674         (Mathematics <math.h>): New section, add printf-frexpl.
65675         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65676         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65677         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65678         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65679         (Unicode string functions): Add unistr/u*-mbtoucr.
65680         (Java): Add javacomp-script, javaexec-script.
65681         (C#): Add csharpcomp-script, csharpexec-script.
65682         (Support for building libraries and executables): Add havelib,
65683         relocatable-*.
65684         (Support for maintaining and releasing projects): Renamed from
65685         'Support for maintaining and release projects'. Add announce-gen.
65686
65687 2007-03-31  Bruno Haible  <bruno@clisp.org>
65688
65689         * README: Talk primarily about git.
65690         (git and CVS): Renamed from CVS.
65691         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65692         gnulib is available through git.
65693         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65694
65695 2007-03-30  Bruno Haible  <bruno@clisp.org>
65696
65697         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65698         * lib/poll_.h: Likewise.
65699         * lib/stat_.h: Likewise.
65700         * lib/sys_time_.h: Likewise.
65701         * lib/sysexit_.h: Likewise.
65702         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65703         * lib/stdbool_.h: Likewise.
65704         * lib/byteswap_.h: Add double-inclusion guard.
65705
65706 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65707
65708         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65709
65710 2007-03-30  Karl Berry  <karl@gnu.org>
65711
65712         * config/srclist-update: double space after USA in the license
65713         substitution, since that's how it's usually (?) written.
65714
65715 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65716
65717         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65718         reported by Bruno Haible.
65719
65720 2007-03-29  Bruno Haible  <bruno@clisp.org>
65721
65722         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65723         a bug in AIX iconv().
65724
65725 2007-03-29  Bruno Haible  <bruno@clisp.org>
65726
65727         * modules/ldexpl-tests: New file.
65728         * tests/test-ldexpl.c: New file.
65729
65730 2007-03-29  Bruno Haible  <bruno@clisp.org>
65731
65732         * lib/ldexpl.c: Include fpucw.h.
65733         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65734         multiplication.
65735         * modules/ldexpl (Depends-on): Add fpucw.
65736
65737 2007-03-29  Bruno Haible  <bruno@clisp.org>
65738
65739         * modules/ldexpl: New file.
65740         * m4/ldexpl.m4: New file.
65741         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65742         set.
65743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65744         REPLACE_LDEXPL.
65745         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65746         REPLACE_LDEXPL.
65747         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65748         gl_FUNC_LDEXPL_WORKS.
65749         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65750         * modules/mathl (Files): Remove lib/ldexpl.c.
65751         (Depends-on): Add ldexpl.
65752
65753 2007-03-29  Bruno Haible  <bruno@clisp.org>
65754
65755         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65756
65757 2007-03-29  Bruno Haible  <bruno@clisp.org>
65758
65759         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65760         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65761         and possibly also HP-UX.
65762         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65763         work on AIX, IRIX, HP-UX, OSF/1.
65764         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65765         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65766         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65767         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65768         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65769         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65770
65771 2007-03-29  Bruno Haible  <bruno@clisp.org>
65772
65773         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65774
65775 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65776
65777         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65778         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65779
65780 2007-03-29  Eric Blake  <ebb9@byu.net>
65781
65782         * lib/acl-internal.h: Remove redundant include.
65783         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65784         Cygwin when a file is locked.
65785
65786 2007-03-29  Bruno Haible  <bruno@clisp.org>
65787
65788         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65789         file.
65790         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65791
65792 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65793
65794         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65795         try to remove a parent directory if the child couldn't be removed
65796         (except for the first rmdir, which could fail because the child
65797         doesn't exist).  Problem reported by Jeff Blaine in
65798         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65799
65800 2007-03-28  Bruno Haible  <bruno@clisp.org>
65801
65802         * lib/striconveh.c (utf8conv_carefully): New function.
65803         (mem_cd_iconveh_internal): Invoke it.
65804
65805 2007-03-28  Bruno Haible  <bruno@clisp.org>
65806
65807         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65808         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65809         input.
65810         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65811         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65812         unistr/u8-uctomb.
65813
65814 2007-03-28  Bruno Haible  <bruno@clisp.org>
65815
65816         * modules/unistr/u8-mbtoucr: New file.
65817         * lib/unistr/u8-mbtoucr.c: New file.
65818         * modules/unistr/u16-mbtoucr: New file.
65819         * lib/unistr/u16-mbtoucr.c: New file.
65820         * modules/unistr/u16-mbtoucr: New file.
65821         * lib/unistr/u16-mbtoucr.c: New file.
65822         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65823
65824 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65825             Bruno Haible  <bruno@clisp.org>
65826
65827         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
65828         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
65829         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
65830
65831         * m4/stdio_h.m4: Add stubs for vasprintf too.
65832
65833         * modules/stdio: Support vasprintf in sed command.
65834
65835         * modules/vasprintf: Depend on stdio for prototypes.  Remove
65836         vasprintf.h.  Add stdio module indicator.
65837
65838         * lib/stdio_.h: Declare asprintf and vasprintf, based on
65839         vasprintf.h.
65840
65841         * lib/vasprintf.h: File removed.
65842
65843         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
65844         * lib/vasprintf.c: Ditto.
65845         * lib/xvasprintf.c: Ditto.
65846         * tests/test-vasprintf-posix.c: Ditto.
65847         * tests/test-vasprintf.c: Ditto.
65848
65849 2007-03-27  Bruno Haible  <bruno@clisp.org>
65850
65851         Make vasnprintf multithread-safe.
65852         * lib/vasnprintf.c (decimal_point_char): New function.
65853         (VASNPRINTF): Use it.
65854         Suggested by Simon Josefsson.
65855
65856 2007-03-27  Eric Blake  <ebb9@byu.net>
65857
65858         Support sub-second birthtime on cygwin.
65859         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
65860         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
65861         (get_stat_birthtime): Also work with st_birthtim.
65862
65863 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
65864
65865         * lib/stat-time.h (USE_BIRTHTIME): Remove.
65866         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
65867         (get_stat_birthtime_ns): Do not try to use "spare" fields.
65868         (get_stat_birthtime_ns): Simplify compile-time tests.
65869         (get_stat_birthtime): Change the API to look like
65870         get_stat_mtime etc., except return a negative tv_nsec on error.
65871         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
65872         Don't check for "spare" fields.
65873         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
65874         or for struct stat.st_birthtime, as these tests aren't used.
65875         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
65876
65877 2007-03-27  Bruno Haible  <bruno@clisp.org>
65878
65879         * lib/stat-time.h: Include <sys/stat.h>.
65880
65881 2007-03-27  James Youngman  <jay@gnu.org>
65882
65883         * lib/stat-time.h (get_stat_birthtime): New function for
65884           retrieving st_birthtime as provided by UFS2 (hence *BSD).
65885         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
65886           and its variants.
65887         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
65888         * modules/stat-time-test: New file.
65889         * tests/test-stat-time.c: New test, devised by Bruno Haible.
65890
65891 2007-03-26  Bruno Haible  <bruno@clisp.org>
65892
65893         Better support of signalling NaNs.
65894         * lib/atanl.c: Include isnanl.h.
65895         (atanl): Perform test for NaN at the beginning of the function and
65896         through a call to isnanl.
65897         * lib/cosl.c: Include isnanl.h.
65898         (cosl): Perform test for NaN at the beginning of the function and
65899         through a call to isnanl.
65900         * lib/ldexpl.c: Include isnanl.h.
65901         (ldexpl): Perform test for NaN through a call to isnanl.
65902         * lib/logl.c: Include isnanl.h.
65903         (logl): Perform test for NaN at the beginning of the function and
65904         through a call to isnanl.
65905         * lib/sinl.c: Include isnanl.h.
65906         (sinl): Perform test for NaN at the beginning of the function and
65907         through a call to isnanl.
65908         * lib/sqrtl.c: Include isnanl.h.
65909         (sqrtl): Perform test for NaN at the beginning of the function and
65910         through a call to isnanl.
65911         * lib/tanl.c: Include isnanl.h.
65912         (tanl): Perform test for NaN at the beginning of the function and
65913         through a call to isnanl.
65914         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
65915         * modules/mathl (Depends-on): Add isnanl.
65916
65917 2007-03-26  Eric Blake  <ebb9@byu.net>
65918
65919         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
65920         regression in logic sense of previous patch.
65921
65922 2007-03-26  Bruno Haible  <bruno@clisp.org>
65923
65924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
65925         unportable shell command "if ! ...".
65926         Reported by Ralf Wildenhues.
65927
65928 2007-03-25  Bruno Haible  <bruno@clisp.org>
65929
65930         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
65931         <sysexits.h> file, and only add EX_CONFIG.
65932         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
65933         absolute file name and whether it is sufficient. Substitute also
65934         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
65935         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
65936         ABSOLUTE_SYSEXITS_H into sysexits.h.
65937
65938 2007-03-25  Bruno Haible  <bruno@clisp.org>
65939
65940         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
65941         hints is NULL.
65942
65943 2007-03-25  Bruno Haible  <bruno@clisp.org>
65944
65945         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
65946         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
65947
65948 2007-03-25  Bruno Haible  <bruno@clisp.org>
65949
65950         * lib/vasnprintf.c: Include langinfo.h.
65951         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
65952         multithread-safe.
65953         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
65954         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
65955         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65956         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65957         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65958         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65959         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
65961         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65962         Reported by Simon Josefsson.
65963
65964 2007-03-25  Bruno Haible  <bruno@clisp.org>
65965
65966         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
65967         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
65968         * modules/vasnprintf (Depends-on): Add stdint.
65969
65970 2007-03-25  Bruno Haible  <bruno@clisp.org>
65971
65972         * modules/fpieee: New file.
65973         * m4/fpieee.m4: New file.
65974         * modules/isnan-nolibm (Depends-on): Add fpieee.
65975         * modules/isnanl-nolibm (Depends-on): Add fpieee.
65976         * modules/isnanl (Depends-on): Add fpieee.
65977
65978 2007-03-25  Bruno Haible  <bruno@clisp.org>
65979
65980         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
65981
65982 2007-03-25  Bruno Haible  <bruno@clisp.org>
65983
65984         Avoid test failures on IRIX 6.5.
65985         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
65986         (main): Use it.
65987         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
65988         macros.
65989         (main): Use them.
65990
65991 2007-03-25  Bruno Haible  <bruno@clisp.org>
65992
65993         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
65994         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
65995         exists but doesn't work.
65996         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
65997         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
65998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
65999         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66000         math.h.
66001
66002 2007-03-25  Bruno Haible  <bruno@clisp.org>
66003
66004         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66005         returns inf. Needed on IRIX 6.5.
66006
66007 2007-03-25  Bruno Haible  <bruno@clisp.org>
66008
66009         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66010         (main): Use isnanl instead of x != x idiom.
66011         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66012
66013         * tests/test-frexp.c: Include isnan.h.
66014         (main): Use isnan instead of x != x idiom.
66015         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66016
66017 2007-03-25  Bruno Haible  <bruno@clisp.org>
66018
66019         * tests/test-frexp.c (NaN): New function/macro.
66020         (main): Use it instead of 0.0 / 0.0.
66021         * tests/test-isnan.c (NaN): New function/macro.
66022         (main): Use it instead of 0.0 / 0.0.
66023         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66024         (test_function): Use it instead of 0.0 / 0.0.
66025         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66026         (test_function): Use it instead of 0.0 / 0.0.
66027         * tests/test-snprintf-posix.h (NaN): New function/macro.
66028         (test_function): Use it instead of 0.0 / 0.0.
66029         * tests/test-sprintf-posix.h (NaN): New function/macro.
66030         (test_function): Use it instead of 0.0 / 0.0.
66031         * tests/test-fprintf-posix.h (NaN): New function/macro.
66032         (test_function): Use it instead of 0.0 / 0.0.
66033         * tests/test-printf-posix.h (NaN): New function/macro.
66034         (test_function): Use it instead of 0.0 / 0.0.
66035
66036         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66037
66038 2007-03-25  Bruno Haible  <bruno@clisp.org>
66039
66040         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66041
66042 2007-03-25  Bruno Haible  <bruno@clisp.org>
66043
66044         * lib/regexec.c (merge_state_with_log): Make static.
66045
66046 2007-03-25  Bruno Haible  <bruno@clisp.org>
66047
66048         * lib/trigl.c (kernel_rem_pio2): Make static.
66049
66050 2007-03-25  Bruno Haible  <bruno@clisp.org>
66051
66052         * lib/sincosl.c (sincosl_table): Make static.
66053
66054 2007-03-25  Bruno Haible  <bruno@clisp.org>
66055
66056         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66057         if the compiler does not support C99.
66058
66059 2007-03-25  Bruno Haible  <bruno@clisp.org>
66060
66061         * modules/time (Makefile.am): Ensure all rule action lines start with a
66062         tab.
66063
66064 2007-03-24  Bruno Haible  <bruno@clisp.org>
66065
66066         * modules/tsearch-tests: New file.
66067         * tests/test-tsearch.sh: New file.
66068         * tests/test-tsearch.c: New file, mostly copied from glibc.
66069
66070         * modules/search-tests: New file.
66071         * tests/test-search.c: New file.
66072
66073         * modules/search: New file.
66074         * lib/search_.h: New file, incorporating lib/tsearch.h.
66075         * m4/search_h.m4: New file.
66076         * lib/tsearch.h: Remove file.
66077         * lib/tsearch.c: Include search.h instead of tsearch.h.
66078         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66079         HAVE_TSEARCH.
66080         * modules/tsearch (Files): Remove lib/tsearch.h.
66081         (Depends-on): Add search.
66082         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66083         (Include): Change tsearch.h into search.h.
66084
66085 2007-03-24  Bruno Haible  <bruno@clisp.org>
66086
66087         * modules/fpucw: New file.
66088         * lib/fpucw.h: New file.
66089         * lib/frexp.c: Include fpucw.h.
66090         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66091         (FUNC): Use them.
66092         * lib/printf-frexp.c: Include fpucw.h.
66093         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66094         (FUNC): Use them.
66095         * lib/vasnprintf.c: Include fpucw.h.
66096         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66097         'long double' calculations.
66098         * tests/test-frexpl.c: Include fpucw.h.
66099         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66100         * tests/test-printf-frexpl.c: Include fpucw.h.
66101         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66102         * modules/frexpl (Depends-on): Add fpucw.
66103         * modules/printf-frexpl (Depends-on): Likewise.
66104         * modules/fprintf-posix (Depends-on): Likewise.
66105         * modules/snprintf-posix (Depends-on): Likewise.
66106         * modules/sprintf-posix (Depends-on): Likewise.
66107         * modules/vasnprintf-posix (Depends-on): Likewise.
66108         * modules/vasprintf-posix (Depends-on): Likewise.
66109         * modules/vfprintf-posix (Depends-on): Likewise.
66110         * modules/vsnprintf-posix (Depends-on): Likewise.
66111         * modules/vsprintf-posix (Depends-on): Likewise.
66112         * modules/frexpl-tests (Depends-on): Likewise.
66113         * modules/printf-frexpl-tests (Depends-on): Likewise.
66114
66115 2007-03-24  Bruno Haible  <bruno@clisp.org>
66116
66117         * lib/float+.h: New file.
66118         * lib/isnan.c: Include float+.h.
66119         (SIZE): New macro.
66120         (FUNC): Compare only SIZE bytes of the value.
66121         * lib/vasnprintf.c: Include float+.h.
66122         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66123         SIZEOF_LDBL or SIZEOF_DBL bytes.
66124         * modules/isnan-nolibm (Files): Add lib/float+.h.
66125         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66126         * modules/isnanl (Files): Add lib/float+.h.
66127         * modules/vasnprintf (Files): Add lib/float+.h.
66128
66129 2007-03-24  Bruno Haible  <bruno@clisp.org>
66130
66131         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66132         include isnanl-nolibm.h.
66133
66134 2007-03-24  Bruno Haible  <bruno@clisp.org>
66135
66136         * tests/test-read-file.c (main): Don't produce spurious output for
66137         expected situations. Make the test fail if it encountered unexpected
66138         results.
66139
66140 2007-03-24  Bruno Haible  <bruno@clisp.org>
66141
66142         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66143         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66144
66145 2007-03-24  Bruno Haible  <bruno@clisp.org>
66146
66147         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66148
66149 2007-03-24  Bruno Haible  <bruno@clisp.org>
66150
66151         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66152         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66153
66154         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66155         * modules/utf8-ucs4: Turn into a symbolic link to module
66156         unistr/u8-mbtouc.
66157
66158         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66159         utf8-ucs4-unsafe.
66160         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66161         unistr/u8-mbtouc-unsafe.
66162
66163         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66164         * modules/utf16-ucs4: Turn into a symbolic link to module
66165         unistr/u16-mbtouc.
66166
66167         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66168         utf16-ucs4-unsafe.
66169         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66170         unistr/u16-mbtouc-unsafe.
66171
66172         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66173         * modules/ucs4-utf8: Turn into a symbolic link to module
66174         unistr/u8-ubtomb.
66175
66176         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66177         * modules/ucs4-utf16: Turn into a symbolic link to module
66178         unistr/u16-ubtomb.
66179
66180 2007-03-24  Bruno Haible  <bruno@clisp.org>
66181
66182         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66183         Enable the function only if HAVE_INLINE.
66184         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66185         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66186         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66187         Enable the function only if HAVE_INLINE.
66188         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66189         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66190         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66191         Enable the function only if HAVE_INLINE.
66192         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66193         Enable the function only if HAVE_INLINE.
66194         * modules/utf8-ucs4: Update.
66195         * modules/utf8-ucs4-unsafe: Update.
66196         * modules/utf16-ucs4: Update.
66197         * modules/utf16-ucs4-unsafe: Update.
66198         * modules/ucs4-utf8: Update.
66199         * modules/ucs4-utf16: Update.
66200
66201 2007-03-24  Bruno Haible  <bruno@clisp.org>
66202
66203         * lib/utf8-ucs4.h: Remove file.
66204         * lib/utf8-ucs4-unsafe.h: Remove file.
66205         * lib/utf16-ucs4.h: Remove file.
66206         * lib/utf16-ucs4-unsafe.h: Remove file.
66207         * lib/ucs4-utf8.h: Remove file.
66208         * lib/ucs4-utf16.h: Remove file.
66209         * lib/unistr.h: Include their previous contents.
66210         * m4/utf-ucs4.m4: Remove file.
66211         * m4/ucs4-utf.m4: Remove file.
66212         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66213         (Depends-on): Add unistr/base.
66214         (configure.ac): Remove gl_UTF_UCS4.
66215         (Makefile.am): Update.
66216         (Include): Change to unistr.h.
66217         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66218         (Depends-on): Add unistr/base.
66219         (configure.ac): Remove gl_UTF_UCS4.
66220         (Makefile.am): Update.
66221         (Include): Change to unistr.h.
66222         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66223         (Depends-on): Add unistr/base.
66224         (configure.ac): Remove gl_UTF_UCS4.
66225         (Makefile.am): Update.
66226         (Include): Change to unistr.h.
66227         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66228         (Depends-on): Add unistr/base.
66229         (configure.ac): Remove gl_UTF_UCS4.
66230         (Makefile.am): Update.
66231         (Include): Change to unistr.h.
66232         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66233         (Depends-on): Add unistr/base.
66234         (configure.ac): Remove gl_UCS4_UTF.
66235         (Makefile.am): Update.
66236         (Include): Change to unistr.h.
66237         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66238         (Depends-on): Add unistr/base.
66239         (configure.ac): Remove gl_UCS4_UTF.
66240         (Makefile.am): Update.
66241         (Include): Change to unistr.h.
66242         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66243         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66244         utf8-ucs4-unsafe.h.
66245         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66246         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66247         utf16-ucs4-unsafe.h.
66248         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66249         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66250         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66251         * lib/unistr/u8-strchr.c: Likewise.
66252         * lib/unistr/u8-strrchr.c: Likewise.
66253         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66254         * lib/unistr/u16-strchr.c: Likewise.
66255         * lib/unistr/u16-strrchr.c: Likewise.
66256         * lib/striconveh.c: Update.
66257         * lib/linebreak.c: Update.
66258
66259 2007-03-24  Bruno Haible  <bruno@clisp.org>
66260
66261         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66262         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66263
66264 2007-03-22  Bruno Haible  <bruno@clisp.org>
66265
66266         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66267
66268 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66269
66270         * MODULES.html.sh (File system functions): New module write-any-file.
66271         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66272         * m4/write-any-file.m4: New files.
66273
66274 2007-03-23  Eric Blake  <ebb9@byu.net>
66275
66276         * gnulib-tool: Rearrange space-tab sequences, since some editors
66277         like to eat them.
66278
66279 2007-03-23  Eric Blake  <ebb9@byu.net>
66280
66281         * lib/version-etc.c (version_etc_va): Update license wording to
66282         be more concise.  Recommended by Richard Stallman.
66283
66284 2007-03-22  Bruno Haible  <bruno@clisp.org>
66285
66286         * lib/poll.c (MSG_PEEK): New fallback definition.
66287
66288 2007-03-22  Bruno Haible  <bruno@clisp.org>
66289
66290         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66291         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66292         (main): Update.
66293         Fixes a compilation error on BeOS.
66294
66295 2007-03-22  Bruno Haible  <bruno@clisp.org>
66296
66297         * modules/frexpl-tests: New file.
66298         * tests/test-frexpl.c: New file.
66299
66300         * modules/frexpl: New file.
66301         * m4/frexpl.m4: New file.
66302         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66303         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66305         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66306         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66307         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66308
66309 2007-03-22  Bruno Haible  <bruno@clisp.org>
66310
66311         * lib/frexpl.c: Share code with lib/frexp.c.
66312         * modules/mathl (Files): Add lib/frexp.c.
66313         (Depends-on): Add isnanl-nolibm.
66314
66315 2007-03-22  Bruno Haible  <bruno@clisp.org>
66316
66317         * modules/printf-frexp (Files): Add m4/frexp.m4.
66318         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66319         only if the found frexp function actually works.
66320
66321 2007-03-22  Bruno Haible  <bruno@clisp.org>
66322
66323         * lib/frexp.c: Remove older implementation that uses divisions.
66324
66325 2007-03-21  Bruno Haible  <bruno@clisp.org>
66326
66327         * modules/frexp-tests: New file.
66328         * tests/test-frexp.c: New file.
66329
66330         * modules/frexp: New file.
66331         * lib/frexp.c: New file.
66332         * m4/frexp.m4: New file.
66333         * lib/math_.h (frexp): New declaration.
66334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66335         REPLACE_FREXP.
66336         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66337
66338 2007-03-21  Bruno Haible  <bruno@clisp.org>
66339
66340         * modules/isnanl-tests: New file.
66341         * tests/test-isnanl.c: New file.
66342
66343         * modules/isnanl: New file.
66344         * lib/isnanl.h: New file.
66345         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66346         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66347         gl_FUNC_ISNANL_WORKS.
66348         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66349         New macros.
66350
66351 2007-03-21  Bruno Haible  <bruno@clisp.org>
66352
66353         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66354         lib/isnanl.h.
66355         (Include): Update.
66356         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66357         * lib/vasnprintf.c: Update.
66358         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66359         tests/test-isnanl.h, remove tests/test-isnanl.c.
66360         (Makefile.am): Update.
66361         * tests/test-isnanl-nolibm.c: New file.
66362         * tests/test-isnanl.h: New file.
66363         * tests/test-isnanl.c: Remove file.
66364
66365 2007-03-21  Jim Meyering  <jim@meyering.net>
66366
66367         When trying to open ".", treat ESTALE like EACCES.
66368         * lib/savewd.c (savewd_save): Resort to forking not just upon
66369         failure with EACCES, but also when errno is ESTALE.
66370
66371 2007-03-20  Bruno Haible  <bruno@clisp.org>
66372
66373         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66374         Needed on AIX 5.1. Reported by Matthew Woehlke.
66375
66376 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66377
66378         Suggestions by Bruno Haible:
66379         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66380         our own.
66381         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66382         * modules/acl (Depends-on): Add gettext.
66383
66384 2007-03-19  Bruno Haible  <bruno@clisp.org>
66385
66386         * modules/iconvme: Remove file.
66387         * lib/iconvme.h: Remove file.
66388         * lib/iconvme.c: Remove file.
66389         * m4/iconvme.m4: Remove file.
66390
66391 2007-03-19  Bruno Haible  <bruno@clisp.org>
66392
66393         * doc/relocatable-maint.texi: Break long shell script line.
66394         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66395
66396 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66397
66398         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66399         handle file_has_acl.
66400         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66401         * lib/acl.c: Move header inclusions and related macro defns into
66402         lib/acl-internal.h.
66403         (S_ISLNK): Remove defn, since that's now done for us.
66404         (file_has_acl): Move to lib/file-has-acl.c.
66405         Call acl_trivial if available.  This is the crucial part of the fix.
66406         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66407         shared within the library.  Rewrite a bit, partly to make it compatible
66408         with the GNU coding style.
66409         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66410         Remove unnecessary double-quotes.
66411         Don't test for acl_to_text; the build will catch that.
66412         Replace acl_entries if it doesn't exist and it is needed.
66413         Check for -lsec and acl_trivial (as used on Solaris 10).
66414         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66415         lib/file-has-acl.c.
66416         (Depends-on): Add sys_stat, for S_ISLNK.
66417
66418 2007-03-19  Ben Pfaff  <blp@gnu.org>
66419
66420         * doc/gnulib.texi: Fix typos.
66421         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66422
66423 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66424
66425         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66426         If size is zero here, buf must be zero.
66427
66428 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66429
66430         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66431         <bruno@clisp.org>.
66432
66433 2007-03-18  Bruno Haible  <bruno@clisp.org>
66434
66435         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66436         Suggested by Eric Blake.
66437
66438 2007-03-18  Ben Pfaff  <blp@gnu.org>
66439
66440         * doc/relocatable.texi: Recommend using as prefix a directory
66441         that does not exist and will never be created.  Based on
66442         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66443         and others.
66444
66445 2007-03-17  Bruno Haible  <bruno@clisp.org>
66446
66447         * lib/fchownat.c: Include lchown.h.
66448
66449 2007-03-17  Bruno Haible  <bruno@clisp.org>
66450
66451         Fix endless loop when the given allocated size was > INT_MAX.
66452         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66453         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66454         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66455         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66456         * lib/sprintf.c (sprintf): Likewise.
66457
66458 2007-03-17  Bruno Haible  <bruno@clisp.org>
66459
66460         * tests/test-argp-2.sh (func_compare): Output a context diff.
66461
66462 2007-03-17  Bruno Haible  <bruno@clisp.org>
66463
66464         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66465         locale's decimal-point character.
66466
66467 2007-03-17  Bruno Haible  <bruno@clisp.org>
66468
66469         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66470         before comparing it. Needed because on some platforms (e.g. x86) a
66471         'long double' occupies less bytes than sizeof (long double).
66472
66473 2007-03-17  Bruno Haible  <bruno@clisp.org>
66474
66475         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66476         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66477         * tests/test-getaddrinfo.c (simple): Likewise.
66478         * tests/test-read-file.c (main): Likewise.
66479
66480 2007-03-17  Bruno Haible  <bruno@clisp.org>
66481
66482         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66483
66484 2007-03-17  Bruno Haible  <bruno@clisp.org>
66485
66486         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66487         unused variable.
66488
66489 2007-03-17  Bruno Haible  <bruno@clisp.org>
66490
66491         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66492         * tests/test-c-strncasecmp.c: Likewise.
66493
66494 2007-03-17  Bruno Haible  <bruno@clisp.org>
66495
66496         * modules/stdlib (Depends-on): Add unistd.
66497         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66498         Needed for MacOS X 10.3.
66499
66500 2007-03-17  Bruno Haible  <bruno@clisp.org>
66501
66502         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66503
66504 2007-03-17  Bruno Haible  <bruno@clisp.org>
66505
66506         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66507
66508 2007-03-17  Bruno Haible  <bruno@clisp.org>
66509
66510         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66511         to reflect files copied from gnulib (with or without modifications).
66512         Suggested by Jim Meyering.
66513
66514 2007-03-17  Eric Blake  <ebb9@byu.net>
66515
66516         * NEWS: Document stdlib change from 2007-02-18.
66517
66518 2007-03-17  Jim Meyering  <jim@meyering.net>
66519
66520         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66521         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66522         someone uses a name containing shell meta-characters.
66523         Reported by Alfred M. Szmidt.
66524
66525         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66526
66527 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66528
66529         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66530         and copy gettext configuration files only if configure.ac contains
66531         a use of AM_GNU_GETTEXT_VERSION.
66532
66533 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66534
66535         * build-aux/bootstrap (gnulib_name): New variable.
66536         (gnulib_tool_options): Use it.
66537
66538 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66539
66540         * tests/test-des.c: Use new namespace.
66541
66542 2007-03-15  Bruno Haible  <bruno@clisp.org>
66543
66544         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66545         Reported by James Youngman <jay@gnu.org>.
66546
66547 2007-03-15  Bruno Haible  <bruno@clisp.org>
66548
66549         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66550         declared prototype. Needed with cc on OSF/1 5.1.
66551
66552 2007-03-15  Bruno Haible  <bruno@clisp.org>
66553
66554         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66555         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66556         (struct gl_list_implementation): Add dispose_fn argument to the
66557         'create_empty', 'create' methods.
66558         (struct gl_list_impl_base): Add field 'dispose_fn'.
66559         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66560         argument.
66561         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66562         dispose_fn argument.
66563         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66564         dispose_fn on the dropped values.
66565         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66566         dispose_fn argument.
66567         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66568         dropped values.
66569         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66570         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66571         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66572         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66573         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66574         argument.
66575         (gl_tree_list_free): Call dispose_fn on the dropped values.
66576         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66577         the dropped values.
66578         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66579         Add dispose_fn argument.
66580         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66581         Call dispose_fn on the dropped values.
66582         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66583         Add dispose_fn argument.
66584         (gl_sublist_create): Initialize the 'dispose_fn' field.
66585         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66586         * tests/test-array_list.c (main): Update.
66587         * tests/test-carray_list.c (main): Update.
66588         * tests/test-avltree_list.c (main): Update.
66589         * tests/test-rbtree_list.c (main): Update.
66590         * tests/test-avltreehash_list.c (main): Update.
66591         * tests/test-rbtreehash_list.c (main): Update.
66592         * tests/test-linked_list.c (main): Update.
66593         * tests/test-linkedhash_list.c (main): Update.
66594         * tests/test-array_oset.c (main): Update.
66595
66596 2007-03-15  Bruno Haible  <bruno@clisp.org>
66597
66598         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66599         (gl_oset_create_empty): Add dispose_fn argument.
66600         (struct gl_oset_implementation): Add dispose_fn argument to
66601         'create_empty' method.
66602         (struct gl_oset_impl_base): Add dispose_fn field.
66603         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66604         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66605         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66606         values.
66607         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66608         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66609         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66610         dropped value.
66611         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66612         dropped value.
66613         * tests/test-array_oset.c (main): Update.
66614         * tests/test-avltree_oset.c (main): Update.
66615         * tests/test-rbtree_oset.c (main): Update.
66616         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66617
66618 2007-03-13  Bruno Haible  <bruno@clisp.org>
66619
66620         * tests/test-stdbool.c (i): Update after last patch.
66621
66622 2007-03-12  Bruno Haible  <bruno@clisp.org>
66623
66624         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66625         the iswprint macro. Needed on Solaris 2.5.1.
66626
66627 2007-03-12  Bruno Haible  <bruno@clisp.org>
66628
66629         * tests/test-printf-frexp.c (main): Declare x as volatile.
66630
66631 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66632
66633         * doc/gnulib.texi (Build robot for gnulib): New section.
66634
66635 2007-03-12  Jim Meyering  <jim@meyering.net>
66636
66637         * build-aux/bootstrap: New file.
66638         * build-aux/bootstrap.conf: New file, from coreutils.
66639
66640 2007-03-11  Bruno Haible  <bruno@clisp.org>
66641
66642         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66643
66644 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66645
66646         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66647         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66648         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66649
66650 2007-03-11  Bruno Haible  <bruno@clisp.org>
66651
66652         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66653         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66654
66655 2007-03-11  Bruno Haible  <bruno@clisp.org>
66656
66657         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66658         formula. Needed for SunPRO C 5.0.
66659
66660 2007-03-11  Bruno Haible  <bruno@clisp.org>
66661
66662         * modules/long-options (Depends-on): Add getopt.
66663
66664 2007-03-11  Bruno Haible  <bruno@clisp.org>
66665
66666         * modules/modechange (Depends-on): Add stdbool.
66667
66668 2007-03-11  Bruno Haible  <bruno@clisp.org>
66669
66670         * modules/i-ring (Depends-on): Add stdbool.
66671
66672 2007-03-11  Bruno Haible  <bruno@clisp.org>
66673
66674         * modules/gc-des (Depends-on): Add stdbool.
66675
66676 2007-03-11  Bruno Haible  <bruno@clisp.org>
66677
66678         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66679
66680 2007-03-11  Bruno Haible  <bruno@clisp.org>
66681
66682         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66683
66684 2007-03-11  Bruno Haible  <bruno@clisp.org>
66685
66686         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66687
66688 2007-03-11  Bruno Haible  <bruno@clisp.org>
66689
66690         * lib/vasnprintf.c (sprintf): Undefine.
66691
66692 2007-03-11  Bruno Haible  <bruno@clisp.org>
66693
66694         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66695         initializers in SunPRO C and Compaq C compilers.
66696
66697 2007-03-11  Bruno Haible  <bruno@clisp.org>
66698
66699         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66700         decrementing code ANSI C compliant.
66701
66702 2007-03-11  Bruno Haible  <bruno@clisp.org>
66703
66704         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66705         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66706
66707 2007-03-11  Bruno Haible  <bruno@clisp.org>
66708
66709         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66710         <stdbool.h> substitute doesn't pass.
66711
66712 2007-03-11  Bruno Haible  <bruno@clisp.org>
66713
66714         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66715
66716 2007-03-11  Bruno Haible  <bruno@clisp.org>
66717
66718         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66719         script, for submission to autobuild.josefsson.org.
66720
66721 2007-03-10  Bruno Haible  <bruno@clisp.org>
66722
66723         * modules/canonicalize-lgpl-tests: New file.
66724         * tests/test-canonicalize-lgpl.sh: New file.
66725         * tests/test-canonicalize-lgpl.c: New file.
66726
66727         * modules/c-strcase-tests: New file.
66728         * tests/test-c-strcase.sh: New file.
66729         * tests/test-c-strcasecmp.c: New file.
66730         * tests/test-c-strncasecmp.c: New file.
66731
66732         * modules/atexit-tests: New file.
66733         * tests/test-atexit.sh: New file.
66734         * tests/test-atexit.c: New file.
66735
66736 2007-03-10  Bruno Haible  <bruno@clisp.org>
66737
66738         * tests/test-binary-io.sh: Use temporary filenames that are not so
66739         likely to clash with those of other tests (in a parallel make).
66740         * tests/test-binary-io.c: Likewise.
66741
66742 2007-03-10  Bruno Haible  <bruno@clisp.org>
66743
66744         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66745         fallback; use #error instead.
66746         Suggested by Simon Josefsson.
66747
66748 2007-03-10  Bruno Haible  <bruno@clisp.org>
66749
66750         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66751         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66752         first and the last.
66753
66754 2007-03-10  Bruno Haible  <bruno@clisp.org>
66755
66756         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66757
66758 2007-03-10  Bruno Haible  <bruno@clisp.org>
66759
66760         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66761         "make distcheck".
66762         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66763         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66764         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66765
66766 2007-03-10  Bruno Haible  <bruno@clisp.org>
66767
66768         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66769         variable.
66770         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66771         variable.
66772
66773 2007-03-09  Eric Blake  <ebb9@byu.net>
66774         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66775
66776         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66777         types are not being provided by gnulib.
66778         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66779         types are supported.
66780
66781 2007-03-10  Bruno Haible  <bruno@clisp.org>
66782
66783         * lib/stdio_.h (__attribute__): New macro.
66784         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66785         vsprintf): Specify __attribute__ __format__ for GCC.
66786         Suggested by Eric Blake.
66787
66788 2007-03-09  Bruno Haible  <bruno@clisp.org>
66789
66790         * modules/printf-posix-tests: New file.
66791         * tests/test-printf-posix.sh: New file.
66792         * tests/test-printf-posix.c: New file.
66793
66794         * modules/printf-posix: New file.
66795         * lib/printf.c: New file.
66796         * m4/printf-posix-rpl.m4: New file.
66797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66798         REPLACE_PRINTF.
66799         * lib/stdio_.h (printf): New declaration.
66800         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66801         ____strfmon____): New macros.
66802         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66803         REPLACE_PRINTF.
66804
66805 2007-03-09  Bruno Haible  <bruno@clisp.org>
66806
66807         * tests/test-vasnprintf-posix2.sh: New file.
66808         * tests/test-vasnprintf-posix2.c: New file.
66809         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66810         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66811         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66812
66813         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66814         a locale dependent decimal point, rather than always '.'.
66815
66816 2007-03-09  Eric Blake  <ebb9@byu.net>
66817
66818         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66819         spite of platforms like Tandem/NSK that define it to -1.
66820
66821 2007-03-08  Bruno Haible  <bruno@clisp.org>
66822
66823         * modules/vprintf-posix-tests: New file.
66824         * tests/test-vprintf-posix.sh: New file.
66825         * tests/test-vprintf-posix.c: New file.
66826         * tests/test-printf-posix.h: New file.
66827
66828         * modules/vprintf-posix: New file.
66829         * lib/vprintf.c: New file.
66830         * m4/vprintf-posix.m4: New file.
66831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
66832         REPLACE_VPRINTF.
66833         * lib/stdio_.h (vprintf): New declaration.
66834         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
66835         REPLACE_VPRINTF.
66836
66837 2007-03-08  Bruno Haible  <bruno@clisp.org>
66838
66839         * modules/fprintf-posix-tests: New file.
66840         * tests/test-fprintf-posix.sh: New file.
66841         * tests/test-fprintf-posix.c: New file.
66842
66843         * modules/fprintf-posix: New file.
66844         * lib/fprintf.c: New file.
66845         * m4/fprintf-posix.m4: New file.
66846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
66847         REPLACE_FPRINTF.
66848         * lib/stdio_.h (fprintf): New declaration.
66849         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
66850         REPLACE_FPRINTF.
66851
66852 2007-03-08  Bruno Haible  <bruno@clisp.org>
66853
66854         * modules/vfprintf-posix-tests: New file.
66855         * tests/test-vfprintf-posix.sh: New file.
66856         * tests/test-vfprintf-posix.c: New file.
66857         * tests/test-fprintf-posix.h: New file.
66858         * tests/test-fprintf-posix.out: New file.
66859
66860         * modules/vfprintf-posix: New file.
66861         * lib/vfprintf.c: New file.
66862         * m4/vfprintf-posix.m4: New file.
66863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
66864         REPLACE_VFPRINTF.
66865         * lib/stdio_.h (vfprintf): New declaration.
66866         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
66867         REPLACE_VFPRINTF.
66868
66869 2007-03-08  Bruno Haible  <bruno@clisp.org>
66870
66871         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
66872
66873 2007-03-08  Bruno Haible  <bruno@clisp.org>
66874
66875         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
66876         instead of 'expr' invocations.
66877         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66879         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66880         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66881         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66882         Suggested by Paul Eggert.
66883
66884 2007-03-08  Bruno Haible  <bruno@clisp.org>
66885
66886         * modules/fseterr-tests: New file.
66887         * tests/test-fseterr.c: New file.
66888
66889         * modules/fseterr: New file.
66890         * lib/fseterr.h: New file.
66891         * lib/fseterr.c: New file.
66892
66893 2007-03-08  Bruno Haible  <bruno@clisp.org>
66894
66895         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
66896         * lib/getopt_.h: Likewise.
66897         * lib/mbswidth.h: Likewise.
66898         * lib/setenv.h: Likewise.
66899         * lib/vasnprintf.h: Likewise.
66900         * lib/vasprintf.h: Likewise.
66901         * lib/verror.h: Likewise.
66902         * lib/xsetenv.h: Likewise.
66903         * lib/xvasprintf.h: Likewise.
66904
66905 2007-03-08  Jim Meyering  <jim@meyering.net>
66906
66907         * users.txt: Add parted.
66908
66909         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
66910
66911 2007-03-07  Bruno Haible  <bruno@clisp.org>
66912
66913         * m4/printf.m4: Make the shell script snippets copy&pastable.
66914
66915 2007-03-02  Bruno Haible  <bruno@clisp.org>
66916
66917         * lib/netinet_in_.h: New file.
66918         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
66919         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
66920         * modules/netinet_in (Files): Add lib/netinet_in_.h.
66921         (Depends-on): Add absolute-header.
66922         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
66923         into netinet/in.h.
66924
66925 2007-03-03  Bruno Haible  <bruno@clisp.org>
66926
66927         * lib/sys_select_.h: New file.
66928         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
66929         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
66930         * modules/sys_select (Files): Add lib/sys_select_.h.
66931         (Depends-on): Add absolute-header.
66932         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
66933         into sys/select.h.
66934
66935 2007-03-02  Bruno Haible  <bruno@clisp.org>
66936
66937         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
66938         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
66939         values.
66940         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
66941         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
66942         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
66943         * modules/sys_socket (Depends-on): Add absolute-header.
66944         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
66945         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
66946         (Include): Remove requirement of inclusion of <sys/types.h>.
66947
66948 2007-03-02  Bruno Haible  <bruno@clisp.org>
66949
66950         * lib/byteswap_.h (bswap_32): Fix formula.
66951
66952 2007-03-06  Bruno Haible  <bruno@clisp.org>
66953
66954         * modules/sprintf-posix-tests: New file.
66955         * tests/test-sprintf-posix.c: New file.
66956
66957         * modules/sprintf-posix: New file.
66958         * lib/sprintf.c: New file.
66959         * m4/sprintf-posix.m4: New file.
66960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
66961         REPLACE_SPRINTF.
66962         * lib/stdio_.h (sprintf): New declaration.
66963         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
66964         REPLACE_SPRINTF.
66965
66966 2007-03-06  Bruno Haible  <bruno@clisp.org>
66967
66968         * modules/vsprintf-posix-tests: New file.
66969         * tests/test-vsprintf-posix.c: New file.
66970         * tests/test-sprintf-posix.h: New file.
66971
66972         * modules/vsprintf-posix: New file.
66973         * lib/vsprintf.c: New file.
66974         * m4/vsprintf-posix.m4: New file.
66975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
66976         REPLACE_VSPRINTF.
66977         * lib/stdio_.h (vsprintf): New declaration.
66978         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
66979         REPLACE_VSPRINTF.
66980
66981 2007-03-06  Bruno Haible  <bruno@clisp.org>
66982
66983         * modules/vsnprintf (Depend-on): Remove minmax.
66984
66985 2007-03-06  Bruno Haible  <bruno@clisp.org>
66986
66987         * modules/snprintf-posix-tests: New file.
66988         * tests/test-snprintf-posix.c: New file.
66989
66990         * modules/snprintf-posix: New file.
66991         * m4/snprintf-posix.m4: New file.
66992         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
66993         gl_FUNC_SNPRINTF.
66994         (gl_FUNC_SNPRINTF): Invoke it.
66995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
66996         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
66997         is set.
66998         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
66999
67000 2007-03-06  Bruno Haible  <bruno@clisp.org>
67001
67002         * modules/vsnprintf-posix-tests: New file.
67003         * tests/test-vsnprintf-posix.c: New file.
67004         * tests/test-snprintf-posix.h: New file.
67005
67006         * modules/vsnprintf-posix: New file.
67007         * m4/vsnprintf-posix.m4: New file.
67008         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67009         gl_FUNC_VSNPRINTF.
67010         (gl_FUNC_VSNPRINTF): Invoke it.
67011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67012         * lib/stdio_.h (vsnprintf): Define as a replacement if
67013         REPLACE_VSNPRINTF is set.
67014         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67015
67016 2007-03-06  Bruno Haible  <bruno@clisp.org>
67017
67018         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67020
67021 2007-03-06  Bruno Haible  <bruno@clisp.org>
67022
67023         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67024         (asinl): Declare also if HAVE_DECL_ASINL is set.
67025         (atanl): Declare also if HAVE_DECL_ATANL is set.
67026         (ceill): Declare also if HAVE_DECL_CEILL is set.
67027         (cosl): Declare also if HAVE_DECL_COSL is set.
67028         (expl): Declare also if HAVE_DECL_EXPL is set.
67029         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67030         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67031         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67032         (logl): Declare also if HAVE_DECL_LOGL is set.
67033         (sinl): Declare also if HAVE_DECL_SINL is set.
67034         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67035         (tanl): Declare also if HAVE_DECL_TANL is set.
67036         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67038         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67039         declaration of frexpl, ldexpl.
67040         * modules/printf-frexpl (Depends-on): Add math.
67041         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67042
67043 2007-03-05  Bruno Haible  <bruno@clisp.org>
67044
67045         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67046         frexpl and ldexpl are declared.
67047         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67048
67049 2007-03-05  Bruno Haible  <bruno@clisp.org>
67050
67051         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67052         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67053
67054 2007-03-05  Bruno Haible  <bruno@clisp.org>
67055
67056         * lib/stdio_.h: Include <stddef.h>.
67057
67058 2007-03-05  Bruno Haible  <bruno@clisp.org>
67059
67060         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67061
67062 2007-03-05  Bruno Haible  <bruno@clisp.org>
67063
67064         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67065         NetBSD 4, from Ralf Wildenhues.
67066
67067 2007-03-04  Bruno Haible  <bruno@clisp.org>
67068
67069         * lib/vasprintf.h: Update #if logic for the case when the functions
67070         exist but are overridden.
67071
67072 2007-03-04  Bruno Haible  <bruno@clisp.org>
67073
67074         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67075         implementations: glibc-2.4 and MacOS X 10.3.
67076         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67077         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67078         * tests/test-vasprintf-posix.c (test_function): Likewise.
67079
67080 2007-03-04  Bruno Haible  <bruno@clisp.org>
67081
67082         * modules/vasprintf-posix-tests: New file.
67083         * tests/test-vasprintf-posix.c: New file.
67084
67085         * modules/vasprintf-posix: New file.
67086         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67087         defined.
67088         * m4/vasprintf-posix.m4: New file.
67089         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67090         gl_FUNC_VASPRINTF.
67091         (gl_FUNC_VASPRINTF): Invoke it.
67092         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67093         here.
67094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67095
67096 2007-03-04  Bruno Haible  <bruno@clisp.org>
67097
67098         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67099         REPLACE_GETTIMEOFDAY.
67100         * modules/sys_time (Makefile.am): Likewise.
67101         * m4/sys_time_h.m4: Likewise.
67102         * m4/gettimeofday.m4: Likewise.
67103
67104 2007-03-04  Bruno Haible  <bruno@clisp.org>
67105
67106         * modules/vasnprintf-posix-tests: New file.
67107         * tests/test-vasnprintf-posix.c: New file.
67108
67109         * modules/vasnprintf-posix: New file.
67110         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67111         printf-frexpl.h.
67112         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67113         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67114         REPLACE_VASNPRINTF is defined.
67115         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67116         gl_FUNC_VASNPRINTF.
67117         (gl_FUNC_VASNPRINTF): Invoke it.
67118         * m4/vasnprintf-posix.m4: New file.
67119         * m4/printf.m4: New file.
67120
67121 2007-03-04  Bruno Haible  <bruno@clisp.org>
67122
67123         Compile progreloc.c only if --enable-relocatable is specified.
67124         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67125         if --enable-relocatable was specified.
67126         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67127         lib_SOURCES.
67128
67129 2007-03-04  Jim Meyering  <jim@meyering.net>
67130
67131         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67132         Use it consistently, rather than enumerating errno constants.
67133
67134 2007-03-04  Bruno Haible  <bruno@clisp.org>
67135
67136         * modules/xvasprintf-tests: New file.
67137         * tests/test-xvasprintf.c: New file.
67138
67139         * modules/vasprintf-tests: New file.
67140         * tests/test-vasprintf.c: New file.
67141
67142         * modules/vasnprintf-tests: New file.
67143         * tests/test-vasnprintf.c: New file.
67144
67145         * modules/vsnprintf-tests: New file.
67146         * tests/test-vsnprintf.c: New file.
67147
67148         * modules/snprintf-tests: New file.
67149         * tests/test-snprintf.c: New file.
67150
67151 2007-03-04  Bruno Haible  <bruno@clisp.org>
67152
67153         Compile relocatable.c only if --enable-relocatable is specified.
67154         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67155         gl_RELOCATABLE_LIBRARY.
67156         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67157         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67158         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67159         gl_RELOCATABLE_LIBRARY.
67160         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67161         (Makefile.am): Remove lib_SOURCES.
67162         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67163         gl_RELOCATABLE_LIBRARY.
67164         (Makefile.am): Remove lib_SOURCES.
67165         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67166         always.
67167         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67168         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67169
67170 2007-03-04  Bruno Haible  <bruno@clisp.org>
67171
67172         * modules/argmatch-tests: New file.
67173         * tests/test-argmatch.c: New file.
67174
67175         * tests/test-allocsa.c (main): Halve the number of loop runs.
67176
67177         * modules/alloca-opt-tests: New file.
67178         * tests/test-alloca-opt.c: New file.
67179
67180 2007-03-04  Jim Meyering  <jim@meyering.net>
67181
67182         Work around difference between Linux ACLs and Solaris 10 ZFS.
67183         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67184         for EINVAL.
67185
67186 2007-03-03  Bruno Haible  <bruno@clisp.org>
67187
67188         * modules/relocatable-prog (Depends-on): Add back progreloc's
67189         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67190
67191 2007-03-03  Bruno Haible  <bruno@clisp.org>
67192
67193         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67194         * modules/relocatable-lib: New file.
67195
67196 2007-03-03  Bruno Haible  <bruno@clisp.org>
67197
67198         * modules/relocatable-prog: Renamed from modules/relocatable.
67199         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67200
67201 2007-03-03  Bruno Haible  <bruno@clisp.org>
67202
67203         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67204         m4/relocatable-lib.m4.
67205         (Depends-on): Remove 'relocatable'.
67206         (configure.ac): Add gl_RELOCATABLE_NOP.
67207
67208 2007-03-03  Bruno Haible  <bruno@clisp.org>
67209
67210         * modules/relocatable-prog-wrapper: New file.
67211         * modules/relocatable (Depends-on): Add it. Remove all other
67212         dependencies except progname.
67213         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67214
67215         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67216         (gl_FUNC_STRERROR): Nop.
67217         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67218
67219         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67220         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67221
67222         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67223         (gl_FUNC_READLINK): Update.
67224
67225         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67226
67227 2007-03-03  Bruno Haible  <bruno@clisp.org>
67228
67229         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67230         * modules/xreadlink (Depends-on): Add unistd.
67231         * modules/xreadlink-with-size (Depends-on): Likewise.
67232
67233 2007-03-03  Bruno Haible  <bruno@clisp.org>
67234
67235         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67236         extracted from gt_FUNC_SETENV.
67237         (gt_FUNC_SETENV): Remove macro.
67238         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67239         remove gt_FUNC_SETENV.
67240
67241 2007-03-03  Bruno Haible  <bruno@clisp.org>
67242
67243         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67244         ENABLE_RELOCATABLE here.
67245         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67246
67247 2007-03-03  Bruno Haible  <bruno@clisp.org>
67248
67249         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67250         * tests/test-rbtreehash_list.c: Include progname.h.
67251         (main): Call set_program_name.
67252
67253         * modules/rbtree-oset-tests (Depends-on): Add progname.
67254         * tests/test-rbtree_oset.c: Include progname.h.
67255         (main): Call set_program_name.
67256
67257         * modules/rbtree-list-tests (Depends-on): Add progname.
67258         * tests/test-rbtree_list.c: Include progname.h.
67259         (main): Call set_program_name.
67260
67261         * modules/linked-list-tests (Depends-on): Add progname.
67262         * tests/test-linked_list.c: Include progname.h.
67263         (main): Call set_program_name.
67264
67265 2007-03-03  Bruno Haible  <bruno@clisp.org>
67266
67267         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67268         All uses of __restrict changed to _Restrict_.
67269         * lib/glob_.h (__restrict): Remove macro.
67270
67271 2007-03-02  Bruno Haible  <bruno@clisp.org>
67272
67273         * modules/gettext (configure.ac): Require gettext infrastructure
67274         from version 0.16.1.
67275
67276 2007-03-02  Bruno Haible  <bruno@clisp.org>
67277
67278         * modules/linkedhash-list-tests (Depends-on): Add progname.
67279         * tests/test-linkedhash_list.c: Include progname.h.
67280         (main): Call set_program_name.
67281
67282         * modules/carray-list-tests (Depends-on): Add progname.
67283         * tests/test-carray_list.c: Include progname.h.
67284         (main): Call set_program_name.
67285
67286         * modules/avltreehash-list-tests (Depends-on): Add progname.
67287         * tests/test-avltreehash_list.c: Include progname.h.
67288         (main): Call set_program_name.
67289
67290         * modules/avltree-oset-tests (Depends-on): Add progname.
67291         * tests/test-avltree_oset.c: Include progname.h.
67292         (main): Call set_program_name.
67293
67294         * modules/avltree-list-tests (Depends-on): Add progname.
67295         * tests/test-avltree_list.c: Include progname.h.
67296         (main): Call set_program_name.
67297
67298         * modules/array-oset-tests (Depends-on): Add progname.
67299         * tests/test-array_oset.c: Include progname.h.
67300         (main): Call set_program_name.
67301
67302         * modules/array-list-tests (Depends-on): Add progname.
67303         * tests/test-array_list.c: Include progname.h.
67304         (main): Call set_program_name.
67305
67306         * modules/argp-tests (Depends-on): Add progname.
67307         * tests/test-argp.c: Include argp.h first. Include progname.h.
67308         (main): Call set_program_name.
67309
67310 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67311
67312         * doc/gnulib-tool.texi (Initial import): Reword description of
67313         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67314         limited effect even if defined after the first system include.
67315
67316 2007-03-01  Bruno Haible  <bruno@clisp.org>
67317
67318         * build-aux/config.libpath: Update to libtool-1.5.22.
67319         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67320
67321 2007-03-01  Bruno Haible  <bruno@clisp.org>
67322
67323         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67324         foo_CFLAGS.
67325         Reported by Ralf Wildenhues.
67326
67327 2007-03-01  Bruno Haible  <bruno@clisp.org>
67328
67329         * build-aux/install-reloc: Remove object files left over by some
67330         compilers.
67331         Reported by Ralf Wildenhues.
67332
67333 2007-03-01  Bruno Haible  <bruno@clisp.org>
67334
67335         * build-aux/install-reloc: Break long lines.
67336
67337 2007-03-01  Bruno Haible  <bruno@clisp.org>
67338
67339         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67340         Reported by Ralf Wildenhues.
67341
67342 2007-03-01  Bruno Haible  <bruno@clisp.org>
67343
67344         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67345         include ordering constraints.
67346
67347 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67348
67349         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67350         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67351         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67352         as another example.
67353         * lib/time_.h: Fix misspelling.
67354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67355         Require gl_HEADER_TIME_H_DEFAULTS.
67356         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67357         * m4/time_r.m4 (gl_TIME_R): Likewise.
67358         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67359
67360 2007-03-01  Bruno Haible  <bruno@clisp.org>
67361
67362         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67363         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67364
67365 2007-03-01  Jim Meyering  <jim@meyering.net>
67366
67367         * modules/xreadlink (Maintainer): Add my name.
67368         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67369
67370 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67371             Bruno Haible  <bruno@clisp.org>
67372
67373         * build-aux/install-reloc: Compile also c-ctype.c.
67374         * build-aux/relocatable.sh.in: New file.
67375         * doc/relocatable.texi: New file.
67376         * doc/relocatable-maint.texi: New file.
67377         * doc/gnulib.texi: Include relocatable-maint.texi.
67378         * lib/progreloc.c: Include unistd.h unconditionally.
67379         * lib/relocwrapper.c: Include unistd.h unconditionally.
67380         Include c-ctype.h.
67381         (add_dotbin): Use c_tolower.
67382         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67383         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67384         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67385         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67386         to m4/relocatable-lib.m4.
67387         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67388         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67389         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67390         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67391         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67392         * modules/relocatable: New file.
67393         * modules/relocatable-lib: New file.
67394         * modules/relocatable-script: New file.
67395
67396 2007-02-28  Bruno Haible  <bruno@clisp.org>
67397
67398         Import --enable-relocatable infrastructure.
67399         * build-aux/config.libpath: New file, from GNU gettext.
67400         * build-aux/install-reloc: New file, from GNU gettext.
67401         * build-aux/reloc-ldflags: New file, from GNU gettext.
67402         * lib/relocatable.h: New file, from GNU gettext.
67403         * lib/relocatable.c: New file, from GNU gettext.
67404         * lib/relocwrapper.c: New file, from GNU gettext.
67405         * m4/relocatable.m4: New file, from GNU gettext.
67406
67407 2007-02-28  Bruno Haible  <bruno@clisp.org>
67408
67409         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67410
67411         * modules/xreadlink: New file, from GNU gettext with modifications.
67412         * lib/xreadlink.c: New file, from GNU gettext.
67413         * lib/xreadlink.h: Add comments.
67414         (xreadlink): New declaration.
67415
67416         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67417         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67418         lib/xreadlink-with-size.c.
67419         (configure.ac): Remove gl_XREADLINK invocation.
67420         (Makefile.am): Augment lib_SOURCES.
67421         * m4/xreadlink.m4: Remove file.
67422         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67423         (xreadlink_with_size): Renamed from xreadink.
67424         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67425         * modules/canonicalize (Depends-on): Replace xreadlink with
67426         xreadlink-with-size.
67427         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67428
67429 2007-02-25  Jim Meyering  <jim@meyering.net>
67430
67431         * build-aux/announce-gen: When complaining about excess arguments,
67432         list them.
67433
67434 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67435
67436         * README: Document signed integer overflow situation more
67437         accurately.
67438
67439 2007-02-25  Bruno Haible  <bruno@clisp.org>
67440
67441         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67442         'a' or 'A' conversion.
67443
67444 2007-02-25  Bruno Haible  <bruno@clisp.org>
67445
67446         * modules/filename: Renamed from modules/pathname.
67447         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67448         lib/concatpath.c with lib/concat-filename.c.
67449         (Makefile.am): Update.
67450         (Include): Replace pathname.h with filename.h.
67451         * lib/filename.h: Renamed from lib/pathname.h.
67452         (concatenated_filename): Renamed from concatenated_pathname.
67453         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67454         (concatenated_filename): Renamed from concatenated_pathname.
67455         * lib/findprog.c: Include filename.h instead of pathname.h.
67456         (find_in_path): Update.
67457         * lib/javacomp.c: Include filename.h instead of pathname.h.
67458         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67459         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67460         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67461         is_oldgcj_14_13_usable, is_javac_usable): Update.
67462         * lib/javaexec.c: Include filename.h instead of pathname.h.
67463         (execute_java_class): Update.
67464         * modules/findprog: Update.
67465         * modules/javacomp: Update.
67466         * modules/javaexec: Update.
67467         * MODULES.html.sh (File system functions): Add 'filename', remove
67468         'pathname'.
67469
67470 2007-02-25  Bruno Haible  <bruno@clisp.org>
67471
67472         * modules/printf-frexpl-tests: New file.
67473         * tests/test-printf-frexpl.c: New file.
67474
67475         * modules/printf-frexpl: New file.
67476         * lib/printf-frexpl.h: New file.
67477         * lib/printf-frexpl.c: New file.
67478         * m4/printf-frexpl.m4: New file.
67479
67480 2007-02-25  Bruno Haible  <bruno@clisp.org>
67481
67482         * modules/printf-frexp-tests: New file.
67483         * tests/test-printf-frexp.c: New file.
67484
67485         * modules/printf-frexp: New file.
67486         * lib/printf-frexp.h: New file.
67487         * lib/printf-frexp.c: New file.
67488         * m4/printf-frexp.m4: New file.
67489
67490 2007-02-25  Bruno Haible  <bruno@clisp.org>
67491
67492         Assume automake >= 1.10 for the tests.
67493         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67494         * modules/arctwo-tests: Likewise.
67495         * modules/argp-tests: Likewise.
67496         * modules/avltree-list-tests: Likewise.
67497         * modules/avltree-oset-tests: Likewise.
67498         * modules/avltreehash-list-tests: Likewise.
67499         * modules/carray-list-tests: Likewise.
67500         * modules/crc-tests: Likewise.
67501         * modules/des-tests: Likewise.
67502         * modules/gc-arcfour-tests: Likewise.
67503         * modules/gc-arctwo-tests: Likewise.
67504         * modules/gc-des-tests: Likewise.
67505         * modules/gc-hmac-md5-tests: Likewise.
67506         * modules/gc-hmac-sha1-tests: Likewise.
67507         * modules/gc-md2-tests: Likewise.
67508         * modules/gc-md4-tests: Likewise.
67509         * modules/gc-md5-tests: Likewise.
67510         * modules/gc-pbkdf2-sha1-tests: Likewise.
67511         * modules/gc-rijndael-tests: Likewise.
67512         * modules/gc-sha1-tests: Likewise.
67513         * modules/gc-tests: Likewise.
67514         * modules/getaddrinfo-tests: Likewise.
67515         * modules/hmac-md5-tests: Likewise.
67516         * modules/hmac-sha1-tests: Likewise.
67517         * modules/linked-list-tests: Likewise.
67518         * modules/linkedhash-list-tests: Likewise.
67519         * modules/lock-tests: Likewise.
67520         * modules/md2-tests: Likewise.
67521         * modules/md4-tests: Likewise.
67522         * modules/md5-tests: Likewise.
67523         * modules/rbtree-list-tests: Likewise.
67524         * modules/rbtree-oset-tests: Likewise.
67525         * modules/rbtreehash-list-tests: Likewise.
67526         * modules/read-file-tests: Likewise.
67527         * modules/rijndael-tests: Likewise.
67528         * modules/stdint-tests: Likewise.
67529         * modules/tls-tests: Likewise.
67530
67531 2007-02-24  Bruno Haible  <bruno@clisp.org>
67532
67533         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67534         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67535         function; instead check whether isnan with a double argument links.
67536         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67537         function; instead check whether isnan with a 'long double' argument
67538         links.
67539         Reported by Eric Blake <ebb9@byu.net>.
67540
67541 2007-02-24  Bruno Haible  <bruno@clisp.org>
67542
67543         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67544         defined.
67545         * lib/isnanl.c: Remove all code. Just include isnan.c.
67546         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67547
67548 2007-02-25  Jim Meyering  <jim@meyering.net>
67549
67550         Avoid conflicting types for 'unsetenv' on FreeBSD.
67551         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67552         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67553         in stdlib.h.
67554
67555 2007-02-24  Bruno Haible  <bruno@clisp.org>
67556
67557         * modules/isnanl-nolibm-tests: New file.
67558         * tests/test-isnanl.c: New file.
67559
67560         * modules/isnanl-nolibm: New file.
67561         * lib/isnanl.h: New file.
67562         * lib/isnanl.c: New file.
67563         * m4/isnanl.m4: New file.
67564
67565 2007-02-24  Bruno Haible  <bruno@clisp.org>
67566
67567         * modules/isnan-nolibm-tests: New file.
67568         * tests/test-isnan.c: New file.
67569
67570         * modules/isnan-nolibm: New file.
67571         * lib/isnan.h: New file.
67572         * lib/isnan.c: New file.
67573         * m4/isnan.m4: New file.
67574
67575 2007-02-24  Bruno Haible  <bruno@clisp.org>
67576
67577         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67578         assume that an exponent fits in 20 bits.
67579
67580 2007-02-24  Jim Meyering  <jim@meyering.net>
67581
67582         * m4/regex.m4: Update the description of the configure-time option,
67583         --without-included-regex, to state accurately what the defaults are,
67584         and perhaps to give people an idea why using this option is risky.
67585
67586 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67587
67588         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67589         loops on small arguments.  This attempts to avoid the problem
67590         Bruno Haible reported for AIX 4.3.2 in
67591         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67592
67593 2007-02-23  Bruno Haible  <bruno@clisp.org>
67594
67595         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67596         Needed for help2man.
67597
67598 2007-02-23  Karl Berry  <karl@gnu.org>
67599
67600         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67601         exists, foo.h should be cvs-ignored, not committed.
67602
67603 2007-02-23  Eric Blake  <ebb9@byu.net>
67604
67605         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67606         * lib/stat-time.h (includes): Likewise.
67607         * lib/utimecmp.c (includes): Likewise.
67608         * lib/utimens.h (includes): Likewise.
67609         * lib/getdate.y (includes): Also include "timespec.h" for use
67610         internal to the module.
67611         * modules/utimens (Depends-on): Revert yesterday's patch.
67612         * modules/nanosleep (Depends-on): Add missing dependency.
67613
67614 2007-02-22  Bruno Haible  <bruno@clisp.org>
67615
67616         * lib/glob.c: Don't include getlogin_r.h.
67617
67618 2007-02-22  Jim Meyering  <jim@meyering.net>
67619
67620         * modules/utimens (Depends-on): Add timespec, required for
67621         utimens.h's inclusion of timespec.h.
67622
67623 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67624
67625         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67626         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67627         Schwab in
67628         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67629         I'll try to think of a better way to fix the Solaris problem.
67630
67631         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67632         like glibc; on Solaris 10, it fails with errno == EINVAL.
67633         POSIX says the behavior is unspecified if the first argument is NULL,
67634         so play it safe and never pass NULL to the system getcwd.
67635
67636 2007-02-21  Jim Meyering  <jim@meyering.net>
67637
67638         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67639         of gettimeofday.  It would conflict with the one now always
67640         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67641         an IRIX 6.5 build failure.
67642
67643 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         Minor fixups to port to Solaris 10 with Sun C 5.8.
67646         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67647         * modules/getcwd (Depends-on): Add dirfd.
67648         * lib/putenv.c (putenv): #undef it.
67649         (rpl_putenv): New decl.
67650         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67651
67652 2007-02-20  Bruno Haible  <bruno@clisp.org>
67653
67654         * modules/stdio-tests: New file.
67655         * tests/test-stdio.c: New file.
67656
67657         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67658         (Depends-on): Add stdio.
67659         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67660         (Include): Use <stdio.h> instead of vsnprintf.h.
67661         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67662         HAVE_DECL_VSNPRINTF.
67663         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67664
67665         * modules/snprintf (Files): Remove lib/snprintf.h.
67666         (Depends-on): Add stdio.
67667         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67668         (Include): Use <stdio.h> instead of snprintf.h.
67669         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67670         HAVE_DECL_SNPRINTF.
67671         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67672         * lib/getaddrinfo.c: Likewise.
67673
67674         * modules/stdio: New file.
67675         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67676         * lib/snprintf.h: Remove file.
67677         * lib/vsnprintf.h: Remove file.
67678         * lib/.cppi-disable: Remove snprintf.h.
67679         * m4/stdio_h.m4: New file.
67680         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67681
67682 2007-02-20  Jim Meyering  <jim@meyering.net>
67683
67684         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67685         used by e.g., mingw.  From Bruno Haible.
67686
67687 2007-02-19  Bruno Haible  <bruno@clisp.org>
67688
67689         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67690         warnings.
67691         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67692
67693 2007-02-19  Bruno Haible  <bruno@clisp.org>
67694
67695         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67696         from mingw users.
67697
67698 2007-02-19  Bruno Haible  <bruno@clisp.org>
67699
67700         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67701         warnings.
67702         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67703
67704 2007-02-19  Jim Meyering  <jim@meyering.net>
67705
67706         Don't use FD after a successful "fdopendir (fd)".
67707         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67708         Reset it by calling dirfd on the just-obtained DIR*.
67709
67710         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67711         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67712
67713 2007-02-18  Bruno Haible  <bruno@clisp.org>
67714
67715         * lib/readlink.c: Include <unistd.h>.
67716         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67717         HAVE_READLINK.
67718         * modules/readlink (Depends-on): Add unistd.
67719         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67720         (Include): Add <unistd.h>.
67721
67722         * lib/getlogin_r.h: Remove file.
67723         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67724         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67725         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67726         HAVE_DECL_GETLOGIN_R.
67727         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67728         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67729         (Include): Use <unistd.h> instead of getlogin_r.h.
67730
67731         * lib/getcwd.h: Remove file.
67732         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67733         * lib/xgetcwd.c: Likewise.
67734         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67735         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67736         * modules/getcwd (Files): Remove lib/getcwd.h.
67737         (Depends-on): Add unistd.
67738         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67739         (Include): Use <unistd.h> instad of getcwd.h.
67740
67741         * lib/ftruncate.c: Include <unistd.h> first.
67742         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67743         Set HAVE_FTRUNCATE.
67744         * modules/ftruncate (Depends-on): Add unistd.
67745         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67746
67747         * lib/fchdir.c: Include <unistd.h> first.
67748         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67749         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67750         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67751         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67752         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67753
67754         * lib/dup2.c: Include <unistd.h> first.
67755         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67756         HAVE_DUP2.
67757         * modules/dup2 (Depends-on): Add unistd.
67758         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67759
67760         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67761         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67762         REPLACE_CHOWN. Don't define chown as a macro here.
67763         * modules/chown (Depends-on): Add unistd.
67764         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67765
67766         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67767         Add definition for GL_LINK_WARNING.
67768         (chown, dup2): New declarations.
67769         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67770         link warning.
67771         (ftruncate): New declaration.
67772         (getcwd): New declaration, taken from old getcwd.h.
67773         (getlogin_r): New declaration, taken from old getlogin_r.h.
67774         (readlink): New declaration.
67775         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67776         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67777         (gl_PREREQ_UNISTD): Remove macro.
67778         (gl_UNISTD_MODULE_INDICATOR): New macro.
67779         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67780         many new variables. Don't set UNISTD_H.
67781         * modules/unistd (Description): Change.
67782         (Depends-on): Add link-warning.
67783         (configure.ac): Update.
67784         (Makefile.am): Create unistd.h always. Substitute many new variables
67785         into it.
67786
67787 2007-02-18  Bruno Haible  <bruno@clisp.org>
67788
67789         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67790         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67791         HAVE_GETSUBOPT.
67792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67793         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67794         * lib/getsubopt.h: Remove file.
67795         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67796         (Depends-on): Add stdlib.
67797         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67798         (Includes): Use <stdlib.h> instead of getsubopt.h.
67799         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67800         Set HAVE_GETSUBOPT.
67801         * lib/getsubopt.c: Don't include getsubopt.h.
67802
67803 2007-02-18  Bruno Haible  <bruno@clisp.org>
67804
67805         * modules/fchdir (Depends-on): Add dup2.
67806
67807 2007-02-18  Bruno Haible  <bruno@clisp.org>
67808
67809         * lib/stdlib_.h: Handle glibc's special invocation convention
67810         specially.
67811
67812 2007-02-18  Bruno Haible  <bruno@clisp.org>
67813
67814         * modules/stdlib-tests: New file.
67815         * tests/test-stdlib.c: New file.
67816
67817         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67818         (Depends-on): Add stdlib.
67819         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67820         (Includes): Use <stdlib.h> instead of mkstemp.h.
67821         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67822         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67823         * lib/mkstemp.c: Don't include mkstemp.h.
67824         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67825         * lib/stdlib--.h: Don't include mkstemp.h.
67826
67827         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
67828         (Depends-on): Add stdlib.
67829         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67830         (Includes): Use <stdlib.h> instead of mkdtemp.h.
67831         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67832         HAVE_MKDTEMP.
67833         * lib/mkdtemp.c: Don't include mkdtemp.h.
67834         * lib/clean-temp.c: Don't include mkdtemp.h.
67835
67836         * modules/exit (Files): Remove lib/exit.h.
67837         (Depends-on): Add stdlib.
67838         (Makefile.am): Remove lib_SOURCES.
67839         (Include): Use <stdlib.h> instead of exit.h.
67840         * lib/argmatch.c: Don't include exit.h.
67841         * lib/execute.c: Likewise.
67842         * lib/pagealign_alloc.c: Likewise.
67843         * lib/pipe.c: Likewise.
67844         * lib/wait-process.c: Likewise.
67845         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
67846         * lib/exitfail.c: Likewise.
67847         * lib/savewd.c: Likewise.
67848         * lib/xsetenv.c: Likewise.
67849
67850         * modules/stdlib: New file.
67851         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
67852         and extra comments about mkstemp().
67853         * lib/exit.h: Remove file.
67854         * lib/mkdtemp.h: Remove file.
67855         * lib/mkstemp.h: Remove file.
67856         * m4/stdlib_h.m4: New file.
67857         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
67858
67859 2007-02-18  Bruno Haible  <bruno@clisp.org>
67860
67861         * modules/math-tests: New file.
67862         * tests/test-math.c: New file.
67863
67864         * modules/math: New file.
67865         * modules/mathl (Files): Remove lib/mathl.h.
67866         (Depends-on): Add math.
67867         (Makefile.am): Don't mention mathl.h.
67868         (Include): Use <math.h> instead of mathl.h.
67869         * lib/math_.h: New file.
67870         * lib/mathl.h: Remove file.
67871         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
67872         mathl.h.
67873         * lib/asinl.c: Likewise.
67874         * lib/atanl.c: Likewise.
67875         * lib/ceill.c: Likewise.
67876         * lib/cosl.c: Likewise.
67877         * lib/expl.c: Likewise.
67878         * lib/floorl.c: Likewise.
67879         * lib/frexpl.c: Likewise.
67880         * lib/ldexpl.c: Likewise.
67881         * lib/logl.c: Likewise.
67882         * lib/sincosl.c: Likewise.
67883         * lib/sinl.c: Likewise.
67884         * lib/sqrtl.c: Likewise.
67885         * lib/tanl.c: Likewise.
67886         * lib/trigl.c: Likewise.
67887         * m4/math_h.m4: New file.
67888         * MODULES.html.sh (Mathematics): Add math.
67889
67890 2007-02-17  Bruno Haible  <bruno@clisp.org>
67891
67892         * modules/wctype-tests: New file.
67893         * tests/test-wctype.c: New file.
67894
67895         * modules/wchar-tests: New file.
67896         * tests/test-wchar.c: New file.
67897
67898         * modules/unistd-tests: New file.
67899         * tests/test-unistd.c: New file.
67900
67901         * modules/time-tests: New file.
67902         * tests/test-time.c: New file.
67903
67904         * modules/sysexits-tests: New file.
67905         * tests/test-sysexits.c: New file.
67906
67907         * modules/sys_time-tests: New file.
67908         * tests/test-sys_time.c: New file.
67909
67910         * modules/sys_stat-tests: New file.
67911         * tests/test-sys_stat.c: New file.
67912
67913         * modules/sys_socket-tests: New file.
67914         * tests/test-sys_socket.c: New file.
67915
67916         * modules/sys_select-tests: New file.
67917         * tests/test-sys_select.c: New file.
67918
67919         * modules/string-tests: New file.
67920         * tests/test-string.c: New file.
67921
67922         * modules/stdbool-tests: New file.
67923         * tests/test-stdbool.c: New file.
67924
67925         * modules/netinet_in-tests: New file.
67926         * tests/test-netinet_in.c: New file.
67927
67928         * modules/inttypes-tests: New file.
67929         * tests/test-inttypes.c: New file.
67930
67931         * modules/fcntl-tests: New file.
67932         * tests/test-fcntl.c: New file.
67933
67934         * modules/byteswap-tests: New file.
67935         * tests/test-byteswap.c: New file.
67936
67937         * modules/arpa_inet-tests: New file.
67938         * tests/test-arpa_inet.c: New file.
67939
67940 2007-02-17  Bruno Haible  <bruno@clisp.org>
67941
67942         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
67943         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
67944         if the corresponding module is not enabled. Emit link warnings if
67945         the function is used nevertheless.
67946         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
67947         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
67948         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
67949         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
67950         * modules/inttypes (Depends-on): Add link-warning.
67951         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67952         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
67953         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
67954         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
67955         * modules/imaxdiv (configure.ac): Likewise.
67956         * modules/strtoimax (configure.ac): Likewise.
67957         * modules/strtoumax (configure.ac): Likewise.
67958
67959 2007-02-17  Bruno Haible  <bruno@clisp.org>
67960
67961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
67962         gl_STRING_MODULE_INDICATOR_DEFAULTS.
67963         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
67964         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
67965
67966 2007-02-17  Bruno Haible  <bruno@clisp.org>
67967
67968         * modules/link-warning: New file.
67969         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
67970         * lib/string_.h (GL_LINK_WARNING): Remove definition.
67971         * modules/string (Depends-on): Add link-warning.
67972         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67973         string.h.
67974         * MODULES.html.sh (Support for building libraries and executables): Add
67975         link-warning.
67976
67977 2007-02-17  Bruno Haible  <bruno@clisp.org>
67978
67979         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
67980         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
67981         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
67982         long lines.
67983
67984 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
67985             Bruno Haible  <bruno@clisp.org>
67986
67987         * modules/tmpfile: New file.
67988         * lib/tmpfile.c: New file.
67989         * m4/tmpfile.m4: New file.
67990         * MODULES.html.sh (func_all_modules): New section "Input/output".
67991
67992 2007-02-15  Bruno Haible  <bruno@clisp.org>
67993
67994         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
67995         (supports_delete_on_close): New function.
67996         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
67997
67998 2007-02-14  Bruno Haible  <bruno@clisp.org>
67999
68000         * modules/mbspcasecmp-tests: New file.
68001         * tests/test-mbspcasecmp.sh: New file.
68002         * tests/test-mbspcasecmp.c: New file.
68003
68004         New module mbspcasecmp.
68005         * modules/mbspcasecmp: New file.
68006         * lib/mbspcasecmp.c: New file.
68007         * lib/string_.h (strncasecmp): Change warning message.
68008         (mbspcasecmp): New declaration.
68009         * m4/mbspcasecmp.m4: New file.
68010         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68011         GNULIB_MBSPCASECMP.
68012         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68013         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68014
68015 2007-02-14  Bruno Haible  <bruno@clisp.org>
68016
68017         * modules/mbsncasecmp-tests: New file.
68018         * tests/test-mbsncasecmp.sh: New file.
68019         * tests/test-mbsncasecmp.c: New file.
68020
68021         New module mbsncasecmp.
68022         * modules/mbsncasecmp: New file.
68023         * lib/mbsncasecmp.c: New file.
68024         * lib/string_.h (mbsncasecmp): New declaration.
68025         * m4/mbsncasecmp.m4: New file.
68026         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68027         GNULIB_MBSNCASECMP.
68028         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68029         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68030
68031 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68032
68033         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68034         Verify that it doesn't overlap with our flags.
68035         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68036         do not have the desired effect in multibyte locales; instead, use
68037         mbscasecmp.
68038         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68039         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68040         we don't require GNU fnmatch ourselves (if our users require it, they
68041         should do so explicitly).
68042
68043         Fix regex code so it doesn't rely on strcasecmp.
68044         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68045         Otherwise, include gnulib's langinfo.h.
68046         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68047         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68048         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68049         * modules/regex (FILES): Remove m4/codeset.m4.
68050         (Depends-on): Add localcharset.  Remove strcase.
68051
68052 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68053
68054         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68055         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68056
68057 2007-02-13  Bruno Haible  <bruno@clisp.org>
68058
68059         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68060         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68061
68062 2007-02-12  Bruno Haible  <bruno@clisp.org>
68063
68064         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68065         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68066         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68067         time warning rather than a link error.
68068
68069 2007-02-12  Bruno Haible  <bruno@clisp.org>
68070
68071         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68072         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68074
68075 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68076
68077         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68078         args, not 2.
68079
68080 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68081
68082         New module 'time', so that apps can include <time.h> as per
68083         POSIX and GNU instead of separate include files like time_r.h
68084         and timegm.h.  This implementation tries out a simpler approach
68085         for replacing decls in standard include files (as compared to
68086         the string module), somewhat as an experiment.
68087
68088         * config/srclist.txt: Comment out mktime.c for now.
68089         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68090         since it doesn't apply any more.  Use generic wording instead.
68091         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68092         'time'.
68093         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68094         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68095         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68096         Don't include <sys/types.h>; no longer needed since we assume C89.
68097         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68098         * lib/strftime.c: Likewise.
68099         * lib/time_r.c: Likewise.
68100         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68101         * lib/nanosleep.c: Include <time.h> first, to check interface.
68102         * lib/strptime.c: Likewise.
68103         * lib/time_r.c: Likewise.
68104         * lib/timegm.c: Likewise.
68105         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68106         needed.
68107         * lib/timegm.c: Don't include timegm.h; no longer needed.
68108         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68109         time.h now handles any problems in that area.
68110         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68111         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68112         that time.h defines struct timespec.
68113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68114         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68115         handles that.
68116         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68117         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68118         needed.  Set REPLACE_LOCALTIME.
68119         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68120         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68121         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68122         nanosleep; time_h.m4 now does that.  Don't require
68123         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68124         module handles this now.
68125         * modules/getdate (Depends-on): Remove timespec.  Add time.
68126         * modules/nanosleep (Depends-on): Likewise.
68127         * modules/stat-time (Depends-on): Likewise.
68128         * modules/nanosleep (Include): Include time.h, not timespec.h.
68129         * modules/strptime (Files): Remove lib/strptime.h.
68130         (Depends-on): Add extensions, time.
68131         (Include): Include time.h, not strptime.h.
68132         * modules/time_r (Files): Remove lib/time_r.h.
68133         (Depends-on): Add time.
68134         (Include): Include time.h, not time_r.h.
68135         * modules/timegm: Likewise.
68136         * modules/timespec (Description): Now does timespec-related decls
68137         of our own, instead of struct timespec itself.
68138         (Depends-on): Add time; remove extensions.
68139         (Maintainer): Add self.
68140         * modules/utimecmp (Depends-on): Add time; remove timespec.
68141         * modules/utimens (Depends-on): Likewise.
68142         * modules/xnanosleep (Depends-on): Likewise.
68143
68144 2007-02-11  Bruno Haible  <bruno@clisp.org>
68145
68146         * lib/c-strstr.c: Include allocsa.h.
68147         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68148         * lib/c-strcasestr.c: Include allocsa.h.
68149         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68150         * lib/strcasestr.c: Include allocsa.h.
68151         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68152         * lib/mbsstr.c: Include allocsa.h.
68153         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68154         allocsa/freesa instead of malloc/free.
68155         * lib/mbscasestr.c: Include allocsa.h.
68156         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68157         allocsa/freesa instead of malloc/free.
68158         * modules/c-strstr (Depends-on): Add allocsa.
68159         * modules/c-strcasestr (Depends-on): Likewise.
68160         * modules/strcasestr (Depends-on): Likewise.
68161         * modules/mbsstr (Depends-on): Likewise.
68162         * modules/mbscasestr (Depends-on): Likewise.
68163
68164 2007-02-11  Bruno Haible  <bruno@clisp.org>
68165
68166         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68167
68168         * modules/mbsspn-tests: New file.
68169         * tests/test-mbsspn.sh: New file.
68170         * tests/test-mbsspn.c: New file.
68171
68172 2007-02-11  Bruno Haible  <bruno@clisp.org>
68173
68174         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68175
68176         * modules/mbspbrk-tests: New file.
68177         * tests/test-mbspbrk.sh: New file.
68178         * tests/test-mbspbrk.c: New file.
68179
68180 2007-02-11  Bruno Haible  <bruno@clisp.org>
68181
68182         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68183         unneeded cast.
68184
68185         * modules/mbscspn-tests: New file.
68186         * tests/test-mbscspn.sh: New file.
68187         * tests/test-mbscspn.c: New file.
68188
68189 2007-02-11  Bruno Haible  <bruno@clisp.org>
68190
68191         * modules/mbscasecmp-tests: New file.
68192         * tests/test-mbscasecmp.sh: New file.
68193         * tests/test-mbscasecmp.c: New file.
68194
68195 2007-02-11  Bruno Haible  <bruno@clisp.org>
68196
68197         Ensure O(n) worst-case complexity of mbscasestr.
68198         * lib/mbscasestr.c: Include stdbool.h.
68199         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68200         functions.
68201         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68202         the bookkeeping indicates that it's worth it.
68203         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68204
68205         * modules/mbscasestr-tests: New file.
68206         * tests/test-mbscasestr1.c: New file.
68207         * tests/test-mbscasestr2.sh: New file.
68208         * tests/test-mbscasestr2.c: New file.
68209         * tests/test-mbscasestr3.sh: New file.
68210         * tests/test-mbscasestr3.c: New file.
68211         * tests/test-mbscasestr4.sh: New file.
68212         * tests/test-mbscasestr4.c: New file.
68213         * m4/locale-tr.m4: New file.
68214
68215 2007-02-11  Bruno Haible  <bruno@clisp.org>
68216
68217         Ensure O(n) worst-case complexity of mbsstr.
68218         * lib/mbsstr.c: Include stdbool.h.
68219         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68220         functions.
68221         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68222         bookkeeping indicates that it's worth it.
68223         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68224
68225         * modules/mbsstr-tests: New file.
68226         * tests/test-mbsstr1.c: New file.
68227         * tests/test-mbsstr2.sh: New file.
68228         * tests/test-mbsstr2.c: New file.
68229         * tests/test-mbsstr3.sh: New file.
68230         * tests/test-mbsstr3.c: New file.
68231         * m4/locale-fr.m4: New file.
68232
68233 2007-02-11  Bruno Haible  <bruno@clisp.org>
68234
68235         * lib/mbsrchr.c (mbsrchr): Fix bug.
68236
68237         * modules/mbsrchr-tests: New file.
68238         * tests/test-mbsrchr.sh: New file.
68239         * tests/test-mbsrchr.c: New file.
68240
68241 2007-02-11  Bruno Haible  <bruno@clisp.org>
68242
68243         * lib/mbschr.c (mbschr): Fix bug.
68244
68245         * modules/mbschr-tests: New file.
68246         * tests/test-mbschr.sh: New file.
68247         * tests/test-mbschr.c: New file.
68248         * m4/locale-zh.m4: New file.
68249
68250 2007-02-11  Bruno Haible  <bruno@clisp.org>
68251
68252         Support for copying multibyte string iterators.
68253         * lib/mbiter.h: Include <string.h>.
68254         (mbiter_multi_copy): New function.
68255         (mbi_copy): New macro.
68256         * lib/mbuiter.h: Include <string.h>.
68257         (mbuiter_multi_copy): New function.
68258         (mbui_copy): New macro.
68259
68260 2007-02-11  Bruno Haible  <bruno@clisp.org>
68261
68262         New module mbslen.
68263         * modules/mbslen: New file.
68264         * lib/mbslen.c: New file.
68265         * lib/string_.h (mbslen): New declaration.
68266         * m4/mbslen.m4: New file.
68267         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68268         GNULIB_MBSLEN.
68269         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68270         * MODULES.html.sh (Internationalization functions): Add mbslen.
68271
68272 2007-02-11  Bruno Haible  <bruno@clisp.org>
68273
68274         Ensure O(n) worst-case complexity of strcasestr substitute.
68275         * lib/strcasestr.c: Include stdbool.h.
68276         (knuth_morris_pratt): New function.
68277         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68278         bookkeeping indicates that it's worth it.
68279         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68280
68281         * modules/strcasestr-tests: New file.
68282         * tests/test-strcasestr.c: New file.
68283
68284 2007-02-11  Bruno Haible  <bruno@clisp.org>
68285
68286         Ensure O(n) worst-case complexity of c_strcasestr.
68287         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68288         (knuth_morris_pratt): New function.
68289         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68290         the bookkeeping indicates that it's worth it.
68291         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68292
68293         * modules/c-strcasestr-tests: New file.
68294         * tests/test-c-strcasestr.c: New file.
68295
68296 2007-02-11  Bruno Haible  <bruno@clisp.org>
68297
68298         Ensure O(n) worst-case complexity of c_strstr.
68299         * lib/c-strstr.c: Include stdbool.h, string.h.
68300         (knuth_morris_pratt): New function.
68301         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68302         bookkeeping indicates that it's worth it.
68303         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68304
68305         * lib/c-strstr.c: Complete rewrite for maintainability.
68306
68307         * modules/c-strstr-tests: New file.
68308         * tests/test-c-strstr.c: New file.
68309
68310 2007-02-11  Bruno Haible  <bruno@clisp.org>
68311
68312         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68313         5.2.1 and earlier, whereby \055 was treated just like the range
68314         delimiter '-'.
68315         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68316
68317 2007-02-08  Bruno Haible  <bruno@clisp.org>
68318
68319         * modules/regex (Depends-on): Add stdbool.
68320         Reported by Dalibor Topic <robilad@kaffe.org>.
68321
68322 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68323
68324         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68325         Prefer returning from main to exiting from it.
68326         Remove unnecessary parens after sizeof.
68327
68328 2007-02-05  Bruno Haible  <bruno@clisp.org>
68329
68330         New module mbssep.
68331         * modules/mbssep: New file.
68332         * lib/mbssep.c: New file.
68333         * lib/string_.h (strsep): Add a conditional link warning.
68334         (mbssep): New declaration.
68335         * m4/mbssep.m4: New file.
68336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68337         GNULIB_MBSSEP.
68338         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68339         * MODULES.html.sh (Internationalization functions): Add mbssep.
68340
68341 2007-02-05  Bruno Haible  <bruno@clisp.org>
68342
68343         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68344         Optimize search in case of 1 delimiter.
68345
68346 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68347
68348         * lib/acl.h: Include sys/types.h before sys/acl.h.
68349
68350 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68351
68352         Merge upstream fix for glibc bugzilla #3957:
68353
68354         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68355
68356         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68357         bit for RE_HAT_LISTS_NOT_NEWLINE.
68358         (build_charclass_op): Remove bogus comment.
68359
68360 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68361
68362         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68363
68364 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68365
68366         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68367         * lib/memmem.c [!defined _LIBC]: Include config.h.
68368
68369 2007-02-04  Bruno Haible  <bruno@clisp.org>
68370
68371         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68372         warning message.
68373
68374 2007-02-04  Bruno Haible  <bruno@clisp.org>
68375
68376         New module mbstok_r.
68377         * modules/mbstok_r: New file.
68378         * lib/mbstok_r.c: New file.
68379         * lib/string_.h (strtok_r): Change argument names to match the
68380         comments. Add a conditional link warning.
68381         (mbstok_r): New declaration.
68382         * m4/mbstok_r.m4: New file.
68383         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68384         GNULIB_MBSTOK_R.
68385         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68386         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68387
68388 2007-02-04  Bruno Haible  <bruno@clisp.org>
68389
68390         New module mbsspn.
68391         * modules/mbsspn: New file.
68392         * lib/mbsspn.c: New file.
68393         * lib/string_.h (strspn): Add a conditional link warning.
68394         (mbsspn): New declaration.
68395         * m4/mbsspn.m4: New file.
68396         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68397         GNULIB_MBSSPN.
68398         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68399         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68400
68401 2007-02-04  Bruno Haible  <bruno@clisp.org>
68402
68403         New module mbspbrk.
68404         * modules/mbspbrk: New file.
68405         * lib/mbspbrk.c: New file.
68406         * lib/string_.h (strpbrk): Add a conditional link warning.
68407         (mbspbrk): New declaration.
68408         * m4/mbspbrk.m4: New file.
68409         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68410         GNULIB_MBSPBRK.
68411         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68412         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68413
68414 2007-02-04  Bruno Haible  <bruno@clisp.org>
68415
68416         New module mbscspn.
68417         * modules/mbscspn: New file.
68418         * lib/mbscspn.c: New file.
68419         * lib/string_.h (strcspn): Add a conditional link warning.
68420         (mbscspn): New declaration.
68421         * m4/mbscspn.m4: New file.
68422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68423         GNULIB_MBSCSPN.
68424         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68425         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68426
68427 2007-02-04  Bruno Haible  <bruno@clisp.org>
68428
68429         New module mbscasestr, reduced goal of strcasestr.
68430         * modules/mbscasestr: New file.
68431         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68432         (mbscasestr): Renamed from strcasestr.
68433         * lib/strcasestr.c: Don't include mbuiter.h.
68434         (strcasestr): Remove support for multibyte locales.
68435         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68436         Change the conditional link warning.
68437         (mbscasestr): New declaration.
68438         * m4/mbscasestr.m4: New file.
68439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68440         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68441         REPLACE_STRCASESTR.
68442         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68444         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68445         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68446         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68447         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68448         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68449         (Depends-on): Remove mbuiter.
68450         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68451
68452 2007-02-04  Bruno Haible  <bruno@clisp.org>
68453
68454         Simplify handling of strncasecmp.
68455         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68456         the conditional link warning.
68457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68458         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68459         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68460         * modules/strcase (configure.ac): Don't invoke
68461         gl_STRING_MODULE_INDICATOR.
68462         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68463
68464 2007-02-04  Bruno Haible  <bruno@clisp.org>
68465
68466         New module mbscasecmp, reduced goal of strcasecmp.
68467         * modules/mbscasecmp: New file.
68468         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68469         (mbscasecmp): Renamed from strcasecmp.
68470         * lib/strcasecmp.c: Don't include mbuiter.h.
68471         (strcasecmp): Remove support for multibyte locales.
68472         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68473         Change the conditional link warning.
68474         (mbscasecmp): New declaration.
68475         * m4/mbscasecmp.m4: New file.
68476         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68477         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68478         REPLACE_STRCASECMP.
68479         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68481         GNULIB_MBSCASECMP.
68482         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68483         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68484         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68485         (Depends-on): Remove mbuiter.
68486         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68487
68488 2007-02-04  Bruno Haible  <bruno@clisp.org>
68489
68490         New module mbsstr. Remove module strstr.
68491         * modules/mbsstr: New file.
68492         * modules/strstr: Remove file.
68493         * lib/mbsstr.c: Renamed from lib/strstr.c.
68494         (mbsstr): Renamed from strstr.
68495         * lib/string_.h (strstr): Remove declaration. Change the conditional
68496         link warning.
68497         (mbsstr): New declaration.
68498         * m4/mbsstr.m4: New file.
68499         * m4/strstr.m4: Remove file.
68500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68501         REPLACE_STRSTR.
68502         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68503         Don't initialize GNULIB_STRSTR.
68504         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68505         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68506         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68507         (Support for systems lacking ANSI C 89): Remove strstr.
68508
68509 2007-02-04  Bruno Haible  <bruno@clisp.org>
68510
68511         New module mbsrchr.
68512         * modules/mbsrchr: New file.
68513         * lib/mbsrchr.c: New file.
68514         * lib/string_.h (strrchr): Add a conditional link warning.
68515         (mbsrchr): New declaration.
68516         * m4/mbsrchr.m4: New file.
68517         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68518         GNULIB_MBSRCHR.
68519         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68520         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68521
68522 2007-02-04  Bruno Haible  <bruno@clisp.org>
68523
68524         New module mbschr.
68525         * modules/mbschr: New file.
68526         * lib/mbschr.c: New file.
68527         * lib/string_.h (strchr): Add a conditional link warning.
68528         (mbschr): New declaration.
68529         * m4/mbschr.m4: New file.
68530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68531         GNULIB_MBSCHR.
68532         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68533         * MODULES.html.sh (Internationalization functions): Add mbschr.
68534
68535 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68536
68537         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68538
68539         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68540
68541 2007-02-04  Bruno Haible  <bruno@clisp.org>
68542
68543         New module description section 'configure.ac-early'.
68544         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68545         (func_get_autoconf_early_snippet): New function.
68546         (func_import, func_create_testdir): Use it. Remove special cases for
68547         modules 'extensions' and 'lock'.
68548         * modules/extensions (configure.ac-early): Require
68549         gl_USE_SYSTEM_EXTENSIONS.
68550         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68551
68552 2007-02-04  Bruno Haible  <bruno@clisp.org>
68553
68554         Make use of gcj-4.3's -fsource and -ftarget option.
68555         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68556         and if so try the options -fsource and -ftarget.
68557         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68558         source_version, ftarget_option, target_version arguments.
68559         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68560         (is_envjavac_oldgcj_14_14_usable): Renamed from
68561         is_envjavac_gcj_14_14_usable.
68562         (is_envjavac_oldgcj_14_13_usable): Renamed from
68563         is_envjavac_gcj_14_13_usable.
68564         (is_gcj_present): Update.
68565         (is_gcj_43, is_gcj43_usable): New functions.
68566         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68567         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68568         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68569         try the options -fsource and -ftarget.
68570
68571 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68572
68573         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68574         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68575         larger value.
68576
68577 2007-02-03  Jim Meyering  <jim@meyering.net>
68578
68579         Give tools a better chance to allocate space for very large buffers.
68580         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68581
68582         Make pwd and readlink work also when run with an unreadable parent dir
68583         on systems with openat support.
68584         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68585         provided getcwd function, even when we have openat support.
68586         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68587
68588 2007-02-02  Bruno Haible  <bruno@clisp.org>
68589
68590         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68591         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68592         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68593         portability problems if one of these functions is only used on specific
68594         platforms.
68595         Reported by Paul Eggert.
68596
68597 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68598
68599         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68600         is causing more trouble than it's curing.
68601         * lib/regex_internal.h (__mempcpy): Remove.
68602         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68603         (and make the code a tad smaller to boot).
68604         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68605
68606 2007-02-02  Jim Meyering  <jim@meyering.net>
68607
68608         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68609         section, not in the Makefile.am: one.
68610
68611 2007-02-02  Eric Blake  <ebb9@byu.net>
68612
68613         * lib/strchrnul.c: Always include config.h first.
68614
68615         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68616         gnulib strstr is not necessary here.
68617
68618 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68619
68620         * m4/socklen.m4: Fix typo.
68621
68622 2007-02-02  Eric Blake  <ebb9@byu.net>
68623
68624         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68625         * modules/netinet_in (Makefile.am): Likewise.
68626
68627 2007-02-01  Bruno Haible  <bruno@clisp.org>
68628
68629         * lib/string_.h (GL_LINK_WARNING): New macro.
68630         (strcasecmp, strstr, strcasestr): If provided by the system,
68631         conditionally define as a macro that leads to a warning instead of to
68632         an error.
68633         (strncasecmp): Conditionally define as a macro that leads to a warning.
68634
68635 2007-02-01  Karl Berry  <karl@gnu.org>
68636
68637         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68638
68639 2007-02-01  Bruno Haible  <bruno@clisp.org>
68640
68641         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68642         renamings.
68643
68644 2007-02-01  Eric Blake  <ebb9@byu.net>
68645
68646         * modules/regex (Depends-on): Revert dependence on mempcpy.
68647         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68648         module's definition of mempcpy.
68649         Reported by Paul Eggert.
68650
68651 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68652
68653         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68654         the symbol XYZ before redefining it.  This fixes a problem with
68655         programs that don't use XYZ, when compiled on systems that define
68656         XYZ to something else.
68657
68658 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68659
68660         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68661         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68662         writeable to group or other and (2) is intended to have a special
68663         mode bit that is set or cleared.  In such a case, the directory
68664         should be neither group- nor other-writeable until the special
68665         mode bits are right.
68666
68667 2007-01-31  Eric Blake  <ebb9@byu.net>
68668
68669         * modules/mountlist (Depends-on): Add strstr.
68670
68671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68672         bug.
68673         * modules/string (Makefile.am): Remove redundant replacement.
68674         * modules/regex (Depends-on): Add mempcpy.
68675
68676 2007-01-31  Bruno Haible  <bruno@clisp.org>
68677
68678         New module description field 'Link'.
68679         * gnulib-tool (func_usage): Document --extract-link-directive.
68680         (sed_extract_prog): Recognize 'Link' directive.
68681         (func_get_link_directive): New function.
68682         (func_import): Show summary of link directives.
68683         Handle --extract-link-directive option.
68684         * modules/acl (Link): New section.
68685         * modules/clock-time (Link): New section.
68686         * modules/euidaccess (Link): New section.
68687         * modules/gettext (Link): New section.
68688         * modules/iconv (Link): New section.
68689         * modules/lock (Link): New section.
68690         * modules/nanosleep (Link): New section.
68691         * modules/readline (Link): New section.
68692
68693 2007-01-27  Bruno Haible  <bruno@clisp.org>
68694
68695         Enforce the use of gnulib modules for unportable <string.h> functions.
68696         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68697         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68698         (gl_HEADER_STRING_H_BODY): Require it.
68699         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68700         the symbol XYZ to one that gives a link error.
68701         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68702         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68703         * modules/mempcpy (configure.ac): Likewise.
68704         * modules/memrchr (configure.ac): Likewise.
68705         * modules/stpcpy (configure.ac): Likewise.
68706         * modules/stpncpy (configure.ac): Likewise.
68707         * modules/strcase (configure.ac): Likewise.
68708         * modules/strcasestr (configure.ac): Likewise.
68709         * modules/strchrnul (configure.ac): Likewise.
68710         * modules/strdup (configure.ac): Likewise.
68711         * modules/strndup (configure.ac): Likewise.
68712         * modules/strnlen (configure.ac): Likewise.
68713         * modules/strpbrk (configure.ac): Likewise.
68714         * modules/strsep (configure.ac): Likewise.
68715         * modules/strstr (configure.ac): Likewise.
68716         * modules/strtok_r (configure.ac): Likewise.
68717
68718 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68719
68720         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68721
68722 2007-01-30  Jim Meyering  <jim@meyering.net>
68723
68724         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68725
68726 2007-01-29  Bruno Haible  <bruno@clisp.org>
68727
68728         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68729         * lib/execute.c: Likewise.
68730         * lib/pipe.c: Likewise.
68731         * lib/printf-args.h: Likewise.
68732         * lib/printf-args.c: Likewise.
68733         * lib/printf-parse.c: Likewise.
68734         * lib/vasnprintf.c: Likewise.
68735
68736 2007-01-29  Eric Blake  <ebb9@byu.net>
68737
68738         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68739         declaration.
68740
68741 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68742
68743         * lib/strptime.h (strptime): Use 'restrict' for args where
68744         POSIX requires this.
68745         * lib/strptime.c (strptime): Likewise.
68746         Change license notice from LGPL to GPL, since gnulib-tool will
68747         change this as needed.
68748         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68749         defined.
68750         Include "strptime.h" first, to check interface.
68751         Do not #undef _LIBC and _NL_CURRENT.
68752         Do not include <stdlib.h>; no longer needed.
68753         Include "time_r.h" and declare ptime_locale_status
68754         only if _LIBC is not defined.
68755         (__P): Remove unused macro.
68756         (match_string): Bring back glibc version, but use it only if _LIBC
68757         is defined.
68758         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68759         Remove unnecessary assertion and abort() call.
68760         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68761         * m4/strptime.m4: Fix serial number comment.
68762         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68763         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68764         (Depends-on): Add time_r.
68765
68766 2007-01-29  Bruno Haible  <bruno@clisp.org>
68767
68768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68769         strptime.
68770         * modules/strptime (Depends-on): Add stdbool.
68771         * lib/strptime.h: Include <time.h> always. Add comments.
68772
68773 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68774
68775         * modules/strptime: New file.
68776         * lib/strptime.h: New file.
68777         * lib/strptime.c: New file.
68778         * m4/strptime.m4: New file.
68779
68780 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68781
68782         * MODULES.html.sh: New module mpsort.
68783         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68784
68785         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68786         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68788         All uses changed.
68789         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68790         All uses changed.
68791         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68792         to _Restrict_.
68793         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68794         the parameter matches the prototype.
68795
68796 2007-01-28  Jim Meyering  <jim@meyering.net>
68797
68798         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68799         sys/time.h here, reverting that part of the previous patch:
68800         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68801
68802 2007-01-28  Bruno Haible  <bruno@clisp.org>
68803
68804         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68805         value of $(SYS_TIME_H).
68806         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68807         remove it conditionally, too. [added by Jim Meyering]
68808         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68809         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68810         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68811         GETTIMEOFDAY_REPLACEMENT to 1.
68812
68813 2007-01-28  Bruno Haible  <bruno@clisp.org>
68814
68815         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68816         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68818         Set UNISTD_H instead of UNISTD_H2.
68819         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68820
68821 2007-01-28  Bruno Haible  <bruno@clisp.org>
68822
68823         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68824         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68825
68826 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68827
68828         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
68829         (func_create_testdir): Ensure C locale for `grep' and `tr'
68830         character ranges.
68831         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
68832         ACLOCAL_AMFLAGS parsing state machine.
68833
68834 2007-01-27  Bruno Haible  <bruno@clisp.org>
68835
68836         * modules/unistr/base: Update.
68837
68838 2007-01-27  Bruno Haible  <bruno@clisp.org>
68839
68840         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
68841         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
68842         * modules/unistr/u32-mbtouc-unsafe: Renamed from
68843         modules/unistr/u32-mbtouc.
68844         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
68845         * lib/unistr.h: Update.
68846         * lib/linebreak.c: Update.
68847         * modules/unistr/u32-mbtouc: Renamed from
68848         modules/unistr/u32-mbtouc-safe.
68849         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68850         * lib/unistr.h: Update.
68851         * lib/unistr/u32-to-u8.c: Update.
68852         * lib/unistr/u32-to-u16.c: Update.
68853
68854 2007-01-27  Bruno Haible  <bruno@clisp.org>
68855
68856         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
68857         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
68858         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
68859         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
68860         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
68861         * modules/unistr/u16-mbtouc-unsafe: Renamed from
68862         modules/unistr/u16-mbtouc.
68863         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
68864         * lib/unistr.h: Update.
68865         * lib/linebreak.c: Update.
68866         * modules/linebreak: Update.
68867         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
68868         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
68869         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
68870         * modules/unistr/u16-mbtouc: Renamed from
68871         modules/unistr/u16-mbtouc-safe.
68872         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
68873         * lib/unistr.h: Update.
68874         * lib/unistr/u16-to-u8.c: Update.
68875         * modules/unistr/u16-to-u8: Update.
68876         * lib/unistr/u16-to-u32.c: Update.
68877         * modules/unistr/u16-to-u32: Update.
68878
68879 2007-01-27  Bruno Haible  <bruno@clisp.org>
68880
68881         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
68882         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
68883         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
68884         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
68885         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
68886         * modules/unistr/u8-mbtouc-unsafe: Renamed from
68887         modules/unistr/u8-mbtouc.
68888         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
68889         * lib/unistr.h: Update.
68890         * lib/striconveh.c: Update.
68891         * modules/striconveh: Update.
68892         * lib/linebreak.c: Update.
68893         * modules/linebreak: Update.
68894         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
68895         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
68896         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
68897         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
68898         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
68899         * lib/unistr.h: Update.
68900         * lib/striconveh.c: Update.
68901         * modules/striconveh: Update.
68902         * lib/unistr/u8-to-u16.c: Update.
68903         * modules/unistr/u8-to-u16: Update.
68904         * lib/unistr/u8-to-u32.c: Update.
68905         * modules/unistr/u8-to-u32: Update.
68906
68907 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68908
68909         Sync from Libtool.
68910         * lib/argz.c: Do not include strings.h nor memory.h, include
68911         string.h unconditionally.  Patch by Simon Josefsson.
68912
68913 2007-01-27  Bruno Haible  <bruno@clisp.org>
68914
68915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
68916         from gl_HEADER_STRING_H_BODY.
68917         (gl_HEADER_STRING_H_BODY): Require it.
68918         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
68919         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68920         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68921         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68922         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68923         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
68924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68925         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68926         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
68927         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68928         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68929         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
68930         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68931         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68932         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68933
68934 2007-01-27  Bruno Haible  <bruno@clisp.org>
68935
68936         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
68937         check_PROGRAMS into noinst_PROGRAMS.
68938         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
68939         check_PROGRAMS in this case.
68940         (func_import): Set for_test to false.
68941         (func_create_testdir): Set for_test to true.
68942
68943 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68944             Bruno Haible  <bruno@clisp.org>
68945
68946         * modules/strcasestr (Files): Remove lib/strcasestr.h.
68947         (Depends-on): Add string.
68948         (Includes): Use <string.h> instead of strcasestr.h.
68949         * modules/string (Makefile.am): Also substitute the value of
68950         REPLACE_STRCASESTR.
68951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
68952         assume strcasestr is declared in <string.h> not <strings.h>. Also
68953         set REPLACE_STRCASESTR.
68954         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
68955         REPLACE_STRCASESTR.
68956         * lib/strcasestr.h: Remove file.
68957         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
68958         * lib/string_.h (strcasestr): New declaration.
68959
68960 2007-01-27  Bruno Haible  <bruno@clisp.org>
68961
68962         * lib/string_.h: Use 'extern'.
68963
68964 2007-01-27  Jim Meyering  <jim@meyering.net>
68965
68966         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
68967         of set-but-not-used local, "q".
68968
68969         * lib/mempcpy.c: Include <config.h> before <string.h>.
68970         This fixes a compilation error on HP-UX, due to the system's
68971         "restrict"-using mempcpy prototype.
68972
68973 2007-01-26  Bruno Haible  <bruno@clisp.org>
68974
68975         Small optimization.
68976         * lib/javacomp.c: Include c-strstr.h.
68977          (is_envjavac_gcj): Use c_strstr instead of strstr.
68978         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
68979
68980 2007-01-26  Bruno Haible  <bruno@clisp.org>
68981
68982         * MODULES.html.sh (Unicode string functions): Add the new modules.
68983
68984         * modules/uniconv/u32-strconv-to-locale: New file.
68985         * lib/uniconv/u32-strconv-to-locale.c: New file.
68986
68987         * modules/uniconv/u16-strconv-to-locale: New file.
68988         * lib/uniconv/u16-strconv-to-locale.c: New file.
68989
68990         * modules/uniconv/u8-strconv-to-locale: New file.
68991         * lib/uniconv/u8-strconv-to-locale.c: New file.
68992
68993         * modules/uniconv/u32-strconv-from-locale: New file.
68994         * lib/uniconv/u32-strconv-from-locale.c: New file.
68995
68996         * modules/uniconv/u16-strconv-from-locale: New file.
68997         * lib/uniconv/u16-strconv-from-locale.c: New file.
68998
68999         * modules/uniconv/u8-strconv-from-locale: New file.
69000         * lib/uniconv/u8-strconv-from-locale.c: New file.
69001
69002         * modules/uniconv/u32-strconv-to-enc: New file.
69003         * lib/uniconv/u32-strconv-to-enc.c: New file.
69004         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69005         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69006
69007         * modules/uniconv/u16-strconv-to-enc: New file.
69008         * lib/uniconv/u16-strconv-to-enc.c: New file.
69009         * lib/uniconv/u-strconv-to-enc.h: New file.
69010         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69011         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69012
69013         * modules/uniconv/u8-strconv-to-enc: New file.
69014         * lib/uniconv/u8-strconv-to-enc.c: New file.
69015         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69016         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69017
69018         * modules/uniconv/u32-strconv-from-enc: New file.
69019         * lib/uniconv/u32-strconv-from-enc.c: New file.
69020         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69021         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69022
69023         * modules/uniconv/u16-strconv-from-enc: New file.
69024         * lib/uniconv/u16-strconv-from-enc.c: New file.
69025         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69026         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69027
69028         * modules/uniconv/u8-strconv-from-enc: New file.
69029         * lib/uniconv/u8-strconv-from-enc.c: New file.
69030         * lib/uniconv/u-strconv-from-enc.h: New file.
69031         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69032         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69033
69034         * modules/uniconv/u32-conv-from-enc: New file.
69035         * lib/uniconv/u32-conv-from-enc.c: New file.
69036         * modules/uniconv/u32-conv-from-enc-tests: New file.
69037         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69038
69039         * modules/uniconv/u16-conv-from-enc: New file.
69040         * lib/uniconv/u16-conv-from-enc.c: New file.
69041         * lib/uniconv/u-conv-from-enc.h: New file.
69042         * modules/uniconv/u16-conv-from-enc-tests: New file.
69043         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69044
69045         * modules/uniconv/u8-conv-from-enc: New file.
69046         * lib/uniconv/u8-conv-from-enc.c: New file.
69047         * modules/uniconv/u8-conv-from-enc-tests: New file.
69048         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69049
69050         * modules/uniconv/base: New file.
69051         * lib/uniconv.h: New file.
69052
69053 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69054
69055         * doc/gnulib-tool.texi (Initial import): Update to match current
69056         behavior with strdup module.
69057         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69058         * lib/memmem.h: Remove; all uses removed.  This is now done
69059         by <string.h>.
69060         * lib/mempcpy.h: Likewise.
69061         * lib/memrchr.h: Likewise.
69062         * lib/stpcpy.h: Likewise.
69063         * lib/stpncpy.h: Likewise.
69064         * lib/strcase.h: Likewise.
69065         * lib/strchrnul.h: Likewise.
69066         * lib/strdup.h: Likewise.
69067         * lib/strndup.h: Likewise.
69068         * lib/strnlen.h: Likewise.
69069         * lib/strpbrk.h: Likewise.
69070         * lib/strsep.h: Likewise.
69071         * lib/strstr.h: Likewise.
69072         * lib/strtok_r.h: Likewise.
69073         * lib/string_.h: New file.
69074         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69075         Rely on <string.h> instead.
69076         * lib/canon-host.c: Likewise.
69077         * lib/chdir-long.c: Likewise.
69078         * lib/concatpath.c: Likewise.
69079         * lib/exclude.c: Likewise.
69080         * lib/fchdir.c: Likewise.
69081         * lib/getaddrinfo.c: Likewise.
69082         * lib/getcwd.c: Likewise.
69083         * lib/getsubopt.c: Likewise.
69084         * lib/glob.c: Likewise.
69085         * lib/hard-locale.c: Likewise.
69086         * lib/iconvme.c: Likewise.
69087         * lib/javacomp.c: Likewise.
69088         * lib/mempcpy.c: Likewise.
69089         * lib/memrchr.c: Likewise.
69090         * lib/regex_internal.h: Likewise.
69091         * lib/stpncpy.c: Likewise.
69092         * lib/strcasecmp.c: Likewise.
69093         * lib/strchrnul.c: Likewise.
69094         * lib/strdup.c: Likewise.
69095         * lib/striconv.c: Likewise.
69096         * lib/striconveh.c: Likewise.
69097         * lib/striconveha.c: Likewise.
69098         * lib/strncasecmp.c: Likewise.
69099         * lib/strndup.c: Likewise.
69100         * lib/strnlen.c: Likewise.
69101         * lib/strsep.c: Likewise.
69102         * lib/strstr.c: Likewise.
69103         * lib/strtok_r.c: Likewise.
69104         * lib/userspec.c: Likewise.
69105         * lib/w32spawn.h: Likewise.
69106         * lib/xstrndup.c: Likewise.
69107         * lib/mountlist.c (strstr): Remove decl.
69108         * m4/string_h.m4: New file.
69109         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69110         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69111         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69112         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69113         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69114         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69115         Set REPLACE_STRCASECMP if necessary.
69116         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69117         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69118         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69119         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69120         HAVE_DECL_STRDUP if necessary.
69121         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69122         since gl_FUNC_STRNDUP does that now.
69123         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69124         Check for decl here...
69125         (gl_PREREQ_STRNLEN): ... not here.
69126         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69127         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69128         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69129         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69130         necessary.
69131         * modules/string: New file.
69132         * modules/memmem (Files): Remove special-purpose include file.
69133         (Depends-on): Add string.
69134         (Include): Include <string.h>, not the removed file.
69135         * modules/mempcpy: Likewise.
69136         * modules/memrchr: Likewise.
69137         * modules/stpcpy: Likewise.
69138         * modules/stpncpy: Likewise.
69139         * modules/strcase: Likewise.
69140         * modules/strchrnul: Likewise.
69141         * modules/strdup: Likewise.
69142         * modules/strndup: Likewise.
69143         * modules/strnlen: Likewise.
69144         * modules/strpbrk: Likewise.
69145         * modules/strsep: Likewise.
69146         * modules/strstr: Likewise.
69147         * modules/strtok_r: Likewise.
69148         * tests/test-dirname.c: Don't include "strdup.h", since
69149         <string.h> now suffices.
69150         * tests/test-memmem.c: Don't include "memmem.h", since
69151         <string.h> now suffices.
69152
69153 2007-01-25  Bruno Haible  <bruno@clisp.org>
69154
69155         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69156         *resultp is 0.
69157
69158         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69159         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69160         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69161         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69162
69163         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69164         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69165         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69166         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69167         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69168         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69169
69170 2007-01-24  Bruno Haible  <bruno@clisp.org>
69171
69172         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69173         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69174         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69175         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69176         gl_FUNC_FTS_CORE.
69177         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69178         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69179         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69180         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69181         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69182         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69183         gl_FUNC_FCHOWNAT.
69184         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69185         gl_FUNC_STRFTIME.
69186         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69187         Reported by Ralf Wildenhues.
69188
69189 2007-01-24  Bruno Haible  <bruno@clisp.org>
69190
69191         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69192         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69193         gl_GETADDRINFO.
69194         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69195         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69196         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69197
69198 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69199
69200         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69201         Don't use 'exit'; just return from 'main'.
69202         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69203
69204         * lib/fnmatch_.h: Readjust white space and comments to match
69205         glibc, to avoid spurious diffs.
69206
69207 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69208
69209         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69210         2004-12-01 change by Jakub Jelinek, since this code won't compile
69211         if !LIBC.  Problem reported by Bob Proulx.
69212
69213 2007-01-23  Bruno Haible  <bruno@clisp.org>
69214
69215         * lib/striconveh.c: Include c-strcaseeq.h.
69216         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69217         * modules/striconveh (Depends-on): Add c-strcaseeq.
69218
69219 2007-01-23  Bruno Haible  <bruno@clisp.org>
69220
69221         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69222
69223         * modules/c-strcaseeq: New file.
69224         * lib/c-strcaseeq.h: New file.
69225
69226         * modules/streq: New file.
69227         * lib/streq.h: New file.
69228
69229 2007-01-23  Bruno Haible  <bruno@clisp.org>
69230
69231         * modules/striconveha-tests: New file.
69232         * tests/test-striconveha.c: New file.
69233
69234         * lib/striconveha.h: Include <stdbool.h>.
69235         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69236         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69237         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69238         (mem_iconveha): New function.
69239         (str_iconveha_notranslit): Renamed from str_iconveha.
69240         (str_iconveha): New function.
69241         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69242         c-strcase.
69243
69244 2007-01-23  Bruno Haible  <bruno@clisp.org>
69245
69246         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69247         encodings without forgiving before trying any encoding with handler.
69248         (str_iconveha): Try all encodings without forgiving before trying any
69249         encoding with handler.
69250
69251 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69252
69253         Import the following changes from libc.
69254
69255         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69256
69257         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69258
69259         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69260
69261         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69262         normal_bracket label.
69263
69264         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69265
69266         [BZ #361]
69267         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69268         to normal_bracket after fetching the next character.
69269
69270 2007-01-22  Bruno Haible  <bruno@clisp.org>
69271
69272         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69273         argument.
69274         * lib/striconveh.c (iconv_carefully_1): New function.
69275         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69276         argument.
69277         (str_cd_iconveh): Update.
69278         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69279         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69280         * tests/test-striconveh.c (MAGIC): New macro.
69281         (new_offsets): New function.
69282         (main): Test call with and without offsets.
69283
69284 2007-01-22  Bruno Haible  <bruno@clisp.org>
69285
69286         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69287         * modules/sys_select (Makefile.am): Likewise.
69288         * modules/sys_socket (Makefile.am): Likewise.
69289         * modules/sys_time (Makefile.am): Likewise.
69290
69291 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69292
69293         * modules/gettimeofday (License): Change from GPL to LGPL, since
69294         gettimeofday is a library function.
69295
69296 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69297
69298         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69299
69300 2007-01-21  Bruno Haible  <bruno@clisp.org>
69301
69302         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69303
69304 2007-01-21  Bruno Haible  <bruno@clisp.org>
69305
69306         * modules/striconveha: New file.
69307         * lib/striconveha.h: New file.
69308         * lib/striconveha.c: New file.
69309         * MODULES.html.sh (Internationalization functions): Add striconveha.
69310         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69311         string.
69312         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69313
69314 2007-01-21  Bruno Haible  <bruno@clisp.org>
69315
69316         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69317         * lib/striconveh.c (str_iconveh): Likewise.
69318
69319 2007-01-21  Bruno Haible  <bruno@clisp.org>
69320
69321         * lib/striconveh.h (mem_iconveh): New declaration.
69322         * lib/striconveh.c (mem_iconveh): New function.
69323         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69324
69325 2007-01-21  Bruno Haible  <bruno@clisp.org>
69326
69327         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69328
69329         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69330         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69331         original result buffer.
69332         (str_cd_iconveh): Update.
69333         * tests/test-striconveh.c (main): Update.
69334
69335         * lib/striconv.h (mem_cd_iconv): Change specification.
69336         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69337         result buffer.
69338         (str_cd_iconv): Update.
69339         * tests/test-striconv.c (main): Update.
69340
69341 2007-01-21  Bruno Haible  <bruno@clisp.org>
69342
69343         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69344
69345 2007-01-20  Jim Meyering  <jim@meyering.net>
69346
69347         * lib/userspec.c (parse_with_separator): If a user or group string
69348         starts with "+", skip the corresponding name-to-ID look-up, since
69349         such a look-up must fail: user and group names may not include "+".
69350
69351 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69352
69353         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69354         since we now assume the sys_time module.
69355         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69356         check for sys/time.h; no longer needed.
69357         * modules/poll (Depends-on): Depend on sys_time.
69358
69359 2007-01-18  Bruno Haible  <bruno@clisp.org>
69360
69361         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69362         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69363
69364         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69365         gettimeofday.
69366
69367         * tests/test-gettimeofday.c: Include <time.h>.
69368         (dummy): Remove variable.
69369
69370         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69371         gl_HEADER_SYS_TIME_H.
69372         (gl_HEADER_SYS_TIME_H): New macro.
69373
69374         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69375         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69376         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69377         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69378         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69379         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69380         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69381         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69382         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69383         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69384         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69385
69386         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69387         last change; it caused a compilation error when cross-compiling to
69388         Cygwin.
69389
69390 2007-01-18  Jim Meyering  <jim@meyering.net>
69391
69392         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69393         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69394         than the race-prone "test -d sys || mkdir sys".
69395         (configure.ac): Use AC_PROG_MKDIR_P.
69396         * modules/sys_select: Likewise.
69397         * modules/sys_socket: Likewise.
69398         * modules/sys_time: Likewise.
69399
69400 2007-01-18  Eric Blake  <ebb9@byu.net>
69401
69402         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69403         replace gettimeofday.
69404         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69405         name, to avoid infinite recursion.
69406
69407 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69408
69409         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69410         module sys_time.
69411         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69412         assume timespec.h defines struct timeval.
69413         * lib/settime.c: Likewise.
69414         * lib/utimens.c: Likewise.
69415         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69416         since we now assume the gettimeofday module.
69417         * lib/tempname.c (__gen_tempname): Likewise.
69418         * lib/gettimeofday.h: Remove.
69419         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69420         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69421         Include <time.h>, for 'time()'.
69422         (localtime_buffer_addr): Also use this workaround if
69423         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69424         to simplify the uses.  All uses changed.
69425         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69426         that #undef is inside {}, and 'const' follows type name consistently.
69427         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69428         (gettimeofday): Do not use the maximum possible value for
69429         tv->tv_usec, since that might break usages other than ls.c.
69430         Instead, we'll leave ls.c alone.  This undoes today's patch
69431         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69432         we've never observed the problem but might as well keep the
69433         canary.
69434         * lib/nanosleep.c: Include timespec.h first, for interface check.
69435         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69436         now assume the sys_time module.
69437         * lib/tempname.c: Likewise.
69438         * lib/timespec.h: Likewise.
69439         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69440         needed.
69441         * lib/strftime.c: Likewise.
69442         * lib/timespec.h: Likewise.
69443         * lib/posixtm.c: Include posixtm.h first, for interface check.
69444         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69445         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69446         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69447         * lib/sys_time_.h: New file.
69448         * lib/timespec.h (struct timespec): Use long int, not long.
69449         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69450         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69451         Remove obsolescent call to AC_HEADER_TIME.
69452         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69453         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69454         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69455         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69456         Likewise.
69457         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69458         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69459         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69460         into the sys_time module.  Check for gettimeofday just once.
69461         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69462         for gettimeofday signature to just check the signature.  Merely
69463         compile it, since linking doesn't test signature.  Improve test for
69464         whether gettimeofday.o is actually needed.
69465         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69466         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69467         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69468         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69469         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69470         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69471         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69472         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69473         than worrying about sys/time.h.
69474         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69475         Don't bother worrying about TIME_WITH_SYS_TIME.
69476         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69477         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69478         * m4/sys_time_h.m4: New file.
69479         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69480         Don't include sys/time.h.  Return from main rather than exiting.
69481         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69482         all uses changed.
69483         * modules/gethrxtime (Depends-on): Add sys_time.
69484         * modules/gettime (Depends-on): Likewise.
69485         * modules/gettimeofday (Depends-on): Likewise.
69486         * modules/nanosleep (Depends-on): Likewise.
69487         * modules/settime (Depends-on): Likewise.
69488         * modules/tempname (Depends-on): Likewise.
69489         * modules/utimens (Depends-on): Likewise.
69490         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69491         (Include): Change back to <sys/time.h>.
69492         (Maintainer): Add self.
69493         * modules/sys_time: New file.
69494         * modules/tempname (Depends-on): Add gettimeofday.
69495         * tests/test-gettimeofday.c: Include <sys/time.h>
69496         rather than gettimeofday.h.
69497
69498 2007-01-17  Bruno Haible  <bruno@clisp.org>
69499
69500         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69501         the license default to GPL.
69502         (func_create_testdir): Don't complain if a module is LGPL and its
69503         tests module depends on GPLed modules.
69504
69505 2007-01-17  Bruno Haible  <bruno@clisp.org>
69506
69507         * lib/gettimeofday.c (gettimeofday): Add code for the case
69508         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69509         maximum possible value for tv->tv_usec, rather than the minimum one.
69510
69511 2005-10-08  Martin Lambers  <marlam@marlam.de>
69512 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69513 2007-01-16  Bruno Haible  <bruno@clisp.org>
69514
69515         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69516         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69517         gl_FUNC_GETTIMEOFDAY.
69518         (Include): Add gettimeofday.h.
69519         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69520         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69521         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69522         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69523         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69524         * lib/gettimeofday.h: New file.
69525         * lib/gettimeofday.c: Include <sys/timeb.h>.
69526         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69527         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69528         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69529         fall back on time().
69530
69531         * tests/test-gettimeofday.c: New file.
69532         * modules/gettimeofday-tests: New file.
69533
69534 2007-01-16  Eric Blake  <ebb9@byu.net>
69535
69536         * modules/fnmatch (Depends-on): Depend on wchar.
69537         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69538         * m4/fnmatch.m4: Likewise.
69539         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69540         * m4/mbchar.m4: Likewise.
69541         * modules/mbswidth (Depends-on): Depend on wchar.
69542         * lib/mbswidth.c: Assume <wchar.h>.
69543         * m4/mbswidth.m4: Likewise.
69544         * modules/quotearg (Depends-on): Depend on wchar.
69545         * lib/quotearg.c: Assume <wchar.h>.
69546         * m4/quotearg.m4: Likewise.
69547         * modules/regex (Depends-on): Depend on wchar.
69548         * lib/regex_internal.h: Assume <wchar.h>.
69549         * m4/regex.m4: Likewise.
69550         * modules/stdint (Depends-on): Depend on wchar.
69551         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69552         * m4/stdint.m4: Likewise.
69553         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69554         * modules/strftime (Depends-on): Depend on wchar.
69555         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69556         * modules/strtol (Depends-on): Depend on wchar.
69557         * lib/strtol.c: Assume <wchar.h>.
69558         * modules/wcwidth (Depends-on): Depend on wchar.
69559         * lib/wcwidth.h: Assume <wchar.h>.
69560         * m4/wcwidth.m4: Likewise.
69561
69562 2007-01-16  Bruno Haible  <bruno@clisp.org>
69563
69564         * modules/csharpexec-script: New, created from...
69565         * modules/csharpexec: ... this.
69566
69567 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69568
69569         * modules/javaexec-script: New, created from...
69570         * modules/javaexec: ... this.
69571
69572 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69573
69574         * modules/poll (Dependencies): Add sys_select.
69575
69576 2007-01-15  Jim Meyering  <jim@meyering.net>
69577
69578         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69579         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69580         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69581         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69582
69583 2007-01-15  Bruno Haible  <bruno@clisp.org>
69584
69585         * modules/striconveh: New file.
69586         * lib/striconveh.h: New file.
69587         * lib/striconveh.c: New file.
69588         * MODULES.html.sh (Internationalization functions): Add striconveh.
69589
69590         * modules/striconveh-tests: New file.
69591         * tests/test-striconveh.c: New file.
69592
69593 2007-01-15  Bruno Haible  <bruno@clisp.org>
69594
69595         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69596         not from GNU libiconv or GNU libc.
69597
69598 2007-01-15  Bruno Haible  <bruno@clisp.org>
69599
69600         * doc/gnulib-intro.texi (Copyright): Explain the different license
69601         terms for module descriptions, autoconf macros, tests, documentation.
69602
69603 2007-01-14  Bruno Haible  <bruno@clisp.org>
69604
69605         * modules/striconv-tests: New file.
69606         * tests/test-striconv.c: New file.
69607
69608 2007-01-14  Bruno Haible  <bruno@clisp.org>
69609
69610         * modules/iconv-tests: New file.
69611         * tests/test-iconv.c: New file.
69612
69613 2007-01-14  Bruno Haible  <bruno@clisp.org>
69614
69615         * gnulib-tool (func_get_license): For test modules, use the license of
69616         the main module.
69617
69618 2007-01-14  Bruno Haible  <bruno@clisp.org>
69619
69620         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69621         if iconv is found to exist.
69622
69623 2007-01-14  Bruno Haible  <bruno@clisp.org>
69624
69625         * modules/c-ctype-tests: New file.
69626         * tests/test-c-ctype.c: New file.
69627
69628 2007-01-14  Bruno Haible  <bruno@clisp.org>
69629
69630         * modules/binary-io-tests: New file.
69631         * tests/test-binary-io.sh: New file.
69632         * tests/test-binary-io.c: New file.
69633
69634 2007-01-14  Bruno Haible  <bruno@clisp.org>
69635
69636         * modules/array-oset-tests: New file.
69637         * tests/test-array_oset.c: New file.
69638
69639 2007-01-14  Bruno Haible  <bruno@clisp.org>
69640
69641         * modules/array-list-tests: New file.
69642         * tests/test-array_list.c: New file.
69643
69644 2007-01-14  Bruno Haible  <bruno@clisp.org>
69645
69646         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69647         and make.
69648         Reported by Simon Josefsson in
69649         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69650
69651 2007-01-14  Bruno Haible  <bruno@clisp.org>
69652
69653         * modules/allocsa-tests: New file.
69654         * tests/test-allocsa.c: New file.
69655
69656 2007-01-14  Bruno Haible  <bruno@clisp.org>
69657
69658         * modules/fchdir (Depends-on): Add absolute-header.
69659         * modules/unistd (Depends-on): Likewise.
69660
69661 2006-12-30  Bruno Haible  <bruno@clisp.org>
69662
69663         * modules/fchdir: New file.
69664         * modules/unistd (Files): Add lib/unistd_.h.
69665         (Makefile.am): Generate unistd.h from unistd_.h.
69666         * lib/fchdir.c: New file.
69667         * lib/dirent_.h: New file.
69668         * lib/unistd_.h: New file.
69669         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69670         * m4/fchdir.m4: New file.
69671         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69672         (gl_HEADER_UNISTD): Invoke it.
69673         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69674         function.
69675         * lib/backupfile.c (opendir, closedir): Undefine.
69676         * lib/chown.c (open, close): Undefine.
69677         * lib/clean-temp.c (open, close): Undefine.
69678         * lib/copy-file.c (open, close): Undefine.
69679         * lib/execute.c (open, close): Undefine.
69680         * lib/fsusage.c (open, close): Undefine.
69681         * lib/gc-gnulib.c (open, close): Undefine.
69682         * lib/getcwd.c (opendir, closedir): Undefine.
69683         * lib/glob.c (opendir, closedir): Undefine.
69684         * lib/javacomp.c (open, close): Undefine.
69685         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69686         * lib/openat-proc.c (open, close): Undefine.
69687         * lib/pagealign_alloc.c (open, close): Undefine.
69688         * lib/pipe.c (open, close): Undefine.
69689         * lib/progreloc.c (open, close): Undefine.
69690         * lib/savedir.c (opendir, closedir): Undefine.
69691         * lib/utime.c (open, close): Undefine.
69692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69693
69694 2007-01-10  Bruno Haible  <bruno@clisp.org>
69695
69696         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69697
69698 2007-01-12  Eric Blake  <ebb9@byu.net>
69699
69700         Provide a robust <wchar.h>.  Further simplifications are now
69701         possible in other modules, but not included here.
69702         * modules/wchar: New module.
69703         * m4/wchar.m4: New file.
69704         * lib/wchar_.h: Likewise.
69705         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69706         of the new module.
69707         * MODULES.html.sh (Extended multibyte and wide character utilities):
69708         New section.
69709
69710 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69713         to a reasonable default for memory allocation.
69714         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69715         file system that reports garbage st_size values for symlinks.
69716         Problem reported by Liyang Hu.
69717
69718 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69719
69720         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69721         Emacs .#* auto-save files).
69722
69723 2007-01-11  Bruno Haible  <bruno@clisp.org>
69724
69725         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69726         directory.
69727
69728 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69729
69730         Use @...@ consistently in lib/wctype_.h.
69731         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69732         on it being set to 1 or 0.
69733         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69734         go back to AC_SUBSTing it.
69735         * modules/wctype (Makefile.am): Undo previous change.
69736
69737 2007-01-10  Eric Blake  <ebb9@byu.net>
69738
69739         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69740         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69741         * modules/wctype (Makefile.am): Likewise.
69742         Reported by Chris McGuire.
69743
69744 2007-01-10  Jim Meyering  <jim@meyering.net>
69745
69746         fts.c: a small readability/maintainability improvement
69747         * lib/fts.c (fts_read): Make this code slightly more readable and
69748         maintainable by hoisting the "sp->fts_cur = p" assignments to
69749         immediately follow the statements that set P.  Derived from
69750         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69751
69752 2007-01-10  Eric Blake  <ebb9@byu.net>
69753
69754         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69755         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69757         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69758         Reported by Chris McGuire.
69759
69760 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69761
69762         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69763         in sed script.
69764
69765 2007-01-09  Bruno Haible  <bruno@clisp.org>
69766
69767         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69768         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69769         variables.
69770         (func_module): Use them.
69771
69772 2007-01-09  Bruno Haible  <bruno@clisp.org>
69773
69774         * modules/unistr/base: New file.
69775         * lib/unistr.h: New file.
69776
69777         * modules/unistr/u8-to-u16: New file.
69778         * lib/unistr/u8-to-u16.c: New file.
69779
69780         * modules/unistr/u8-to-u32: New file.
69781         * lib/unistr/u8-to-u32.c: New file.
69782
69783         * modules/unistr/u16-to-u8: New file.
69784         * lib/unistr/u16-to-u8.c: New file.
69785
69786         * modules/unistr/u16-to-u32: New file.
69787         * lib/unistr/u16-to-u32.c: New file.
69788
69789         * modules/unistr/u32-to-u8: New file.
69790         * lib/unistr/u32-to-u8.c: New file.
69791
69792         * modules/unistr/u32-to-u16: New file.
69793         * lib/unistr/u32-to-u16.c: New file.
69794
69795         * modules/unistr/u8-check: New file.
69796         * modules/unistr/u16-check: New file.
69797         * modules/unistr/u32-check: New file.
69798         * lib/unistr/u8-check.c: New file.
69799         * lib/unistr/u16-check.c: New file.
69800         * lib/unistr/u32-check.c: New file.
69801
69802         * modules/unistr/u8-chr: New file.
69803         * modules/unistr/u16-chr: New file.
69804         * modules/unistr/u32-chr: New file.
69805         * lib/unistr/u8-chr.c: New file.
69806         * lib/unistr/u16-chr.c: New file.
69807         * lib/unistr/u32-chr.c: New file.
69808
69809         * modules/unistr/u8-cmp: New file.
69810         * modules/unistr/u16-cmp: New file.
69811         * modules/unistr/u32-cmp: New file.
69812         * lib/unistr/u8-cmp.c: New file.
69813         * lib/unistr/u16-cmp.c: New file.
69814         * lib/unistr/u32-cmp.c: New file.
69815
69816         * modules/unistr/u8-cpy: New file.
69817         * modules/unistr/u16-cpy: New file.
69818         * modules/unistr/u32-cpy: New file.
69819         * lib/unistr/u8-cpy.c: New file.
69820         * lib/unistr/u16-cpy.c: New file.
69821         * lib/unistr/u32-cpy.c: New file.
69822         * lib/unistr/u-cpy.h: New file.
69823
69824         * modules/unistr/u8-cpy-alloc: New file.
69825         * modules/unistr/u16-cpy-alloc: New file.
69826         * modules/unistr/u32-cpy-alloc: New file.
69827         * lib/unistr/u8-cpy-alloc.c: New file.
69828         * lib/unistr/u16-cpy-alloc.c: New file.
69829         * lib/unistr/u32-cpy-alloc.c: New file.
69830         * lib/unistr/u-cpy-alloc.h: New file.
69831
69832         * modules/unistr/u8-endswith: New file.
69833         * modules/unistr/u16-endswith: New file.
69834         * modules/unistr/u32-endswith: New file.
69835         * lib/unistr/u8-endswith.c: New file.
69836         * lib/unistr/u16-endswith.c: New file.
69837         * lib/unistr/u32-endswith.c: New file.
69838         * lib/unistr/u-endswith.h: New file.
69839
69840         * modules/unistr/u8-mblen: New file.
69841         * modules/unistr/u16-mblen: New file.
69842         * modules/unistr/u32-mblen: New file.
69843         * lib/unistr/u8-mblen.c: New file.
69844         * lib/unistr/u16-mblen.c: New file.
69845         * lib/unistr/u32-mblen.c: New file.
69846
69847         * modules/unistr/u8-mbtouc: New file.
69848         * modules/unistr/u16-mbtouc: New file.
69849         * modules/unistr/u32-mbtouc: New file.
69850         * lib/unistr/u8-mbtouc.c: New file.
69851         * lib/unistr/u16-mbtouc.c: New file.
69852         * lib/unistr/u32-mbtouc.c: New file.
69853
69854         * modules/unistr/u8-mbtouc-safe: New file.
69855         * modules/unistr/u16-mbtouc-safe: New file.
69856         * modules/unistr/u32-mbtouc-safe: New file.
69857         * lib/unistr/u8-mbtouc-safe.c: New file.
69858         * lib/unistr/u16-mbtouc-safe.c: New file.
69859         * lib/unistr/u32-mbtouc-safe.c: New file.
69860
69861         * modules/unistr/u8-move: New file.
69862         * modules/unistr/u16-move: New file.
69863         * modules/unistr/u32-move: New file.
69864         * lib/unistr/u8-move.c: New file.
69865         * lib/unistr/u16-move.c: New file.
69866         * lib/unistr/u32-move.c: New file.
69867         * lib/unistr/u-move.h: New file.
69868
69869         * modules/unistr/u8-next: New file.
69870         * modules/unistr/u16-next: New file.
69871         * modules/unistr/u32-next: New file.
69872         * lib/unistr/u8-next.c: New file.
69873         * lib/unistr/u16-next.c: New file.
69874         * lib/unistr/u32-next.c: New file.
69875
69876         * modules/unistr/u8-prev: New file.
69877         * modules/unistr/u16-prev: New file.
69878         * modules/unistr/u32-prev: New file.
69879         * lib/unistr/u8-prev.c: New file.
69880         * lib/unistr/u16-prev.c: New file.
69881         * lib/unistr/u32-prev.c: New file.
69882
69883         * modules/unistr/u8-set: New file.
69884         * modules/unistr/u16-set: New file.
69885         * modules/unistr/u32-set: New file.
69886         * lib/unistr/u8-set.c: New file.
69887         * lib/unistr/u16-set.c: New file.
69888         * lib/unistr/u32-set.c: New file.
69889         * lib/unistr/u-set.h: New file.
69890
69891         * modules/unistr/u8-startswith: New file.
69892         * modules/unistr/u16-startswith: New file.
69893         * modules/unistr/u32-startswith: New file.
69894         * lib/unistr/u8-startswith.c: New file.
69895         * lib/unistr/u16-startswith.c: New file.
69896         * lib/unistr/u32-startswith.c: New file.
69897         * lib/unistr/u-startswith.h: New file.
69898
69899         * modules/unistr/u8-stpcpy: New file.
69900         * modules/unistr/u16-stpcpy: New file.
69901         * modules/unistr/u32-stpcpy: New file.
69902         * lib/unistr/u8-stpcpy.c: New file.
69903         * lib/unistr/u16-stpcpy.c: New file.
69904         * lib/unistr/u32-stpcpy.c: New file.
69905         * lib/unistr/u-stpcpy.h: New file.
69906
69907         * modules/unistr/u8-stpncpy: New file.
69908         * modules/unistr/u16-stpncpy: New file.
69909         * modules/unistr/u32-stpncpy: New file.
69910         * lib/unistr/u8-stpncpy.c: New file.
69911         * lib/unistr/u16-stpncpy.c: New file.
69912         * lib/unistr/u32-stpncpy.c: New file.
69913         * lib/unistr/u-stpncpy.h: New file.
69914
69915         * modules/unistr/u8-strcat: New file.
69916         * modules/unistr/u16-strcat: New file.
69917         * modules/unistr/u32-strcat: New file.
69918         * lib/unistr/u8-strcat.c: New file.
69919         * lib/unistr/u16-strcat.c: New file.
69920         * lib/unistr/u32-strcat.c: New file.
69921         * lib/unistr/u-strcat.h: New file.
69922
69923         * modules/unistr/u8-strchr: New file.
69924         * modules/unistr/u16-strchr: New file.
69925         * modules/unistr/u32-strchr: New file.
69926         * lib/unistr/u8-strchr.c: New file.
69927         * lib/unistr/u16-strchr.c: New file.
69928         * lib/unistr/u32-strchr.c: New file.
69929
69930         * modules/unistr/u8-strcmp: New file.
69931         * modules/unistr/u16-strcmp: New file.
69932         * modules/unistr/u32-strcmp: New file.
69933         * lib/unistr/u8-strcmp.c: New file.
69934         * lib/unistr/u16-strcmp.c: New file.
69935         * lib/unistr/u32-strcmp.c: New file.
69936
69937         * modules/unistr/u8-strcpy: New file.
69938         * modules/unistr/u16-strcpy: New file.
69939         * modules/unistr/u32-strcpy: New file.
69940         * lib/unistr/u8-strcpy.c: New file.
69941         * lib/unistr/u16-strcpy.c: New file.
69942         * lib/unistr/u32-strcpy.c: New file.
69943         * lib/unistr/u-strcpy.h: New file.
69944
69945         * modules/unistr/u8-strcspn: New file.
69946         * modules/unistr/u16-strcspn: New file.
69947         * modules/unistr/u32-strcspn: New file.
69948         * lib/unistr/u8-strcspn.c: New file.
69949         * lib/unistr/u16-strcspn.c: New file.
69950         * lib/unistr/u32-strcspn.c: New file.
69951         * lib/unistr/u-strcspn.h: New file.
69952
69953         * modules/unistr/u8-strdup: New file.
69954         * modules/unistr/u16-strdup: New file.
69955         * modules/unistr/u32-strdup: New file.
69956         * lib/unistr/u8-strdup.c: New file.
69957         * lib/unistr/u16-strdup.c: New file.
69958         * lib/unistr/u32-strdup.c: New file.
69959         * lib/unistr/u-strdup.h: New file.
69960
69961         * modules/unistr/u8-strlen: New file.
69962         * modules/unistr/u16-strlen: New file.
69963         * modules/unistr/u32-strlen: New file.
69964         * lib/unistr/u8-strlen.c: New file.
69965         * lib/unistr/u16-strlen.c: New file.
69966         * lib/unistr/u32-strlen.c: New file.
69967         * lib/unistr/u-strlen.h: New file.
69968
69969         * modules/unistr/u8-strmblen: New file.
69970         * modules/unistr/u16-strmblen: New file.
69971         * modules/unistr/u32-strmblen: New file.
69972         * lib/unistr/u8-strmblen.c: New file.
69973         * lib/unistr/u16-strmblen.c: New file.
69974         * lib/unistr/u32-strmblen.c: New file.
69975
69976         * modules/unistr/u8-strmbtouc: New file.
69977         * modules/unistr/u16-strmbtouc: New file.
69978         * modules/unistr/u32-strmbtouc: New file.
69979         * lib/unistr/u8-strmbtouc.c: New file.
69980         * lib/unistr/u16-strmbtouc.c: New file.
69981         * lib/unistr/u32-strmbtouc.c: New file.
69982
69983         * modules/unistr/u8-strncat: New file.
69984         * modules/unistr/u16-strncat: New file.
69985         * modules/unistr/u32-strncat: New file.
69986         * lib/unistr/u8-strncat.c: New file.
69987         * lib/unistr/u16-strncat.c: New file.
69988         * lib/unistr/u32-strncat.c: New file.
69989         * lib/unistr/u-strncat.h: New file.
69990
69991         * modules/unistr/u8-strncmp: New file.
69992         * modules/unistr/u16-strncmp: New file.
69993         * modules/unistr/u32-strncmp: New file.
69994         * lib/unistr/u8-strncmp.c: New file.
69995         * lib/unistr/u16-strncmp.c: New file.
69996         * lib/unistr/u32-strncmp.c: New file.
69997
69998         * modules/unistr/u8-strncpy: New file.
69999         * modules/unistr/u16-strncpy: New file.
70000         * modules/unistr/u32-strncpy: New file.
70001         * lib/unistr/u8-strncpy.c: New file.
70002         * lib/unistr/u16-strncpy.c: New file.
70003         * lib/unistr/u32-strncpy.c: New file.
70004         * lib/unistr/u-strncpy.h: New file.
70005
70006         * modules/unistr/u8-strnlen: New file.
70007         * modules/unistr/u16-strnlen: New file.
70008         * modules/unistr/u32-strnlen: New file.
70009         * lib/unistr/u8-strnlen.c: New file.
70010         * lib/unistr/u16-strnlen.c: New file.
70011         * lib/unistr/u32-strnlen.c: New file.
70012         * lib/unistr/u-strnlen.h: New file.
70013
70014         * modules/unistr/u8-strpbrk: New file.
70015         * modules/unistr/u16-strpbrk: New file.
70016         * modules/unistr/u32-strpbrk: New file.
70017         * lib/unistr/u8-strpbrk.c: New file.
70018         * lib/unistr/u16-strpbrk.c: New file.
70019         * lib/unistr/u32-strpbrk.c: New file.
70020         * lib/unistr/u-strpbrk.h: New file.
70021
70022         * modules/unistr/u8-strrchr: New file.
70023         * modules/unistr/u16-strrchr: New file.
70024         * modules/unistr/u32-strrchr: New file.
70025         * lib/unistr/u8-strrchr.c: New file.
70026         * lib/unistr/u16-strrchr.c: New file.
70027         * lib/unistr/u32-strrchr.c: New file.
70028
70029         * modules/unistr/u8-strspn: New file.
70030         * modules/unistr/u16-strspn: New file.
70031         * modules/unistr/u32-strspn: New file.
70032         * lib/unistr/u8-strspn.c: New file.
70033         * lib/unistr/u16-strspn.c: New file.
70034         * lib/unistr/u32-strspn.c: New file.
70035         * lib/unistr/u-strspn.h: New file.
70036
70037         * modules/unistr/u8-strstr: New file.
70038         * modules/unistr/u16-strstr: New file.
70039         * modules/unistr/u32-strstr: New file.
70040         * lib/unistr/u8-strstr.c: New file.
70041         * lib/unistr/u16-strstr.c: New file.
70042         * lib/unistr/u32-strstr.c: New file.
70043         * lib/unistr/u-strstr.h: New file.
70044
70045         * modules/unistr/u8-strtok: New file.
70046         * modules/unistr/u16-strtok: New file.
70047         * modules/unistr/u32-strtok: New file.
70048         * lib/unistr/u8-strtok.c: New file.
70049         * lib/unistr/u16-strtok.c: New file.
70050         * lib/unistr/u32-strtok.c: New file.
70051         * lib/unistr/u-strtok.h: New file.
70052
70053         * modules/unistr/u8-uctomb: New file.
70054         * modules/unistr/u16-uctomb: New file.
70055         * modules/unistr/u32-uctomb: New file.
70056         * lib/unistr/u8-uctomb.c: New file.
70057         * lib/unistr/u16-uctomb.c: New file.
70058         * lib/unistr/u32-uctomb.c: New file.
70059
70060         * MODULES.html.sh (Unicode string functions): Add the new modules.
70061
70062 2007-01-08  Bruno Haible  <bruno@clisp.org>
70063
70064         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70065         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70066         subdirectories.
70067
70068 2007-01-08  Karl Berry  <karl@gnu.org>
70069
70070         * doc/error.texi: mention that main() fns must set program_name
70071         when progname is used.
70072
70073 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70074
70075         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70076         WCTYPE_H is empty, for the benefit of builds from non-distclean
70077         directories.  Problem reported by Eric Blake in
70078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70079
70080 2007-01-08  Bruno Haible  <bruno@clisp.org>
70081
70082         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70083         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70084         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70085         PROVIDE_CANONICALIZE_FILENAME_MODE.
70086         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70087
70088 2007-01-08  Bruno Haible  <bruno@clisp.org>
70089
70090         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70091         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70092         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70093         * lib/fts.c: Likewise.
70094         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70095
70096 2006-12-25  Bruno Haible  <bruno@clisp.org>
70097
70098         * modules/utf8-ucs4-safe: New file.
70099         * lib/utf8-ucs4-safe.h: New file.
70100         * lib/unistr/utf8-ucs4-safe.c: New file.
70101
70102         * modules/utf16-ucs4-safe: New file.
70103         * lib/utf16-ucs4-safe.h: New file.
70104         * lib/unistr/utf16-ucs4-safe.c: New file.
70105
70106         * MODULES.html.sh (Unicode string functions): Add the new modules.
70107
70108 2007-01-08  Bruno Haible  <bruno@clisp.org>
70109
70110         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70111         (Depends-on): Add unitypes.
70112         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70113         (u8_mbtouc_aux): Move out to separate file.
70114         (u8_mbtouc): Use ucs4_t, uint8_t types.
70115         * lib/unistr/utf8-ucs4.c: New file.
70116
70117         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70118         (Depends-on): Add unitypes.
70119         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70120         (u16_mbtouc_aux): Move out to separate file.
70121         (u16_mbtouc): Use ucs4_t, uint16_t types.
70122         * lib/unistr/utf16-ucs4.c: New file.
70123
70124         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70125         (Depends-on): Add unitypes.
70126         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70127         (u8_uctomb_aux): Move out to separate file.
70128         (u8_uctomb): Use ucs4_t, uint8_t types.
70129         * lib/unistr/ucs4-utf8.c: New file.
70130
70131         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70132         (Depends-on): Add unitypes.
70133         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70134         (u16_uctomb_aux): Move out to separate file.
70135         (u16_uctomb): Use ucs4_t, uint16_t types.
70136         * lib/unistr/ucs4-utf16.c: New file.
70137
70138 2006-12-25  Bruno Haible  <bruno@clisp.org>
70139
70140         * modules/unitypes: New file.
70141         * lib/unitypes.h: New file.
70142         * MODULES.html.sh (func_all_modules): New section "Unicode string
70143         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70144         this section. Add unitypes.
70145
70146 2007-01-08  Bruno Haible  <bruno@clisp.org>
70147
70148         Avoid variable names that conflict with those from libtool.
70149         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70150         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70151         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70152         library_names_spec to acl_library_names_spec, hardcode_* to
70153         acl_hardcode_*.
70154         Reported by Ralf Wildenhues.
70155
70156 2007-01-08  Bruno Haible  <bruno@clisp.org>
70157
70158         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70159         definition.
70160         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70161         definition.
70162         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70163         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70164         definition.
70165         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70166         definition.
70167         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70168         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70169         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70170         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70171         definition.
70172         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70173         definition.
70174         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70175         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70176         GC_USE_<algorithm>.
70177         * lib/gc-libgcrypt.c: Likewise.
70178         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70179         * modules/gc-arctwo (configure.ac): Likewise.
70180         * modules/gc-des (configure.ac): Likewise.
70181         * modules/gc-hmac-md5 (configure.ac): Likewise.
70182         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70183         * modules/gc-md2 (configure.ac): Likewise.
70184         * modules/gc-md4 (configure.ac): Likewise.
70185         * modules/gc-md5 (configure.ac): Likewise.
70186         * modules/gc-random (configure.ac): Likewise.
70187         * modules/gc-rijndael (configure.ac): Likewise.
70188         * modules/gc-sha1 (configure.ac): Likewise.
70189
70190 2007-01-08  Bruno Haible  <bruno@clisp.org>
70191
70192         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70193         macro definition.
70194         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70195         definition.
70196         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70197         definition.
70198         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70199         * modules/fcntl-safer (configure.ac): Likewise.
70200         * modules/fopen-safer (configure.ac): Likewise.
70201         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70202         GNULIB_FWRITEERROR macro definition.
70203
70204 2007-01-08  Bruno Haible  <bruno@clisp.org>
70205
70206         * m4/gnulib-common.m4: New file.
70207         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70208         (func_get_filelist): Add m4/gnulib-common.m4.
70209
70210 2007-01-08  Bruno Haible  <bruno@clisp.org>
70211
70212         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70213         command.
70214
70215 2007-01-08  Jim Meyering  <jim@meyering.net>
70216
70217         Use a more robust test for a "can't happen" condition.
70218         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70219         narrowed the st_size value.  Presuming the "can't happen" condition
70220         is true, that narrowing could conceivably convert an invalid st_size
70221         value into a valid one.  Instead, use a change based on Matthew
70222         Woehlke's original patch.
70223
70224         Slight readability improvement: use an assert-like macro
70225         in place of literal "abort ()" uses.
70226         * lib/fts.c (fts_assert): Define.
70227         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70228         Use this macro instead of a bare 'abort'.
70229
70230 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70231
70232         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70233         simply work around them.
70234         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70235         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70236         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70237         declaring.
70238         Don't bother to define as macros, since the standard doesn't require it.
70239         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70240         longer worry about IRIX 5.3.
70241         (HAVE_WCTYPE_CTMP_BUG): Remove.
70242
70243 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70244
70245         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70246         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70247         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70248         Problems reported by Georg Schwarz for IRIX 5.3.
70249
70250         * gnulib-tool (autoconf_minversion): Take the maximum version number
70251         found, not the minimum.  Problem reported by James Youngman.
70252
70253 2007-01-03  Karl Berry  <karl@gnu.org>
70254
70255         * doc/error.texi: new file, explaining interaction with progname.
70256         * doc/gnulib.texi: include it.  Update copyright.
70257
70258 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70259
70260         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70261         AC_CANONICAL_HOST, to improve autobuild outputs.
70262
70263 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70264             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70265
70266         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70267         sockets, server sockets, and other file descriptors.  Count errors
70268         to compute the return value.  Reorder the code a bit to be easier
70269         to follow.  Don't set event bits that were not requested (except
70270         POLLERR and POLLHUP).
70271
70272 2007-01-01  Bruno Haible  <bruno@clisp.org>
70273
70274         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70275
70276 2007-01-03  Jim Meyering  <jim@meyering.net>
70277
70278         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70279
70280 2007-01-02  Bruno Haible  <bruno@clisp.org>
70281
70282         * modules/settime (Include): Require timespec.h.
70283         * modules/nanosleep (Include): Likewise.
70284
70285 2007-01-01  Bruno Haible  <bruno@clisp.org>
70286
70287         * gnulib-tool (func_emit_copyright_notice): Bump year.
70288         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70289
70290 2007-01-01  Bruno Haible  <bruno@clisp.org>
70291
70292         Improve support for OpenBSD.
70293         * build-aux/config.rpath (libname_spec): Export.
70294         (library_names_spec): New variable. Export.
70295         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70296         library_names_spec from the config.rpath output. Locate shared library
70297         through the name pattern in library_names_spec.
70298
70299 2007-01-01  Eric Blake  <ebb9@byu.net>
70300
70301         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70302
70303 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70306         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70307         assume the C locale, and avoid an "eval" that could cause trouble.
70308         Problem with SORT reported by Bob Proulx.
70309
70310         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70311         Define.  Trivial patch from Henning Nielsen Lund, originally
70312         sent to bug-grep@gnu.org today.
70313
70314 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70315
70316         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70317         struct stat.  Problem reported by Henning Nielsen Lund.
70318         * lib/acl.c: Include acl.h first, to check interface.  Don't
70319         bother to include sys/types.h and sys/stat.h again.
70320
70321 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         Import the following change from libc; problem reported by
70324         Sven Verdoolaege.
70325
70326         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70327
70328         [BZ #1373]
70329         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70330
70331 2006-12-28  Jim Meyering  <jim@meyering.net>
70332
70333         * build-aux/announce-gen: Do not assume that the package
70334         builds any of tar.gz, tar.bz2, and .xdelta files.
70335         Suggestion from Simon Josefsson.
70336
70337 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70338
70339         * modules/announce-gen: New file.
70340
70341 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70342
70343         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70344         handles its gotchas now.
70345         * lib/mbswidth.c: Likewise.
70346         * lib/wcwidth.h: Likewise.
70347         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70348         and iswcntrl; the wctype module does this stuff now.
70349         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70350         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70351         * modules/mbchar (Depends-on): Add wctype.
70352         * modules/mbswidth (Depends-on): Likewise.
70353         * modules/wcwidth (Depends-on): Likewise.
70354
70355 2006-12-27  Eric Blake  <ebb9@byu.net>
70356
70357         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70358         module uses more than what <wctype.h> is required to provide.
70359
70360 2006-12-26  Eric Blake  <ebb9@byu.net>
70361
70362         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70363
70364 2006-12-26  Eric Blake  <ebb9@byu.net>
70365
70366         * modules/absolute-header: New module.
70367         * modules/fcntl (Depends-on): Depend on it.
70368         * modules/inttypes (Depends-on): Likewise.
70369         * modules/stdint (Depends-on): Likewise.
70370         * modules/sys_stat (Depends-on): Likewise.
70371         * modules/wctype (Depends-on): Likewise.
70372         * MODULES.html.sh (Support for building libraries and
70373         executables): Document it.
70374
70375 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70376
70377         * gnulib-tool (SED): Remove, undoing previous change.
70378         The problem was that it broke coreutils on Solaris, because
70379         "sed --posix" leaked into a makefile.
70380         (sed): New alias, if 'alias' and GNU sed.
70381
70382 2006-12-24  Jim Meyering  <jim@meyering.net>
70383
70384         Work around an fchownat bug in glibc-2.4:
70385         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70386         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70387         in spite of the -P option.
70388         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70389         New macros.
70390         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70391         * modules/openat (Files): Add lib/fchownat.c.
70392         * lib/openat.c (fchownat): Don't define here.  Move to...
70393         * lib/fchownat.c: ...this new file.
70394
70395 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70396
70397         Fix bug reported by Bruno Haible in
70398         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70399         where quotearg.c didn't compile on Mac OS X 10.2 because it
70400         lacks <wchar.h> and wint_t.
70401         * lib/wctype_.h (__wctype_wint_t): New type.
70402         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70403         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70404         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70405         Arg is now of type __wctype_wint_t, not wint_t.
70406         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70407         substitute HAVE_WINT_T.
70408         * modules/wctype (Files): Add m4/wint_t.m4.
70409         (wctype.h): Substitute HAVE_WINT_T.
70410
70411 2006-12-23  Bruno Haible  <bruno@clisp.org>
70412
70413         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70414
70415 2006-12-23  Bruno Haible  <bruno@clisp.org>
70416
70417         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70418         S_ISLNK.
70419         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70420         mingw.
70421
70422 2006-12-22  Bruno Haible  <bruno@clisp.org>
70423
70424         * lib/copy-file.c: Include acl.h.
70425         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70426         Close the file descriptors only after being done with copy_acl.
70427         * modules/copy-file (Depends-on): Add acl.
70428
70429 2006-12-22  Bruno Haible  <bruno@clisp.org>
70430
70431         * gnulib-tool (SED): New variable.
70432         Use $SED instead of sed everywhere.
70433
70434 2006-12-22  Bruno Haible  <bruno@clisp.org>
70435
70436         * modules/no-c++: New file.
70437         * m4/no-c++.m4: New file.
70438         * MODULES.html.sh (Support for building libraries and executables):
70439         Add no-c++.
70440
70441 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70442
70443         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70444         Include <limits.h>, and use its INT_MAX to rewrite the
70445         j loop so that it does not overflow 'int'.  Problem reported by
70446         Ralf Wildenhues in
70447         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70448         Play it safe by shifting left by 1 rather than multiplying by 2,
70449         as GCC is less likely to optimize this away when the value
70450         is signed (when it assumes overflow leads to undefined behavior).
70451         Also, don't assume time_t uses two's complement.
70452
70453 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70454
70455         * MODULES.html.sh: New module wctype.
70456         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70457         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70458         <wctype.h>, since the new wctype module should fix this.
70459         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70460         the wctype module should arrange for it.
70461         * lib/regex_internal.h: Likewise.
70462         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70463         since the wctype module should handle this now.
70464         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70465         * modules/fnmatch (Depends-on): Add wctype.
70466         * modules/quotearg (Depends-on): Likewise.
70467         * modules/regex (Depends-on): Likewise.
70468
70469 2006-12-19  Bruno Haible  <bruno@clisp.org>
70470
70471         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70472         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70473
70474 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70475
70476         * modules/savewd (Depends-on): Fix dependency on fcntl.
70477
70478 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70479
70480         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70481         conforms to C99, rather than relying on the user's environment
70482         setting of STDINT_H.
70483
70484 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70485         and Eric Blake  <ebb9@byu.net>
70486
70487         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70488         This is more consistent with the other defines here.
70489         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70490         Port to z/OS.  Problem reported by Paul Gilmartin.
70491         Change local vars to use gl_ prefix rather than ac_.
70492         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70493         with other defines.
70494         * modules/double-slash-root: New module.
70495         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70496         (Depends-on): Add double-slash-root.
70497         * MODULES.html.sh (File system functions): Mention new module.
70498
70499 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70500
70501         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70502         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70503         This is for the benefit of gzip, which doesn't do i18n.
70504
70505 2006-12-12  Jim Meyering  <jim@meyering.net>
70506
70507         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70508         Reported by Andreas Schwab <schwab@suse.de>.
70509
70510 2006-12-12  Bruno Haible  <bruno@clisp.org>
70511
70512         Merge these changes.
70513         2006-09-05  Bruno Haible  <bruno@clisp.org>
70514         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70515         iconv_alloc succeeded.
70516         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70517         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70518         test for " && dest " at the end - dest is always != NULL there. Call
70519         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70520         with 2xNULL arguments, also to flush the state storage. Handle the
70521         IRIX iconv behaviour. Realloc the final result, to throw away unused
70522         memory.
70523
70524 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70525
70526         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70527         and fchmodat unconditionally, since glibc 2.4 has them.
70528         Problem reported by Arkadiusz Miskiewicz.
70529
70530 2006-12-10  Bruno Haible  <bruno@clisp.org>
70531
70532         * gnulib-tool (func_import): Show the include files only for those
70533         modules that are copied and specified.
70534         Reported by Karl Berry.
70535
70536 2006-12-08  Jim Meyering  <jim@meyering.net>
70537
70538         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70539         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70540
70541         * build-aux/announce-gen: Add two new options, both optional:
70542         --bootstrap-tools=TOOL_LIST
70543               a comma-separated list of tools, e.g.,
70544               autoconf,automake,bison,gnulib
70545         --gnulib-snapshot-date=DATE
70546               if gnulib is in the bootstrap tool list,
70547               then report this as the snapshot date.
70548               If not specified, use the current date/time.
70549               If you specify a date here, be sure it's UTC.
70550
70551 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70552
70553         * tests/test-argp-2.sh: Fix test to match actual output.
70554         (func_compare): Fix sed script to be portable.
70555
70556 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70557
70558         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70559         workaround for this case.  It is not autoconfigured now; offhand
70560         it's hard to see how to autoconfigure it.
70561
70562 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70563
70564         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70565         a directory that is about to be chowned.  Such a directory's
70566         initial file permissions should permit the owner only and this
70567         should not be changed until after the chown, since the group and
70568         other bits would be incorrect if they granted permission before
70569         the chown.
70570
70571         Fix porting problem for iswctype reported by Georg Schwarz in:
70572         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70573         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70574         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70575         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70576         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70577
70578 2006-12-03  Jim Meyering  <jim@meyering.net>
70579
70580         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70581         p->fts_statp may not yet be defined.
70582         (fts_read): Instead, set it in the caller, once p->fts_statp is
70583         sure to be defined, and corresponds to a top-level directory.
70584         This bug made du -x fail.  Here's the coreutils test case:
70585         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70586         Reported by Mike Frysinger.
70587
70588 2006-12-01  Jim Meyering  <jim@meyering.net>
70589
70590         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70591         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70592         Reported by Simon Josefsson.
70593
70594 2006-11-30  Jim Meyering  <jim@meyering.net>
70595
70596         * m4/warning.m4: Use the all-permissive copyright notice
70597         recommended by RMS (rather than LGPL).
70598         * m4/vararrays.m4: Likewise.
70599         * m4/flexmember.m4: Likewise.
70600
70601 2006-11-29  Bruno Haible  <bruno@clisp.org>
70602
70603         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70604         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70605         using +=.
70606         Reported by Simon Josefsson <simon@josefsson.org>.
70607
70608 2006-11-28  James Youngman <jay@gnu.org>
70609
70610         * README: Advise users that they might find the bug-gnulib@gnu.org
70611         and autotools-announce@gnu.org mailing lists useful.
70612
70613 2006-11-28  Bruno Haible  <bruno@clisp.org>
70614
70615         * m4/ptrdiff_max.m4: Remove file.
70616
70617 2006-11-21  Bruno Haible  <bruno@clisp.org>
70618
70619         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70620         _AC_COMPUTE_INT.
70621         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70622         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70623         _AC_COMPUTE_INT.
70624         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70625         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70626         _AC_COMPUTE_INT.
70627         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70628
70629 2006-11-28  Jim Meyering  <jim@meyering.net>
70630
70631         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70632         warning from "gcc -Wshadow" about shadowing the builtin.
70633
70634 2006-11-27  Bruno Haible  <bruno@clisp.org>
70635
70636         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70637         _AC_COMPUTE_INT.
70638         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70639
70640 2006-11-27  Bruno Haible  <bruno@clisp.org>
70641             Paul Eggert  <eggert@cs.ucla.edu>
70642
70643         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70644
70645 2006-11-26  Bruno Haible  <bruno@clisp.org>
70646
70647         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70648         noinst_LTLIBRARIES.
70649
70650 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70651             Bruno Haible  <bruno@clisp.org>
70652
70653         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70654         if compiling with "gcc -ansi".
70655
70656 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70657
70658         Fix some incompatibilities with gcc -ansi -pedantic.
70659         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70660         if compiling pedantically with GCC, unless it's C99 or later.
70661         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70662         it mishandles gcc -ansi -pedantic as well.
70663         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70664         if gcc -pedantic.
70665         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70666         initializers for struct if -pedantic, unless it's C99 or later.
70667
70668 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70669
70670         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70671         Don't close an fd more than once. Identical atimes indicate
70672         success, not failure.
70673
70674 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70675
70676         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70677
70678 2006-11-23  Jim Meyering  <jim@meyering.net>
70679
70680         * build-aux/announce-gen: New file.  From coreutils.
70681
70682 2006-11-22  Jim Meyering  <jim@meyering.net>
70683
70684         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70685         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70686         (fts_read): Use a temporary to narrow the overused st_size member
70687         before using it in a switch statement.  Reported by Matthew Woehlke.
70688
70689         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70690         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70691
70692 2006-11-20  Bruno Haible  <bruno@clisp.org>
70693
70694         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70695         changequote instead of pairs of brackets.
70696         Reported by Andreas Schwab <schwab@suse.de>.
70697
70698 2006-11-21  Jim Meyering  <jim@meyering.net>
70699
70700         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70701         so as to remain compatible with older compilers.
70702         Patch from Michael Deutschmann.
70703
70704 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         * MODULES.html.sh (File system functions): Add openat.
70707
70708         * lib/openat.h (rpl_fstatat): New macro, if
70709         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70710         (fstatat): Define to rpl_fstatat under the same conditions,
70711         unless COMPILING_FSTATAT.
70712         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70713         seems to have the bug.
70714         * lib/fstatat.c: New file.
70715         * modules/openat (Files): Add it.
70716
70717 2006-11-20  Bruno Haible  <bruno@clisp.org>
70718
70719         * Makefile: New file.
70720
70721 2006-11-20  Jim Meyering  <jim@meyering.net>
70722
70723         The beginnings of syntax-related checks for gnulib.
70724         * lib/Makefile: New file.
70725         * lib/t-idcache: New script.  Ensure that the two halves of
70726         idcache.c stay in sync.
70727
70728         * lib/idcache.c: Adjust comments in user- and group- portions to
70729         be more accurate, and to be consistent with one another.
70730
70731 2006-11-20  Jim Meyering  <jim@meyering.net>
70732
70733         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70734         continue using the flexible array member (thus, this module performs
70735         half as many malloc calls), with the addition that...
70736         (getgroup, getuser): Consistently record a non-match via an empty
70737         "name" string, and map an empty string match to a NULL return value.
70738         * modules/idcache (Depends-on): Re-add flexmember.
70739
70740         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70741         (getuidbyname, getgroup, getgidbyname): Likewise.
70742
70743         Use cleaner syntax: NULL rather than 0.
70744         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70745
70746 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70747
70748         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70749         It mishandled the case where the group was missing.
70750         Problem reported by Greg Schafer.
70751         * modules/idcache: Likewise.
70752
70753 2006-11-18  Jim Meyering  <jim@meyering.net>
70754
70755         * check-module (%exempt_header): Add exception for some
70756         conditionally-included headers.
70757
70758         * modules/i-ring (Depends-on): Add verify.
70759         (License): Change to LGPL.
70760
70761 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70762
70763         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70764         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70765         and inttostr.h.  Use snprintf rather than uinttostr, so that
70766         LGPLed code doesn't depend on GPLed.
70767
70768 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70769
70770         * modules/inline (License): Change from GPL to LGPL.
70771
70772 2006-11-17  Jim Meyering  <jim@meyering.net>
70773
70774         * modules/d-type (License): Switch to LGPL.
70775
70776 2006-11-15  Bruno Haible  <bruno@clisp.org>
70777
70778         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70779
70780 2006-11-15  Eric Blake  <ebb9@byu.net>
70781
70782         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70783         the module dependency.
70784
70785 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70786             Bruno Haible  <bruno@clisp.org>
70787
70788         * gnulib-tool (func_create_testdir): Add license consistency check.
70789
70790 2006-11-15  Eric Blake  <ebb9@byu.net>
70791
70792         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70793         random "(cached)" in configure output.
70794
70795 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70796
70797         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70798         test for conforming inttypes.h is both announced and cached.
70799
70800         * MODULES.html.sh (seen_modules, seen_files): New variables.
70801         (func_module): Rewrite to use a few less gnulib-tool and sed
70802         invocations.  Avoid a couple of quadratic algorithms for ...
70803         (missed_modules, missed_files): ... these, with ...
70804         (func_append, func_tmpdir): ... these new functions, from
70805         gnulib-tool.  Analogously, install traps for cleanup.
70806
70807         * tests/test-gc.c (main): Remove unused variables.
70808         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70809
70810 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70811
70812         * modules/inttostr (License): Change to LGPL.
70813
70814 2006-11-14  Eric Blake  <ebb9@byu.net>
70815
70816         * modules/tempname (License): Change to LGPL.
70817
70818 2006-11-14  Eric Blake  <ebb9@byu.net>
70819
70820         * doc/functions.texi (Function Portability): *printf functions on
70821         Cygwin now understand all POSIX size specifiers.
70822
70823 2006-11-14  Bruno Haible  <bruno@clisp.org>
70824
70825         * modules/c-ctype (License): Change to LGPL.
70826
70827 2006-11-12  Bruno Haible  <bruno@clisp.org>
70828
70829         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
70830         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
70831         for GNOME libraries, for which the include files are installed in
70832         subdirectories of $prefix/include.
70833
70834 2006-11-12  Bruno Haible  <bruno@clisp.org>
70835
70836         * m4/lib-link.m4: Require at least autoconf-2.54.
70837         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
70838         name to underscores for the --with option.
70839
70840 2006-11-13  Bruno Haible  <bruno@clisp.org>
70841
70842         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
70843         the tests directory.
70844         Reported by Ralf Wildenhues.
70845
70846 2006-11-13  Bruno Haible  <bruno@clisp.org>
70847
70848         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
70849         (func_emit_initmacro_end): Undo the override here.
70850         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
70851         Works around the famous automake error in coreutils.
70852
70853 2006-11-13  Eric Blake  <ebb9@byu.net>
70854
70855         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
70856         element, not its node.
70857
70858 2006-11-12  Bruno Haible  <bruno@clisp.org>
70859
70860         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
70861         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
70862
70863 2006-11-12  Bruno Haible  <bruno@clisp.org>
70864
70865         * gnulib-tool: New option --local-symlink.
70866         (func_usage): Document it.
70867         (lsymbolic): New variable.
70868         (func_import, func_create_testdir): If --symlink was not specified,
70869         test whether --local-symlink was specified and the file comes from
70870         the local_gnulib_dir.
70871
70872 2006-11-12  Bruno Haible  <bruno@clisp.org>
70873
70874         * gnulib-tool (func_ln): New function.
70875         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
70876
70877 2006-11-12  Bruno Haible  <bruno@clisp.org>
70878
70879         Finish support for source files in subdirectories.
70880         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
70881         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
70882         AUTOMAKE_OPTIONS.
70883         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
70884
70885 2006-11-12  Bruno Haible  <bruno@clisp.org>
70886
70887         * gnulib-tool (func_get_automake_snippet): Synthesize also an
70888         EXTRA_lib_SOURCES augmentation.
70889         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
70890
70891 2006-11-12  Jim Meyering  <jim@meyering.net>
70892
70893         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
70894         file descriptors.  This also averts a failure on systems with
70895         native openat support when a traversed directory lacks "x" access.
70896         * lib/fts_.h: Include "i-ring.h"
70897         (struct FTS) [fts_fd_ring]: New member.
70898         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
70899         (FCHDIR): Add parentheses.
70900         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
70901         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
70902         When descending, rather than simply closing the previous
70903         fts_cwd_fd value, push that file descriptor onto the ring.
70904         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
70905         (fts_open): Initialize the new fd_ring member.
70906         (fts_close): Clear the ring.
70907         (fts_safe_changedir): When possible, use our new fd_ring to skip
70908         the diropen and fstat and dev/ino comparison that would normally
70909         accompany a virtual `chdir ("..")'.
70910
70911         * modules/fts (Depends-on): Add i-ring.
70912         * modules/i-ring: New module.
70913         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
70914         * m4/i-ring.m4: New file.
70915
70916 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70917
70918         * gnulib-tool (func_create_testdir): Fix replacement of
70919         `build-aux' in configure.ac.  Run autotools in gltests
70920         subdirectory.
70921         (func_create_testdir, func_create_megatestdir, test): There is
70922         no need for '--force' in most autotool invocations in a new
70923         tree.  Actually fail the whole test if any of the tools, or the
70924         configure or make stages fail.
70925
70926         Sync from Automake.
70927         * build-aux/gnupload: Revert last change.  Add pointer to upload
70928         instructions of the GNU Maintenance Instructions.
70929         Suggestion by Karl Berry.
70930
70931 2006-11-10  Jim Meyering  <jim@meyering.net>
70932
70933         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
70934
70935 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70936
70937         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
70938         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
70939         (bind_textdomain_codeset) [! ENABLE_NLS]:
70940         Evaluate all the arguments.  That way, callers get compatible behavior
70941         if the arguments have side effects.  Also, it avoids some GCC
70942         diagnostics in some cases; Joel E. Denny reported problems when Bison
70943         was configured with --enable-gcc-warnigs.
70944
70945 2006-11-10  Jim Meyering  <jim@meyering.net>
70946
70947         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
70948         relevant options in CFLAGS (like -O, -fno-inline) are taken into
70949         account.
70950
70951 2006-11-10  Jim Meyering  <jim@meyering.net>
70952
70953         * modules/inline: New file/module.
70954         * modules/xalloc (Files): Remove m4/inline.m4.
70955         (Depends-on): Add inline, instead.
70956         * modules/oset: Likewise.
70957         * modules/list: Likewise.
70958
70959 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70960
70961         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
70962         Problem reported by Matthew Woehlke.
70963
70964 2006-11-09  Bruno Haible  <bruno@clisp.org>
70965
70966         * lib/tempname.c (gen_tempname): Remove variant that invokes
70967         __gen_tempname.
70968         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
70969         __gen_tempname.
70970
70971 2006-11-08  Bruno Haible  <bruno@clisp.org>
70972
70973         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
70974         to 'yes' instead of 'cross-compiling'.
70975
70976 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         * lib/quotearg.h (quotearg_free): New decl.
70979         * lib/quotearg.c (quotearg_free): New function.
70980         (slot0, nslots, slotvec0, slotvec):
70981         Now file-scope so that quotearg_free can get at them.
70982
70983 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70984
70985         Sync from Automake.
70986         * build-aux/gnupload: Add missing 'gnu' to example URL.
70987         Report by Karl Berry.
70988
70989 2006-11-08  Bruno Haible  <bruno@clisp.org>
70990
70991         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
70992         Suggested by Paul Eggert.
70993
70994 2006-11-08  Jim Meyering  <jim@meyering.net>
70995
70996         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
70997         It's already included if !_LIBC.
70998         (fts_safe_changedir): Add a comment.
70999
71000 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71001
71002         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71003         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71004         Matthew Woehlke.
71005
71006         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71007         definitions up, to avoid colliding with change below.
71008         (static_inline) [HAVE_INLINE]: New macro.
71009         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71010         Provide extern decls when !HAVE_INLINE.  Do not define unless
71011         static_inline is defined, either by us or by xmalloc.c.  Use
71012         static_inline rather than static inline.
71013         (XCALLOC): Optimize sizeof(T) = 1 case.
71014         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71015
71016 2006-11-07  Bruno Haible  <bruno@clisp.org>
71017
71018         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71019         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71020         AC_C_INLINE.
71021         * modules/xalloc (Files): Add m4/inline.m4.
71022
71023 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71024
71025         * README: Fix typo.
71026         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71027         (Miscellanous Notes): ...from this.
71028
71029 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71030
71031         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71032         Mention that offsetof should be used instead of sizeof.
71033         From Bruno Haible.
71034
71035 2006-11-07  Bruno Haible  <bruno@clisp.org>
71036
71037         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71038
71039 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71040
71041         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71042         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71043         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71044         (gl_tree_add_before, gl_tree_add_after):
71045         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71046         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71047         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71048         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71049         (gl_linked_add_after, gl_linked_add_at): Likewise.
71050         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71051         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71052         (gl_tree_add_before, gl_tree_add_after): Likewise.
71053         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71054         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71055         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71056
71057 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71058
71059         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71060
71061 2006-11-06  Bruno Haible  <bruno@clisp.org>
71062
71063         * m4/inline.m4: New file.
71064         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71065         * modules/list (Files): Add m4/inline.m4.
71066         * modules/oset (Files): Likewise.
71067
71068 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71069
71070         * lib/idcache.c: Include <stddef.h>, for offsetof.
71071         (struct userid.name): Change from char * to a flexible array member.
71072         All uses changed.
71073         * modules/idcache (Depends-on): Add flexmember.
71074
71075         * MODULES.html.sh (Core language properties): New module flexmember.
71076         * modules/flexmember, m4/flexmember.m4: New files.
71077
71078         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71079         inline functions that are identical with the old xnmalloc_inline,
71080         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71081         that we can avoid some unnecessary integer multiplications and
71082         divisions in the common case where the element size is known at
71083         compile time.
71084         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71085         needed.
71086         (xnboundedmalloc): Remove.
71087         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71088         arguments, for consistency with rest of this header.
71089         (xcharalloc): Rewrite using XNMALLOC.
71090         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71091         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71092         versions have been moved to lib/xalloc.h and renamed to be the
71093         non-*_inline versions.
71094         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71095         and xnrealloc functions, since those functions are now inline and
71096         now call us.
71097         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71098         renaming described above.
71099         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71100         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71101         captures the dependency in AC_C_INLINE.
71102
71103         New module canonicalize-lgpl, proposed by Charles Wilson in
71104         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71105         with a few small changes afterwards.
71106         * MODULES.html.sh (File system functions): New module
71107         canonicalize-lgpl.
71108         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71109         and canonicalize_file_name.
71110         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71111         * modules/canonicalize-lgpl: New files.
71112
71113 2006-11-05  Bruno Haible  <bruno@clisp.org>
71114
71115         * gnulib-tool (func_import, func_create_testdir): Create directories
71116         also for files in subdirectories of lib/.
71117
71118 2006-11-05  Bruno Haible  <bruno@clisp.org>
71119
71120         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71121         ANSI C compliant.
71122
71123 2006-11-03  Bruno Haible  <bruno@clisp.org>
71124
71125         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71126         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71127         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71128         (xnboundedmalloc): New inline function.
71129         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71130         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71131         xmalloc.
71132         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71133         xmalloc.
71134         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71135         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71136         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71137         xmalloc.
71138         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71139         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71140         xmalloc.
71141         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71142         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71143         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71144         xmalloc.
71145         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71146         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71147         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71148         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71149         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71150         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71151         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71152
71153 2006-11-03  Bruno Haible  <bruno@clisp.org>
71154
71155         * lib/c-ctype.h [C++]: Define functions without name mangling.
71156         * lib/fwriteerror.h [C++]: Likewise.
71157         * lib/gcd.h [C++]: Likewise.
71158         * lib/linebreak.h [C++]: Likewise.
71159
71160 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71161
71162         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71163         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71164         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71165         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71166         Check for functions and headers just once.
71167         Check for declaration of canonicalize_file_name.
71168         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71169
71170 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71171
71172         * gnulib-tool (func_import): Fix typo in actioncmd.
71173
71174 2006-11-02  Bruno Haible  <bruno@clisp.org>
71175
71176         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71177         newline sequence in the Makefile.am snippet as a space, like "make"
71178         does.
71179         Reported by Roger Persson <perrog@gmail.com>.
71180
71181 2006-11-01  Bruno Haible  <bruno@clisp.org>
71182
71183         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71184         already declared in <string.h>.
71185         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71186
71187 2006-11-01  Bruno Haible  <bruno@clisp.org>
71188
71189         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71190         * lib/strcase.h: Include <string.h>.
71191         (strcasecmp): Define to rpl_strcasecmp here.
71192
71193 2006-11-01  Bruno Haible  <bruno@clisp.org>
71194
71195         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71196
71197 2006-11-01  Eric Blake  <ebb9@byu.net>
71198
71199         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71200
71201         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71202
71203 2006-10-29  Bruno Haible  <bruno@clisp.org>
71204
71205         Make it compile in C++ mode.
71206         * lib/full-write.c (full_rw): Add a cast.
71207
71208 2006-11-01  Bruno Haible  <bruno@clisp.org>
71209
71210         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71211         be POSIX compliant.
71212         Reported by Roger Persson <perrog@gmail.com>.
71213
71214 2006-11-01  Eric Blake  <ebb9@byu.net>
71215
71216         * lib/getopt_.h: Fix comments.
71217
71218 2006-10-31  Eric Blake  <ebb9@byu.net>
71219
71220         * modules/tmpdir (Depends-on): Add sys_stat.
71221         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71222         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71223         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71224         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71225         tempname.
71226
71227 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71228
71229         Avoid some C++ diagnostics reported by Bruno Haible.
71230         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71231         xmalloc.
71232         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71233         (struct slotvec): Move to top level.
71234         (quotearg_n_options): Rewrite to avoid xmalloc.
71235         * lib/xalloc.h (xcharalloc): New function.
71236         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71237         [defined __cplusplus]: Add function template that provides result
71238         type propagation.  This part of the change is from Bruno Haible.
71239
71240 2006-10-29  Bruno Haible  <bruno@clisp.org>
71241
71242         Make it compile in C++ mode.
71243         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71244         * lib/strnlen1.c (strnlen1): Cast memchr result.
71245         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71246         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71247         (create_temp_dir): Rename local variable 'template'.
71248         (compile_csharp_using_sscli): Add cast.
71249         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71250         * lib/findprog.c (find_in_path): Likewise.
71251         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71252         * lib/wait-process.c (register_slave_subprocess): Likewise.
71253
71254 2006-10-22  Bruno Haible  <bruno@clisp.org>
71255
71256         * modules/tsearch: New file.
71257         * lib/tsearch.h: New file.
71258         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71259         * m4/tsearch.m4: New file.
71260         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71261
71262 2006-10-29  Eric Blake  <ebb9@byu.net>
71263
71264         * lib/arcfour.c: Assume config.h.
71265         * lib/arctwo.c: Likewise.
71266         * lib/base64.c: Likewise.
71267         * lib/check-version.c: Likewise.
71268         * lib/crc.c: Likewise.
71269         * lib/des.c: Likewise.
71270         * lib/gc-gnulib.c: Likewise.
71271         * lib/gc-libgcrypt.c: Likewise.
71272         * lib/gc-pbkdf2-sha1.c: Likewise.
71273         * lib/getaddrinfo.c: Likewise.
71274         * lib/getdelim.c: Likewise.
71275         * lib/getline.c: Likewise.
71276         * lib/hmac-md5.c: Likewise.
71277         * lib/hmac-sha1.c: Likewise.
71278         * lib/iconvme.c: Likewise.
71279         * lib/md2.c: Likewise.
71280         * lib/md4.c: Likewise.
71281         * lib/memxor.c: Likewise.
71282         * lib/read-file.c: Likewise.
71283         * lib/readline.c: Likewise.
71284         * lib/rijndael-alg-fst.c: Likewise.
71285         * lib/rijndael-api-fst.c: Likewise.
71286         * lib/xgetdomainname.c: Likewise.
71287
71288 2006-10-28  Eric Blake  <ebb9@byu.net>
71289
71290         * lib/xstrndup.c: Assume config.h.
71291
71292 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71295         stat-macros.h is now for our own macros, whereas stat_h is for
71296         macros in the <sys/stat.h> name space.
71297         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71298         (STAT_MACROS_H): Remove.
71299         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71300         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71301         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71302         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71303         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71304         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71305         Move these macros to ...
71306         * lib/stat_.h: here.  Don't include stat-macros.h.
71307         * lib/canonicalize.c: Don't include stat-macros.h.
71308         * lib/chown.c: Likewise.
71309         * lib/euidaccess.c: Likewise.
71310         * lib/file-type.c: Likewise.
71311         * lib/filemode.c: Likewise.
71312         * lib/glob.c: Likewise.
71313         * lib/isapipe.c: Likewise.
71314         * lib/lchown.c: Likewise.
71315         * lib/lstat.c: Likewise.
71316         * lib/mkdir-p.c: Likewise.
71317         * lib/rmdir.c: Likewise.
71318         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71319         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71320         unless mkdir isn't declared, to speed up 'configure'.
71321         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71322         would define all the S_* symbols.
71323         * modules/canonicalize (Depends-on):
71324         Depend on sys_stat, not stat-macros.
71325         * modules/chown: Likewise.
71326         * modules/euidaccess: Likewise.
71327         * modules/filemode: Likewise.
71328         * modules/file-type: Likewise.
71329         * modules/glob: Likewise.
71330         * modules/isapipe: Likewise.
71331         * modules/lchown: Likewise.
71332         * modules/lstat: Likewise.
71333         * modules/mkancesdirs: Likewise.
71334         * modules/rmdir: Likewise.
71335         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71336         * modules/modechange: Likewise.
71337         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71338         (configure.ac): Remove gl_STAT_MACROS.
71339         * modules/sys_stat (Depends-on): Remove stat-macros.
71340
71341 2006-10-27  Bruno Haible  <bruno@clisp.org>
71342
71343         * m4/signed.m4: Remove file.
71344         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71345         invocation.
71346         * modules/vasnprintf (Files): Remove m4/signed.m4.
71347
71348 2006-10-27  Bruno Haible  <bruno@clisp.org>
71349
71350         Update to GNU gettext 0.16.
71351         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71352         m4/inttypes-h.m4, m4/signed.m4.
71353         * m4/gettext.m4: Update to GNU gettext 0.16.
71354         * m4/intl.m4: New file, from GNU gettext.
71355         * m4/intldir.m4: New file, from GNU gettext.
71356         * config/srclist.txt: Update
71357
71358 2006-10-27  Eric Blake  <ebb9@byu.net>
71359
71360         * MODULES.html.sh: Document tempname.
71361         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71362         dependencies.
71363         (Files): Move lib/tempname.c...
71364         * modules/tempname: ...to this new module.
71365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71366         (gl_PREREQ_TEMPNAME): Move...
71367         * m4/tempname.m4: ...to this new file.
71368         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71369         * modules/sys_stat (Depends-on): Add stat-macros.
71370         * lib/stat_.h (includes): Pick up stat macros.
71371         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71372         if stat macros are broken.
71373         * lib/tempname.c (includes): No need to include "stat-macros.h".
71374         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71375         (direxists, __path_search) [!_LIBC]: Don't compile these in
71376         gnulib; the tmpdir module covers that.
71377         * lib/tempname.h: New file.
71378
71379 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71380
71381         * COPYING: Explain how gnulib-tool converts licence headers.
71382         Almost all wording by Eric Blake.
71383
71384 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71385
71386         * lib/mbchar.h (is_basic_table): Make read-only.
71387         * lib/mbchar.c (is_basic_table): Likewise.
71388         Reported by John Darrington.
71389
71390 2006-10-25  Bruno Haible  <bruno@clisp.org>
71391
71392         * lib/progname.h (set_program_name): Undefine before defining.
71393
71394 2006-10-25  Bruno Haible  <bruno@clisp.org>
71395
71396         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71397         false for non-gcc C++ compilers.
71398         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71399
71400 2006-10-24  Bruno Haible  <bruno@clisp.org>
71401
71402         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71403         iconv implementations like Irix iconv.
71404
71405 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71406
71407         * modules/vararrays: New file.
71408         * m4/vararrays.m4: New file, taken from diffutils.
71409         * MODULES.html.sh: New module vararrays.
71410
71411 2006-10-24  Karl Berry  <karl@gnu.org>
71412
71413         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71414         Don't call GNU Unix.
71415
71416 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71417
71418         * users.txt: Add Libtool.
71419
71420         Sync from Libtool:
71421
71422         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71423
71424         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71425         to gnulib's policy of including config.h unconditionally.
71426
71427 2006-10-24  Bruno Haible  <bruno@clisp.org>
71428
71429         * modules/wcwidth (Files): Add m4/wint_t.m4.
71430         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71431         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71432
71433 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71434
71435         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71436         to pacify GCC with some -W flags enabled.  Problem reported by
71437         Bruno Haible.
71438
71439 2006-10-24  Jim Meyering  <jim@meyering.net>
71440
71441         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71442         Reported by Karl Berry.
71443
71444 2006-10-23  Bruno Haible  <bruno@clisp.org>
71445
71446         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71447
71448 2006-10-24  Bruno Haible  <bruno@clisp.org>
71449
71450         * lib/gl_list.h: Use C comment style, not C++ comment style.
71451
71452 2006-10-23  Eric Blake  <ebb9@byu.net>
71453
71454         * lib/getaddrinfo.c (includes): Add missing include.
71455
71456 2006-10-23  Bruno Haible  <bruno@clisp.org>
71457             Paul Eggert  <eggert@cs.ucla.edu>
71458
71459         Ability to rename obstack_free.
71460         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71461         obstack_free.
71462         (obstack_free): Invoke the __obstack_free macro.
71463         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71464
71465 2006-10-23  Bruno Haible  <bruno@clisp.org>
71466             Paul Eggert  <eggert@cs.ucla.edu>
71467
71468         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71469         __argc, __argv from the declaration. (They are defined as macros on
71470         mingw.)
71471
71472 2006-10-22  Bruno Haible  <bruno@clisp.org>
71473
71474         * doc/gnulib-intro.texi: New file.
71475         * doc/gnulib.texi: Include it.
71476
71477 2006-10-21  Bruno Haible  <bruno@clisp.org>
71478
71479         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71480         "Introduction", "Miscellanous Notes", "Particular Modules".
71481
71482 2006-10-21  Bruno Haible  <bruno@clisp.org>
71483
71484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71485         Change mostlyclean-local rule to avoid sh syntax error from bash
71486         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71487
71488 2006-10-23  Jim Meyering  <jim@meyering.net>
71489
71490         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71491         in place of snprintf.
71492
71493         * modules/inttostr (Files): Add lib/uinttostr.c.
71494         * lib/uinttostr.c (inttostr): New file/function.
71495         * lib/inttostr.h (uinttostr): Declare.
71496         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71497         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71498         Add uinttostr.
71499         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71500
71501 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71502
71503         * lib/canonicalize.c (ELOOP): Define if not already defined.
71504         Problem reported by Bruno Haible in
71505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71506
71507 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71508
71509         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71510         Problem reported by Perry Smith and Ville Laurikari.
71511
71512         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71513         uses.
71514
71515 2006-10-19  Bruno Haible  <bruno@clisp.org>
71516
71517         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71518         for mingw.
71519
71520 2006-10-19  Bruno Haible  <bruno@clisp.org>
71521
71522         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71523         Needed for mingw.
71524
71525 2006-10-19  Bruno Haible  <bruno@clisp.org>
71526
71527         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71528
71529 2006-10-19  Bruno Haible  <bruno@clisp.org>
71530
71531         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71532         it.
71533
71534 2006-10-19  Bruno Haible  <bruno@clisp.org>
71535
71536         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71537         invocation.
71538
71539 2006-10-19  Bruno Haible  <bruno@clisp.org>
71540
71541         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71542         mountlist by default.
71543
71544 2006-10-16  Bruno Haible  <bruno@clisp.org>
71545
71546         * lib/c-strstr.c: Include c-strstr.h.
71547
71548 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71549
71550         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71551         in a slash.
71552
71553 2006-10-18  Bruno Haible  <bruno@clisp.org>
71554
71555         * lib/lock.h [C++]: Wrap definitions in extern "C".
71556
71557 2006-10-18  Bruno Haible  <bruno@clisp.org>
71558
71559         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71560         gl_LIBOBJS list.
71561
71562 2006-10-18  Bruno Haible  <bruno@clisp.org>
71563
71564         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71565
71566 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71567
71568         * lib/xstrtol.h: Include gettext.h.
71569         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71570         Problem reported by Eric Blake.
71571         * modules/xstrtol (Depends-on): Add gettext-h.
71572
71573 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71574
71575         * lib/strftime.c (advance): New macro.
71576         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71577         incomplete type, so you can't add 0 to it.  Problem and patch
71578         reported by Eelco Dolstra for dietlibc.
71579
71580 2006-10-18  Jim Meyering  <jim@meyering.net>
71581
71582         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71583         type for a local, and rename it: s/up/user_proc/.
71584
71585 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71586
71587         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71588         READ_UTMP_USER_PROCESS.
71589         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71590
71591 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71592
71593         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71594         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71595
71596 2006-10-17  Eric Blake  <ebb9@byu.net>
71597
71598         * lib/sigprocmask.c (sigprocmask): Fix typo.
71599
71600         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71601
71602         * modules/clean-temp (Makefile.am): Don't add to make output...
71603         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71604         config.h.
71605
71606 2006-10-17  Bruno Haible  <bruno@clisp.org>
71607
71608         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71609         differently if DEFAULT_TEXT_DOMAIN is set.
71610
71611 2006-10-16  Bruno Haible  <bruno@clisp.org>
71612
71613         * lib/clean-temp.c: Include fwriteerror.h.
71614
71615 2006-10-16  Bruno Haible  <bruno@clisp.org>
71616
71617         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71618
71619 2006-10-16  Bruno Haible  <bruno@clisp.org>
71620
71621         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71622         * lib/sigprocmask.h: Include <sys/types.h>.
71623         (sigset_t): Use the system's definition if present.
71624
71625 2006-10-17  Eric Blake  <ebb9@byu.net>
71626
71627         * lib/xvasprintf.c (includes): Assume config.h.
71628         * lib/xasprintf.c (includes): Likewise.
71629
71630 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71631
71632         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71633         at least as wide as intmax_t.
71634
71635 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71636
71637         (Imported from Automake.)
71638         * build-aux/gnupload: Update to version 1.1 of directive file.
71639
71640 2006-10-16  Eric Blake  <ebb9@byu.net>
71641
71642         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71643         match Automake 1.10a.
71644
71645 2006-10-14  Bruno Haible  <bruno@clisp.org>
71646
71647         * modules/sigprocmask: New file.
71648         * lib/sigprocmask.h: New file.
71649         * lib/sigprocmask.c: New file.
71650         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71651         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71652         request sigprocmask.o.
71653         (gl_PREREQ_SIGPROCMASK): New macro.
71654         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71655         (Depends-on): Add sigprocmask.
71656         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71657         gt_SIGNALBLOCKING. Test for 'raise' only once.
71658         * lib/fatal-signal.c: Include sigprocmask.h.
71659         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71660         unblock_fatal_signals): Define always.
71661         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71662         sigprocmask.
71663
71664 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71665
71666         Sync from Automake.
71667         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71668         which incorrectly sets the mode of an existing destination
71669         directory.  In some cases the unpatched install-sh could do the
71670         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71671         system.  We hope this is rare in practice, but it's clearly worth
71672         fixing.  Problem reported by Alex Unleashed in
71673         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71674         Also, don't bother to check for -m bugs unless we're using -m;
71675         suggested by Stepan Kasal.
71676
71677 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71678
71679         Sync from Automake.
71680         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71681         `-c' flag, so they appear at the same position as in %FASTDEP%
71682         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71683         which ignores unknown options only after the first non-option.
71684         Bug report against M4 by Nelson H. F. Beebe.
71685
71686 2006-10-13  Jim Meyering  <jim@meyering.net>
71687
71688         Fix a bug in yesterday's change.
71689         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71690         p->fts_statp->st_dev would be used uninitialized.
71691         Ensures that we always call fts_stat on the very first entry.
71692         Miklos Szeredi reported that find -xdev stopped working.
71693
71694 2006-10-12  Bruno Haible  <bruno@clisp.org>
71695
71696         * gnulib-tool (func_get_automake_snippet): Append an automatically
71697         computed EXTRA_DIST augmentation.
71698         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71699         * modules/alloca-opt (Makefile.am): Likewise.
71700         * modules/allocsa (Makefile.am): Likewise.
71701         * modules/arcfour (Makefile.am): Likewise.
71702         * modules/arctwo (Makefile.am): Likewise.
71703         * modules/argmatch (Makefile.am): Likewise.
71704         * modules/argz (Makefile.am): Likewise.
71705         * modules/atexit (Makefile.am): Likewise.
71706         * modules/backupfile (Makefile.am): Likewise.
71707         * modules/byteswap (Makefile.am): Likewise.
71708         * modules/c-strtod (Makefile.am): Likewise.
71709         * modules/c-strtold (Makefile.am): Likewise.
71710         * modules/calloc (Makefile.am): Likewise.
71711         * modules/canon-host (Makefile.am): Likewise.
71712         * modules/canonicalize (Makefile.am): Likewise.
71713         * modules/chdir-long (Makefile.am): Likewise.
71714         * modules/chdir-safer (Makefile.am): Likewise.
71715         * modules/check-version (Makefile.am): Likewise.
71716         * modules/chown (Makefile.am): Likewise.
71717         * modules/cloexec (Makefile.am): Likewise.
71718         * modules/close-stream (Makefile.am): Likewise.
71719         * modules/closeout (Makefile.am): Likewise.
71720         * modules/crc (Makefile.am): Likewise.
71721         * modules/csharpexec (Makefile.am): Likewise.
71722         * modules/cycle-check (Makefile.am): Likewise.
71723         * modules/des (Makefile.am): Likewise.
71724         * modules/dev-ino (Makefile.am): Likewise.
71725         * modules/dirfd (Makefile.am): Likewise.
71726         * modules/dirname (Makefile.am): Likewise.
71727         * modules/dup2 (Makefile.am): Likewise.
71728         * modules/eealloc (Makefile.am): Likewise.
71729         * modules/error (Makefile.am): Likewise.
71730         * modules/euidaccess (Makefile.am): Likewise.
71731         * modules/exclude (Makefile.am): Likewise.
71732         * modules/exitfail (Makefile.am): Likewise.
71733         * modules/fcntl-safer (Makefile.am): Likewise.
71734         * modules/fcntl (Makefile.am): Likewise.
71735         * modules/file-type (Makefile.am): Likewise.
71736         * modules/fileblocks (Makefile.am): Likewise.
71737         * modules/filemode (Makefile.am): Likewise.
71738         * modules/filenamecat (Makefile.am): Likewise.
71739         * modules/fnmatch (Makefile.am): Likewise.
71740         * modules/fopen-safer (Makefile.am): Likewise.
71741         * modules/fpending (Makefile.am): Likewise.
71742         * modules/fprintftime (Makefile.am): Likewise.
71743         * modules/free (Makefile.am): Likewise.
71744         * modules/fsusage (Makefile.am): Likewise.
71745         * modules/ftruncate (Makefile.am): Likewise.
71746         * modules/fts (Makefile.am): Likewise.
71747         * modules/gc-arcfour (Makefile.am): Likewise.
71748         * modules/gc-des (Makefile.am): Likewise.
71749         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71750         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71751         * modules/gc-md4 (Makefile.am): Likewise.
71752         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71753         * modules/gc-sha1 (Makefile.am): Likewise.
71754         * modules/gc (Makefile.am): Likewise.
71755         * modules/getaddrinfo (Makefile.am): Likewise.
71756         * modules/getcwd (Makefile.am): Likewise.
71757         * modules/getdelim (Makefile.am): Likewise.
71758         * modules/getdomainname (Makefile.am): Likewise.
71759         * modules/getgroups (Makefile.am): Likewise.
71760         * modules/gethostname (Makefile.am): Likewise.
71761         * modules/gethrxtime (Makefile.am): Likewise.
71762         * modules/getline (Makefile.am): Likewise.
71763         * modules/getloadavg (Makefile.am): Likewise.
71764         * modules/getlogin_r (Makefile.am): Likewise.
71765         * modules/getndelim2 (Makefile.am): Likewise.
71766         * modules/getopt (Makefile.am): Likewise.
71767         * modules/getpagesize (Makefile.am): Likewise.
71768         * modules/getpass-gnu (Makefile.am): Likewise.
71769         * modules/getpass (Makefile.am): Likewise.
71770         * modules/getsubopt (Makefile.am): Likewise.
71771         * modules/gettime (Makefile.am): Likewise.
71772         * modules/gettimeofday (Makefile.am): Likewise.
71773         * modules/getugroups (Makefile.am): Likewise.
71774         * modules/getusershell (Makefile.am): Likewise.
71775         * modules/glob (Makefile.am): Likewise.
71776         * modules/group-member (Makefile.am): Likewise.
71777         * modules/hard-locale (Makefile.am): Likewise.
71778         * modules/hash (Makefile.am): Likewise.
71779         * modules/hmac-md5 (Makefile.am): Likewise.
71780         * modules/hmac-sha1 (Makefile.am): Likewise.
71781         * modules/human (Makefile.am): Likewise.
71782         * modules/idcache (Makefile.am): Likewise.
71783         * modules/imaxabs (Makefile.am): Likewise.
71784         * modules/imaxdiv (Makefile.am): Likewise.
71785         * modules/inet_ntop (Makefile.am): Likewise.
71786         * modules/inet_pton (Makefile.am): Likewise.
71787         * modules/intprops (Makefile.am): Likewise.
71788         * modules/inttostr (Makefile.am): Likewise.
71789         * modules/inttypes (Makefile.am): Likewise.
71790         * modules/isapipe (Makefile.am): Likewise.
71791         * modules/javaversion (Makefile.am): Likewise.
71792         * modules/lchmod (Makefile.am): Likewise.
71793         * modules/lchown (Makefile.am): Likewise.
71794         * modules/localcharset (Makefile.am): Likewise.
71795         * modules/long-options (Makefile.am): Likewise.
71796         * modules/lstat (Makefile.am): Likewise.
71797         * modules/malloc (Makefile.am): Likewise.
71798         * modules/mathl (Makefile.am): Likewise.
71799         * modules/mbchar (Makefile.am): Likewise.
71800         * modules/md2 (Makefile.am): Likewise.
71801         * modules/md4 (Makefile.am): Likewise.
71802         * modules/md5 (Makefile.am): Likewise.
71803         * modules/memcasecmp (Makefile.am): Likewise.
71804         * modules/memchr (Makefile.am): Likewise.
71805         * modules/memcmp (Makefile.am): Likewise.
71806         * modules/memcoll (Makefile.am): Likewise.
71807         * modules/memcpy (Makefile.am): Likewise.
71808         * modules/memmem (Makefile.am): Likewise.
71809         * modules/memmove (Makefile.am): Likewise.
71810         * modules/mempcpy (Makefile.am): Likewise.
71811         * modules/memrchr (Makefile.am): Likewise.
71812         * modules/memset (Makefile.am): Likewise.
71813         * modules/memxor (Makefile.am): Likewise.
71814         * modules/mkancesdirs (Makefile.am): Likewise.
71815         * modules/mkdir-p (Makefile.am): Likewise.
71816         * modules/mkdir (Makefile.am): Likewise.
71817         * modules/mkdtemp (Makefile.am): Likewise.
71818         * modules/mkstemp (Makefile.am): Likewise.
71819         * modules/mktime (Makefile.am): Likewise.
71820         * modules/modechange (Makefile.am): Likewise.
71821         * modules/mountlist (Makefile.am): Likewise.
71822         * modules/nanosleep (Makefile.am): Likewise.
71823         * modules/obstack (Makefile.am): Likewise.
71824         * modules/openat (Makefile.am): Likewise.
71825         * modules/pagealign_alloc (Makefile.am): Likewise.
71826         * modules/pathmax (Makefile.am): Likewise.
71827         * modules/physmem (Makefile.am): Likewise.
71828         * modules/poll (Makefile.am): Likewise.
71829         * modules/posixtm (Makefile.am): Likewise.
71830         * modules/posixver (Makefile.am): Likewise.
71831         * modules/putenv (Makefile.am): Likewise.
71832         * modules/quote (Makefile.am): Likewise.
71833         * modules/quotearg (Makefile.am): Likewise.
71834         * modules/raise (Makefile.am): Likewise.
71835         * modules/read-file (Makefile.am): Likewise.
71836         * modules/readline (Makefile.am): Likewise.
71837         * modules/readlink (Makefile.am): Likewise.
71838         * modules/readtokens (Makefile.am): Likewise.
71839         * modules/readutmp (Makefile.am): Likewise.
71840         * modules/realloc (Makefile.am): Likewise.
71841         * modules/regex (Makefile.am): Likewise.
71842         * modules/rename-dest-slash (Makefile.am): Likewise.
71843         * modules/rename (Makefile.am): Likewise.
71844         * modules/rijndael (Makefile.am): Likewise.
71845         * modules/rmdir (Makefile.am): Likewise.
71846         * modules/rpmatch (Makefile.am): Likewise.
71847         * modules/safe-read (Makefile.am): Likewise.
71848         * modules/safe-write (Makefile.am): Likewise.
71849         * modules/same-inode (Makefile.am): Likewise.
71850         * modules/same (Makefile.am): Likewise.
71851         * modules/save-cwd (Makefile.am): Likewise.
71852         * modules/savedir (Makefile.am): Likewise.
71853         * modules/setenv (Makefile.am): Likewise.
71854         * modules/settime (Makefile.am): Likewise.
71855         * modules/sha1 (Makefile.am): Likewise.
71856         * modules/sig2str (Makefile.am): Likewise.
71857         * modules/snprintf (Makefile.am): Likewise.
71858         * modules/stat-macros (Makefile.am): Likewise.
71859         * modules/stat-time (Makefile.am): Likewise.
71860         * modules/stdbool (Makefile.am): Likewise.
71861         * modules/stdint (Makefile.am): Likewise.
71862         * modules/stdlib-safer (Makefile.am): Likewise.
71863         * modules/stpcpy (Makefile.am): Likewise.
71864         * modules/stpncpy (Makefile.am): Likewise.
71865         * modules/strcase (Makefile.am): Likewise.
71866         * modules/strcasestr (Makefile.am): Likewise.
71867         * modules/strchrnul (Makefile.am): Likewise.
71868         * modules/strcspn (Makefile.am): Likewise.
71869         * modules/strdup (Makefile.am): Likewise.
71870         * modules/strerror (Makefile.am): Likewise.
71871         * modules/strftime (Makefile.am): Likewise.
71872         * modules/strndup (Makefile.am): Likewise.
71873         * modules/strnlen (Makefile.am): Likewise.
71874         * modules/strpbrk (Makefile.am): Likewise.
71875         * modules/strsep (Makefile.am): Likewise.
71876         * modules/strstr (Makefile.am): Likewise.
71877         * modules/strtod (Makefile.am): Likewise.
71878         * modules/strtoimax (Makefile.am): Likewise.
71879         * modules/strtok_r (Makefile.am): Likewise.
71880         * modules/strtol (Makefile.am): Likewise.
71881         * modules/strtoll (Makefile.am): Likewise.
71882         * modules/strtoul (Makefile.am): Likewise.
71883         * modules/strtoull (Makefile.am): Likewise.
71884         * modules/strtoumax (Makefile.am): Likewise.
71885         * modules/strverscmp (Makefile.am): Likewise.
71886         * modules/sys_socket (Makefile.am): Likewise.
71887         * modules/sys_stat (Makefile.am): Likewise.
71888         * modules/sysexits (Makefile.am): Likewise.
71889         * modules/time_r (Makefile.am): Likewise.
71890         * modules/timegm (Makefile.am): Likewise.
71891         * modules/timespec (Makefile.am): Likewise.
71892         * modules/tmpfile-safer (Makefile.am): Likewise.
71893         * modules/trim (Makefile.am): Likewise.
71894         * modules/unistd-safer (Makefile.am): Likewise.
71895         * modules/unlinkdir (Makefile.am): Likewise.
71896         * modules/unlocked-io (Makefile.am): Likewise.
71897         * modules/userspec (Makefile.am): Likewise.
71898         * modules/utime (Makefile.am): Likewise.
71899         * modules/utimecmp (Makefile.am): Likewise.
71900         * modules/utimens (Makefile.am): Likewise.
71901         * modules/vasnprintf (Makefile.am): Likewise.
71902         * modules/vasprintf (Makefile.am): Likewise.
71903         * modules/vsnprintf (Makefile.am): Likewise.
71904         * modules/xalloc (Makefile.am): Likewise.
71905         * modules/xgetcwd (Makefile.am): Likewise.
71906         * modules/xnanosleep (Makefile.am): Likewise.
71907         * modules/xreadlink (Makefile.am): Likewise.
71908         * modules/xstrtod (Makefile.am): Likewise.
71909         * modules/xstrtol (Makefile.am): Likewise.
71910         * modules/xstrtold (Makefile.am): Likewise.
71911         * modules/yesno (Makefile.am): Likewise.
71912         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
71913
71914 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71915
71916         * modules/error (Makefile.am): Distribute files through
71917         EXTRA_DIST, not lib_SOURCES.
71918
71919 2006-10-12  Eric Blake  <ebb9@byu.net>
71920
71921         * modules/error (Makefile.am): Distribute files in /lib.
71922         * modules/obstack (Makefile.am): Likewise.
71923
71924 2006-10-12  Bruno Haible  <bruno@clisp.org>
71925
71926         * modules/acl (Makefile.am): Distribute all files in lib/ through
71927         EXTRA_DIST.
71928         * modules/arcfour (Makefile.am): Likewise.
71929         * modules/arctwo (Makefile.am): Likewise.
71930         * modules/argmatch (Makefile.am): Likewise.
71931         * modules/argz (Makefile.am): Likewise.
71932         * modules/atexit (Makefile.am): Likewise.
71933         * modules/backupfile (Makefile.am): Likewise.
71934         * modules/c-strtod (Makefile.am): Likewise.
71935         * modules/c-strtold (Makefile.am): Likewise.
71936         * modules/calloc (Makefile.am): Likewise.
71937         * modules/canon-host (Makefile.am): Likewise.
71938         * modules/canonicalize (Makefile.am): Likewise.
71939         * modules/chdir-long (Makefile.am): Likewise.
71940         * modules/chdir-safer (Makefile.am): Likewise.
71941         * modules/check-version (Makefile.am): Likewise.
71942         * modules/chown (Makefile.am): Likewise.
71943         * modules/cloexec (Makefile.am): Likewise.
71944         * modules/close-stream (Makefile.am): Likewise.
71945         * modules/closeout (Makefile.am): Likewise.
71946         * modules/crc (Makefile.am): Likewise.
71947         * modules/cycle-check (Makefile.am): Likewise.
71948         * modules/des (Makefile.am): Likewise.
71949         * modules/dirfd (Makefile.am): Likewise.
71950         * modules/dirname (Makefile.am): Likewise.
71951         * modules/dup2 (Makefile.am): Likewise.
71952         * modules/euidaccess (Makefile.am): Likewise.
71953         * modules/exclude (Makefile.am): Likewise.
71954         * modules/exitfail (Makefile.am): Likewise.
71955         * modules/fcntl-safer (Makefile.am): Likewise.
71956         * modules/file-type (Makefile.am): Likewise.
71957         * modules/fileblocks (Makefile.am): Likewise.
71958         * modules/filemode (Makefile.am): Likewise.
71959         * modules/filenamecat (Makefile.am): Likewise.
71960         * modules/fnmatch (Makefile.am): Likewise.
71961         * modules/fopen-safer (Makefile.am): Likewise.
71962         * modules/fpending (Makefile.am): Likewise.
71963         * modules/fprintftime (Makefile.am): Likewise.
71964         * modules/free (Makefile.am): Likewise.
71965         * modules/fsusage (Makefile.am): Likewise.
71966         * modules/ftruncate (Makefile.am): Likewise.
71967         * modules/fts (Makefile.am): Likewise.
71968         * modules/gc (Makefile.am): Likewise.
71969         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71970         * modules/getaddrinfo (Makefile.am): Likewise.
71971         * modules/getcwd (Makefile.am): Likewise.
71972         * modules/getdelim (Makefile.am): Likewise.
71973         * modules/getdomainname (Makefile.am): Likewise.
71974         * modules/getgroups (Makefile.am): Likewise.
71975         * modules/gethostname (Makefile.am): Likewise.
71976         * modules/gethrxtime (Makefile.am): Likewise.
71977         * modules/getline (Makefile.am): Likewise.
71978         * modules/getloadavg (Makefile.am): Likewise.
71979         * modules/getlogin_r (Makefile.am): Likewise.
71980         * modules/getopt (Makefile.am): Likewise.
71981         * modules/getpass (Makefile.am): Likewise.
71982         * modules/getpass-gnu (Makefile.am): Likewise.
71983         * modules/getsubopt (Makefile.am): Likewise.
71984         * modules/gettime (Makefile.am): Likewise.
71985         * modules/gettimeofday (Makefile.am): Likewise.
71986         * modules/getugroups (Makefile.am): Likewise.
71987         * modules/getusershell (Makefile.am): Likewise.
71988         * modules/glob (Makefile.am): Likewise.
71989         * modules/group-member (Makefile.am): Likewise.
71990         * modules/hard-locale (Makefile.am): Likewise.
71991         * modules/hash (Makefile.am): Likewise.
71992         * modules/hmac-md5 (Makefile.am): Likewise.
71993         * modules/hmac-sha1 (Makefile.am): Likewise.
71994         * modules/human (Makefile.am): Likewise.
71995         * modules/idcache (Makefile.am): Likewise.
71996         * modules/imaxabs (Makefile.am): Likewise.
71997         * modules/imaxdiv (Makefile.am): Likewise.
71998         * modules/inet_ntop (Makefile.am): Likewise.
71999         * modules/inet_pton (Makefile.am): Likewise.
72000         * modules/inttostr (Makefile.am): Likewise.
72001         * modules/isapipe (Makefile.am): Likewise.
72002         * modules/lchown (Makefile.am): Likewise.
72003         * modules/long-options (Makefile.am): Likewise.
72004         * modules/lstat (Makefile.am): Likewise.
72005         * modules/malloc (Makefile.am): Likewise.
72006         * modules/mathl (Makefile.am): Likewise.
72007         * modules/mbchar (Makefile.am): Likewise.
72008         * modules/md2 (Makefile.am): Likewise.
72009         * modules/md4 (Makefile.am): Likewise.
72010         * modules/md5 (Makefile.am): Likewise.
72011         * modules/memcasecmp (Makefile.am): Likewise.
72012         * modules/memchr (Makefile.am): Likewise.
72013         * modules/memcmp (Makefile.am): Likewise.
72014         * modules/memcoll (Makefile.am): Likewise.
72015         * modules/memcpy (Makefile.am): Likewise.
72016         * modules/memmem (Makefile.am): Likewise.
72017         * modules/memmove (Makefile.am): Likewise.
72018         * modules/mempcpy (Makefile.am): Likewise.
72019         * modules/memrchr (Makefile.am): Likewise.
72020         * modules/memset (Makefile.am): Likewise.
72021         * modules/memxor (Makefile.am): Likewise.
72022         * modules/mkancesdirs (Makefile.am): Likewise.
72023         * modules/mkdir (Makefile.am): Likewise.
72024         * modules/mkdir-p (Makefile.am): Likewise.
72025         * modules/mkdtemp (Makefile.am): Likewise.
72026         * modules/mkstemp (Makefile.am): Likewise.
72027         * modules/mktime (Makefile.am): Likewise.
72028         * modules/modechange (Makefile.am): Likewise.
72029         * modules/mountlist (Makefile.am): Likewise.
72030         * modules/nanosleep (Makefile.am): Likewise.
72031         * modules/openat (Makefile.am): Likewise.
72032         * modules/pagealign_alloc (Makefile.am): Likewise.
72033         * modules/physmem (Makefile.am): Likewise.
72034         * modules/poll (Makefile.am): Likewise.
72035         * modules/posixtm (Makefile.am): Likewise.
72036         * modules/posixver (Makefile.am): Likewise.
72037         * modules/putenv (Makefile.am): Likewise.
72038         * modules/quote (Makefile.am): Likewise.
72039         * modules/quotearg (Makefile.am): Likewise.
72040         * modules/raise (Makefile.am): Likewise.
72041         * modules/read-file (Makefile.am): Likewise.
72042         * modules/readline (Makefile.am): Likewise.
72043         * modules/readlink (Makefile.am): Likewise.
72044         * modules/readtokens (Makefile.am): Likewise.
72045         * modules/readutmp (Makefile.am): Likewise.
72046         * modules/realloc (Makefile.am): Likewise.
72047         * modules/regex (Makefile.am): Likewise.
72048         * modules/rename (Makefile.am): Likewise.
72049         * modules/rename-dest-slash (Makefile.am): Likewise.
72050         * modules/rijndael (Makefile.am): Likewise.
72051         * modules/rmdir (Makefile.am): Likewise.
72052         * modules/rpmatch (Makefile.am): Likewise.
72053         * modules/safe-read (Makefile.am): Likewise.
72054         * modules/safe-write (Makefile.am): Likewise.
72055         * modules/same (Makefile.am): Likewise.
72056         * modules/save-cwd (Makefile.am): Likewise.
72057         * modules/savedir (Makefile.am): Likewise.
72058         * modules/setenv (Makefile.am): Likewise.
72059         * modules/settime (Makefile.am): Likewise.
72060         * modules/sha1 (Makefile.am): Likewise.
72061         * modules/sig2str (Makefile.am): Likewise.
72062         * modules/snprintf (Makefile.am): Likewise.
72063         * modules/stdlib-safer (Makefile.am): Likewise.
72064         * modules/stpcpy (Makefile.am): Likewise.
72065         * modules/stpncpy (Makefile.am): Likewise.
72066         * modules/strcase (Makefile.am): Likewise.
72067         * modules/strcasestr (Makefile.am): Likewise.
72068         * modules/strchrnul (Makefile.am): Likewise.
72069         * modules/strcspn (Makefile.am): Likewise.
72070         * modules/strdup (Makefile.am): Likewise.
72071         * modules/strerror (Makefile.am): Likewise.
72072         * modules/strftime (Makefile.am): Likewise.
72073         * modules/strndup (Makefile.am): Likewise.
72074         * modules/strnlen (Makefile.am): Likewise.
72075         * modules/strpbrk (Makefile.am): Likewise.
72076         * modules/strsep (Makefile.am): Likewise.
72077         * modules/strstr (Makefile.am): Likewise.
72078         * modules/strtod (Makefile.am): Likewise.
72079         * modules/strtoimax (Makefile.am): Likewise.
72080         * modules/strtok_r (Makefile.am): Likewise.
72081         * modules/strtol (Makefile.am): Likewise.
72082         * modules/strtoll (Makefile.am): Likewise.
72083         * modules/strtoul (Makefile.am): Likewise.
72084         * modules/strtoull (Makefile.am): Likewise.
72085         * modules/strtoumax (Makefile.am): Likewise.
72086         * modules/strverscmp (Makefile.am): Likewise.
72087         * modules/time_r (Makefile.am): Likewise.
72088         * modules/timegm (Makefile.am): Likewise.
72089         * modules/tmpfile-safer (Makefile.am): Likewise.
72090         * modules/unistd-safer (Makefile.am): Likewise.
72091         * modules/unlinkdir (Makefile.am): Likewise.
72092         * modules/userspec (Makefile.am): Likewise.
72093         * modules/utime (Makefile.am): Likewise.
72094         * modules/utimecmp (Makefile.am): Likewise.
72095         * modules/utimens (Makefile.am): Likewise.
72096         * modules/vasnprintf (Makefile.am): Likewise.
72097         * modules/vasprintf (Makefile.am): Likewise.
72098         * modules/vsnprintf (Makefile.am): Likewise.
72099         * modules/xalloc (Makefile.am): Likewise.
72100         * modules/xgetcwd (Makefile.am): Likewise.
72101         * modules/xnanosleep (Makefile.am): Likewise.
72102         * modules/xreadlink (Makefile.am): Likewise.
72103         * modules/xstrtod (Makefile.am): Likewise.
72104         * modules/xstrtol (Makefile.am): Likewise.
72105         * modules/xstrtold (Makefile.am): Likewise.
72106         * modules/yesno (Makefile.am): Likewise.
72107
72108 2006-10-12  Jim Meyering  <jim@meyering.net>
72109
72110         * m4/getloadavg.m4: Revert the change below.
72111
72112         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72113         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72114         fail with a symlink, which is what coreutils' ./bootstrap now
72115         creates by default.
72116
72117 2006-10-12  Bruno Haible  <bruno@clisp.org>
72118
72119         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72120         mingw.
72121         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72122         MSVC and mingw explicitly.
72123
72124 2006-10-11  Simon Josefsson  <jas@extundo.com>
72125             Bruno Haible  <bruno@clisp.org>
72126
72127         Add support for multiple gnulib-tool invocations in the scope of a
72128         single configure.ac file.
72129         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72130         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72131         with the same contents as the _LIBADD variable.
72132         (func_emit_initmacro_start, func_emit_initmacro_end,
72133         func_emit_initmacro_done): New functions.
72134         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72135         gl_LIBOBJS and gl_LTLIBOBJS.
72136
72137 2006-10-11  Bruno Haible  <bruno@clisp.org>
72138
72139         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72140         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72141         autoreconf. Instead, invoke autopoint explicitly but move back the
72142         *.m4 files from gnulib.
72143
72144 2006-10-11  Bruno Haible  <bruno@clisp.org>
72145
72146         * gnulib-tool (func_usage): Make module names after --create-testdir
72147         optional.
72148         (func_create_testdir): If no module was specified, use nearly all
72149         modules.
72150
72151 2006-10-12  Jim Meyering  <jim@meyering.net>
72152
72153         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72154         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72155         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72156         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72157         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72158         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72159         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72160         (fts_set_stat_required): New function.
72161         (fts_open): Defer the calls to fts_stat, if possible or requested.
72162         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72163         into fts_stat itself.
72164         (fts_read): Perform any required (deferred) fts_stat call.
72165         (fts_build): Likewise, for the directory we're about to open and read.
72166         In the readdir loop, carefully decide whether each entry will require
72167         an eventual call to fts_stat, using dirent.d_type info if available.
72168         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72169         a command line argument into this function.  Update all callers.
72170         Map a return value of FTS_DOT to FTS_D for a command line argument.
72171         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72172         Thanks to Miklos Szeredi for his tenacity and for the initial
72173         bug report about "find" failing on a FUSE-based file system.
72174
72175         * lib/fts.c (fts_open): Use consistent indentation.
72176
72177 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72178
72179         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72180         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72181         reported by Jim Meyering.  All uses of cache variables renamed
72182         to match Autoconf's.
72183         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72184         the other one.
72185
72186         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72187         Fix misspelling in diagnostic.
72188
72189 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72190
72191         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72192         defined.  Problem reported by Matthew Woehlke.
72193
72194         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72195         Add support for Tandem NonStop R series.
72196         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72197         Use new macro.
72198
72199         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72200         (has_trailing_slash): Omit size arg; all callers changed.
72201         Omit 'inline', since it doesn't help performance and we'd
72202         need to configure it.
72203         Don't count //, ///, etc. as having a trailing slash.
72204         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72205         (rpl_rename_dest_slash): On failure, use rename's errno rather
72206         than (in some cases) an incorrect or junk errno.
72207         Simplify code by removing need to compute length; this does
72208         cause it to make two passes instead of one over the file name,
72209         but it's worth it.
72210
72211         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72212         change, since Autoconf's version may no longer be appropriate now
72213         that we are using CVS Autoconf's version.  Add support for Tandem.
72214
72215 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72216             Bruno Haible  <bruno@clisp.org>
72217
72218         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72219         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72220         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72221         gl_AC_TYPE_LONG_LONG.
72222
72223         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72224         instead of HAVE_LONG_LONG.
72225         * lib/printf-args.c (printf_fetchargs): Likewise.
72226         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72227         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72228         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72229         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72230         gl_AC_TYPE_LONG_LONG.
72231
72232 2006-10-11  Bruno Haible  <bruno@clisp.org>
72233
72234         * m4/longlong.m4: Add comments.
72235         * m4/ulonglong.m4: Likewise.
72236
72237 2006-10-10  Bruno Haible  <bruno@clisp.org>
72238
72239         Make it possible to #define stpcpy, strdup to aliases.
72240         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72241         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72242
72243 2006-10-10  Bruno Haible  <bruno@clisp.org>
72244
72245         Make it possible to #define gcd to an alias.
72246         * lib/gcd.c: Include config.h.
72247
72248 2006-10-10  Bruno Haible  <bruno@clisp.org>
72249
72250         Make it possible to #define c_isascii to an alias.
72251         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72252         defined. Undefine the macros before defining them, to avoid gcc
72253         warnings.
72254         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72255         define NO_C_CTYPE_MACROS early.
72256
72257 2006-10-10  Bruno Haible  <bruno@clisp.org>
72258
72259         Make it possible to #define set_program_name to an alias.
72260         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72261         ENABLE_RELOCATABLE early.
72262
72263 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72264
72265         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72266         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72267         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72268         More generally, don't assume that 64-bit signed int is available
72269         if unsigned int is, and vice versa.
72270         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72271         unsigned symbols, not on their signed counterparts.
72272         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72273         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72274         (UINT64_C, UINTMAX_C):
72275         Likewise.
72276         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72277         unsigned counterparts.
72278         (Have_long_long, Unsigned): New macros.
72279         (Int): Renamed from INT.
72280         (strtoimax): Use the new macros.
72281         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72282         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72283         * modules/inttypes (inttypes.h): Substitute
72284         HAVE_UNSIGNED_LONG_LONG_INT.
72285         * modules/stdint (stdint.h): Likewise.
72286         (Files): Add m4/ulonglong.m4.
72287
72288 2006-10-10  Bruno Haible  <bruno@clisp.org>
72289
72290         Fix a gcc -Wshadow warning.
72291         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72292         to 'bucket'.
72293         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72294         gl_linked_indexof_from_to): Likewise.
72295         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72296         Likewise.
72297         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72298         Likewise.
72299         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72300         Reported by Eric Blake.
72301
72302 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72303
72304         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72305         for NetBSD.  Problem reported by Bruno Haible.
72306
72307 2006-10-09  Jim Meyering  <jim@meyering.net>
72308
72309         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72310         Patch from Bruno Haible.
72311
72312 2006-10-09  Jim Meyering  <jim@meyering.net>
72313
72314         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72315         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72316         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72317
72318 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72319
72320         Don't include <config.h> twice; this doesn't work in some cases,
72321         e.g., when config.h has "#define intmax_t long long int" and
72322         we include <config.h>, <inttypes.h>, <config.h> in that order.
72323         Problem reported by Matthew Woehlke in:
72324         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72325         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72326         * lib/fts-cycle.c: Don't include config.h.
72327         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72328         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72329         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72330         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72331         inttypes.h.
72332         * lib/xstrtoumax.c: Likewise.
72333         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72334         __strtol and the like, so that this module is more like its siblings.
72335         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72336         Remove; no longer needed now that we assume gnulib inttypes.h.
72337
72338 2006-10-08  Bruno Haible  <bruno@clisp.org>
72339
72340         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72341         option.
72342
72343 2006-10-07  Jim Meyering  <jim@meyering.net>
72344
72345         * modules/inttypes (inttypes.h): Revert what seems to have been
72346         an inadvertent part of today's change: use "|", not "/" in the
72347         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72348
72349 2006-10-07  Bruno Haible  <bruno@clisp.org>
72350
72351         * modules/sublist: New file.
72352
72353 2006-10-07  Bruno Haible  <bruno@clisp.org>
72354
72355         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72356         * modules/argz (argz.h): Likewise.
72357         * modules/arpa_inet (arpa/inet.h): Likewise.
72358         * modules/byteswap (byteswap.h): Likewise.
72359         * modules/configmake (configmake.h): Likewise.
72360         * modules/fcntl (fcntl.h): Likewise.
72361         * modules/fnmatch (fnmatch.h): Likewise.
72362         * modules/getopt (getopt.h): Likewise.
72363         * modules/glob (glob.h): Likewise.
72364         * modules/inttypes (inttypes.h): Likewise.
72365         * modules/netinet_in (netinet/in.h): Likewise.
72366         * modules/poll (poll.h): Likewise.
72367         * modules/stdbool (stdbool.h): Likewise.
72368         * modules/stdint (stdint.h): Likewise.
72369         * modules/sys_select (sys/select.h): Likewise.
72370         * modules/sys_socket (sys/socket.h): Likewise.
72371         * modules/sys_stat (sys/stat.h): Likewise.
72372         * modules/sysexits (sysexits.h): Likewise.
72373         * modules/unistd (unistd.h): Likewise.
72374         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72375         Add a "DO NOT EDIT" comment to the generated file.
72376         (func_import): Likewise for gnulib-comp.m4.
72377
72378 2006-10-07  Bruno Haible  <bruno@clisp.org>
72379
72380         * lib/gl_sublist.h: New file.
72381         * lib/gl_sublist.c: New file.
72382
72383 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72384
72385         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72386         name (relative to the original working directory) and the file
72387         name component (relative to the temporary working directory).  All
72388         callers changed.
72389         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72390         * lib/mkdir-p.c (make_dir_parents): Likewise.
72391         * lib/mkdir-p.h (make_dir_parents): Likewise.
72392
72393 2006-10-06  Eric Blake  <ebb9@byu.net>
72394
72395         Define several macros for use by the clean-temp module.
72396         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72397         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72398         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72399
72400         * lib/clean-temp.h (close_stream_temp): New declaration.
72401         * lib/clean-temp.c (includes): Pull in headers according to what
72402         other modules are in use.
72403         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72404
72405 2006-10-06  Bruno Haible  <bruno@clisp.org>
72406
72407         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72408         instead of fopen, fwriteerror.
72409
72410 2006-10-06  Bruno Haible  <bruno@clisp.org>
72411
72412         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72413         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72414         int.
72415         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72416         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72417         Return an error indicator.
72418         Suggested by Eric Blake.
72419
72420 2006-10-06  Bruno Haible  <bruno@clisp.org>
72421
72422         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72423         Reported by Eric Blake.
72424
72425 2006-10-06  Bruno Haible  <bruno@clisp.org>
72426
72427         * modules/closeout (Description): Mention stderr too.
72428
72429 2006-10-06  Bruno Haible  <bruno@clisp.org>
72430         and Paul Eggert  <eggert@cs.ucla.edu>
72431
72432         * lib/closeout.c (close_stdout): Also close stderr.
72433         * lib/closeout.h: Update comment.
72434
72435 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72436
72437         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72438         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72439         * lib/dirchownmod.c: Include lchown.h.
72440         * lib/lchown.c: Don't include files that lchown.h now includes.
72441         Don't declare chown, since lchown.h now does that.
72442         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72443         (lchown): Define to rpl_chown if lchown is declared but
72444         does not exist.  Declare using a prototype if lchown is not
72445         declared.  Add a copyright notice.
72446         * lib/mkstemp.h: Include <unistd.h>.
72447         * lib/openat.c: Include lchown.h.
72448
72449         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72450         we now test for that separately.
72451         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72452         rather than O_NOFOLLOW, when testing whether it's possible to
72453         avoid a race condition reliably.
72454         * lib/savewd.c (savewd_chdir): Likewise.
72455
72456         Remove macros that are no longer needed now that stdint.h is
72457         reliable.
72458         * lib/fsusage.c (UINTMAX_MAX): Remove.
72459         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72460         * lib/utimecmp.c (SIZE_MAX): Remove.
72461
72462         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72463
72464         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72465         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72466         O_NOATIME works.
72467
72468 2006-10-05  Bruno Haible  <bruno@clisp.org>
72469
72470         * lib/gl_list.h (gl_sortedlist_search_from_to,
72471         gl_sortedlist_indexof_from_to): New declarations.
72472         (gl_list_implementation): New fields sortedlist_search_from_to,
72473         sortedlist_indexof_from_to.
72474         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72475         inline functions.
72476         * lib/gl_list.c (gl_sortedlist_search_from_to,
72477         gl_sortedlist_indexof_from_to): New functions.
72478         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72479         function.
72480         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72481         (gl_array_sortedlist_search_from_to): New function.
72482         (gl_array_list_implementation): Update.
72483         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72484         function.
72485         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72486         (gl_carray_sortedlist_search_from_to): New function.
72487         (gl_carray_list_implementation): Update.
72488         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72489         gl_linked_sortedlist_indexof_from_to): New functions.
72490         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72491         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72492         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72493         gl_tree_sortedlist_indexof_from_to): New functions.
72494         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72495         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72496         Update.
72497         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72498         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72499         Update.
72500
72501 2006-10-05  Bruno Haible  <bruno@clisp.org>
72502
72503         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72504         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72505         (struct gl_list_implementation): Add fields search_from_to,
72506         indexof_from_to. Remove fields search, indexof.
72507         (gl_list_search): Use the search_from_to method.
72508         (gl_list_search_from, gl_list_search_from_to): New functions.
72509         (gl_list_indexof): Use the indexof_from_to method.
72510         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72511         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72512         (gl_list_search_from, gl_list_search_from_to): New functions.
72513         (gl_list_indexof): Use the indexof_from_to method.
72514         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72515         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72516         gl_array_indexof. Add start_index, end_index arguments.
72517         (gl_array_search_from_to): Renamed from gl_array_search. Add
72518         start_index, end_index arguments.
72519         (gl_array_remove, gl_array_list_implementation): Update.
72520         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72521         gl_carray_indexof. Add start_index, end_index arguments.
72522         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72523         start_index, end_index arguments.
72524         (gl_carray_remove, gl_carray_list_implementation): Update.
72525         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72526         gl_linked_search. Add start_index, end_index arguments.
72527         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72528         start_index, end_index arguments.
72529         (gl_linked_remove): Update.
72530         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72531         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72532         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72533         field to 'size_t'.
72534         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72535         gl_tree_search. Add start_index, end_index arguments.
72536         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72537         start_index, end_index arguments.
72538         (gl_tree_remove): Update.
72539         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72540         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72541         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72542         function.
72543         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72544         gl_tree_search. Add start_index, end_index arguments.
72545         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72546         start_index, end_index arguments.
72547         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72548         Update.
72549         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72550
72551 2006-10-05  Bruno Haible  <bruno@clisp.org>
72552
72553         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72554
72555         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72556         fwriteerror_temp): New declarations.
72557         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72558         (descriptors): New variable.
72559         (cleanup): First, close the descriptors.
72560         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72561         fclose_temp, fwriteerror_temp): New functions.
72562
72563 2006-10-04  Jim Meyering  <jim@meyering.net>
72564
72565         * lib/fts.c (fts_open): Tiny comment change.
72566
72567 2006-10-04  Bruno Haible  <bruno@clisp.org>
72568
72569         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72570         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72571         gl_LOCK_BODY.
72572         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72573         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72574         gl_LOCK_EARLY_BODY.
72575         (gl_LOCK): Require gl_LOCK_BODY.
72576
72577 2006-10-04  Bruno Haible  <bruno@clisp.org>
72578
72579         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72580         (gl_oset_search_atleast): New declaration.
72581         (struct gl_oset_implementation): Add field 'search_atleast'.
72582         (gl_oset_search_atleast): New inline function.
72583         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72584         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72585         (gl_array_oset_implementation): Update.
72586         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72587         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72588         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72589
72590 2006-10-04  Bruno Haible  <bruno@clisp.org>
72591
72592         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72593
72594 2006-10-03  Bruno Haible  <bruno@clisp.org>
72595
72596         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72597         from gl_avltreehash_list_implementation.
72598
72599 2006-10-03  Bruno Haible  <bruno@clisp.org>
72600
72601         * lib/gl_oset.c (gl_oset_add): Fix return type.
72602
72603 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72604
72605         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72606
72607 2006-10-02  Eric Blake  <ebb9@byu.net>
72608
72609         * modules/strnlen (Depends-on): Add extensions.
72610
72611 2006-10-02  Eric Blake  <ebb9@byu.net>
72612
72613         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72614         definition in 2.60+.
72615
72616 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72617
72618         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72619         checks.
72620
72621 2006-10-02  Bruno Haible  <bruno@clisp.org>
72622
72623         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72624         to the AUTOMAKE_OPTIONS.
72625         Reported by Jim Meyering.
72626
72627 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72628
72629         Work around bug in Solaris 10 /proc file system:
72630         /proc/self/fd/NNN/.. isn't the parent directory of
72631         the directory whose file descriptor is NNN.  This needs to
72632         be worked around at run time, not compile time, since a
72633         program might be built on Solaris 8, where things work, and
72634         run on Solaris 10.
72635         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72636         to use the following interface instead:
72637         (OPENAT_BUFFER_SIZE): New macro.
72638         (openat_proc_name): New function.
72639         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72640         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72641         Likewise.
72642         * lib/openat-proc.c: New file.
72643         * modules/openat (Files): Add lib/openat-proc.c.
72644         (Depends-on): Add same-inode, stdbool.
72645         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72646
72647 2006-09-29  Bruno Haible  <bruno@clisp.org>
72648
72649         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72650         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72651         argument. Set stdout_closed before testing for ferror, not after.
72652         (fwriteerror, fwriteerror_no_ebadf): New functions.
72653
72654 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72655
72656         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72657
72658 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72659
72660         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72661         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72662
72663 2006-09-28  Jim Meyering  <jim@meyering.net>
72664
72665         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72666         Include <unistd.h>.
72667
72668 2006-09-28  Bruno Haible  <bruno@clisp.org>
72669
72670         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72671         * modules/linkedhash-list (Depends-on): Likewise.
72672         * modules/rbtreehash-list (Depends-on): Likewise.
72673
72674 2006-09-28  Bruno Haible  <bruno@clisp.org>
72675
72676         * lib/strndup.h: Simplify the redefinition of strndup.
72677         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72678         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72679
72680 2006-09-28  Bruno Haible  <bruno@clisp.org>
72681
72682         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72683         * lib/gl_linkedhash_list.c: Likewise.
72684         * lib/gl_rbtreehash_list.c: Likewise.
72685
72686 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72687
72688         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72689         getaddrinfo.
72690
72691         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72692         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72693         it causes <stdio_ext.h> to cause a compile-time error.
72694         Problem reported by Nelson H. F. Beebe.
72695         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72696         of HAVE_DECL___PENDING.
72697
72698         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72699         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72700         declaration.
72701
72702 2006-09-27  Jim Meyering  <jim@meyering.net>
72703
72704         This file could end up with a definition for a function
72705         named __strndup, rather than rpl_strndup on a system with
72706         incomplete weak_alias support.
72707         * lib/strndup.c (strndup): Rename from __strndup.
72708         Remove #defines that used to map __strndup to strndup.
72709         Don't use K&R prototypes.
72710         Remove LIBC-related code, since this file is not sync'd with glibc.
72711         * lib/strndup.h: Revamp, accordingly.
72712         * m4/strndup.m4: Modernize.
72713
72714 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72715
72716         * modules/savewd (Depends-on): Add 'raise'.
72717         * lib/savewd.c: Include <signal.h>, for 'raise'.
72718
72719 2006-09-26  Jim Meyering  <jim@meyering.net>
72720
72721         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72722         when we detect Darwin 8.7.0's acl_get_file bug.
72723         Rearrange to perform the new (below) run-test while $LIBS
72724         contains any acl-related library.  Set USE_ACL at the end.
72725         (gl_ACL_GET_FILE): New function.
72726
72727 2006-09-26  Eric Blake  <ebb9@byu.net>
72728
72729         * lib/verror.c: Include <config.h> unconditionally.
72730
72731 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72732
72733         * modules/clock-time (Maintainer): Add self.
72734         * modules/getlogin_r (Depends-on): Add extensions.
72735
72736 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72737
72738         * modules/clock-time: New module.
72739         * modules/nanosleep (Depends-on): Add clock-time.
72740         * modules/gethrxtime (Depends-on): Likewise.
72741         * modules/gettime (Depends-on): Likewise.
72742         * modules/settime (Depends-on): Likewise.
72743
72744         * modules/fts-lgpl: Depend on openat.
72745         * modules/mkancesdirs: Depend on savewd.
72746         * modules/mkdir-p: Likewise.
72747
72748 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72749
72750         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72751
72752         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72753         `gl_have_arbitrary_file_name_length_limit' to
72754         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72755         actually works between configure runs.
72756
72757 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72758             Bruno Haible  <bruno@clisp.org>
72759
72760         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72761
72762 2006-09-25  Jim Meyering  <jim@meyering.net>
72763
72764         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72765         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72766
72767 2006-09-25  Eric Blake  <ebb9@byu.net>
72768
72769         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72770         exec's in 2006-09-18 patch when shuffling fds.
72771
72772 2006-09-25  Bruno Haible  <bruno@clisp.org>
72773
72774         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72775         Reported by Jim Meyering.
72776
72777 2006-09-24  Jim Meyering  <jim@meyering.net>
72778
72779         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72780         compare a pointer against a literal "0".  That caused failures with
72781         at least HP-UX's hpcc.
72782
72783 2006-09-22  Simon Josefsson  <jas@extundo.com>
72784
72785         * modules/gc-sha1:
72786         * modules/gc-md4:
72787         * modules/gc-hmac-sha1:
72788         * modules/gc-hmac-md5:
72789         * modules/gc-des:
72790         * modules/gc-arcfour: Distribute more files.
72791
72792 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72793
72794         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72795         (gl_linked_iterator_from_to): Initialize struct completely.
72796         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72797         (gl_tree_iterator_from_to): Likewise
72798         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72799         * lib/gl_array_list.c [lint] (gl_array_iterator)
72800         (gl_array_iterator_from_to): Likewise.
72801         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72802         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72803         (gl_carray_iterator_from_to): Likewise.
72804
72805         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72806         * lib/md4.c (md4_process_block): Remove unused variable.
72807         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72808         parentheses for clarity.
72809
72810 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72811
72812         * modules/bison-i18n (Depends-on): Add gettext.
72813
72814 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72815
72816         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72817         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72818         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72819         also add missing comma that caused broken test.
72820         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72821         stdlib.h, for `abort'.
72822         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72823         variables.
72824         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72825         include unistd.h if present, for `rmdir'.
72826         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
72827         variables.
72828         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
72829         in the process include standard headers for prototypes.
72830         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
72831         gets declared on GNU/Linux.
72832         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
72833         unistd.h, for `rmdir'.
72834         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
72835
72836         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
72837         always true.
72838         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
72839
72840         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
72841
72842 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72843
72844         * gnulib-tool (func_version): Create output all at once.  This
72845         may help avoid triggering unnecessary SIGPIPEs, and at any
72846         rate it doesn't hurt.
72847
72848 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72849             Bruno Haible  <bruno@clisp.org>
72850
72851         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
72852         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72853         * m4/signed.m4 (bh_C_SIGNED): Likewise.
72854
72855         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
72856         (gl_FUNC_VASPRINTF): Invoke it.
72857
72858 2006-09-22  Bruno Haible  <bruno@clisp.org>
72859
72860         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
72861         getloadavg.c as first argument.
72862
72863 2006-09-22  Bruno Haible  <bruno@clisp.org>
72864
72865         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
72866         at the beginning of the gl_INIT macro.
72867         * modules/getloadavg (configure.ac): Pass $gl_source_base to
72868         gl_GETLOADAVG.
72869
72870 2006-09-22  Bruno Haible  <bruno@clisp.org>
72871
72872         * gnulib-tool (func_create_megatestdir): Don't include the config-h
72873         module.
72874         Suggested by Ralf Wildenhues.
72875
72876 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72877
72878         Import this patch from libc:
72879
72880         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
72881
72882         * lib/regex_internal.c (re_string_reconstruct): Handle
72883         offset < pstr->valid_raw_len && pstr->offsets_needed case.
72884         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
72885         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
72886         re_string_context_at.
72887
72888         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
72889         now requires it.
72890         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
72891         gl_REGEX now does it for us.
72892         (gl_REGEX): Add test taken from
72893         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
72894
72895         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
72896         Check that large offsets work.  Modernize Autoconf usages.
72897         Prefer "yes" to mean a good thing rather than a bad.
72898         Don't put "#define mkstemp" in config.h, as this might interfere
72899         with standard system headers that "#define mkstemp mkstemp64".
72900
72901         * modules/mkstemp (Depends-on): Add extensions, so that
72902         mkstemp is visible on some platforms.
72903         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
72904         (Include): Change to "mkstemp.h" from <stdlib.h>.
72905         (Files): Add mkstemp.h.
72906
72907         * lib/mkstemp.h: New file, since some standard headers
72908         #define mkstemp.
72909         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
72910         Include "mkstemp.h".
72911         Make the _LIBC code resemble glibc original more,
72912         e.g., use K&R style.
72913         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
72914         (mkstemp): Remove, since mkstemp.h does this for us.
72915         * lib/stdlib--.h: Include mkstemp.h.
72916
72917         Import this patch from libc:
72918
72919         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72920
72921         * lib/tempname.c (__gen_tempname): Change attempts_min
72922         into a macro.  Use preprocessor to decide how to initialize
72923         attempts [Coverity CID 67].
72924
72925 2006-09-20  Bruno Haible  <bruno@clisp.org>
72926
72927         * lib/mkdtemp.c: Import from libc.
72928         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72929                 * sysdeps/posix/tempname.c (__gen_tempname): Change
72930                 attempts_min into a macro.  Use preprocessor to decide how to
72931                 initialize attempts [Coverity CID 67].
72932         2001-11-27  Paul Eggert  <eggert@twinsun.com>
72933                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
72934                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
72935
72936 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72937
72938         * gnulib-tool (func_exit): New function, to allow to pass the
72939         exit status portably through the trap.  Use everywhere.
72940         (--help, --version): Signal a write error.
72941         (trap): catch SIGPIPE, for write errors.
72942         Exit at the end of the trap, with the correct exit status.
72943
72944 2006-09-19  Karl Berry  <karl@gnu.org>
72945
72946         * doc/gnulib.texi: note about the license texinfo files.
72947
72948 2006-09-19  Eric Blake  <ebb9@byu.net>
72949
72950         * gnulib-tool: Avoid space-tab.
72951
72952 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72953
72954         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
72955         that prevented coreutils 6.1 from building.  Problem reported
72956         by Petter Reinholdtsen.
72957
72958 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72959
72960         * gnulib-tool (avoidlist): Fix typo that broke options like
72961         --avoid=lock that are used by coreutils bootstrap.
72962
72963 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
72964
72965         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
72966         more systematically.
72967
72968 2006-09-18  Jim Meyering  <jim@meyering.net>
72969
72970         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
72971
72972 2006-09-18  Bruno Haible  <bruno@clisp.org>
72973
72974         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
72975
72976 2006-09-18  Bruno Haible  <bruno@clisp.org>
72977
72978         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
72979         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
72980         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
72981         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
72982         * m4/gettext.m4: Require autoconf >= 2.52.
72983         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
72984         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
72985         of gl_cv_header_inttypes_h.
72986
72987 2006-09-18  Bruno Haible  <bruno@clisp.org>
72988
72989         * lib/javaversion.c: Include configmake.h.
72990
72991 2006-09-18  Bruno Haible  <bruno@clisp.org>
72992
72993         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
72994         avoid that the while loops be executed in a subshell.
72995
72996 2006-09-18  Bruno Haible  <bruno@clisp.org>
72997
72998         * MODULES.html.sh (func_module): Break long lines.
72999         Suggested by Bruce Korb <bkorb@gnu.org>.
73000
73001 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73002
73003         Speed up by a factor of 1.12.
73004         * gnulib-tool (nl): New variable.
73005         (func_import): Rewrite include directive extraction to only read each
73006         directive once.
73007
73008 2006-09-17  Bruno Haible  <bruno@clisp.org>
73009
73010         * modules/javaversion (Makefile.am): Remove DEFS setting.
73011         (Depends-on): Add configmake, for PKGDATADIR definition.
73012
73013 2006-09-17  Bruno Haible  <bruno@clisp.org>
73014
73015         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73016
73017 2006-09-17  Bruno Haible  <bruno@clisp.org>
73018
73019         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73020         (func_modules_transitive_closure, func_modules_add_dummy,
73021         func_modules_to_filelist, func_import, func_create_testdir,
73022         func_create_megatestdir, ...): Use it wherever possible.
73023         Suggested by Ralf Wildenhues.
73024
73025 2006-09-16  Karl Berry  <karl@gnu.org>
73026
73027         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73028         to avoid sectioning errors.
73029         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73030         [ifinfo]: blank line after @center-ed titles.
73031         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73032         Spell FSF address consistently with others.
73033         (These changes approved by rms.)
73034
73035 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73036
73037         Speed up by a factor of 1.61.
73038         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73039         already checked module names again.
73040
73041 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73042
73043         Speed up by a factor of 1.13.
73044         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73045         for new_files, and the input to func_add_or_update.
73046
73047 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73048
73049         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73050         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73051
73052 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73053
73054         * modules/mkancesdirs (Depends-on): Add fcntl.
73055         * modules/savewd: New file.
73056         * MODULES.html.sh (File system functions): Add savewd.
73057
73058         * modules/configmake (Makefile.am): Add support for the
73059         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73060
73061 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73062
73063         * m4/savewd.m4: New file.
73064
73065 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73066
73067         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73068         (dirchownmod): New arg FD.  All callers changed.
73069         Use FD rather than opening the directory ourself, as opening is
73070         now the caller's responsibility.
73071         * lib/dirchownmod.h: Likewise.
73072         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73073         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73074         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73075         (test_dir): Remove.
73076         (mkancesdirs): Return length of prefix of FILE that has already
73077         been made, or -2 if there is a child doing the work.  Redo
73078         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73079         ".", and treat ".." specially since it might stray back into
73080         already-created areas.  Use a subprocess if necessary.  New arg
73081         WD; all users changed.  MAKE_DIR function should now return 1
73082         if it creates a directory that is not readable.  Return -2 if
73083         a child process is spun off.
73084         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73085         Adjust signature to match code.
73086         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73087         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73088         all users changed.
73089         * lib/savewd.c, lib/savewd.h: New files.
73090
73091 2006-09-15  Jim Meyering  <jim@meyering.net>
73092
73093         * modules/rename-dest-slash: New module.
73094         * MODULES.html.sh (posix_compat): Add it here.
73095
73096         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73097
73098 2006-09-15  Jim Meyering  <jim@meyering.net>
73099
73100         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73101         file.
73102
73103         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73104
73105 2006-09-15  Jim Meyering  <jim@meyering.net>
73106
73107         * lib/rename-dest-slash.c (has_trailing_slash): Use
73108         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73109         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73110         test before testing whether SRC is a directory.
73111         Suggestions from Bruno Haible.
73112
73113         Avoid a warning about an unused variable.
73114         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73115         into the #ifdef block where it's used.
73116
73117         * lib/rename-dest-slash.c: New file.
73118
73119 2006-09-14  Bruno Haible  <bruno@clisp.org>
73120
73121         * lib/allocsa.c: Include <config.h> unconditionally.
73122         * lib/asnprintf.c: Likewise.
73123         * lib/asprintf.c: Likewise.
73124         * lib/c-strcasecmp.c: Likewise.
73125         * lib/c-strcasestr.c: Likewise.
73126         * lib/c-strncasecmp.c: Likewise.
73127         * lib/c-strstr.c: Likewise.
73128         * lib/classpath.c: Likewise.
73129         * lib/clean-temp.c: Likewise.
73130         * lib/concatpath.c: Likewise.
73131         * lib/copy-file.c: Likewise.
73132         * lib/csharpcomp.c: Likewise.
73133         * lib/csharpexec.c: Likewise.
73134         * lib/execute.c: Likewise.
73135         * lib/fatal-signal.c: Likewise.
73136         * lib/findprog.c: Likewise.
73137         * lib/fwriteerror.c: Likewise.
73138         * lib/gl_array_list.c: Likewise.
73139         * lib/gl_array_oset.c: Likewise.
73140         * lib/gl_avltree_list.c: Likewise.
73141         * lib/gl_avltree_oset.c: Likewise.
73142         * lib/gl_avltreehash_list.c: Likewise.
73143         * lib/gl_carray_list.c: Likewise.
73144         * lib/gl_linked_list.c: Likewise.
73145         * lib/gl_linkedhash_list.c: Likewise.
73146         * lib/gl_list.c: Likewise.
73147         * lib/gl_oset.c: Likewise.
73148         * lib/gl_rbtree_list.c: Likewise.
73149         * lib/gl_rbtree_oset.c: Likewise.
73150         * lib/gl_rbtreehash_list.c: Likewise.
73151         * lib/imaxabs.c: Likewise.
73152         * lib/imaxdiv.c: Likewise.
73153         * lib/javacomp.c: Likewise.
73154         * lib/javaexec.c: Likewise.
73155         * lib/javaversion.c: Likewise.
73156         * lib/linebreak.c: Likewise.
73157         * lib/localcharset.c: Likewise.
73158         * lib/lock.c: Likewise.
73159         * lib/mbchar.c: Likewise.
73160         * lib/mbswidth.c: Likewise.
73161         * lib/mkdtemp.c: Likewise.
73162         * lib/pipe.c: Likewise.
73163         * lib/printf-args.c: Likewise.
73164         * lib/printf-parse.c: Likewise.
73165         * lib/progname.c: Likewise.
73166         * lib/progreloc.c: Likewise.
73167         * lib/readlink.c: Likewise.
73168         * lib/sh-quote.c: Likewise.
73169         * lib/stpcpy.c: Likewise.
73170         * lib/stpncpy.c: Likewise.
73171         * lib/strcasecmp.c: Likewise.
73172         * lib/strcasestr.c: Likewise.
73173         * lib/strcspn.c: Likewise.
73174         * lib/striconv.c: Likewise.
73175         * lib/strncasecmp.c: Likewise.
73176         * lib/strnlen1.c: Likewise.
73177         * lib/strstr.c: Likewise.
73178         * lib/strtok_r.c: Likewise.
73179         * lib/tls.c: Likewise.
73180         * lib/tmpdir.c: Likewise.
73181         * lib/unicodeio.c: Likewise.
73182         * lib/unsetenv.c: Likewise.
73183         * lib/vasnprintf.c: Likewise.
73184         * lib/vasprintf.c: Likewise.
73185         * lib/wait-process.c: Likewise.
73186         * lib/xallocsa.c: Likewise.
73187         * lib/xsetenv.c: Likewise.
73188         * lib/xstriconv.c: Likewise.
73189
73190 2006-09-13  Simon Josefsson  <jas@extundo.com>
73191
73192         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73193         that internally, suggested by Ralf Wildenhues
73194         <Ralf.Wildenhues@gmx.de>.
73195
73196 2006-09-13  Simon Josefsson  <jas@extundo.com>
73197
73198         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73199         @LIBOBJS@.
73200         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73201
73202 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73205         longer worry about uses that don't define HAVE_CONFIG_H.
73206         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73207         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73208         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73209         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73210         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73211         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73212         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73213         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73214         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73215         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73216         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73217         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73218         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73219         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73220         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73221         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73222         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73223         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73224         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73225         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73226         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73227         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73228         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73229         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73230         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73231         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73232         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73233         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73234         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73235         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73236         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73237         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73238         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73239         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73240         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73241         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73242         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73243         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73244         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73245         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73246         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73247         Likewise.
73248
73249 2006-09-13  Eric Blake  <ebb9@byu.net>
73250
73251         * lib/getopt.c: Fix typo in last commit.
73252
73253 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73254
73255         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73256         dgettext.
73257
73258 2006-09-12  Jim Meyering  <jim@meyering.net>
73259
73260         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73261         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73262         Reported by Nelson H. F. Beebe.
73263
73264 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73265
73266         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73267         program_invocation_name and program_invocation_short_name are
73268         initialized.
73269         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73270         and program_invocation_short_name to argp.h, so they are visible
73271         to user programs.
73272         * lib/argp.h: Likewise
73273
73274 2006-09-10  Bruno Haible  <bruno@clisp.org>
73275
73276         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73277         m4/inttypes_h.m4, m4/uintmax_t.m4.
73278
73279 2006-09-10  Bruno Haible  <bruno@clisp.org>
73280
73281         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73282         gl_AC_TYPE_UINTMAX_T.
73283
73284 2006-09-10  Bruno Haible  <bruno@clisp.org>
73285
73286         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73287
73288 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73289
73290         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73291         convention.  Text proposed by Bruno Haible.
73292         (struct argp_option): Document the use of N_() wrappers.
73293
73294         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73295         '\v', and translate the two parts separately, instead of feeding
73296         the whole string to gettext.  This allows to exclude
73297         '\v' from the strings visible to the translator by writing doc
73298         strings as N_("..") "\v" N_("..").
73299
73300 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73301
73302         * config/srclist.txt: Undo latest change; the bug was fixed.
73303
73304 2006-09-09  Bruno Haible  <bruno@clisp.org>
73305
73306         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73307         assignments if building a library without libtool.
73308         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73309         in func_emit_lib_Makefile_am.
73310         (func_import): When building a static library libfoo.a, arrange to
73311         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73312         (func_create_testdir): Likewise.
73313         * modules/gc (configure.ac, Makefile.am): If building statically,
73314         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73315         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73316         * modules/striconv (configure.ac, Makefile.am): Likewise.
73317         Based on a suggestion by Ralf Wildenhues.
73318
73319 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73320
73321         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73322         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73323         Also:
73324
73325         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73326         Add year_2050_test to catch glibc bug 2821
73327         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73328
73329         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73330         Prefer #ifdef to #if.
73331
73332         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73333         Return from 'main' instead of calling 'exit'.
73334
73335 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73336
73337         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73338         returned the maximum time_t value rather than (time_t) -1.
73339         Problem originally reported by William Bardwell
73340         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73341
73342         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73343         Moved to here ...
73344         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73345         ... from here.
73346
73347 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73348
73349         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73350         2821 is fixed.
73351
73352 2006-09-08  Jim Meyering  <jim@meyering.net>
73353
73354         Don't make generated files read-only.  That would bother too many
73355         people.  However, do retain the ability to work when targets are
73356         read-only: remove the destination and temporary files before writing
73357         them (when generated via sed or echo), or by using the -f option for
73358         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73359         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73360         * modules/byteswap, modules/configmake, modules/fcntl:
73361         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73362         * modules/localcharset, modules/netinet_in, modules/poll:
73363         * modules/stdbool, modules/stdint, modules/sys_select:
73364         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73365
73366 2006-09-08  Jim Meyering  <jim@meyering.net>
73367
73368         Avoid new build failure on FreeBSD 6.0.
73369         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73370         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73371         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73372
73373 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73374
73375         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73376
73377 2006-09-07  Jim Meyering  <jim@meyering.net>
73378
73379         Fix global typo in last change: use chmod u-w, not chmod u-x.
73380         Spotted by Paul Eggert and Bruce Korb.
73381         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73382         * modules/byteswap, modules/configmake, modules/fcntl:
73383         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73384         * modules/localcharset, modules/netinet_in, modules/poll:
73385         * modules/stdbool, modules/stdint, modules/sys_select:
73386         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73387
73388 2006-09-06  Jim Meyering  <jim@meyering.net>
73389
73390         Make generated files be read-only.
73391         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73392         Ensure that each generated file is now read-only.
73393         * modules/argz: Likewise.
73394         * modules/arpa_inet: Likewise.
73395         * modules/byteswap: Likewise.
73396         * modules/configmake: Likewise.
73397         * modules/fcntl: Likewise.
73398         * modules/fnmatch: Likewise.
73399         * modules/getopt: Likewise.
73400         * modules/glob: Likewise.
73401         * modules/inttypes: Likewise.
73402         * modules/netinet_in: Likewise.
73403         * modules/poll: Likewise.
73404         * modules/stdbool: Likewise.
73405         * modules/stdint: Likewise.
73406         * modules/sys_select: Likewise.
73407         * modules/sys_socket: Likewise.
73408         * modules/sys_stat: Likewise.
73409         * modules/sysexits: Likewise.
73410         * modules/localcharset: Same as above, but continue using temporary
73411         file named "t-$@" (why different?) rather than the "$@-t" used
73412         everywhere else.
73413
73414         * modules/sysexits (Makefile.am): Replace literal occurrences
73415         of "sysexit.h" more readable, and more consistent, "$@".
73416
73417 2006-09-06  Bruno Haible  <bruno@clisp.org>
73418
73419         * modules/striconv: New file.
73420         * modules/xstriconv: New file.
73421         * MODULES.html.sh (Internationalization functions): Add striconv,
73422         xstriconv.
73423
73424 2006-09-06  Bruno Haible  <bruno@clisp.org>
73425
73426         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73427         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73428         not using libtool correctly.
73429
73430 2006-09-06  Bruno Haible  <bruno@clisp.org>
73431
73432         * lib/striconv.h: New file.
73433         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73434         iconvstring.c.
73435         * lib/xstriconv.h: New file.
73436         * lib/xstriconv.c: New file.
73437
73438 2006-09-06  Bruno Haible  <bruno@clisp.org>
73439
73440         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73441         lib_..._LDFLAGS.
73442
73443 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73444
73445         * lib/argz_.h: Sync from Libtool.
73446
73447         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73448                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73449
73450         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73451
73452 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73453
73454         * modules/trim: New file.
73455
73456 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73457
73458         * lib/trim.h: New file.
73459         * lib/trim.c: New file.
73460
73461 2006-09-05  Bruno Haible  <bruno@clisp.org>
73462
73463         * MODULES.html.sh (String handling): Add trim.
73464
73465 2006-09-04  Karl Berry  <karl@gnu.org>
73466
73467         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73468         until next release.
73469
73470 2006-09-03  Bruno Haible  <bruno@clisp.org>
73471
73472         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73473         correctly.
73474
73475 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73476
73477         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73478         not gl_GETLOADAVG.  Omit unneeded semicolons.
73479         Problems reported by Ralf Wildenhues in
73480         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73481         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73482         at the end, which is the usual gnulib style.
73483
73484         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73485         of doing all the work ourselves.
73486         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73487         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73488
73489 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73490
73491         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73492         Problem reported by Ralf Wildenhues in
73493         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73494
73495         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73496         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73497
73498 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73499
73500         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73501         yesterday's patch by changing test -n to test -z.
73502
73503 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73504
73505         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73506         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73507         the former is now obsolescent.
73508
73509         * modules/chdir-long (Depends-on): Add fcntl.
73510
73511 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73512
73513         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73514         obsolescent, and programs should use gnulib instead.
73515         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73516         but with prefixes changed.
73517
73518 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73519
73520         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73521         or stdbool.h, because they might not exist while configuring.
73522
73523         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73524         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73525         does that for us.
73526         (O_DIRECTORY): Remove.
73527
73528 2006-08-31  Eric Blake  <ebb9@byu.net>
73529
73530         * gnulib-tool: Don't let emacs change spaces to TAB.
73531
73532 2006-08-31  Bruno Haible  <bruno@clisp.org>
73533
73534         * gnulib-tool: When calling func_import more than once, do it in a
73535         subshell.
73536         Reported by Eric Blake <ebb9@byu.net>.
73537
73538 2006-08-31  Bruno Haible  <bruno@clisp.org>
73539
73540         * gnulib-tool (nl): Remove variable.
73541         (sed_transform_lib_file): Use more robust test for config-h module.
73542         (func_import): Fix typo in 2006-08-25 patch.
73543
73544 2006-08-31  Bruno Haible  <bruno@clisp.org>
73545
73546         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73547         specified, augment Makefile.am variables instead of assigning them.
73548
73549 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73550
73551         Work around a bug in both the Linux and SunOS 64-bit kernels:
73552         nanosleep mishandles sleeps for longer than 2**31 seconds.
73553         Problem reported by Frank v Waveren in
73554         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73555         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73556         Check for nanosleep bug.
73557         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73558
73559 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73560
73561         Work around a bug in both the Linux and SunOS 64-bit kernels:
73562         nanosleep mishandles sleeps for longer than 2**31 seconds.
73563         Problem reported by Frank v Waveren in
73564         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73565         * lib/nanosleep.c (BILLION): New constant.
73566         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73567         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73568         implementation.
73569
73570 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73571
73572         * modules/nanosleep (Depends-on): Add gettime.
73573
73574 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73575         and Simon Josefsson  <jas@extundo.com>
73576         and Oskar Liljeblad  <oskar@osk.mine.nu>
73577
73578         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73579         * gnulib-tool (func_import): New license type 'unmodifiable license
73580         text'.
73581         * modules/fdl: Use it.  Longer description.
73582         * module/gpl, module/lgpl: New files.
73583
73584 2006-08-30  Jim Meyering  <jim@meyering.net>
73585
73586         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73587         shadowing the parameter.
73588
73589 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73590
73591         Sync from Libtool:
73592
73593         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73594
73595         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73596         sharing with gnulib.  Report by Eric Blake.
73597
73598 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73599
73600         * modules/isapipe: New file.
73601         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73602
73603 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73604
73605         * modules/configmake (Makefile.am): Add a comment, and omit
73606         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73607         by Bruno Haible.
73608
73609 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73610
73611         * m4/isapipe.m4: New file.
73612
73613 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73614
73615         * lib/isapipe.c, lib/isapipe.h: New files.
73616
73617 2006-08-29  Jim Meyering  <jim@meyering.net>
73618
73619         * modules/configmake (Makefile.am): Make configmake.h depend on
73620         Makefile.  Otherwise, a stale configmake.h could hang around.
73621
73622 2006-08-29  Eric Blake  <ebb9@byu.net>
73623
73624         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73625         resolution of upstream bug 3044.
73626
73627 2006-08-29  Bruno Haible  <bruno@clisp.org>
73628
73629         * modules/localcharset (Depends-on): Add configmake.
73630         (Makefile.am): Remove setting of LIBDIR through DEFS.
73631
73632 2006-08-29  Bruno Haible  <bruno@clisp.org>
73633
73634         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73635         defined.
73636
73637 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73638
73639         * modules/fcntl: New file.
73640         * modules/chdir-safer (Depends-on): Add fcntl.
73641         * modules/fts: Likewise.
73642         * modules/mkdir-p: Likewise.
73643
73644         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73645         This undoes the most recent change, since we're now addressing the
73646         problem in a different way.
73647
73648         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73649         into output, since the output might be called Makefile.am even
73650         if $makefile_name is something different.
73651         (func_import): Use $makefile_am rather than
73652         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73653         empty.
73654
73655         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73656
73657 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73658
73659         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73660         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73661         recent change to stdint.m4, since we're now addressing the problem in a
73662         different way.
73663
73664 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73665
73666         * m4/fcntl_h.m4: New file.
73667
73668 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73669
73670         * lib/fcntl_.h: New file.
73671         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73672         the fcntl module.
73673         * lib/dirchownmod.c: Likewise.
73674         * lib/fts.c: Likewise.
73675
73676         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73677         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73678         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73679         just before including <inttypes.h>, to avoid circular inclusion.
73680
73681 2006-08-28  Jim Meyering  <jim@meyering.net>
73682
73683         * doc/visibility.texi: Actually read and correct the grammar of the
73684         sentence affected by yesterday's change.
73685
73686 2006-08-28  Eric Blake  <ebb9@byu.net>
73687
73688         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73689         needs wrapper.
73690
73691 2006-08-28  Eric Blake  <ebb9@byu.net>
73692
73693         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73694
73695 2006-08-28  Eric Blake  <ebb9@byu.net>
73696
73697         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73698
73699 2006-08-28  Bruno Haible  <bruno@clisp.org>
73700
73701         * modules/c-strstr: New file, from GNU gettext.
73702         * MODULES.html.sh (String handling): Add c-strstr.
73703
73704 2006-08-28  Bruno Haible  <bruno@clisp.org>
73705
73706         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73707         macros.
73708         Reported by Eric Blake.
73709
73710 2006-08-28  Bruno Haible  <bruno@clisp.org>
73711
73712         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73713         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73714         * lib/vasprintf.c: Include errno.h, limits.h.
73715         (EOVERFLOW): New fallback definition.
73716         (vasprintf): Test here whether the string length is > INT_MAX.
73717         * lib/vsnprintf.c: Include errno.h, limits.h.
73718         (EOVERFLOW): New fallback definition.
73719         (vsnprintf): Fix bug when generated string was too long for the buffer.
73720         Test here whether the string length is > INT_MAX.
73721
73722 2006-08-28  Bruno Haible  <bruno@clisp.org>
73723
73724         * lib/inttypes_.h (SCNX*): Remove definitions.
73725         Reported by Eric Blake.
73726
73727 2006-08-28  Bruno Haible  <bruno@clisp.org>
73728
73729         * lib/c-strstr.h: New file, from GNU gettext.
73730         * lib/c-strstr.c: New file, from GNU gettext.
73731
73732 2006-08-28  Bruno Haible  <bruno@clisp.org>
73733
73734         * gnulib-tool: Reorder some statements.
73735
73736 2006-08-28  Bruno Haible  <bruno@clisp.org>
73737
73738         * gnulib-tool: New option --makefile-name.
73739         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73740         $makefile_name.
73741         (func_import): Write $makefile_name to the cache file, and read it from
73742         there unless explicitly specified. Use $makefile_name as file name
73743         instead of Makefile.am. Adjust the recommendations accordingly.
73744
73745 2006-08-28  Bruno Haible  <bruno@clisp.org>
73746
73747         * gnulib-tool (func_verify_module): Check against misapplying patch.
73748
73749 2006-08-28  Bruno Haible  <bruno@clisp.org>
73750
73751         * gnulib-tool (func_relativize, func_relconcat): New functions.
73752         Give an error if --local-dir is given with --update.
73753         Remove trailing slashes from $local_gnulib_dir.
73754         (func_import): Store the relativized $local_gnulib_dir in
73755         gnulib-cache.m4, and read it from there if not specified explicitly.
73756
73757 2006-08-28  Bruno Haible  <bruno@clisp.org>
73758
73759         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73760         is the current directory. Respect also $local_gnulib_dir.
73761
73762 2006-08-28  Bruno Haible  <bruno@clisp.org>
73763             Simon Josefsson  <jas@extundo.com>
73764
73765         BeOS portability.
73766         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73767
73768 2006-08-27  Jim Meyering  <jim@meyering.net>
73769
73770         * doc/visibility.texi: Remove duplicate word: "pointer".
73771
73772 2006-08-26  Bruno Haible  <bruno@clisp.org>
73773
73774         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73775         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73776         (Makefile.am): Create inttypes.h from inttypes_.h.
73777         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73778
73779         * modules/imaxabs: New file.
73780
73781         * modules/imaxdiv: New file.
73782
73783 2006-08-26  Bruno Haible  <bruno@clisp.org>
73784
73785         * m4/inttypes.m4: New file.
73786         * m4/_inttypes_h.m4: Remove file.
73787         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73788         PRI_MACROS_BROKEN.
73789         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73790
73791         * m4/imaxabs.m4: New file.
73792
73793         * m4/imaxdiv.m4: New file.
73794
73795 2006-08-26  Bruno Haible  <bruno@clisp.org>
73796
73797         * lib/inttypes_.h: New file.
73798         * lib/inttypes.h: Remove file.
73799         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73800
73801         * lib/imaxabs.c: New file.
73802
73803         * lib/imaxdiv.c: New file.
73804
73805 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73806
73807         New config-h module, so that "make" output needn't be cluttered
73808         by -DHAVE_CONFIG_H.
73809         * MODULES.html.sh (Support for building libraries and executables):
73810         Add config-h.
73811         * modules/config-h: New file.
73812         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73813         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73814         the config-h module is used.
73815
73816         New configmake module, so that "make" output needn't be cluttered
73817         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73818         * MODULES.html.sh (Support for building libraries and executables):
73819         Add configmake.
73820         * modules/configmake: New file.
73821
73822 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73823
73824         * m4/config-h.m4: New file.
73825
73826 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73827
73828         * config/srclist.txt: Add elisp-comp.
73829
73830 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73831
73832         * MODULES.html.sh (Support for building libraries and executables):
73833         Add elisp-comp.
73834         * build-aux/elisp-comp: New file.
73835         * modules/elisp-comp: New file.
73836
73837 2006-08-24  Bruno Haible  <bruno@clisp.org>
73838
73839         * gnulib-tool (func_create_testdir): Use non-default values of
73840         sourcebase and m4base.
73841
73842 2006-08-24  Bruno Haible  <bruno@clisp.org>
73843
73844         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
73845         HTML structure.
73846
73847 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73848
73849         * modules/openat (Depends-on): Add lchown.
73850
73851 2006-08-23  Bruno Haible  <bruno@clisp.org>
73852
73853         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
73854         of gl_LOCK_EARLY instead of gl_LOCK.
73855
73856 2006-08-23  Bruno Haible  <bruno@clisp.org>
73857
73858         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
73859         on OSF/1 to no.
73860         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
73861
73862 2006-08-23  Bruno Haible  <bruno@clisp.org>
73863
73864         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
73865         as unusable.
73866
73867         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
73868         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
73869         (gl_LOCK): New macro.
73870
73871 2006-08-22  Simon Josefsson  <jas@extundo.com>
73872
73873         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
73874         to md5 module.
73875
73876 2006-08-22  Simon Josefsson  <jas@extundo.com>
73877
73878         * MODULES.html.sh: Add "Support for maintaining and release
73879         projects".
73880
73881         * build-aux/gnupload: New file, from coreutils.
73882
73883 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         Avoid the need for AC_LIBSOURCES in m4 macros.
73886         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
73887         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
73888         * modules/check-version (EXTRA_DIST): Add check-version.h.
73889         * modules/crc (EXTRA_DIST): Add crc.h.
73890         * modules/des (EXTRA_DIST): Add des.h.
73891         * modules/gc (EXTRA_DIST): Add gc.h.
73892         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
73893         * modules/getline (EXTRA_DIST): Add getline.h.
73894         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
73895         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
73896         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
73897         * modules/md2 (EXTRA_DIST): Add md2.h.
73898         * modules/md4 (EXTRA_DIST): Add md4.h.
73899         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
73900         * modules/read-file (EXTRA_DIST): Add read-file.h.
73901         * modules/readline (EXTRA_DIST): Add readline.h.
73902         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
73903         rijndael-api-fst.h.
73904
73905 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73906
73907         * m4/rijndael.m4 (gl_ARCFOUR):
73908         * m4/arctwo.m4 (gl_ARCTWO):
73909         * m4/check-version.m4 (gl_CHECK_VERSION):
73910         * m4/crc.m4 (gl_CRC):
73911         * m4/des.m4 (gl_DES):
73912         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
73913         * m4/gc.m4 (gl_GC):
73914         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
73915         * m4/getline.m4 (gl_FUNC_GETLINE):
73916         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
73917         * m4/hmac-md5.m4 (gl_HMAC_MD5):
73918         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
73919         * m4/md2.m4 (gl_MD2):
73920         * m4/md4.m4 (gl_MD4):
73921         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
73922         * m4/read-file.m4 (gl_FUNC_READ_FILE):
73923         * m4/readline.m4 (gl_FUNC_READLINE):
73924         * m4/rijndael.m4 (gl_RIJNDAEL):
73925         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73926         to get the necessary .h files and whatnot.
73927
73928 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73929
73930         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
73931         gnulib rather than the other way around.
73932         * config/srclistvars.sh (COREUTILS): Remove.
73933
73934 2006-08-22  Jim Meyering  <jim@meyering.net>
73935
73936         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
73937
73938         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
73939
73940 2006-08-22  Eric Blake  <ebb9@byu.net>
73941
73942         * modules/regexprops-generic: New file.
73943         * MODULES.html.sh (Support for building documentation): List it.
73944
73945 2006-08-22  Eric Blake  <ebb9@byu.net>
73946
73947         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
73948         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
73949         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
73950         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
73951
73952 2006-08-22  Bruno Haible  <bruno@clisp.org>
73953
73954         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
73955         and lib_LTLIBRARIES like the other lib_* variables.
73956
73957 2006-08-22  Bruno Haible  <bruno@clisp.org>
73958
73959         * build-aux/x-to-1.in: New file, from GNU gettext.
73960
73961 2006-08-22  Bruno Haible  <bruno@clisp.org>
73962
73963         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
73964         <utmpx.h> exists.
73965
73966 2006-08-22  Bruno Haible  <bruno@clisp.org>
73967
73968         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
73969         <utmpx.h> exists.
73970
73971 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73972
73973         BeOS portability.
73974         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
73975         exist.
73976         Problem reported by Bruno Haible.
73977
73978 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73979
73980         Avoid the need for AC_LIBSOURCES in m4 macros.
73981         * modules/acl (EXTRA_DIST): Add acl.h.
73982         * modules/argmatch (Files): Add m4/argmatch.m4.
73983         (configure.ac): Add gl_ARGMATCH.
73984         (EXTRA_DIST): Renamed from lib_SOURCES, for
73985         consistency with the other modules.  Remove argmatch.c.
73986         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
73987         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
73988         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
73989         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
73990         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
73991         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
73992         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
73993         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
73994         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
73995         * modules/closeout (EXTRA_DIST): Add closeout.h.
73996         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
73997         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
73998         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
73999         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74000         dirname.h; remove basename.c and stripslash.c.
74001         * modules/exclude (EXTRA_DIST): Add exclude.h.
74002         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74003         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74004         * modules/file-type (EXTRA_DIST): Add file-type.h.
74005         * modules/filemode (EXTRA_DIST): Add filemode.h.
74006         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74007         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74008         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74009         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74010         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74011         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74012         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74013         * modules/getdate (EXTRA_DIST): Add getdate.c.
74014         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74015         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74016         * modules/getpass (EXTRA_DIST): Add getpass.h.
74017         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74018         * modules/group-member (EXTRA_DIST): Add group-member.h.
74019         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74020         * modules/hash (EXTRA_DIST): Add hash.h.
74021         * modules/human (EXTRA_DIST): Add human.h.
74022         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74023         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74024         * modules/lchown (EXTRA_DIST): Add lchown.h.
74025         * modules/long-options (EXTRA_DIST): Add long-options.h.
74026         * modules/lstat (EXTRA_DIST): Add lstat.h.
74027         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74028         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74029         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74030         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74031         * modules/memxor (EXTRA_DIST): Add memxor.h.
74032         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74033         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74034         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74035         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74036         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74037         * modules/physmem (EXTRA_DIST): Add physmem.h.
74038         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74039         * modules/posixver (EXTRA_DIST): Add posixver.h.
74040         * modules/quote (EXTRA_DIST): Add quote.h.
74041         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74042         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74043         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74044         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74045         regex_internal.h regexec.c.
74046         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74047         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74048         * modules/same (EXTRA_DIST): Add same.h.
74049         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74050         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74051         * modules/savedir (EXTRA_DIST): Add savedir.h.
74052         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74053         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74054         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74055         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74056         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74057         * modules/strdup (EXTRA_DIST): Add strdup.h.
74058         * modules/strftime (EXTRA_DIST): Add strftime.h.
74059         * modules/strndup (EXTRA_DIST): Add strndup.h.
74060         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74061         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74062         * modules/time_r (EXTRA_DIST): Add time_r.h.
74063         * modules/timespec (EXTRA_DIST): Add timespec.h.
74064         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74065         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74066         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74067         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74068         * modules/userspec (EXTRA_DIST): Add userspec.h.
74069         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74070         * modules/utimens (EXTRA_DIST): Add utimens.h.
74071         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74072         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74073         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74074         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74075         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74076         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74077         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74078         * modules/yesno (EXTRA_DIST): Add yesno.h.
74079
74080 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74081
74082         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74083
74084         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74085         * m4/dev-ino.m4, same-inode.m4: Remove.
74086
74087         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74088         * m4/acl.m4 (AC_FUNC_ACL):
74089         * m4/backupfile.m4 (gl_BACKUPFILE):
74090         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74091         * m4/canon-host.m4 (gl_CANON_HOST):
74092         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74093         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74094         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74095         * m4/cloexec.m4 (gl_CLOEXEC):
74096         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74097         * m4/closeout.m4 (gl_CLOSEOUT):
74098         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74099         * m4/dirname.m4 (gl_DIRNAME):
74100         * m4/exclude.m4 (gl_EXCLUDE):
74101         * m4/exitfail.m4 (gl_EXITFAIL):
74102         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74103         * m4/file-type.m4 (gl_FILE_TYPE):
74104         * m4/filemode.m4 (gl_FILEMODE):
74105         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74106         * m4/fpending.m4 (gl_FUNC_FPENDING):
74107         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74108         * m4/fts.m4 (gl_FUNC_FTS):
74109         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74110         * m4/getdate.m4 (gl_GETDATE):
74111         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74112         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74113         * m4/getpass.m4 (gl_FUNC_GETPASS):
74114         * m4/gettime.m4 (gl_GETTIME):
74115         * m4/getugroups.m4 (gl_GETUGROUPS):
74116         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74117         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74118         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74119         * m4/hash.m4 (gl_HASH):
74120         * m4/idcache.m4 (gl_IDCACHE):
74121         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74122         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74123         * m4/long-options.m4 (gl_LONG_OPTIONS):
74124         * m4/lstat.m4 (gl_FUNC_LSTAT):
74125         * m4/md5.m4 (gl_MD5):
74126         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74127         * m4/memcoll.m4 (gl_MEMCOLL):
74128         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74129         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74130         * m4/memxor.m4 (gl_MEMXOR):
74131         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74132         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74133         * m4/modechange.m4 (gl_MODECHANGE):
74134         * m4/mountlist.m4 (gl_MOUNTLIST):
74135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74136         * m4/openat.m4 (gl_FUNC_OPENAT):
74137         * m4/pathmax.m4 (gl_PATHMAX):
74138         * m4/physmem.m4 (gl_PHYSMEM):
74139         * m4/posixtm.m4 (gl_POSIXTM):
74140         * m4/posixver.m4 (gl_POSIXVER):
74141         * m4/quote.m4 (gl_QUOTE):
74142         * m4/quotearg.m4 (gl_QUOTEARG):
74143         * m4/readtokens.m4 (gl_READTOKENS):
74144         * m4/readutmp.m4 (gl_READUTMP):
74145         * m4/regex.m4 (gl_REGEX):
74146         * m4/safe-read.m4 (gl_SAFE_READ):
74147         * m4/safe-write.m4 (gl_SAFE_WRITE):
74148         * m4/same.m4 (gl_SAME):
74149         * m4/save-cwd.m4 (gl_SAVE_CWD):
74150         * m4/savedir.m4 (gl_SAVEDIR):
74151         * m4/settime.m4 (gl_SETTIME):
74152         * m4/sha1.m4 (gl_SHA1):
74153         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74154         * m4/stat-macros.m4 (gl_STAT_MACROS):
74155         * m4/stat-time.m4 (gl_STAT_TIME):
74156         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74157         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74158         * m4/strdup.m4 (gl_FUNC_STRDUP):
74159         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74160         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74161         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74162         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74163         * m4/time_r.m4 (gl_TIME_R):
74164         * m4/timespec.m4 (gl_TIMESPEC):
74165         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74166         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74167         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74168         * m4/userspec.m4 (gl_USERSPEC):
74169         * m4/utimecmp.m4 (gl_UTIMECMP):
74170         * m4/utimens.m4 (gl_UTIMENS):
74171         * m4/xalloc.m4 (gl_XALLOC):
74172         * m4/xgetcwd.m4 (gl_XGETCWD):
74173         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74174         * m4/xreadlink.m4 (gl_XREADLINK):
74175         * m4/xstrtod.m4 (gl_XSTRTOD):
74176         * m4/yesno.m4 (gl_YESNO):
74177         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74178         to get the necessary .h files and whatnot.
74179
74180 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74181             Bruno Haible  <bruno@clisp.org>
74182
74183         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74184         /bin/sh understanding of '!' conditional negation.
74185
74186 2006-08-21  Jim Meyering  <jim@meyering.net>
74187
74188         * modules/openat (Depends-on): Really alphabetize.
74189
74190         * modules/acl (Depends-on): Add error and quote.
74191
74192         * check-module (find_included_lib_files): Add at-func.c to the
74193         ok-to-include-more-than-once white list.
74194
74195         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74196
74197 2006-08-21  Bruno Haible  <bruno@clisp.org>
74198
74199         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74200         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74201         Reported by Martin Lambers <marlam@marlam.de>.
74202
74203 2006-08-21  Bruno Haible  <bruno@clisp.org>
74204
74205         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74206         specify an installation location, don't emit a noinst_LIBRARIES or
74207         noinst_LTLIBRARIES assignment.
74208
74209 2006-08-21  Bruno Haible  <bruno@clisp.org>
74210
74211         BeOS portability.
74212         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74213         BeOS has mbrtowc() but no <wctype.h>.
74214
74215 2006-08-21  Bruno Haible  <bruno@clisp.org>
74216
74217         BeOS portability.
74218         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74219         exist.
74220
74221 2006-08-21  Bruno Haible  <bruno@clisp.org>
74222
74223         BeOS portability.
74224         * lib/mbchar.h: Include <wctype.h> only if it exists.
74225
74226 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74227
74228         Remove files that are no longer needed by their respective modules.
74229         * m4/obstack.m4: Remove.
74230         * m4/strerror_r.m4: Remove.
74231         * m4/uint32_t.m4: Remove.
74232         * m4/uintptr_t.m4: Remove.
74233         * m4/ullong_max.m4: Remove.
74234         * m4/xstrtoimax.m4: Remove.
74235         * m4/xstrtoumax.m4: Remove.
74236
74237         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74238         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74239         dependencies now capture this.
74240
74241         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74242         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74243         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74244         * m4/human.m4 (gl_HUMAN): Likewise.
74245         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74246         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74247
74248         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74249
74250         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74251         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74252         stdint.
74253         * m4/human.m4 (gl_HUMAN): Likewise.
74254         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74255         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74256         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74257         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74258         * m4/xstrtol (gl_XSTRTOL): Likewise.
74259
74260         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74261         AC_TYPE_LONG_LONG_INT.
74262         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74263         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74264         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74265         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74266
74267         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74268         on stdbool.
74269
74270         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74271         (gl_PREREQ_XSTRTOUL): Remove.
74272
74273         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74274
74275         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74276         mode.
74277
74278 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74279
74280         Add and change modules to make it easier for coreutils to use
74281         gnulib-tool.
74282         * modules/backupfile (Files): Remove m4/d-ino.m4.
74283         (Depends-on): Add d-ino.
74284         * modules/cycle-check (Depends-on): Add stdint.
74285         (lib_SOURCES): Add cycle-check.h.
74286         * modules/d-ino: New module.
74287         * modules/d-type: New module.
74288         * modules/error (Files): Remove m4/strerror_r.m4.
74289         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74290         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74291         m4/inttypes_h.m4, m4/uintmax_t.m4.
74292         (Depends-on): Add stdint.
74293         (lib_SOURCES): Add fsusage.h.
74294         * modules/getcwd (Files): Remove d-ino.m4.
74295         (Depends-on): Add d-ino.
74296         * modules/getndelim2 (Depends-on): Add stdint.
74297         * modules/glob (Files): Remove m4/d-type.m4.
74298         (Depends-on): Add d-type.
74299         * modules/host-os: New module.
74300         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74301         m4/inttypes_h.m4, m4/uintmax_t.m4.
74302         * Depends-on: Add stdint.
74303         (lib_SOURCES): Add human.h.
74304         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74305         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74306         m4/uintmax_t.m4, m4/ulonglong.m4.
74307         (Depends-on): Add stdint.
74308         (EXTRA_DIST): Add inttostr.h.
74309         * modules/lchmod: New module.
74310         * modules/link-follow: New module.
74311         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74312         (Depends-on): Add lchmod.
74313         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74314         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74315         (Depends-on): Add stdint.
74316         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74317         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74318         (Depends-on): Add stdint.
74319         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74320         * modules/perl: New module.
74321         * modules/regex (Depends-on): Add stdint.
74322         * modules/rmdir-errno: New module.
74323         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74324         m4/intmax_t.m4.
74325         (Depends-on): Add stdint.
74326         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74327         m4/uintmax_t.m4.
74328         (Depends-on): Add stdint.
74329         * modules/unlink-busy: New module.
74330         * modules/utimecmp (Depends-on): Add stdint.
74331         * modules/uptime: New module.
74332         * modules/winsz-ioctl: New module.
74333         * modules/winsz-termios: New module.
74334         * modules/xnanosleep (Depends-on): Add nanosleep.
74335         * modules/ullong_max: Remove.
74336         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74337         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74338         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74339         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74340         (Depends-on): Add inttypes.
74341         (lib_SOURCES): Add xstrtol.h.
74342         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74343         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74344         * MODULES.html.sh: Move 'assert' into the assert section.
74345         Move 'dummy' into the linking section.
74346         Remove ullong_max.
74347         Add section for compatibility checks for POSIX:2001 functions,
74348         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74349         winsz-ioctl, and winsz-termios into it.
74350         Add lchmod.
74351         Add top-level Misc section and put host-os, perl, and uptime
74352         into it.
74353
74354 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74355
74356         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74357         now assume the stdint module.  Do not include inttypes.h.
74358         * lib/fsusage.h: Likewise.
74359         * lib/getndelim2.c: Likewise.
74360         * lib/human.h: Likewise.
74361         * lib/inttostr.h: Likewise.
74362         * lib/obstack.c: Likewise.
74363         * lib/regex_internal.h: Likewise.
74364         * lib/tempname.c: Likewise.
74365         * lib/utimecmp.c: Likewise.
74366         * lib/xstrtol.h: Likewise.
74367
74368         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74369
74370         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74371         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74372         * lib/xtime.h: Likewise.
74373
74374 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74375
74376         * modules/openat (Files): Add lib/fchmodat.c.
74377         Fixes problem reported by Jay Youngman.
74378
74379 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74380
74381         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74382         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74383
74384 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74385             Bruno Haible  <bruno@clisp.org>
74386
74387         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74388         and is a script that invokes bison. Tighten the code. Add comments.
74389
74390 2006-08-18  Jim Meyering  <jim@meyering.net>
74391
74392         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74393         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74394         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74395         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74396
74397 2006-08-18  Bruno Haible  <bruno@clisp.org>
74398
74399         * modules/bison-i18n: New file.
74400         * MODULES.html.sh (Internationalization functions): Add it.
74401
74402 2006-08-18  Bruno Haible  <bruno@clisp.org>
74403
74404         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74405         sys/statvfs.h. When getmntinfo was found, check its declaration and
74406         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74407
74408 2006-08-18  Bruno Haible  <bruno@clisp.org>
74409
74410         * m4/bison-i18n.m4: New file, from bison.
74411
74412 2006-08-18  Bruno Haible  <bruno@clisp.org>
74413
74414         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74415         (ME_DUMMY): Treat "kernfs" as a dummy.
74416         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74417
74418 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74419
74420         Update from coreutils.
74421
74422         2006-08-15  Jim Meyering  <jim@meyering.net>
74423
74424         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74425
74426         2006-01-17  Jim Meyering  <jim@meyering.net>
74427
74428         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74429
74430         2006-01-11  Jim Meyering  <jim@meyering.net>
74431
74432         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74433         Check for the lchmod function.
74434
74435 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74436
74437         Update from coreutils.
74438
74439         * lib/__fpending.h: Add copyright notice.
74440         * lib/fprintftime.h: Likewise.
74441         * lib/savedir.c: Use (C) in copyright notice.
74442         * lib/savedir.h: Likewise.
74443
74444         2006-08-15  Jim Meyering  <jim@meyering.net>
74445
74446         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74447         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74448         in support of the EXPECTED_ERRNO macro.
74449         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74450         definitions.  Instead, define the appropriate symbols and include
74451         "at-func.c".
74452         * lib/mkdirat.c (mkdirat): Likewise.
74453         * lib/fchmodat.c (fchmodat): Likewise.
74454         (ENOSYS): Remove definition.
74455         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74456         it.  Don't include "unistd--.h" -- it wasn't ever used.
74457
74458         2006-01-17  Jim Meyering  <jim@meyering.net>
74459
74460         Rewrite fts.c not to change the current working directory,
74461         by using openat, fstatat, fdopendir, etc..
74462
74463         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74464         (HAVE_OPENAT_SUPPORT): Define.
74465         [_LIBC] (fchdir): Don't undef or define; no longer used.
74466         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74467         Now, this `function' always succeeds, and consumes its file descriptor
74468         parameter -- so callers must not close such FDs.  Update callers.
74469         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74470         (diropen): Add parameter, SP.  Adjust all callers.
74471         Implement using diropen_fd, rather than open.
74472         (fts_open): Initialize new member, fts_cwd_fd.
74473         Remove fts_rft-setting code.
74474         (fts_close): Close fts_cwd_fd, if necessary.
74475         (__opendir2): Define in terms of opendir or opendirat,
74476         depending on whether the FST_NOCHDIR flag is set.
74477         (fts_build): Since fts_safe_changedir consumes its FD, and since
74478         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74479         and close the dup'd file descriptor upon failure.
74480         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74481         (fts_safe_changedir): Tweak semantics to reflect that this function
74482         now calls cwd_advance_fd and hence consumes its FD argument.
74483         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74484         [struct FTS] (fts_rft): Remove now-unused member.
74485         [struct FTS] (fts_cycle.state): Improve comment.
74486
74487         * lib/openat.c (openat_needs_fchdir): New function.
74488         * lib/openat.h (openat_needs_fchdir): Declare it.
74489
74490 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74491
74492         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74493         Problem and fix reported by Pádraig Brady in
74494         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74495
74496 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74497
74498         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74499
74500 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74501
74502         * lib/memcoll.c (memcoll): Optimize for the common case where the
74503         arguments are bytewise equal.
74504
74505 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74506
74507         * doc/regexprops-generic.texi: Add a copyright notice.
74508
74509 2006-08-15  Bruno Haible  <bruno@clisp.org>
74510
74511         * modules/tmpdir (License): Change to LGPL.
74512
74513 2006-08-15  Bruno Haible  <bruno@clisp.org>
74514
74515         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74516         module.
74517
74518 2006-08-14  Simon Josefsson  <jas@extundo.com>
74519
74520         * config/srclist.txt: Add gnupload.
74521
74522 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74523
74524         Change copyright notice from LGPL 2 to GPL 2, since that's the
74525         standard form used in the gnulib repository.
74526         * tests/test-lock.c: Likewise.
74527         * tests/test-stdint.c: Likewise.
74528         * tests/test-tls.c: Likewise.
74529
74530         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74531         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74532         Add copyright notice.
74533
74534         * check-module: Add copyright notice.  Output a copyright
74535         notice if "--version" is specified.
74536         * modules/COPYING: New file.
74537         * tests/test-getaddrinfo.c: Add copyright notice.
74538         * tests/test-verify.c: Likewise.
74539
74540 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74541
74542         Change copyright notice from LGPL 2 to GPL 2, since that's the
74543         standard form used in the gnulib repository.
74544         * lib/lock.c: LGPL -> GPL.
74545         * lib/lock.h: Likewise.
74546         * lib/strnlen1.c: Likewise.
74547         * lib/strnlen1.h: Likewise.
74548         * lib/tls.c: Likewise.
74549         * lib/tls.h: Likewise.
74550         * lib/tmpdir.c: Likewise.
74551
74552         * lib/TODO: Remove; this belongs only in coreutils.
74553
74554 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74555
74556         Add copyright notices to long-enough files that lack them, since
74557         otherwise the files aren't clearly free.  Use the same notice that
74558         getdate.texi already uses.
74559         * doc/alloca-opt.texi: Add copyright notice.
74560         * doc/alloca.texi: Likewise.
74561         * doc/ctime.texi: Likewise.
74562         * doc/functions.texi: Likewise.
74563         * doc/gcd.texi: Likewise.
74564         * doc/gnulib-tool.texi: Likewise.
74565         * doc/inet_ntoa.texi: Likewise.
74566         * doc/visibility.texi: Likewise.
74567
74568         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74569         * doc/quote.texi: Add copyright notice.
74570
74571         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74572         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74573         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74574         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74575         is now obsolete, and give a pointer to the Sun list.
74576         Add copyright notice.
74577
74578 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74579
74580         * config/srclistvars.sh: Add copyright notice.
74581
74582 2006-08-14  Eric Blake  <ebb9@byu.net>
74583
74584         Import the following change from libc:
74585
74586         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74587
74588         Upstream bug 2997.
74589         * lib/misc/error.c: Add space between program name and message if file
74590         name is missing.
74591
74592 2006-08-12  Karl Berry  <karl@gnu.org>
74593
74594         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74595         remove, these originate in gnulib now.
74596
74597 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74598
74599         * doc/Makefile (standards.info standards.html standards.dvi):
74600         Also depend on make-stds.texi.
74601
74602 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74603
74604         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74605         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74606
74607         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74608         in wchar_t.  Problem reported by Eric Blake.
74609
74610         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74611         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74612         Also, help the compiler to keep LEN in a register.
74613
74614 2006-08-11  Eric Blake  <ebb9@byu.net>
74615
74616         * users.txt: Sort.  Add tar.
74617
74618 2006-08-11  Bruno Haible  <bruno@clisp.org>
74619
74620         * users.txt: New file.
74621
74622 2006-08-11  Bruno Haible  <bruno@clisp.org>
74623
74624         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74625         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74626
74627 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74628
74629         * modules/snprintf (Depends-on): Remove minmax.
74630         (Maintainer): Add self and Bruno.
74631
74632 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74633
74634         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74635         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74636         (EOVERFLOW): Define if the system does not.
74637         Do not include "minmax.h"; it wasn't used.
74638         (snprintf): Don't assume size_t promotes to an unsigned type.
74639         Fix bug when generated string was too long for the buffer: the
74640         buffer's contents are supposed to be the initial prefix of the
74641         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74642         exceeds INT_MAX; do the check ourselves.
74643
74644         Import the following changes from libc:
74645
74646         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74647
74648         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74649         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74650         set wc to the byte which couldn't be converted.
74651         (re_string_reconstruct): Don't clear valid_raw_len before calling
74652         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74653         tip_context using re_string_context_at.
74654
74655         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74656
74657         * lib/posix/regex.h: g++ still cannot handled [restrict].
74658
74659         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74660
74661         * lib/posix/regex.h: Remove special handling for VMS.
74662
74663 2006-08-10  Jim Meyering  <jim@meyering.net>
74664
74665         * modules/same-inode: New module.
74666         * modules/dev-ino: New module.
74667         * modules/cycle-check: Depend on these modules, rather than simply
74668         including their .h files.
74669         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74670         required via m4/cycle-check.m4.
74671         * modules/same: Depend on new same-inode module, rather than
74672         including same-inode.h.
74673         * modules/chdir-safer: New file.
74674
74675         * modules/chown (Depends-on): Add stat-macros.
74676
74677 2006-08-10  Jim Meyering  <jim@meyering.net>
74678
74679         * m4/cycle-check.m4: New file.
74680         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74681         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74682
74683 2006-08-10  Eric Blake  <ebb9@byu.net>
74684
74685         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74686         in from original proposal.
74687
74688 2006-08-10  Eric Blake  <ebb9@byu.net>
74689         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74690
74691         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74692         namespace.
74693
74694 2006-08-10  Bruno Haible  <bruno@clisp.org>
74695
74696         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74697         as well.
74698
74699 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74700
74701         Sync from coreutils.
74702
74703         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74704
74705         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74706         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74707
74708 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74709
74710         * modules/restrict: Remove; no longer needed now that we assume
74711         Autoconf 2.59 or later.
74712         * MODULES.html.sh: Remove 'restrict'.
74713         * modules/argp (Depends-on): Remove 'restrict'.
74714         * modules/base64 (Depends-on): Likewise.
74715         * modules/gc (Depends-on): Likewise.
74716         * modules/getaddrinfo (Depends-on): Likewise.
74717         * modules/glob (Depends-on): Likewise.
74718         * modules/inet_ntop (Depends-on): Likewise.
74719         * modules/inet_pton (Depends-on): Likewise.
74720         * modules/memxor (Depends-on): Likewise.
74721         * modules/regex (Depends-on): Likewise.
74722         * modules/strtok_r (Depends-on): Likewise.
74723         * modules/time_r (Depends-on): Likewise.
74724
74725 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74726
74727         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74728         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74729         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74730         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74731         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74732         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74733         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74734         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74735
74736         Merge from coreutils.
74737         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74738         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74739         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74740         * m4/time_r.m4 (gl_TIME_R): Likewise.
74741
74742 2006-08-09  Karl Berry  <karl@gnu.org>
74743
74744         * config/srclist.txt: no more gettext-tools, per Bruno.
74745
74746 2006-08-08  Eric Blake  <ebb9@byu.net>
74747
74748         * modules/verror: New module.
74749         * MODULES.html.sh: Document it.
74750
74751 2006-08-08  Eric Blake  <ebb9@byu.net>
74752
74753         * lib/verror.h, lib/verror.c: New files.
74754
74755 2006-08-08  Eric Blake  <ebb9@byu.net>
74756
74757         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74758         verror_at_line output complies with GNU Coding Standards even when
74759         file is NULL.
74760
74761 2006-08-07  Bruno Haible  <bruno@clisp.org>
74762
74763         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74764         versions of AIX.
74765         Reported by Ralf Wildenhues.
74766
74767 2006-08-07  Bruno Haible  <bruno@clisp.org>
74768
74769         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74770         in an AC_DEFUN. Needed so that the autoconf snippets can use
74771         AC_REQUIRE.
74772
74773 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74774
74775         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74776         Initialize pkgdata_DATA.
74777         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74778         overriding it.
74779
74780 2006-08-06  Eric Blake  <ebb9@byu.net>
74781
74782         * lib/error.h: Fold in some upstream changes from glibc.
74783         * lib/error.c: Likewise.
74784
74785 2006-08-04  Bruno Haible  <bruno@clisp.org>
74786
74787         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74788         Make the mostlyclean-local rule depend on mostlyclean-generic.
74789         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74790
74791 2006-07-31  Bruno Haible  <bruno@clisp.org>
74792
74793         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74794         <stdlib.h>, <string.h>.
74795
74796 2006-07-30  Bruno Haible  <bruno@clisp.org>
74797
74798         * modules/readlink (License): Change to LGPL.
74799
74800 2006-07-30  Bruno Haible  <bruno@clisp.org>
74801
74802         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74803         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74804         set PKGDATADIR to point to it.
74805
74806 2006-07-30  Bruno Haible  <bruno@clisp.org>
74807
74808         * modules/csharpexec (configure.ac): Comment out macro invocation.
74809         * modules/javaexec (configure.ac): Likewise.
74810         * modules/javacomp-script (configure.ac): Likewise.
74811
74812         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74813
74814 2006-07-30  Bruno Haible  <bruno@clisp.org>
74815
74816         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74817         linked-list.
74818
74819 2006-07-30  Bruno Haible  <bruno@clisp.org>
74820
74821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74822
74823 2006-07-30  Bruno Haible  <bruno@clisp.org>
74824
74825         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74826         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
74827         get removed.
74828
74829 2006-07-29  Bruno Haible  <bruno@clisp.org>
74830
74831         Make it possible for gnulib-tool to work with locally modified or
74832         augmented gnulib repositories.
74833         * gnulib-tool (func_usage): Document --local-dir option.
74834         (local_gnulib_dir): New variable.
74835         Handle --local-dir option.
74836         (func_lookup_file): New function.
74837         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
74838         (func_get_description, func_get_filelist, func_get_description,
74839         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
74840         func_get_automake_snippet, func_get_include_directive,
74841         func_get_license, func_get_maintainer): Use func_lookup_file.
74842         (func_import, func_create_testdir): Use func_lookup_file.
74843
74844 2006-07-29  Bruno Haible  <bruno@clisp.org>
74845
74846         * modules/setenv (Depends-on): Add unistd.
74847
74848 2006-07-29  Bruno Haible  <bruno@clisp.org>
74849
74850         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
74851
74852 2006-07-29  Bruno Haible  <bruno@clisp.org>
74853
74854         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
74855
74856 2006-07-29  Bruno Haible  <bruno@clisp.org>
74857
74858         * gnulib-tool (import, update): If there is no Makefile.am, look at
74859         aclocal.m4, instead of bailing out.
74860
74861 2006-07-29  Bruno Haible  <bruno@clisp.org>
74862
74863         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
74864         Categorize the options by when they are useful.
74865
74866 2006-07-29  Bruno Haible  <bruno@clisp.org>
74867
74868         * gnulib-tool (func_usage): Document option --no-libtool.
74869         Handle option --no-libtool.
74870         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
74871         for changed semantics of $libtool variable.
74872         (func_import): Likewise. If libtool is not used, show this through
74873         an option --no-libtool.
74874         (func_create_testdir): Update.
74875
74876 2006-07-29  Bruno Haible  <bruno@clisp.org>
74877
74878         * gnulib-tool (func_import): Extend error message about missing
74879         --doc-base.
74880
74881 2006-07-29  Bruno Haible  <bruno@clisp.org>
74882
74883         * gnulib-tool (func_import): Don't create the $docbase directory if
74884         there is no file to store there.
74885
74886 2006-07-29  Bruno Haible  <bruno@clisp.org>
74887
74888         * gnulib-tool (autoconf_minversion): If a --dir option is given and
74889         relevant, look for configure.ac there, not in the current directory.
74890         Also use a simple search for AC_PREREQ, not "autoconf --trace".
74891
74892 2006-07-29  Bruno Haible  <bruno@clisp.org>
74893
74894         * gnulib-tool (SORT): New variable.
74895         (func_usage): Undocument --assume-autoconf option.
74896         Remove --assume-autoconf option handling.
74897         (autoconf_minversion): Determine from the contents of configure.ac.
74898         (func_import): Remove autoconf_minversion handling.
74899         Suggested by Eric Blake.
74900
74901 2006-07-29  Bruno Haible  <bruno@clisp.org>
74902
74903         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
74904
74905 2006-07-29  Bruno Haible  <bruno@clisp.org>
74906
74907         * config/srclist.txt (*setenv.[ch]): Remove rules.
74908
74909 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74910
74911         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
74912
74913 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74914
74915         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
74916         arpa/inet.h.
74917
74918 2006-07-28  Simon Josefsson  <jas@extundo.com>
74919
74920         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
74921         * modules/inet_pton (Depends-on): Likewise.
74922
74923 2006-07-28  Simon Josefsson  <jas@extundo.com>
74924
74925         * m4/netinet_in_h.m4: New file.
74926
74927 2006-07-28  Simon Josefsson  <jas@extundo.com>
74928
74929         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
74930         #include's.
74931
74932 2006-07-28  Simon Josefsson  <jas@extundo.com>
74933
74934         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
74935         #include's.
74936
74937 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
74938
74939         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
74940         setgid on directories only if they set these bits.
74941         * lib/modechange.h: Remove obsolete comment about masks.
74942
74943 2006-07-28  Eric Blake  <ebb9@byu.net>
74944
74945         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
74946         macro expansion.
74947
74948 2006-07-28  Bruno Haible  <bruno@clisp.org>
74949
74950         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
74951
74952 2006-07-28  Bruno Haible  <bruno@clisp.org>
74953
74954         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
74955
74956 2006-07-28  Bruno Haible  <bruno@clisp.org>
74957
74958         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74959         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74960         Define fallbacks.
74961         Avoids link error on FreeBSD 4.x.
74962         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74963
74964         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
74965         encoding.
74966         * lib/mbswidth.c (iswcntrl): Likewise.
74967
74968 2006-07-27  Bruno Haible  <bruno@clisp.org>
74969
74970         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
74971         test.
74972
74973 2006-07-27  Bruno Haible  <bruno@clisp.org>
74974
74975         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
74976         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
74977         defined.
74978
74979 2006-07-26  Eric Blake  <ebb9@byu.net>
74980
74981         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
74982
74983 2006-07-26  Eric Blake  <ebb9@byu.net>
74984
74985         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
74986         like mingw that lack mkstemp.
74987         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
74988         avoid compilation warning on mingw.
74989
74990 2006-07-26  Bruno Haible  <bruno@clisp.org>
74991
74992         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
74993         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
74994         INT_FAST*_MIN, INTPTR_MIN.
74995
74996 2006-07-25  Bruno Haible  <bruno@clisp.org>
74997
74998         * modules/version-etc (Depends-on): Add stdarg.
74999
75000 2006-07-25  Bruno Haible  <bruno@clisp.org>
75001
75002         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75003         complex commands.
75004
75005 2006-07-25  Bruno Haible  <bruno@clisp.org>
75006
75007         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75008         defined in <stdarg.h> or config.h.
75009
75010 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75011
75012         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75013         (gl_STDIO_SAFER): Remove.
75014
75015 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75016
75017         * MODULES.html.sh (File stream based Input/Output):
75018         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75019         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75020         * modules/fopen-safer, modules/tmpfile-safer: New files.
75021         * modules/stdio-safer: Remove.
75022
75023 2006-07-24  Bruno Haible  <bruno@clisp.org>
75024
75025         * modules/tmpdir: New file.
75026         * MODULES.html.sh (File system functions): Add it.
75027
75028 2006-07-24  Bruno Haible  <bruno@clisp.org>
75029
75030         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75031         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75032
75033 2006-07-24  Bruno Haible  <bruno@clisp.org>
75034
75035         * modules/clean-temp: New file.
75036
75037 2006-07-24  Bruno Haible  <bruno@clisp.org>
75038
75039         * m4/tmpdir.m4: New file, from GNU gettext.
75040
75041 2006-07-24  Bruno Haible  <bruno@clisp.org>
75042
75043         * lib/tmpdir.h: New file, from GNU gettext.
75044         * lib/tmpdir.c: New file, from GNU gettext.
75045
75046 2006-07-24  Bruno Haible  <bruno@clisp.org>
75047
75048         * lib/clean-temp.h: New file, from GNU gettext.
75049         * lib/clean-temp.c: New file, from GNU gettext.
75050
75051 2006-07-23  Eric Blake  <ebb9@byu.net>
75052
75053         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75054         (Depends-on): Add binary-io.
75055
75056 2006-07-23  Eric Blake  <ebb9@byu.net>
75057
75058         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75059
75060 2006-07-23  Eric Blake  <ebb9@byu.net>
75061
75062         * lib/tmpfile-safer.c: New file.
75063         * lib/stdio-safer.h (fopen_safer): Add prototype.
75064         * lib/stdio--.h (tmpfile): Make safer.
75065
75066 2006-07-23  Bruno Haible  <bruno@clisp.org>
75067
75068         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75069         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75070         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75071         gl_linked_remove_at): Use it.
75072
75073 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75074         and Simon Josefsson <jas@extundo.com>
75075
75076         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75077
75078         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75079
75080 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75081
75082         * modules/close-stream: New file.
75083         * modules/closeout (Description): Make it clear that it exits
75084         with a diagnostic on error.
75085         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75086         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75087
75088 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75089
75090         * m4/close-stream.m4: New file.
75091
75092 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75093
75094         * lib/close-stream.c, lib/close-stream.h: New files.
75095
75096 2006-07-22  Bruno Haible  <bruno@clisp.org>
75097
75098         Merge from GNU gettext 0.15.
75099
75100         2006-05-01  Bruno Haible  <bruno@clisp.org>
75101
75102                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75103
75104         2006-07-22  Bruno Haible  <bruno@clisp.org>
75105
75106                 * modules/javaversion: New file.
75107                 * MODULES.html.sh (Java): Add javaversion.
75108
75109         2006-03-12  Bruno Haible  <bruno@clisp.org>
75110
75111                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75112
75113         2005-12-04  Bruno Haible  <bruno@clisp.org>
75114
75115                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75116                 (untested).
75117
75118         2006-06-21  Bruno Haible  <bruno@clisp.org>
75119
75120                 Avoid warnings from recent versions of mcs.
75121                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75122                 -o, -L, -r any more. Use options documented since mcs-1.0
75123                 instead. Similarly for -g.
75124
75125         2005-12-04  Bruno Haible  <bruno@clisp.org>
75126
75127                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75128                 .resources, not .resource.
75129
75130         2005-07-09  Bruno Haible  <bruno@clisp.org>
75131
75132                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75133                 add a .dll suffix.
75134                 Reported by Mark Junker <mjscod@gmx.de>.
75135
75136         2006-07-22  Bruno Haible  <bruno@clisp.org>
75137
75138                 * modules/gettext: Upgrade to gettext-0.15.
75139                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75140                 m4/visibility.m4.
75141                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75142
75143 2006-07-22  Bruno Haible  <bruno@clisp.org>
75144
75145         Merge from GNU gettext 0.15.
75146
75147         2006-03-25  Bruno Haible  <bruno@clisp.org>
75148
75149                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75150
75151         2006-07-21  Bruno Haible  <bruno@clisp.org>
75152
75153                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75154                 "1.1".
75155
75156         2006-05-09  Bruno Haible  <bruno@clisp.org>
75157
75158                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75159                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75160                 for the conftestver execution.
75161
75162         2006-05-01  Bruno Haible  <bruno@clisp.org>
75163
75164                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75165                 optional target-version argument. Verify that the compiler
75166                 groks source of the specified source-version, or add -source
75167                 option as necessary. Verify that the compiler produces
75168                 bytecode in the specified target-version, or add -target and
75169                 -source options as necessary. Make the result of the test
75170                 available as variable CONF_JAVAC. Also log error output in
75171                 config.log.
75172
75173         2006-03-11  Bruno Haible  <bruno@clisp.org>
75174
75175                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75176
75177         2006-05-09  Bruno Haible  <bruno@clisp.org>
75178
75179                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75180                 CLASSPATH_SEPARATOR to a semicolon.
75181
75182         2006-03-12  Bruno Haible  <bruno@clisp.org>
75183
75184                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75185                 available as variable CONF_JAVA, for subsequent autoconf
75186                 tests. Also log error output in config.log.
75187
75188         2006-07-19  Bruno Haible  <bruno@clisp.org>
75189
75190                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75191                 that getline works on glibc2 systems. Needed to avoid trouble
75192                 in relocatable.c.
75193                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75194
75195         2005-12-04  Bruno Haible  <bruno@clisp.org>
75196
75197                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75198                 launcher (untested).
75199
75200         2005-12-04  Bruno Haible  <bruno@clisp.org>
75201
75202                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75203
75204         2006-07-22  Bruno Haible  <bruno@clisp.org>
75205
75206                 * gettext.m4: Update from GNU gettext-0.15.
75207                 * nls.m4: Likewise.
75208                 * po.m4: Likewise.
75209                 * inttypes-pri.m4: Likewise.
75210                 * inttypes-h.m4: Renamed from inttypes.m4.
75211                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75212
75213 2006-07-22  Bruno Haible  <bruno@clisp.org>
75214
75215         Merge from GNU gettext 0.15.
75216
75217         2005-07-05  Bruno Haible  <bruno@clisp.org>
75218
75219                 * printf-args.c (printf_fetchargs): Work around broken
75220                 definition of wint_t on mingw.
75221
75222         2005-02-12  Bruno Haible  <bruno@clisp.org>
75223
75224                 * xallocsa.h: Add extern "C" for C++.
75225
75226         2006-05-17  Bruno Haible  <bruno@clisp.org>
75227
75228                 Cygwin portability.
75229                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75230
75231         2006-04-30  Bruno Haible  <bruno@clisp.org>
75232
75233                 * progreloc.c: Include <mach-o/dyld.h> if available.
75234                 (find_executable): Use _NSGetExecutablePath when possible.
75235
75236         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75237
75238                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75239                 function.
75240
75241         2005-12-29  Bruno Haible  <bruno@clisp.org>
75242
75243                 * progreloc.c (set_program_name_and_installdir): Fix
75244                 compilation error.
75245
75246         2005-12-04  Bruno Haible  <bruno@clisp.org>
75247
75248                 Cygwin portability.
75249                 * progreloc.c: Include <windows.h> also on Cygwin.
75250                 (find_executable): Add support for Cygwin.
75251                 (set_program_name_and_installdir): Handle also platforms with
75252                 nonempty EXEEXT.
75253
75254         2006-07-11  Bruno Haible  <bruno@clisp.org>
75255
75256                 * javacomp.c: Fix a comment.
75257                 Reported by Jim Meyering.
75258
75259         2006-04-30  Bruno Haible  <bruno@clisp.org>
75260
75261                 * javacomp.h (compile_java_class): Add source_version,
75262                 target_version arguments.
75263                 * javacomp.c: Rewritten to choose only a compiler that
75264                 respects the specified source_version and target_version.
75265
75266         2006-06-27  Bruno Haible  <bruno@clisp.org>
75267
75268                 Assume correct S_ISDIR macro.
75269                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75270
75271         2006-07-22  Bruno Haible  <bruno@clisp.org>
75272
75273                 * javaversion.h: New file, from GNU gettext.
75274                 * javaversion.c: New file, from GNU gettext.
75275                 * javaversion.java: New file, from GNU gettext.
75276                 * javaversion.class: New file, from GNU gettext.
75277
75278         2006-05-17  Bruno Haible  <bruno@clisp.org>
75279
75280                 Cygwin portability.
75281                 * javaexec.c (execute_java_class): Test for jview program
75282                 also on Cygwin.
75283
75284         2006-04-09  Bruno Haible  <bruno@clisp.org>
75285
75286                 * fatal-signal.c: Don't include string.h.
75287                 (at_fatal_signal): Use a copying loop instead of memcpy.
75288
75289         2005-12-04  Bruno Haible  <bruno@clisp.org>
75290
75291                 * csharpexec.c: Add support for 'clix' launcher (untested).
75292                 (execute_csharp_using_sscli): New function.
75293                 (execute_csharp_program): Call it.
75294
75295         2006-06-21  Bruno Haible  <bruno@clisp.org>
75296
75297                 Avoid warnings from recent versions of mcs.
75298                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75299                 -o, -L, -r any more. Use options documented since mcs-1.0
75300                 instead. Similarly for -g.
75301
75302         2005-07-09  Bruno Haible  <bruno@clisp.org>
75303
75304                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75305                 add a .dll suffix.
75306                 Reported by Mark Junker <mjscod@gmx.de>.
75307
75308         2006-06-17  Bruno Haible  <bruno@clisp.org>
75309
75310                 * config.charset: Update for NetBSD 3.0.
75311
75312         2006-05-17  Bruno Haible  <bruno@clisp.org>
75313
75314                 Cygwin portability.
75315                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75316
75317         2006-05-16  Bruno Haible  <bruno@clisp.org>
75318
75319                 * localcharset.c [CYGWIN]: Include <windows.h>.
75320                 (get_charset_aliases): For Cygwin, return the same CPxxx
75321                 aliases list as under WIN32.
75322                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75323                 the environment variables. Fall back to GetACP().
75324
75325         2006-04-05  Bruno Haible  <bruno@clisp.org>
75326
75327                 * config.charset: Update Juan Manuel Guerrero's address.
75328
75329         2005-02-12  Bruno Haible  <bruno@clisp.org>
75330
75331                 * allocsa.h: Add extern "C" for C++.
75332
75333         2005-02-10  Bruno Haible  <bruno@clisp.org>
75334
75335                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75336                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75337
75338         2006-07-22  Bruno Haible  <bruno@clisp.org>
75339
75340                 * gettext.h: Update to GNU gettext-0.15.
75341
75342 2006-07-22  Bruno Haible  <bruno@clisp.org>
75343
75344         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75345         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75346         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75347
75348 2006-07-21  Eric Blake  <ebb9@byu.net>
75349
75350         * modules/stdlib-safer: New file.
75351         * MODULES.html.sh (File stream based Input/Output): Add
75352         stdlib-safer.
75353
75354 2006-07-21  Eric Blake  <ebb9@byu.net>
75355
75356         * lib/stdlib-safer.h: New file from coreutils, required by
75357         stdlib--.h.
75358
75359 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75360
75361         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75362
75363 2006-07-20  Bruno Haible  <bruno@clisp.org>
75364
75365         * gnulib-tool: Recognize new option --assume-autoconf.
75366         (autoconf_minversion): New variable.
75367         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75368
75369 2006-07-20  Bruno Haible  <bruno@clisp.org>
75370
75371         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75372
75373 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75374
75375         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75376         Reindent and repaginate.
75377
75378 2006-07-19  Derek Price  <derek@ximbiot.com>
75379
75380         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75381         Correct grammar.
75382
75383 2006-07-17  Bruno Haible  <bruno@clisp.org>
75384
75385         * modules/list: New file.
75386         * modules/array-list: New file.
75387         * modules/carray-list, modules/carray-list-tests: New files.
75388         * modules/linked-list, modules/linked-list-tests: New files.
75389         * modules/avltree-list, modules/avltree-list-tests: New files.
75390         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75391         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75392         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75393         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75394         * modules/oset: New file.
75395         * modules/array-oset: New file.
75396         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75397         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75398         * tests/test-carray_list.c: New file.
75399         * tests/test-linked_list.c: New file.
75400         * tests/test-avltree_list.c: New file.
75401         * tests/test-rbtree_list.c: New file.
75402         * tests/test-linkedhash_list.c: New file.
75403         * tests/test-avltreehash_list.c: New file.
75404         * tests/test-rbtreehash_list.c: New file.
75405         * tests/test-avltree_oset.c: New file.
75406         * tests/test-rbtree_oset.c: New file.
75407         * MODULES.html.sh (Container data structures): New section.
75408
75409 2006-07-17  Bruno Haible  <bruno@clisp.org>
75410
75411         * m4/gl_list.m4: New file.
75412
75413 2006-07-17  Bruno Haible  <bruno@clisp.org>
75414
75415         * lib/gl_list.h: New file.
75416         * lib/gl_list.c: New file.
75417         * lib/gl_array_list.h: New file.
75418         * lib/gl_array_list.c: New file.
75419         * lib/gl_carray_list.h: New file.
75420         * lib/gl_carray_list.c: New file.
75421         * lib/gl_linked_list.h: New file.
75422         * lib/gl_linked_list.c: New file.
75423         * lib/gl_anylinked_list1.h: New file.
75424         * lib/gl_anylinked_list2.h: New file.
75425         * lib/gl_avltree_list.h: New file.
75426         * lib/gl_avltree_list.c: New file.
75427         * lib/gl_anyavltree_list1.h: New file.
75428         * lib/gl_anyavltree_list2.h: New file.
75429         * lib/gl_rbtree_list.h: New file.
75430         * lib/gl_rbtree_list.c: New file.
75431         * lib/gl_anyrbtree_list1.h: New file.
75432         * lib/gl_anyrbtree_list2.h: New file.
75433         * lib/gl_anytree_list1.h: New file.
75434         * lib/gl_anytree_list2.h: New file.
75435         * lib/gl_linkedhash_list.h: New file.
75436         * lib/gl_linkedhash_list.c: New file.
75437         * lib/gl_anyhash_list1.h: New file.
75438         * lib/gl_anyhash_list2.h: New file.
75439         * lib/gl_avltreehash_list.h: New file.
75440         * lib/gl_avltreehash_list.c: New file.
75441         * lib/gl_rbtreehash_list.h: New file.
75442         * lib/gl_rbtreehash_list.c: New file.
75443         * lib/gl_anytreehash_list1.h: New file.
75444         * lib/gl_anytreehash_list2.h: New file.
75445
75446         * lib/gl_oset.h: New file.
75447         * lib/gl_oset.c: New file.
75448         * lib/gl_array_oset.h: New file.
75449         * lib/gl_array_oset.c: New file.
75450         * lib/gl_avltree_oset.h: New file.
75451         * lib/gl_avltree_oset.c: New file.
75452         * lib/gl_rbtree_oset.h: New file.
75453         * lib/gl_rbtree_oset.c: New file.
75454         * lib/gl_anytree_oset.h: New file.
75455
75456 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75457
75458         * m4/mkancesdirs.m4: New file.
75459         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75460         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75461         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75462         it.
75463
75464 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75465
75466         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75467         * lib/mkancesdirs.h: New files.
75468         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75469         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75470         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75471         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75472         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75473         callers changed.  Revamp internals significantly, by not
75474         attempting to create directories that are temporarily more
75475         permissive than the final results.  Do not attempt to use
75476         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75477         This removes some race conditions, fixes some bugs, and simplifies
75478         things.  Use new dirchownmod function to do owner and mode changes.
75479         * lib/mkdir-p.h: Likewise.
75480         * lib/modechange.c (octal_to_mode): New function.
75481         (struct mode_change): New member mentioned.
75482         (make_node_op_equals): New arg mentioned.  All callers changed.
75483         (mode_compile): Keep track of which mode bits the user has explicitly
75484         mentioned.
75485         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75486         New arg PMODE_BITS, to keep track of which mode bits the user
75487         mentioned; it treats S_ISUID and S_ISGID speciall.
75488         All callers changed.
75489         * lib/modechange.h: Likewise.
75490
75491 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75492
75493         * MODULES.html.sh: Add mkancestors.
75494         * modules/mkancesdirs: New module.
75495         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75496         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75497         The chdir-safer and afs files are now orphans; I'll remove them
75498         unless someone speaks up.
75499         Add lib/dirchownmod.c, lib/dirchownmod.h.
75500         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75501         Add lchown, mkancesdirs.
75502         (Maintainer): Add self.
75503
75504 2006-07-15  Karl Berry  <karl@gnu.org>
75505
75506         * gnulib-tool: help message wording/arrangement.
75507
75508 2006-07-14  Simon Josefsson  <jas@extundo.com>
75509
75510         * doc/gnulib.texi (Libtool and Windows): New section.
75511
75512 2006-07-12  Simon Josefsson  <jas@extundo.com>
75513
75514         * modules/gendocs (License): Fix license, approved by Karl.
75515
75516 2006-07-12  Eric Blake  <ebb9@byu.net>
75517
75518         * MODULES.html.sh: Add gendocs.
75519
75520 2006-07-11  Eric Blake  <ebb9@byu.net>
75521
75522         * modules/fdl: New module, to install doc/fdl.texi.
75523         * MODULES.html.sh: Add new section for documentation modules.
75524         * gnulib-tool: Avoid space-tab.
75525         (--doc-base): New option, to manage files from doc.
75526
75527 2006-07-11  Eric Blake  <ebb9@byu.net>
75528
75529         * m4/absolute-header.m4: Fix comments to match recent change.
75530
75531 2006-07-11  Eric Blake  <ebb9@byu.net>
75532
75533         * gnulib-tool: List --doc-base before --tests-base.
75534
75535 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75536
75537         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75538
75539 2006-07-11  Bruno Haible  <bruno@clisp.org>
75540
75541         * README: Mention where to put documentation.
75542
75543 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75544
75545         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75546
75547 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75548
75549         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75550         to stdint.m4.
75551
75552 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75553
75554         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75555         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75556         "no/such/file/stdint.h" when there is no such file, so that
75557         the resulting C code can be parsed by dodgy compilers.
75558         Problems reported by Bob Proulx.
75559
75560 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75561
75562         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75563         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75564         macros into the GNU _D_EXACT_NAMLEN.
75565         * lib/savedir.c:  Likewise.
75566         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75567
75568 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75569         and Paul Eggert  <eggert@cs.ucla.edu>
75570
75571         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75572         * m4/savedir.m4:
75573         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75574         macros into the GNU _D_EXACT_NAMLEN.
75575
75576 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75577
75578         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75579         around the absolute name, to work around a problem with the HP-UX
75580         11.23 native C compiler, reported by Bob Proulx.
75581
75582 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75583
75584         * doc/maintain.texi, make-stds.texi: Sync from
75585         <http://savannah.gnu.org/projects/gnustandards>.
75586
75587 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75588
75589         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75590
75591 2006-07-09  Jim Meyering  <jim@meyering.net>
75592
75593         * m4/glob.m4: Remove a doubled word in a comment.
75594
75595 2006-07-09  Jim Meyering  <jim@meyering.net>
75596
75597         * lib/argp-pv.c: Remove a doubled word in a comment.
75598         * lib/check-version.c (check_version): Likewise.
75599         * lib/javacomp.c (compile_java_class): Likewise.
75600
75601 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75602
75603         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75604         for the benefit of people using Autoconf 2.60.  If you want to
75605         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75606         (or m4/onceonly.m4, if pre-2.57) manually.
75607
75608 2006-07-08  Jim Meyering  <jim@meyering.net>
75609
75610         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75611         comment.
75612         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75613         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75614         comment.
75615
75616 2006-07-08  Jim Meyering  <jim@meyering.net>
75617
75618         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75619
75620 2006-07-07  Simon Josefsson  <jas@extundo.com>
75621
75622         * tests/test-crc.c: Change expected crc value, the test vector
75623         were probably computed using the old broken crc.c?
75624
75625 2006-07-06  Simon Josefsson  <jas@extundo.com>
75626
75627         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75628         now the canonical place for the M4 file).
75629
75630         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75631         from the sys_socket dependency now.
75632
75633         * modules/inet_pton (Files): Ditto.
75634
75635         * modules/inet_ntop (Files): Ditto.
75636
75637 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75638
75639         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75640         not gl_PREREQ_GETUSERSHELL.
75641
75642 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75643
75644         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75645         with only one argument, for Autoconf 2.60.
75646         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75647         expand to nothing, so add a shell command to avoid syntax error.
75648         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75649
75650 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75651
75652         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75653
75654 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75655
75656         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75657         no longer needed.  Check for isblank decl.
75658         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75659         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75660         of existence.
75661
75662 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75663
75664         * lib/getloadavg.c: Use __VMS, not VMS.
75665         * lib/getopt.c: Likewise.
75666         * lib/getpagesize.h: Likewise.
75667         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75668         and probably does not work.
75669
75670 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75671
75672         * lib/.cppi-disable: Add wcwidth.
75673         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75674         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75675         (ISGRAPH): Remove.  All uses changed to isgraph.
75676         (FOLD) [!defined _LIBC]: Remove special case.
75677         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75678         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75679         HAVE_ISBLANK.
75680         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75681         case.
75682
75683 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75684
75685         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75686         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75687         brackets.  Other minor changes to suppress some compiler
75688         warnings.
75689
75690 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75691         and Paul Eggert  <eggert@cs.ucla.edu>
75692
75693         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75694         of invoking obsolescent AC_HEADER_DIRENT macro.
75695         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75696         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75697         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75698         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75699         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75700         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75701         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75702         * m4/readdir.m4: Remove; no longer needed.
75703
75704 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75705         and Paul Eggert  <eggert@cs.ucla.edu>
75706
75707         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75708         Don't worry about this obsolete case any more.
75709         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75710         directories.
75711         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75712         worry about this obsolete case any more.
75713         * lib/fts.c: Likewise.
75714         * lib/getcwd.c: Likewise.
75715         * lib/glob.h: Likewise.
75716         * lib/savedir.c: Likewise.
75717
75718 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75721         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75722         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75723         needed.
75724         All uses removed.
75725         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75726         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75727         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75728         needed.
75729         * m4/getdate.m4 (gl_GETDATE): Likewise.
75730         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75731         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75732         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75733         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75734         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75735         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75736         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75737         needed.
75738
75739 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75740
75741         * lib/memcasecmp.c: Include <limits.h>.
75742         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75743         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75744         Don't assume isdigit succeeds only on '0' through '9'.
75745
75746 2006-07-05  Eric Blake  <ebb9@byu.net>
75747
75748         * modules/getaddrinfo (Depends-on): Add snprintf.
75749
75750 2006-07-05  Eric Blake  <ebb9@byu.net>
75751
75752         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75753         to avoid 'header present but could not be compiled' on cygwin.
75754
75755 2006-07-05  Eric Blake  <ebb9@byu.net>
75756
75757         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75758         missing from netdb.h.
75759         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75760
75761 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75762
75763         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75764         no longer needed.
75765         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75766         * m4/getdate.m4 (gl_GETDATE): Likewise.
75767         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75768         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75769         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75770         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75771         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75772
75773 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75774
75775         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75776         All uses of is_space replaced by isspace.
75777         * lib/exit.h: Don't talk about STDC_HEADERS.
75778         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75779         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75780         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75781         replaced by isprint etc.
75782         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75783         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75784         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75785         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75786         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75787         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75788
75789 2006-07-05  Bruno Haible  <bruno@clisp.org>
75790
75791         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75792         the function exists, before testing against AIX.
75793         Reported by Martin Lambers <marlam@marlam.de>.
75794
75795 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75796
75797         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75798         From Mark D. Baushke.
75799
75800 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75801
75802         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75803         to the absolute name, not just one, to bypass Sun C 5.8's
75804         "warning: #include of /usr/include/... may be non-portable".
75805
75806 2006-07-04  Eric Blake  <ebb9@byu.net>
75807
75808         * modules/dirname-tests: New test module.
75809         * tests/test-dirname.c: New file, replacing dirname.c
75810         TEST_DIRNAME section that was recently deleted.
75811
75812 2006-07-04  Bruno Haible  <bruno@clisp.org>
75813
75814         Assume ANSI C header files and <ctype.h> functions.
75815         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75816         (mbsnwidth): Use isprint, iscntrl instead.
75817
75818 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75819
75820         Merge from coreutils.
75821         * MODULES.html.sh: Add xstrtold.
75822         * modules/xstrtold: New file.
75823         * modules/cycle-check (Files): Add lib/same-inode.h.
75824         * modules/dirname (Files): Add m4/double-slash-root.m4.
75825         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
75826         * modules/mkdir-p (Files): Add lib/same-inode.h.
75827         * modules/same (Files): Add lib/same-inode.h.
75828
75829 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75830
75831         * m4/absolute-header.m4: Renamed from full-header-path.m4.
75832         This is to keep the terminology clean; POSIX talks about
75833         "absolute pathnames", not "full pathnames", but the GNU
75834         Coding Standards say to use "path" for something else;
75835         so use "absolute" to keep both sides happy.
75836         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
75837         Set gl_absolute_header, not gl_full_header_path.
75838         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
75839         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
75840         All uses changed.
75841
75842         Merge from coreutils.
75843
75844         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75845
75846         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
75847         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
75848         want to require the building of c-strtod.o.
75849         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
75850         needs -lm directly.
75851         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
75852
75853         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75854
75855         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
75856         --as-needed option if available.  Problem reported by Albert Chin in
75857         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
75858         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
75859         cc merely issues a bunch of annoying warnings for --as-needed
75860         (this problem was reported by Bob Proulx).  Also, try linking with
75861         -lm to detect a bug in binutils 2.16 (this problem was reported
75862         by Ralf Wildenhues).
75863
75864         2006-06-18  Jim Meyering  <jim@meyering.net>
75865
75866         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
75867         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
75868         macro.
75869         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
75870         also check for glibc-2.4's abort-inducing bug.
75871
75872         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
75873         Low-probability clean-up should be to use rmdir to get rid of
75874         the just-created directory, not unlink.
75875
75876         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
75877         configure fail, and request a bug report to inform us about it.
75878         Add a comment that, barring reports to the contrary, in 2007 we'll
75879         assume ftruncate is universally available.
75880
75881         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75882
75883         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
75884
75885         2006-03-12  Jim Meyering  <jim@meyering.net>
75886
75887         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
75888         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
75889         * m4/same.m4 (gl_SAME): Likewise.
75890         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
75891
75892         2006-03-11  Eric Blake  <ebb9@byu.net>
75893
75894         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
75895         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
75896         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
75897         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
75898
75899 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75900
75901         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
75902         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
75903         reported by Mark D. Baushke, one in
75904         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
75905
75906         Merge from coreutils.
75907
75908         * lib/.cppi-disable: Add stdint_.h.
75909         * lib/.cvsignore: Add stdint.h.
75910
75911         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75912
75913         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
75914         both double and long double versions.
75915         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
75916         * lib/xstrtold.c: New file.
75917         * lib/xstrtod.h (xstrtold): New decl.
75918
75919         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75920
75921         * lib/filemode.c (setst): Remove.
75922         (strmode): Rewrite to avoid setst.  This makes the code shorter,
75923         (arguably) clearer, and the generated code is a bit smaller on my
75924         Debian GNU/Linux stable x86 host.
75925
75926         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75927
75928         * lib/filemode.c: Include "filemode.h" first, to test the interface.
75929         Assume that filemode.h includes sys/types.h and sys/stat.h.
75930         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
75931         (ftypelet): Reorder to put common cases first, for efficiency.
75932         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
75933         to do 'M'.
75934         (strmode): Renamed from mode_string, and now stores 12 bytes instead
75935         of 10, for compatibility with FreeBSD.  All callers changed.
75936         (filemodestring): Now stores 12 bytes instead of 10, and sets file
75937         types that can't be deduced solely from st_mode.  First arg is now a
75938         const pointer.
75939         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
75940         (strmode): Renamed from mode_string.
75941         (filemodestring): New decl.
75942         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
75943         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
75944         needed.
75945         (S_ISPORT, S_ISWHT): New macros, if not already defined.
75946
75947         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75948
75949         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
75950         fsusage.h now does that.  Include fsusage.h first, to test interface.
75951         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
75952         at most one method (the old code could have generated decls that
75953         didn't conform to C89, not that this was ever exercised).
75954         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
75955
75956         2006-03-19  Jim Meyering  <jim@meyering.net>
75957
75958         Work even in a chroot where d_ino values for entries in "/"
75959         don't match the stat.st_ino values for the same names.
75960         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
75961         number, iterate through all entries again, using lstat instead.
75962         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
75963         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
75964
75965         * lib/getcwd.c (__getcwd): Clarify a comment.
75966         Use memcpy in place of a call to strcpy.
75967
75968         2006-03-12  Jim Meyering  <jim@meyering.net>
75969
75970         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
75971         matches that of the current directory (which we're about to chdir ".."
75972         out of), then save the dev-ino of the parent, instead.
75973
75974         * lib/same-inode.h (SAME_INODE): New file/macro.
75975         * lib/chdir-safer.c (SAME_INODE): Remove definition.
75976         Include "same-inode.h", instead.
75977         * lib/same.c: Likewise.
75978         * lib/cycle-check.h: Include "same-inode.h".
75979         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
75980         * lib/cycle-check.c (SAME_INODE): Remove definition.
75981         * lib/root-dev-ino.h: Include "same-inode.h".
75982
75983         2006-03-11  Eric Blake  <ebb9@byu.net>
75984
75985         * lib/same.c (same_name): s/base_name/last_component/
75986         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
75987         * lib/filenamecat.c (file_name_concat): Likewise.
75988
75989         2006-03-11  Eric Blake  <ebb9@byu.net>,
75990                     Paul Eggert  <eggert@cs.ucla.edu>
75991
75992         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
75993         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
75994         drive prefix.
75995         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
75996         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
75997         (last_component): New method.
75998         * lib/dirname.c (dir_len): Determine when drive letters need a
75999         subsequent slash.  Preserve // when it is special.
76000         (dir_name): Don't append dot when drive letter is absolute.
76001         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76002         * lib/basename.c (base_name): New semantics - malloc the result.
76003         Preserve // when it is special.  Preserve relative files that look
76004         like drive letters.
76005         (base_len): Preserve // when it is special.
76006         (last_component): New method, similar to old base_name semantics.
76007         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76008         base_name.  Strip redundant slashes from ///.
76009
76010 2006-07-03  Jim Meyering  <jim@meyering.net>
76011
76012         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76013         macro is used before the first cycle_check call.
76014
76015 2006-07-03  Eric Blake  <ebb9@byu.net>
76016
76017         * modules/dirname (Depends-on): Add xstrndup.
76018
76019 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76020
76021         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76022         test cases, so that config.log is a bit easier to follow.
76023
76024 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76025
76026         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76027         both are 64 bits, since this seems to be the tradition, and this
76028         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76029         we ever run into a host that prefers long long to long in this
76030         case, we'll need another configure-time test.  Problem reported by
76031         Jim Meyering.
76032
76033 2006-07-02  Eric Blake  <ebb9@byu.net>
76034
76035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76036
76037 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76038
76039         * modules/inttypes (Depends-on): No longer depends on stdint.
76040         * modules/stdint (Description): Say more about assumptions.
76041         Say that the fast types might differ.  Say macros are used.
76042         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76043         (Makefile.am): Revise list of substituted symbols to match
76044         new stdint.m4.
76045         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76046         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76047         * tests/test-stdint.c (verify_same_types)
76048         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76049         the code conforms to C99/C89.
76050         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76051         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76052
76053 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76054
76055         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76056         but fix a bug, by requiring at least 64 bits.
76057         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76058         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76059         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76060         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76061
76062         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76063         changes.  Make 2.59 a prerequisite.  Check and substitute for
76064         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76065         inttypes.h.  Do not use special include files; just use the
76066         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76067         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76068         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76069         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76070         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76071         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76072         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76073         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76074         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76075         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76076         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76077         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76078         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76079         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76080         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76081         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76082         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76083         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76084         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76085         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76086         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76087         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76088         not check for things that C99 does not require, e.g., int8_t.  If
76089         a test isn't needed unless <stdint.h> isn't working, and is
76090         unlikely to be needed for any other reason, then don't do it
76091         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76092         size_t, since we assume C89 freestanding at least.  Do not check
76093         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76094         the right thing even if the types are not defined.  Instead use:
76095         (gl_STDINT_TYPE_PROPERTIES): New macro.
76096         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76097         testing whether <sys/types.h> clashes, as Autoconf does this for
76098         us now.  All uses removed.
76099         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76100         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76101         (gl_CHECK_TYPE_SAME):
76102         Remove; no longer needed.
76103         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76104         exists, since we'll return 0 anyway in that case.
76105         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76106
76107 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76108
76109         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76110         possible collision with system files.
76111         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76112         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76113         WCHAR_MIN and WCHAR_MAX in this case.
76114         (<stddef.h>): Do not include; no longer needed.
76115         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76116         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76117         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76118         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76119         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76120         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76121         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76122         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76123         !defined(__c99))]: Include in this case too, since it's harmless
76124         now.
76125         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76126         dangerous to do so.
76127         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76128         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76129         (_STDINT_MIN, _STDINT_MAX): New macros.
76130         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76131         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76132         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76133         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76134         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76135         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76136         macros, not typedefs; this simplifies things quite a bit.
76137         Use long int for all types narrower than int64_t.
76138         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76139         Define in terms of long long int or int64_t or long int,
76140         not int64_t or int32_t.  This saves some compile-time testing.
76141         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76142         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76143         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76144         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76145         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76146         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76147         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76148         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76149         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76150         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76151         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76152         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76153         undef any previous version and define our own version, for
76154         simplicity and consistency with the new macros for types.
76155         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76156         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76157         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76158         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76159         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76160         @WINT_T_SUFFIX@ to keep things simple here.
76161         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76162         Simplify by assuming typical 8/16/32/64 host, since we're
76163         already doing that elsewhere anyway.
76164         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76165         and assume long long int is 64 bits if available.  This
76166         speeds up 'configure'.
76167
76168 2006-07-01  Eric Blake  <ebb9@byu.net>
76169
76170         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76171         Reported by Andreas Buening.
76172
76173 2006-07-01  Eric Blake  <ebb9@byu.net>
76174
76175         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76176
76177 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76178
76179         * lib/getaddrinfo.c: fixed typo
76180
76181 2006-06-29  Jim Meyering  <jim@meyering.net>
76182
76183         * modules/strftime (Maintainer): Add my name, since with the
76184         FPRINTFTIME changes strftime.c has forked from glibc.
76185
76186 2006-06-29  Eric Blake  <ebb9@byu.net>
76187
76188         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76189
76190 2006-06-29  Eric Blake  <ebb9@byu.net>
76191
76192         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76193
76194 2006-06-29  Eric Blake  <ebb9@byu.net>
76195
76196         * lib/stat_.h: New file.
76197
76198 2006-06-29  Eric Blake  <ebb9@byu.net>
76199
76200         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76201         unused static function.
76202
76203 2006-06-29  Eric Blake  <ebb9@byu.net>
76204
76205         * doc/functions.texi (Function Portability): Document missing lstat
76206         on mingw.
76207
76208 2006-06-29  Eric Blake  <ebb9@byu.net>
76209
76210         * MODULES.html.sh: Add sys_stat.
76211         * modules/sys_stat: New module.
76212         * modules/mkstemp (Depends-on): Add sys_stat.
76213
76214 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76215
76216         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76217
76218 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76219
76220         * m4/c-bs-a.m4: Removed.
76221
76222 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76223
76224         * lib/strftime.c: Assume strftime() exists.
76225
76226 2006-06-29  Derek Price  <derek@ximbiot.com>
76227
76228         * modules/c-bs-a: Removed - \a is C89.
76229         * MODULES.html.sh: Remove c-bs-a.
76230
76231 2006-06-29  Bruno Haible  <bruno@clisp.org>
76232
76233         * modules/wcwidth (License): Change to LGPL.
76234
76235 2006-06-28  Simon Josefsson  <jas@extundo.com>
76236
76237         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76238         on _WIN32.
76239
76240         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76241         getnameinfo.
76242
76243 2006-06-28  Simon Josefsson  <jas@extundo.com>
76244
76245         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76246
76247 2006-06-28  Simon Josefsson  <jas@extundo.com>
76248
76249         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76250         functions there.  It will succeed on Windows XP, but on Windows
76251         2000 and (presumably) earlier, it will fail, and use the internal
76252         re-implementation.
76253         (use_win32_p): New function.
76254         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76255         Support AI_NUMERICSERV to disable getservbyname.
76256         (getnameinfo): New function, only supports
76257         NI_NUMERICHOST|NI_NUMERICSERV for now.
76258
76259         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76260         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76261         getnameinfo.
76262
76263 2006-06-28  Eric Blake  <ebb9@byu.net>
76264
76265         * modules/wcwidth: New file.
76266         * modules/mbchar (Depends-on): Add wcwidth.
76267         * modules/mbswidth (Depends-on): Add wcwidth.
76268         * MODULES.html.sh: Add wcwidth.
76269
76270 2006-06-28  Eric Blake  <ebb9@byu.net>
76271
76272         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76274
76275 2006-06-28  Eric Blake  <ebb9@byu.net>
76276
76277         * lib/xvasprintf.h: Fix comments.
76278
76279 2006-06-28  Eric Blake  <ebb9@byu.net>
76280
76281         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76282         * lib/mbswidth.c (wcwidth): Move from here...
76283         * lib/wcwidth.h: ...to this new file.
76284
76285 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76286
76287         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76288
76289         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76290         it's obsolete.
76291         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76292
76293 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76294
76295         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76296         Autoconf 2.60 says this stuff was obsolete.
76297
76298 2006-06-28  Bruno Haible  <bruno@clisp.org>
76299
76300         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76301
76302 2006-06-28  Bruno Haible  <bruno@clisp.org>
76303
76304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76305         gt_TYPE_WCHAR_T.
76306
76307 2006-06-28  Bruno Haible  <bruno@clisp.org>
76308
76309         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76310         declaration for wcwidth.
76311         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76312
76313 2006-06-28  Bruno Haible  <bruno@clisp.org>
76314
76315         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76316         (mkdir): Define using _mkdir.
76317
76318 2006-06-28  Bruno Haible  <bruno@clisp.org>
76319
76320         * lib/getaddrinfo.h: Fix POSIX URL.
76321         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76322         _WIN32.
76323         (use_win32_p): Make static.
76324         (getaddrinfo): Reject service name if it is empty or does not consist
76325         solely of decimal digits, or if its value is > 65535.
76326         (getnameinfo): Remove useless casts.
76327
76328 2006-06-27  Simon Josefsson  <jas@extundo.com>
76329
76330         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76331         Eggert and Martin Lambers.
76332
76333 2006-06-27  Simon Josefsson  <jas@extundo.com>
76334
76335         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76336         Eggert and Martin Lambers.
76337
76338 2006-06-27  Bruno Haible  <bruno@clisp.org>
76339
76340         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76341         result to 0, not to empty.
76342         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76343
76344 2006-06-27  Bruno Haible  <bruno@clisp.org>
76345
76346         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76347
76348 2006-06-26  Simon Josefsson  <jas@extundo.com>
76349
76350         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76351         present.
76352
76353 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76354
76355         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76356         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76357         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76358
76359 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76360
76361         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76362
76363 2006-06-26  Bruno Haible  <bruno@clisp.org>
76364
76365         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76366
76367 2006-06-26  Bruno Haible  <bruno@clisp.org>
76368
76369         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76370
76371 2006-06-26  Bruno Haible  <bruno@clisp.org>
76372
76373         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76374         SGI C compiler in pre-C99 mode.
76375         Suggested by Mark D. Baushke and Larry Jones.
76376
76377 2006-06-26  Bruno Haible  <bruno@clisp.org>
76378
76379         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76380         WCHAR_MAX.
76381         Reported by Mark D. Baushke and Larry Jones.
76382
76383 2006-06-26  Bruno Haible  <bruno@clisp.org>
76384
76385         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76386         in pre-C99 mode.
76387         Suggested by Mark D. Baushke and Larry Jones.
76388
76389 2006-06-23  Simon Josefsson  <jas@extundo.com>
76390             Bruno Haible  <bruno@clisp.org>
76391
76392         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76393         Emit mostlyclean-local rule.
76394         (func_emit_tests_Makefile_am): Likewise.
76395         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76396
76397 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76398
76399         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76400
76401 2006-06-23  Bruno Haible  <bruno@clisp.org>
76402
76403         * tests/test-stdint.c: Update to match ISO C 99 Technical
76404         Corrigendum 1.
76405
76406 2006-06-23  Bruno Haible  <bruno@clisp.org>
76407
76408         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76409
76410 2006-06-23  Bruno Haible  <bruno@clisp.org>
76411
76412         * lib/stdint_.h: Treat IRIX like OpenBSD.
76413
76414 2006-06-23  Bruno Haible  <bruno@clisp.org>
76415
76416         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76417         ISO C 99 Technical Corrigendum 1.
76418
76419 2006-06-22  Simon Josefsson  <jas@extundo.com>
76420
76421         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76422         MinGW.
76423
76424 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76425
76426         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76427         needed.  Some compiler complained about some of them.  Problem reported
76428         by Larry Jones in
76429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76430
76431 2006-06-21  Simon Josefsson  <jas@extundo.com>
76432
76433         * tests/test-getaddrinfo.c: New file.
76434
76435         * modules/getaddrinfo-tests: New file.
76436
76437         * MODULES.html.sh: Add inet_pton.
76438
76439         * modules/inet_pton: New file.
76440
76441 2006-06-21  Simon Josefsson  <jas@extundo.com>
76442
76443         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76444         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76445         of using the (limited) gnulib implementation on Windows XP.
76446
76447         * m4/inet_pton.m4: New file.
76448
76449 2006-06-21  Simon Josefsson  <jas@extundo.com>
76450
76451         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76452         variable.
76453
76454         * lib/socket_.h: Don't define WINVER.
76455
76456         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76457         slightly modified to work in gnulib.
76458
76459 2006-06-21  Simon Josefsson  <jas@extundo.com>
76460
76461         * doc/gnulib.texi (Windows sockets): Add.
76462
76463 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76464
76465         * lib/read-file.c (fread_file): Start with buffer allocation of
76466         0 bytes rather than 1 byte; this simplifies the code.
76467         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76468         code to free buffer and save/restore errno.
76469         (internal_read_file): Remove unused local.
76470
76471 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76472
76473         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76474         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76475         Problem reported by Denis Excoffier in
76476         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76477
76478 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76479
76480         * modules/sys_socket, modules/socklen: Include sys/types since
76481         FreeBSD 4.x's sys/socket.h needs it.
76482
76483 2006-06-19  Simon Josefsson  <jas@extundo.com>
76484
76485         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76486
76487 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76488
76489         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76490
76491 2006-06-19  Bruno Haible  <bruno@clisp.org>
76492
76493         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76494         and FULL_PATH_INTTYPES_H in angle brackets.
76495         Reported by Mark D. Baushke <mdb@gnu.org>.
76496
76497 2006-06-17  Eric Blake  <ebb9@byu.net>
76498
76499         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76500         errno.
76501
76502 2006-06-17  Bruno Haible  <bruno@clisp.org>
76503
76504         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76505         <sys/inttypes.h>.
76506
76507 2006-06-17  Bruno Haible  <bruno@clisp.org>
76508
76509         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76510         whether errno is declared. Assume <errno.h> declares errno.
76511
76512 2006-06-17  Bruno Haible  <bruno@clisp.org>
76513
76514         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76515
76516 2006-06-17  Bruno Haible  <bruno@clisp.org>
76517
76518         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76519         problem on Solaris 2.5.1.
76520
76521 2006-06-16  Eric Blake  <ebb9@byu.net>
76522
76523         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76524         * lib/unicodeio.c [!defined errno]: Likewise.
76525         * lib/strtol.c [!defined errno]: Likewise.
76526         * lib/strtod.c [!defined errno]: Likewise.
76527
76528 2006-06-15  Eric Blake  <ebb9@byu.net>
76529
76530         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76531
76532 2006-06-15  Eric Blake  <ebb9@byu.net>
76533
76534         * config/srclist.txt (ssize_t.m4): Lose sync.
76535
76536 2006-06-15  Bruno Haible  <bruno@clisp.org>
76537
76538         * modules/stdint (Files): Include m4/full-header-path.m4,
76539         m4/size_max.m4, m4/wchar_t.m4.
76540         (Makefile.am): Many more substitutions.
76541         * modules/stdint-tests: New file.
76542         * tests/test-stdint.c: New file.
76543
76544 2006-06-15  Bruno Haible  <bruno@clisp.org>
76545
76546         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76547         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76548         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76549         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76550         gl_CHECK_TYPE_SAME): New macros.
76551
76552 2006-06-15  Bruno Haible  <bruno@clisp.org>
76553
76554         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76555
76556 2006-06-15  Bruno Haible  <bruno@clisp.org>
76557
76558         * lib/stdint_.h: Rewritten to be fully auto-configured.
76559         Fixes bug on HP-UX/IA64.
76560
76561 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76562
76563         * lib/getdate.y (__attribute__): Don't define if already defined.
76564         Problem reported by Larry Jones.
76565         * lib/utimens.c (__attribute__): Likewise.
76566
76567 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76568
76569         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76570         reported by Andreas Schwab.
76571
76572 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76573             Bruno Haible  <bruno@clisp.org>
76574
76575         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76576         check for the declaration of strnlen and a run test that exposes the
76577         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76578         rpl_strndup.
76579
76580 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76581             Bruno Haible  <bruno@clisp.org>
76582
76583         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76584
76585 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76586
76587         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76588         compile test, for Tru64 4.0D.
76589
76590 2006-05-28  Karl Berry  <karl@gnu.org>
76591
76592         * config/srclist.txt (printf-args.c): lose sync.
76593
76594 2006-05-26  Martin Lambers  <marlam@marlam.de>
76595
76596         * lib/getpass.c: Updates the test for the native W32 API, and adds
76597         missing includes, thus fixing compilation warnings.
76598
76599 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76600
76601         * lib/exclude.c (exclude_fnmatch): New function.
76602         (excluded_file_name): Call exclude_fnmatch.
76603         * lib/exclude.h (excluded_file_name): New prototype
76604
76605 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76606
76607         * lib/tempname.c (small_open, large_open): New macros.
76608         (__open, __open64) [!_LIBC]: Remove.
76609         (__gen_tempname): Use small_open and large_open instead of __open
76610         and __open64.  This fixes a portability bug on HP-UX 11.11i
76611         reported by Simon Wing-Tang in
76612         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76613
76614 2006-05-24  Bruno Haible  <bruno@clisp.org>
76615
76616         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76617         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76618         Reported by Thorsten Maerz <torte@netztorte.de> via
76619         Aaron Stone <aaron@serendipity.cx>.
76620
76621 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76622
76623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76624         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76625         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76626         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76627         not really conditional on the cache.
76628         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76629
76630 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76631
76632         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76633         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76634         (my_usleep): Don't mishandle maximum value.
76635
76636 2006-05-19  Jim Meyering  <jim@meyering.net>
76637
76638         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76639
76640 2006-05-17  Bruno Haible  <bruno@clisp.org>
76641
76642         Cygwin portability.
76643         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76644
76645 2006-05-17  Bruno Haible  <bruno@clisp.org>
76646
76647         * lib/stdint_.h: Fix recognition of Cygwin.
76648
76649 2006-05-15  Bruno Haible  <bruno@clisp.org>
76650
76651         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76652         on libtool patch by Ralf Wildenhues.
76653
76654 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76655
76656         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76657         test for C99 conformance; (bool) 0.5 is an integer constant
76658         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76659         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76660
76661 2006-05-11  Simon Josefsson  <jas@extundo.com>
76662
76663         * m4/xvasprintf.m4: Fix obvious typo.
76664
76665 2006-05-11  Jim Meyering  <jim@meyering.net>
76666
76667         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76668         James Lemley.
76669
76670 2006-05-10  Simon Josefsson  <jas@extundo.com>
76671
76672         * lib/md4.c: Typo fix, update copyright years.
76673         (K1, K2): Don't use L because it turn computations into 64-bit on
76674         64-bit platforms.
76675
76676 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76677
76678         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76679         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76680         unwanted sign propagation, e.g., on hosts with 64-bit int.
76681         There still are some problems with reeelly weird theoretical hosts
76682         (e.g., 33-bit int) but it's not worth worrying about now.
76683         * lib/sha1.c (rol): Likewise.
76684         (K1, K2, K3, K4): Remove unnecessary L suffix.
76685
76686 2006-05-10  Bruno Haible  <bruno@clisp.org>
76687
76688         * lib/des.c: Cast to avoid warnings.
76689
76690 2006-05-09  Bruno Haible  <bruno@clisp.org>
76691
76692         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76693         (Depends-on): Depend also on xsize, stdarg.
76694         (configure.ac): Add gl_XVASPRINTF.
76695
76696 2006-05-09  Bruno Haible  <bruno@clisp.org>
76697
76698         * m4/xvasprintf.m4: New file.
76699
76700 2006-05-09  Bruno Haible  <bruno@clisp.org>
76701
76702         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76703         (EOVERFLOW): Define fallback value.
76704         (xstrcat): New function.
76705         (xvasprintf): Recognize the special case of a string concatenation.
76706
76707 2006-05-08  Eric Blake  <ebb9@byu.net>
76708
76709         * gnulib-tool (func_version): Base copyright year on CVS date.
76710         (func_emit_copyright_notice): New function.
76711         (func_emit_lib_Makefile_am): Use it.
76712         (func_emit_tests_Makefile_am): Likewise.
76713         (func_import): Likewise.
76714
76715 2006-05-08  Bruno Haible  <bruno@clisp.org>
76716
76717         * modules/stdarg: New file.
76718         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76719
76720 2006-05-08  Bruno Haible  <bruno@clisp.org>
76721
76722         * m4/stdarg.m4: New file, from GNU gettext.
76723
76724 2006-05-08  Bruno Haible  <bruno@clisp.org>
76725
76726         * config/srclist.txt (build-aux/config.rpath): different from latest
76727         release.
76728
76729 2006-05-08  Bruno Haible  <bruno@clisp.org>
76730
76731         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76732
76733 2006-05-05  Jim Meyering  <jim@meyering.net>
76734
76735         * m4/warning.m4: New file, derived from bison's file by the same name.
76736
76737 2006-05-03  Bruno Haible  <bruno@clisp.org>
76738
76739         * lib/stdint_.h: Shorter URL.
76740         * lib/inttypes.h: Likewise.
76741
76742 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76743
76744         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76745
76746 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         * lib/verify.h: Document the internals better.  Most of this change
76749         was written by Bruno Haible.
76750
76751 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76752
76753         * doc/verify.texi: New file, partly based on a proposal by
76754         Bruno Haible.
76755
76756 2006-05-02  Bruno Haible  <bruno@clisp.org>
76757
76758         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76759         test from here...
76760         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76761
76762 2006-04-29  Bruno Haible  <bruno@clisp.org>
76763
76764         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76765         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76766
76767 2006-04-29  Bruno Haible  <bruno@clisp.org>
76768
76769         * gnulib-tool: Make --update option actually work.
76770
76771 2006-04-29  Bruno Haible  <bruno@clisp.org>
76772
76773         * doc/gcd.texi: New file.
76774         * doc/gnulib.texi: Include it.
76775
76776 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76777
76778         * lib/getdate.y (get_date): When adding relative date, start with the
76779         initial time, not with the result of the first mktime call.
76780
76781 2006-04-25  Bruno Haible  <bruno@clisp.org>
76782
76783         * gnulib-tool (func_import): Output the include directives in three
76784         blocks, sorted separately.
76785         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76786
76787 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76788
76789         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76790         to define main with arguments, for C++.  Reported by Eric Blake.
76791         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76792         Prefer 'int main ()' to 'int main (void)', for C++.
76793         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76794         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76795         for 'main', for C99 and C++.
76796
76797 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76800         Don't assume that exit status -1 is valid.
76801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76802         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76803         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76804         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76805         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76806         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76807         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76808         functions can be used without declaring them, or that you can
76809         exit with status -1.
76810         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76811
76812 2006-04-24  Karl Berry  <karl@gnu.org>
76813
76814         * config/srclist.txt (longdouble.m4): sync lost.
76815
76816 2006-04-24  Eric Blake  <ebb9@byu.net>
76817
76818         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76819
76820 2006-04-24  Bruno Haible  <bruno@clisp.org>
76821
76822         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76823         poll() implementation in AIX.
76824         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76825
76826 2006-04-24  Bruno Haible  <bruno@clisp.org>
76827
76828         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
76829         assigned exactly once.
76830
76831 2006-04-23  Claudio Fontana  <claudio@gnu.org>
76832             Bruno Haible  <bruno@clisp.org>
76833
76834         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
76835         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
76836         for AM_CPPFLAGS.
76837
76838 2006-04-23  Bruno Haible  <bruno@clisp.org>
76839
76840         * modules/copy-file: Depend on unistd.
76841         * modules/execute: Likewise.
76842         * modules/fatal-signal: Likewise.
76843         * modules/findprog: Likewise.
76844         * modules/mkdtemp : Likewise.
76845         * modules/pipe: Likewise.
76846         * modules/wait-process: Likewise.
76847
76848 2006-04-23  Bruno Haible  <bruno@clisp.org>
76849
76850         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
76851         condition was already detected.
76852         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76853
76854 2006-04-23  Bruno Haible  <bruno@clisp.org>
76855
76856         * lib/copy-file.c: Include <unistd.h> unconditionally.
76857         * lib/execute.c: Likewise.
76858         * lib/fatal-signal.c: Likewise.
76859         * lib/findprog.c: Likewise.
76860         * lib/mkdtemp.c: Likewise.
76861         * lib/pipe.h: Likewise.
76862         * lib/pipe.c: Likewise.
76863         * lib/wait-process.h: Likewise.
76864
76865 2006-04-23  Bruno Haible  <bruno@clisp.org>
76866
76867         * gnulib-tool (func_usage): Fix --import description. Document
76868         --update.
76869         (func_import): Create temporary file in a temporary directory, if
76870         --dry-run is specified. Silence errors from 'grep' when there are no
76871         m4 files in $m4dir.
76872         (func_create_testdir): Silence errors from 'grep' when there are no
76873         m4 files in $m4dir.
76874         Reported by Karl Berry <karl@freefriends.org>.
76875
76876 2006-04-20  Bruno Haible  <bruno@clisp.org>
76877
76878         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
76879         one argument, so that the code will be portable to Autoconf 2.60.
76880         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
76881         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76882         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
76883
76884 2006-04-19  Derek Price  <derek@ximbiot.com>
76885             Eric Blake  <ebb9@byu.net>
76886
76887         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
76888         rather than "/full/path.h".  Update comment to match.  Shorten &
76889         generalize m4_translit call via AS_TR_CPP.
76890
76891 2006-04-19  Derek Price  <derek@ximbiot.com>
76892             Eric Blake  <ebb9@byu.net>
76893
76894         * lib/inttypes.h: Correct grammar in comment.
76895
76896 2006-04-18  Derek Price  <derek@ximbiot.com>
76897             Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         * modules/inttypes: New file.
76900         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
76901
76902 2006-04-18  Derek Price  <derek@ximbiot.com>
76903             Paul Eggert  <eggert@cs.ucla.edu>
76904
76905         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
76906         New files.
76907
76908 2006-04-18  Derek Price  <derek@ximbiot.com>
76909             Paul Eggert  <eggert@cs.ucla.edu>
76910
76911         * lib/inttypes.h: New file.
76912         * lib/strtoimax.c: Assume <inttypes.h>.
76913
76914 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
76915
76916         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
76917         isn't mounted.  Problem reported by Kir Kolyshkin.
76918
76919 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76920
76921         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
76922         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
76923         Derek R. Price.
76924         * lib/regex.h (RE_DUP_MAX): Update comment to match current
76925         implementation.
76926
76927 2006-04-12  Eric Blake  <ebb9@byu.net>
76928
76929         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
76930         is now done automatically by the corresponding Autoconf macro.
76931
76932 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
76933
76934         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
76935         time_r.h.
76936
76937 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76938
76939         Merge regex changes from libc, removing some of our
76940         POSIX-conformance changes that were rejected and redoing them in a
76941         less-intrusive way.
76942
76943         * lib/regcomp.c (re_compile_internal, init_dfa):
76944         Length arg is now size_t, not Idx.  All uses changed.
76945         (peek_token): Forward decl now says internal_function.
76946         (__re_error_msgid, __re_error_msgid_idx):
76947         Now static rather than extern with attribute_hidden.
76948         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
76949         For some reason libc prefers K&R style defns for external functions.
76950         (regerror) [!defined _LIBC]: Likewise.
76951         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
76952         (seek_collating_symbol_entry, lookup_collation_sequence_value):
76953         (build_range_exp, build_collating_symbol):
76954         Use K&R-style defn.
76955         (re_compile_fastmap): Use '\0' to memset, not 0.
76956         (utf8_sb_map): Make the calculations more obvious.
76957         (init_dfa, parse_bracket_exp, build_charclass_op):
76958         Call calloc and cast result, as glibc does.
76959         (init_word_char, fetch_token, peek_token, peek_token_bracket):
76960         (build_range_exp, build_collating_symbol):
76961         Now internal functions.
76962
76963         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
76964
76965         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
76966         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
76967         Don't depend on VMS; depend on __VMS instead, for POSIX
76968         namespace cleanness.
76969         (regoff_t): Define to ssize_t, not long int.
76970
76971         Remove the REG_ macros named below.  Instead, make the old names
76972         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
76973         __USE_GNU_REGEX.
76974         (REG_BACKSLASH_ESCAPE_IN_LISTS):
76975         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
76976         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
76977         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
76978         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
76979         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
76980         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
76981         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
76982         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
76983         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
76984         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
76985         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
76986         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
76987         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
76988         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
76989         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
76990         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
76991         (REG_NREGS):
76992         Remove.  All uses replaced by the old RE_* names.
76993         (RE_BACKSLASH_ESCAPE_IN_LISTS):
76994         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
76995         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
76996         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
76997         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
76998         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
76999         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77000         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77001         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77002         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77003         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77004         Don't bother having these macros be independent of each others'
77005         values, since they no longer exist in the POSIX name space.
77006
77007         Rename the following member names back to their old names,
77008         unless !__USE_GNU_REGEX.  All uses changed back.
77009         (buffer): Renamed from re_buffer.
77010         (allocated): Renamed from re_allocated.
77011         (used): Renamed from re_used.
77012         (syntax): Renamed from re_syntax.
77013         (fastmap): Renamed from re_fastmap.
77014         (translate): Renamed from re_translate.
77015         (can_be_null): Renamed from re_can_be_null.
77016         (regs_allocated): Renamed from re_regs_allocated.
77017         (fastmap_accurate): Renamed from re_fastmap_accurate.
77018         (no_sub): Renamed from re_no_sub.
77019         (not_bol): Renamed from re_not_bol.
77020         (not_eol): Renamed from re_not_eol.
77021         (newline_anchor): Renamed from re_newline_anchor.
77022         (num_regs): Renamed from rm_num_regs.
77023         (start): Renamed from rm_start.
77024         (end): Renamed from rm_end.
77025
77026         (free_state): Move up a bit.
77027
77028         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77029         #define to be empty.
77030         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77031         when that is what is intended.
77032         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77033         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77034         (MAX): New macro.
77035         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77036         All uses changed back to re_malloc, etc.  It's now the caller's
77037         responsibility to check for overflow; all callers changed.
77038         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77039         (re_x2nrealloc): Remove.
77040         (free_state): Remove decl.
77041
77042         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77043         (re_set_registers, re_exec):
77044         Use K&R-style defn.
77045
77046         2006-01-31  Roland McGrath  <roland@redhat.com>
77047
77048         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77049         Reported by Mike Frysinger <vapier@gentoo.org>.
77050
77051         2006-01-15  Andreas Jaeger  <aj@suse.de>
77052
77053         [BZ #1950]
77054         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77055         build_wcs_upper_buffer change.
77056         (build_wcs_upper_buffer): Change return type.
77057
77058         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77059
77060         * lib/regex_internal.h: Include <stdint.h> if available.
77061
77062         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77063
77064         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77065
77066         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77067
77068         * lib/regcomp.c: Adjust for changed secondary hash function.
77069
77070         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77071
77072         * lib/regex.h: Pretty printing.
77073         Clean up namespace a bit.
77074
77075         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77076
77077         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77078         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77079
77080         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77081                     Ulrich Drepper  <drepper@redhat.com>
77082
77083         [BZ #1302]
77084         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77085         changed.
77086         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77087
77088         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77089
77090         [BZ #281]
77091         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77092         * lib/regcomp.c: Remove unnecessary uses of
77093         unsigned RE_TRANSLATE_TYPE.
77094         * lib/regex_internal.h: Likewise.
77095         * lib/regex_internal.c: Likewise.
77096         * lib/regexec.c: Likewise.
77097         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77098
77099         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77100
77101         * lib/regexec.c (find_recover_state): Remove unnecessary
77102         initialization.
77103         (transit_state_bkref): Make DFA a const pointer.
77104         (get_subexp): Likewise.
77105         (check_arrival): Likewise.
77106         (update_cur_sifted_state): Likewise.
77107         (re_search_internal): Likewise.
77108         (prune_impossible_nodes): Likewise.
77109         (acquire_init_state_context): Likewise.
77110         (proceed_next_node): Likewise.
77111         (set_regs): Likewise.
77112         (free_fail_stack_return): Likewise.
77113         (check_arrival_expand_ecl): Mark DFA parameter as const.
77114         (check_arrival_expand_ecl_sub): Likewise.
77115         (check_subexp_limits): Likewise.
77116         (sub_epsilon_src_nodes):  Likewise.
77117         (add_epsilon_src_nodes):  Likewise.
77118         (merge_state_array): Likewise.
77119         (update_regs): Likewise.
77120         (build_trtable): Likewise.
77121         (sift_states_backward): Mark MCTX parameter as const.
77122         (build_sifted_states): Likewise.
77123         (update_cur_sifted_state): Likewise.
77124         (sift_states_mkref): Likewise.
77125         (check_arrival_expand_ecl): Mark eclosure as const.
77126         (check_dst_limits_calc_pos_1): Likewise.
77127         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77128         pointer.
77129
77130         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77131
77132         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77133         (transit_state_sb): Likewise.
77134         (transit_state_mb): Likewise.
77135         (sift_states_iter_mb): Likewise.
77136         (check_arrival_add_next_nodes): Likewise.
77137         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77138         [_LIBC] (re_search_2_stub): Use mempcpy.
77139
77140         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77141         mbrtowc for very simple UTF-8 case.
77142
77143         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77144         a pointer-to-const.
77145         (re_acquire_state_context): Likewise.
77146         * lib/regex_internal.h: Adjust prototypes.
77147
77148         * lib/regex.c: Prevent using C++ compilers.
77149
77150         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77151         (re_acquire_state_context): Likewise.
77152
77153 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77154
77155         * modules/regex (Depends-on): Add ssize_t.
77156
77157 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77158
77159         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77160         translation table.
77161
77162 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77163
77164         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77165
77166 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77167             Bruno Haible  <bruno@clisp.org>
77168
77169         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77170         <sys/types.h> and <inttypes.h>.
77171
77172 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77173
77174         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77175         `__error_t_defined', so argp.h will not typedef the former.
77176
77177 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77178
77179         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77180         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77181         glibc names.  Even if glibc is changed to conform to POSIX, the
77182         traditional names will be available anyway, since regex depends on
77183         the extensions module.  Also, fix a longstanding typo in the
77184         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77185         reported by Emanuele Giaquinta.  Also, change sense of cached
77186         variable, so that the message makes sense.
77187
77188 2006-03-24  Simon Josefsson  <jas@extundo.com>
77189
77190         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77191         including some doc fixes.
77192         (base64_encode_alloc): Fix +1 bug on allocation failures.
77193
77194 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77195
77196         * lib/base64.c (base64_encode): Do not read past end of array with
77197         unsanitized input on systems with CHAR_BIT > 8.
77198
77199 2006-03-24  Eric Blake  <ebb9@byu.net>
77200
77201         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77202
77203 2006-03-22  Karl Berry  <karl@gnu.org>
77204
77205         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77206         * config/srclistvars.sh (COREUTILS): new var.
77207
77208 2006-03-17  Jim Meyering  <jim@meyering.net>
77209
77210         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77211         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77212
77213 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77214
77215         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77216         no longer needs it.  Instead, check that regoff_t is as least
77217         as wide as ptrdiff_t.
77218
77219         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77220         so that our regex.h stays compatible with the installed regex.
77221         This is helpful for installers who configure --without-included-regex.
77222         Problem reported by Emanuele Giaquinta.
77223
77224 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77225
77226         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77227         Typedef to long int, not to off_, as POSIX will likely change
77228         in that direction.
77229
77230 2006-03-15  Eric Blake  <ebb9@byu.net>
77231
77232         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77233
77234 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77235
77236         * lib/argp-help.c (validate_uparams): Fix typo
77237         * lib/argp-parse.c (argp_default_options): Consistently begin help
77238         messages with a lowercase letter.
77239
77240 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77241
77242         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77243         overrun buffers and shouldn't be used (much as gets shouldn't be
77244         used).
77245         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77246
77247 2006-03-08  Simon Josefsson  <jas@extundo.com>
77248
77249         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77250         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77251
77252 2006-03-08  Simon Josefsson  <jas@extundo.com>
77253
77254         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77255         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77256
77257 2006-03-08  Simon Josefsson  <jas@extundo.com>
77258
77259         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77260         signal that configure disabled the device.
77261
77262 2006-03-08  Simon Josefsson  <jas@extundo.com>
77263
77264         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77265         languages.
77266
77267 2006-03-07  Simon Josefsson  <jas@extundo.com>
77268
77269         * modules/getopt (Depends-on): Add unistd.
77270
77271         * modules/unistd: New file.
77272
77273 2006-03-07  Simon Josefsson  <jas@extundo.com>
77274
77275         * modules/gc-random: New file.
77276
77277 2006-03-07  Simon Josefsson  <jas@extundo.com>
77278
77279         * m4/unistd_h.m4: New file.
77280
77281 2006-03-07  Simon Josefsson  <jas@extundo.com>
77282
77283         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77284         test to be side-effect free by storing the result in the cache
77285         variable gl_cv_lib_readline, and moving the assignment of
77286         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77287         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77288
77289 2006-03-07  Simon Josefsson  <jas@extundo.com>
77290
77291         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77292         error on missing devices (the functions will return an error).
77293
77294         * m4/gc.m4: Move random stuff to gc-random.m4
77295
77296 2006-03-07  Simon Josefsson  <jas@extundo.com>
77297
77298         * lib/unistd_.h: New file.
77299
77300 2006-03-07  Simon Josefsson  <jas@extundo.com>
77301
77302         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77303
77304 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77305
77306         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77307         Problem reported by Juan Manuel Guerrero.
77308
77309 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77310
77311         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77312         the unistd module.
77313         * lib/getlogin_r.c: Likewise.
77314         * lib/getlogin_r.h: Likewise.
77315         * lib/glob.c: Likewise.
77316         * lib/pagealign_alloc.c: Likewise.
77317         * lib/unistd_.h: Remove; no longer needed.
77318
77319 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77320
77321         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77322         Add unistd.
77323         * modules/c-stack (Depends-on): Add unistd.
77324         * modules/getlogin_r: Likewise.
77325         * modules/glob: Likewise.
77326         * modules/pagealign_alloc: Likewise.
77327         * modules/unistd (Files): Remove lib/unistd_.h.
77328         (EXTRA_DIST): Remove.
77329         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77330         need unistd_.h.
77331         (MOSTLYCLEANFILES): Remove unistd.h-t.
77332
77333 2006-03-03  Simon Josefsson  <jas@extundo.com>
77334
77335         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77336
77337 2006-03-03  Simon Josefsson  <jas@extundo.com>
77338
77339         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77340         libidn and bison.
77341
77342 2006-03-03  Simon Josefsson  <jas@extundo.com>
77343
77344         * build-aux/maint.mk: Add indent target.
77345
77346 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77347
77348         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77349         our replacement poll.h in any case, to avoid a differing
77350         declaration from a system header.  Seen on AIX.
77351
77352 2006-03-01  Simon Josefsson  <jas@extundo.com>
77353
77354         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77355         <kasal@ucw.cz>.
77356
77357 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77358
77359         * modules/gettime (Depends-on): Add extensions module.
77360         * modules/nanosleep (Depends-on): Likewise.
77361         * modules/settime (Depends-on): Likewise.
77362
77363 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77364
77365         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77366         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77367         pedantically.
77368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77369         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77370
77371         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77372         not "==".  Reported by Ralf Wildenhues.
77373
77374 2006-03-01  Karl Berry  <karl@gnu.org>
77375
77376         * doc/Copyright/request-*: new files, synced from gnuorg.
77377
77378 2006-03-01  Karl Berry  <karl@gnu.org>
77379
77380         * config/srclist.txt (Copyright/*): new entries.
77381
77382 2006-02-28  Simon Josefsson  <jas@extundo.com>
77383
77384         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77385
77386 2006-02-27  Simon Josefsson  <jas@extundo.com>
77387
77388         * lib/base64.h: Indent #define's.  From Jim Meyering
77389         <jim@meyering.net>.
77390
77391 2006-02-27  Jim Meyering  <jim@meyering.net>
77392
77393         Revert the change of 2006-02-24, so these files can continue
77394         to be sync'd from gettext.
77395         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77396         of `config.h'.
77397
77398 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77399
77400         * modules/intprops: New file.
77401         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77402         Add intprops.
77403         * modules/getloadavg (Files): Remove lib/intprops.h.
77404         (Depends-on): Add intprops.
77405         * modules/human: Likewise.
77406         * modules/inttostr: Likewise.
77407         * modules/openat: Likewise.
77408         * modules/sig2str: Likewise.
77409         * modules/userspec: Likewise.
77410         * modules/utimecmp: Likewise.
77411         * modules/xnanosleep: Likewise.
77412         * modules/xstrtol: Likewise.
77413
77414 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77415
77416         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77417         * modules/lock-tests (TESTS): Use $(EXEEXT).
77418         * modules/tls-tests: Likewise.
77419         * modules/argp-tests: Likewise.
77420         (check_PROGRAMS): New var, replacing...
77421         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77422
77423 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77424
77425         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77426         `config.h'.
77427
77428 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77429
77430         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77431
77432 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77433
77434         Sync from coreutils.
77435         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77436         gl_CHDIR_SAFER.
77437
77438 2006-02-22  Jim Meyering  <jim@meyering.net>
77439
77440         Sync from coreutils.
77441         * m4/chdir-safer.m4: New file.
77442
77443 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77444
77445         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77446         AT_FDCWD exceeds INT_MAX.
77447         * lib/openat.h (AT_FDCWD): Likewise.
77448
77449 2006-02-17  Eric Blake  <address@hidden>
77450
77451         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77452
77453 2006-02-16  Simon Josefsson  <jas@extundo.com>
77454
77455         * modules/getaddrinfo (Depends-on): Add sys_socket.
77456
77457 2006-02-15  Simon Josefsson  <jas@extundo.com>
77458
77459         * build-aux/maint.mk: Add dsyntax-check rule.
77460
77461 2006-02-15  Eric Blake  <ebb9@byu.net>
77462
77463         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77464         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77465         'present but cannot compile' warnings on cygwin.
77466         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77467         use ws2tcpip.h if sys/socket.h works.
77468         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77469         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77470
77471 2006-02-14  Simon Josefsson  <jas@extundo.com>
77472
77473         * modules/maintainer-makefile (Files): Rename.
77474
77475         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77476         and (the local) Makefile.cfg to maint-cfg.mk.
77477
77478         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77479         to the latter.
77480
77481         * modules/maintainer-makefile: New module.
77482
77483         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77484         severaly stripped to make it possible to build it up from scratch
77485         with reliable tests.
77486
77487         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77488         fixes to permit overriding the default actions when configure and
77489         makefile are not available.
77490
77491 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77492
77493         Sync from coreutils.
77494         * modules/lstat (Depends-on): Don't depend on xalloc.
77495         (License): Change from GPL to LGPL, since this is now simply a
77496         replacement for a libc function.
77497
77498 2006-02-14  Jim Meyering  <jim@meyering.net>
77499
77500         Sync from coreutils.
77501
77502         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77503         failure on deficient systems, and simplify gnulib lgpl dependencies.
77504         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77505         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77506
77507         * lib/xalloc-die.c: Remove unused definition of N_.
77508
77509 2006-02-14  Jim Meyering  <jim@meyering.net>
77510
77511         Sync from coreutils.
77512         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77513         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77514         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77515         double-quote uses of that variable, to accommodate the rare case in
77516         which getmntent is available in none of the libraries checked.  This
77517         happens at least on FreeBSD 5.0.
77518
77519 2006-02-13  Simon Josefsson  <jas@extundo.com>
77520
77521         * gnulib-tool (Usage): Fix --import, from
77522         karl@freefriends.org (Karl Berry).
77523
77524 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77525
77526         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77527
77528 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77529
77530         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77531         "autoupdate" on 2005-12-12.
77532
77533 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77534
77535         * modules/closeout (Depends-on): Remove atexit.
77536
77537 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77538
77539         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77540         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77541
77542 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77543
77544         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77545         __EXTENSIONS__ if this causes compilation to fail.  Problem
77546         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77547         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77548
77549 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77550
77551         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77552         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77553         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77554         All uses changed.
77555
77556 2006-01-26  Simon Josefsson  <jas@extundo.com>
77557
77558         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77559         prototype is visible on mingw32.
77560
77561         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77562         for mingw32.
77563
77564         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77565         mingw32).
77566
77567 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77568
77569         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77570         attempt to open for write; this always fails, at least on POSIX
77571         hosts.  This reinstates the 2006-01-09 change, which was
77572         inadvertently removed.
77573
77574 2006-01-26  Bruno Haible  <bruno@clisp.org>
77575
77576         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77577         Reported by Paul Eggert.
77578
77579 2006-01-26  Bruno Haible  <bruno@clisp.org>
77580             Paul Eggert  <eggert@cs.ucla.edu>
77581
77582         * lib/stdbool_.h (_Bool)
77583         [(! (defined __cplusplus || defined __BEOS__)
77584           && !defined __GNUC__
77585           && !(defined __HP_cc || defined __xlc__
77586                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77587                || defined __sgi))]:
77588         #define to signed char in these cases too; this simplifies
77589         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77590         etc., separately) and makes it more conservative.
77591
77592 2006-01-25  Simon Josefsson  <jas@extundo.com>
77593
77594         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77595         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77596         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77597
77598 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77599
77600         * lib/argp-namefrob.h: Bugfix. Remove stray #
77601
77602 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77603
77604         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77605         so that we test the test.
77606         Check for yet another HP-UX cc bug involving *bool |= bool.
77607
77608 2006-01-25  Karl Berry  <karl@gnu.org>
77609
77610         * config/srclist.txt (vasnprintf.c): sync lost.
77611
77612 2006-01-25  Jim Meyering  <jim@meyering.net>
77613
77614         Sync from the stable (b5) branch of coreutils:
77615
77616         * lib/fts.c (fts_children): Don't let close() clobber errno from
77617         failed fchdir().
77618
77619         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77620         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77621         a dangling symlink.  That can also happen at least for ELOOP.
77622         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77623         FYI, this bug predates the inclusion of fts.c in coreutils.
77624
77625         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77626         in their own block, so pre-c99 compilers don't object.
77627
77628         Avoid the double-free (first in fts_read, second in fts_close) that
77629         would occur when an `active' directory is made inaccessible (e.g.,
77630         via chmod a-x) during a traversal.
77631         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77632         before returning.  Reproduce this failure by
77633         mkdir -p a/b; cd a; chmod a-x . b
77634         Reported by Stavros Passas.
77635
77636 2006-01-25  Jim Meyering  <jim@meyering.net>
77637
77638         * lib/fileblocks.c: Remove more useless parentheses.
77639         * lib/readutmp.h: Likewise.
77640
77641 2006-01-25  Bruno Haible  <bruno@clisp.org>
77642
77643         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77644         warnings.
77645         Reported by Paul Eggert.
77646
77647 2006-01-25  Bruno Haible  <bruno@clisp.org>
77648
77649         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77650         rid of a trap command. For Solaris sh.
77651         Reported by Mark D. Baushke <mdb@gnu.org>.
77652
77653 2006-01-24  Simon Josefsson  <jas@extundo.com>
77654
77655         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77656         Bruno.
77657
77658 2006-01-24  Karl Berry  <karl@gnu.org>
77659
77660         * config/srclist.txt (argp-namefrob.h): sync lost.
77661
77662 2006-01-24  Jim Meyering  <jim@meyering.net>
77663
77664         * modules/openat (Files): Add lib/intprops.h.
77665         From Mark D. Baushke.
77666
77667 2006-01-24  Jim Meyering  <jim@meyering.net>
77668
77669         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77670         Reported by Mark D. Baushke.
77671
77672 2006-01-24  Jim Meyering  <jim@meyering.net>
77673
77674         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77675
77676 2006-01-24  Bruno Haible  <bruno@clisp.org>
77677
77678         * modules/strnlen (Maintainer): Change from glibc to all.
77679
77680 2006-01-24  Bruno Haible  <bruno@clisp.org>
77681
77682         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77683         Patch by Paul Eggert.
77684
77685 2006-01-24  Bruno Haible  <bruno@clisp.org>
77686
77687         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77688         already has it.
77689         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77690         2005-11-26.
77691
77692         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77693         'signed char' to avoid problems with the built-in _Bool type.
77694         Reported by Paul Eggert on 2005-11-26.
77695
77696 2006-01-24  Bruno Haible  <bruno@clisp.org>
77697
77698         * gnulib-tool (func_import): Avoid constructing complicated sed
77699         expressions inside backquote.
77700         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77701
77702 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77703
77704         These changes imported from libc.
77705         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77706         test and two separate function calls.
77707         * lib/strndup.c (__strndup): Add libc_hidden_def.
77708
77709 2006-01-23  Simon Josefsson  <jas@extundo.com>
77710
77711         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77712         Remove the test_*_SOURCES variable: automake infers it by default.
77713         * modules/tls-tests: Likewise.
77714
77715 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77716
77717         Work around porting bugs reported by Dieter in
77718         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77719         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77720         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77721         Include "getopt.h" first, to check interface.
77722         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77723         !HAVE_DECL_GETENV.
77724         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77725         (__strndup): Revert to K&R-style function dfns, the glibc style.
77726         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77727         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77728         Include strnlen.h first, to get prototype properly.
77729         (strnlen): Renamed from __strnlen.
77730         Remove weak alias.
77731
77732 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77733
77734         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77735
77736 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77737
77738         * config/srclist.txt: Adjust to reflect glibc reorganization.
77739         This affects only comments.
77740
77741 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77742
77743          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77744          Reported by Bruce Korb <bkorb@gnu.org>.
77745
77746 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77747
77748         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77749         to pacify gcc -Wswitch-default.
77750
77751 2006-01-22  Bruno Haible  <bruno@clisp.org>
77752
77753         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77754         temporary buffer for sprintf, take into account the precision also
77755         for 'd', 'i', 'u', 'o', 'x', 'X'.
77756
77757 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77758
77759         * modules/argp-tests: New module
77760         * tests/test-argp.c: New file
77761         * tests/test-argp-2.sh: New file
77762
77763 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77764
77765         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77766         (__argp_base_name): Removed
77767         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77768         typo.
77769         (__argp_base_name): Provide macro definition or extern declaration
77770         depending on the configuration
77771
77772 2006-01-20  Simon Josefsson  <jas@extundo.com>
77773
77774         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77775
77776 2006-01-20  Simon Josefsson  <jas@extundo.com>
77777
77778         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77779
77780 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77781
77782         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77783         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77784         Suggested by Bruno Haible.
77785
77786 2006-01-20  Karl Berry  <karl@gnu.org>
77787
77788         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77789         until changes propagate, I guess.
77790
77791 2006-01-19  Simon Josefsson  <jas@extundo.com>
77792
77793         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77794
77795 2006-01-19  Simon Josefsson  <jas@extundo.com>
77796
77797         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77798
77799 2006-01-19  Simon Josefsson  <jas@extundo.com>
77800
77801         * gnulib-tool: Set check_PROGRAMS.
77802
77803         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77804         modules/des-tests, modules/gc-arcfour-tests,
77805         modules/gc-arctwo-tests, modules/gc-des-tests,
77806         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77807         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77808         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77809         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77810         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77811         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77812         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77813         test_*_SOURCES.
77814
77815 2006-01-18  Simon Josefsson  <jas@extundo.com>
77816
77817         * modules/socklen (Depends-on): Depend on sys_socket.
77818
77819 2006-01-18  Simon Josefsson  <jas@extundo.com>
77820
77821         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77822         modules/des-tests, modules/gc-arcfour-tests,
77823         modules/gc-arctwo-tests, modules/gc-des-tests,
77824         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77825         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77826         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77827         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77828         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77829         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
77830         $(EXEEXT) to automake TESTS variable, for mingw32.
77831
77832 2006-01-17  Simon Josefsson  <jas@extundo.com>
77833
77834         * modules/socklen (Include): Need sys/socket.h.
77835
77836 2006-01-17  Bruno Haible  <bruno@clisp.org>
77837
77838         * modules/ssize_t (Include): Add <sys/types.h>.
77839
77840 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
77841
77842         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
77843         it's not portable and it doesn't work with cross-compiles.
77844         Problem reported by Bruno Haible.  Fix missing-$ typo in
77845         'test "gl_cv_ignore_unused_libraries" ...' that prevented
77846         -zignore from being used with Sun's C compiler.
77847
77848 2006-01-12  Simon Josefsson  <jas@extundo.com>
77849
77850         * lib/base64.c: Fix warning, reported by Bruno Haible
77851         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
77852
77853 2006-01-12  Bruno Haible  <bruno@clisp.org>
77854
77855         * modules/ldd: New file.
77856         * build-aux/ldd.sh.in: New file.
77857         * MODULES.html.sh (Support for building libraries and executables): Add
77858         ldd.
77859
77860 2006-01-12  Bruno Haible  <bruno@clisp.org>
77861
77862         * m4/ldd.m4: New file.
77863
77864 2006-01-12  Bruno Haible  <bruno@clisp.org>
77865
77866         * gnulib-tool (func_import, func_create_testdir): Don't go into an
77867         endless loop while replacing $auxdir with build-aux.
77868
77869 2006-01-11  Simon Josefsson  <jas@extundo.com>
77870
77871         * lib/stdint_.h (SIZE_MAX): Add missing (.
77872
77873 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         Sync from coreutils.
77876         * lib/md5.c: Fix commentary typos.
77877         (alignof, UNALIGNED_P): No need for a GCC-specific version.
77878         * lib/md5.h (__attribute__): Remove; unused.
77879         * lib/sha1.c: Fix commentary to match md5 better.
77880         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
77881         so that we don't need to worry about alignment.  All uses changed.
77882         This merges the 2005-10-28 md5 change into sha1.
77883
77884 2006-01-11  Jim Meyering  <jim@meyering.net>
77885
77886         Sync from coreutils.
77887         * lib/md5.c (OP): Fix spacing.
77888
77889 2006-01-11  Bruno Haible  <bruno@clisp.org>
77890
77891         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77892         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
77893         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
77894
77895 2006-01-11  Bruno Haible  <bruno@clisp.org>
77896
77897         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77898         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
77899         the "early" section as well.
77900
77901 2006-01-11  Bruno Haible  <bruno@clisp.org>
77902
77903         Avoid "ar: no archive members specified" error on MacOS X.
77904         * gnulib-tool (func_modules_add_dummy): New function.
77905         (func_import, func_create_testdir): Invoke it.
77906
77907 2006-01-11  Bruno Haible  <bruno@clisp.org>
77908
77909         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
77910         with $auxdir in AC_CONFIG_FILES statements.
77911
77912 2006-01-11  Bruno Haible  <bruno@clisp.org>
77913
77914         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77915         Initialize also noinst_HEADERS to empty.
77916
77917 2006-01-11  Bruno Haible  <bruno@clisp.org>
77918
77919         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
77920         variables.
77921         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
77922         autoreconf.
77923
77924 2006-01-11  Bruno Haible  <bruno@clisp.org>
77925
77926         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
77927         overridable by the user.
77928         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77929
77930 2006-01-10  Simon Josefsson  <jas@extundo.com>
77931
77932         * modules/sys_socket: New file.
77933
77934 2006-01-10  Simon Josefsson  <jas@extundo.com>
77935
77936         * m4/sys_socket_h.m4: New file.
77937
77938 2006-01-10  Simon Josefsson  <jas@extundo.com>
77939
77940         * lib/socket_.h: New file.
77941
77942 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77943
77944         * modules/readutmp (Maintainer): Add myself.
77945
77946 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77947
77948         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
77949         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
77950         People who are still concerned with buggy memcmp implementations
77951         can invoke gl_FUNC_MEMCMP themselves.
77952
77953 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77954
77955         * lib/regex_internal.h (BITSET_WORD_BITS):
77956         Work around a bug in 64-bit PGC (before version 6.1-2), where the
77957         preprocessor mishandles large unsigned values as if they were signed.
77958         Problem reported by Claudio Fontana in
77959         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
77960
77961 2006-01-10  Jim Meyering  <jim@meyering.net>
77962
77963         Avoid the double-free (first in fts_read, second in fts_close) that
77964         would occur when an `active' directory is made inaccessible (e.g.,
77965         via chmod a-x) during a traversal.
77966         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77967         before returning.  Reproduce this failure by
77968         mkdir -p a/b; cd a; chmod a-x . b
77969         Reported by Stavros Passas.
77970
77971         Sync from coreutils.
77972         * lib/sha1.c: Tweak grammar in a comment.
77973
77974 2006-01-10  Jim Meyering  <jim@meyering.net>
77975
77976         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
77977         Patch by Joerg Sonnenberger.
77978
77979 2006-01-10  Bruno Haible  <bruno@clisp.org>
77980
77981         * modules/readutmp: Depend on module free.
77982         * modules/strtok_r: Depend on module restrict.
77983
77984 2006-01-10  Bruno Haible  <bruno@clisp.org>
77985
77986         * modules/gettext (configure.ac): Add an invocation of
77987         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
77988
77989 2006-01-10  Bruno Haible  <bruno@clisp.org>
77990
77991         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
77992         Reported by Werner Lemberg <wl@gnu.org>.
77993
77994 2006-01-10  Bruno Haible  <bruno@clisp.org>
77995
77996         * lib/localcharset.c: Update from GNU gettext.
77997
77998 2006-01-10  Bruno Haible  <bruno@clisp.org>
77999
78000         * lib/argp.h (__const): Remove macro. Use const instead.
78001         * lib/argp-fmtstream.h (__const): Likewise.
78002         * lib/glob_.h (__const): Remove macro.
78003         * lib/glob-libc.h: Use const instead of __const.
78004
78005 2006-01-10  Bruno Haible  <bruno@clisp.org>
78006
78007         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78008         variable.
78009         Needed to avoid an automake error regarding the 'gettext' module.
78010
78011 2006-01-09  Simon Josefsson  <jas@extundo.com>
78012
78013         * modules/inet_ntop (Depends-on): Add restrict.
78014
78015 2006-01-09  Simon Josefsson  <jas@extundo.com>
78016
78017         * modules/gc-rijndael-tests (License): Put under LGPL.
78018
78019         * modules/gc-des-tests (License): Likewise.
78020
78021         * modules/gc-arcfour-tests (License): Likewise.
78022
78023         * modules/gc-arctwo-tests (License): Likewise.
78024
78025         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78026
78027         * modules/gc-hmac-sha1-tests (Files): Likewise.
78028
78029         * modules/gc-hmac-md5-tests (License): Likewise.
78030
78031         * modules/gc-sha1-tests (License): Likewise.
78032
78033         * modules/gc-md5-tests (License): Likewise.
78034
78035         * modules/gc-md4-tests (License): Likewise.
78036
78037         * modules/gc-md2-tests (License): Likewise.
78038
78039         * modules/gc-tests (License): Likewise.
78040
78041         * modules/des-tests (License): Likewise.
78042
78043         * modules/md4-tests (License): Likewise.
78044
78045         * modules/md2-tests (License): Likewise.
78046
78047 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         Sync from coreutils:
78050
78051         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78052         * modules/lib-ignore: New file.
78053         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78054         chdir-safer.m4, lchmod.m4.
78055         * modules/openat: Add mkdirat.c, openat-priv.h.
78056
78057 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78058
78059         Sync from coreutils.
78060         * m4/lib-ignore.m4: New file.
78061         * m4/lchmod.m4: New file.
78062
78063 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78064
78065         Sync from coreutils.
78066         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78067         for write access: POSIX says that must fail.
78068         * lib/fts.c (diropen): Likewise.
78069         * lib/save-cwd.c (save_cwd): Likewise.
78070         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78071         well, for minor improvements on hosts that lack O_DIRECTORY.
78072         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78073         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78074         Fall back on chown if open failed with EACCES.
78075
78076         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78077         Report an error at compile-time if only a 1-second nominal clock
78078         resolution is found.
78079
78080         * lib/lchmod.h: New file.
78081         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78082         (make_dir_parents): Use lchown rather than chown, and
78083         lchmod rather than chmod.
78084
78085         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78086         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78087         "proc" reported by n0dalus.
78088
78089         * lib/mountlist.c: Include <limits.h>.
78090         (dev_from_mount_options)
78091         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78092         New function.  It no longer assumes "dev=" has the System V meaning
78093         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78094         (read_file_system_list)
78095         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78096         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78097         dev= in that case.
78098
78099         * lib/posixtm.h (PDS_PRE_2000): New macro.
78100         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78101         allow_century.  All usages changed.  Reject dates outside the range
78102         1969-1999 if PDS_PRE_2000 is used.
78103
78104 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78105
78106         Sync from coreutils.
78107         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78108         (Time of day items): Mention the possibility of leap seconds.
78109         Problem reported by Dr. David Alan Gilbert.
78110
78111 2006-01-09  Jim Meyering  <jim@meyering.net>
78112
78113         Sync from coreutils.
78114
78115         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78116
78117         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78118
78119         * lib/modechange.c (mode_compile): Reject an invalid mode string
78120         that starts with an octal digit.  From Andreas Gruenbacher.
78121
78122         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78123         and dup to open_safer and dup_safer, respectively.
78124         (openat_permissive): Fix typo in comment.
78125
78126         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78127         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78128         (_): Remove; no longer needed.
78129         (openat): Renamed from rpl_openat; no need for rpl_openat
78130         since openat.h renames openat for us.
78131         Replace most of the body with a call to openat_permissive,
78132         to avoid duplicate code.
78133         Port to (probably hypothetical) environments were mode_t is
78134         wider than int.
78135         (openat_permissive): Require mode arg, so that we can check
78136         types better.  Put it just after flags.  Change cwd failure
78137         indicator from pointer-to-bool to pointer-to-errno-value.
78138         All callers changed.
78139         Invoke openat_save_fail and/or openat_restore_fail if
78140         cwd_errno is null, so that openat can call us.
78141         (openat_permissive, fdopendir, fstatat, unlinkat):
78142         Simplify errno handling to avoid some duplicate code,
78143         as it's OK to set errno on success.
78144         * lib/openat.h: Revamp code so that function macros depend on
78145         __OPENAT_PREFIX only, not also on AT_FDCWD.
78146         (openat_ro): Remove.  Caller changed to use openat_permissive.
78147         (openat_permissive): Now a macro, if not a function.
78148         (openat_restore_fail, openat_save_fail): Now always functions,
78149         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78150
78151         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78152         and openat.c.
78153         * lib/mkdirat.c: Include openat-priv.h.
78154         Remove definitions of macros defined therein.
78155         * lib/openat.c: Likewise.
78156
78157         * lib/mkdirat.c (mkdirat): New file and function.
78158         * lib/openat.h (mkdirat): Declare.
78159
78160         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78161
78162         * lib/openat.h (openat_permissive): Declare.
78163         (openat_ro): Define.
78164
78165         * lib/openat.c (EXPECTED_ERRNO): New macro.
78166         (openat_permissive): New function -- used in remove.c rewrite.
78167         (all functions): Set errno just before returning, only if there
78168         was an actual failure.
78169         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78170
78171         Emulate openat-family functions using Linux's procfs, if possible.
78172         Idea and some code based on Ulrich Drepper's glibc changes.
78173
78174         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78175         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78176         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78177         before falling back on save_cwd and restore_cwd.
78178         (fdopendir, fstatat, unlinkat): Likewise.
78179
78180         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78181         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78182
78183         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78184         as second argument to va_arg.  Otherwise, some versions of gcc
78185         warn that `if this code is reached, the program will abort'.
78186
78187 2006-01-09  Jim Meyering  <jim@meyering.net>
78188
78189         Sync from coreutils.
78190         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78191         Require openat-priv.h.
78192
78193 2006-01-09  Bruno Haible  <bruno@clisp.org>
78194
78195         * modules/strnlen (Include): Use strnlen.h.
78196
78197 2006-01-09  Bruno Haible  <bruno@clisp.org>
78198
78199         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78200
78201 2006-01-09  Bruno Haible  <bruno@clisp.org>
78202
78203         * lib/sysexit_.h (EX_OK): New macro.
78204         Suggested by Martin Lambers <marlam@marlam.de>.
78205
78206 2006-01-09  Bruno Haible  <bruno@clisp.org>
78207
78208         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78209         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78210
78211 2006-01-09  Bruno Haible  <bruno@clisp.org>
78212
78213         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78214         numbers.
78215
78216 2006-01-09  Bruno Haible  <bruno@clisp.org>
78217
78218         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78219         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78220         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78221         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78222
78223 2006-01-09  Bruno Haible  <bruno@clisp.org>
78224
78225         * build-aux/javacomp.sh.in: New file, moved from lib/.
78226         * modules/javacomp-script (Files): Update.
78227         (configure.ac): Add AC_CONFIG_FILES invocation.
78228         (EXTRA_DIST): Remove variable.
78229
78230         * build-aux/javaexec.sh.in: New file, moved from lib/.
78231         * modules/javaexec (Files): Update.
78232         (configure.ac): Add AC_CONFIG_FILES invocation.
78233         (EXTRA_DIST): Remove javaexec.sh.in.
78234
78235         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78236         * modules/csharpcomp-script (Files): Update.
78237         (configure.ac): Add AC_CONFIG_FILES invocation.
78238         (EXTRA_DIST): Remove variable.
78239
78240         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78241         * modules/csharpexec (Files): Update.
78242         (configure.ac): Add AC_CONFIG_FILES invocation.
78243         (EXTRA_DIST): Remove csharpexec.sh.in.
78244
78245 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78246
78247         Sync from coreutils.
78248
78249         Add POSIX ACL support
78250         * lib/acl.h (copy_acl, set_acl): Add declarations.
78251         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78252         systems other than Linux.
78253         (chmod_or_fchmod): New function: use fchmod when possible,
78254         and chmod otherwise.
78255         (file_has_acl): Add a POSIX ACL implementation, with a
78256         Linux-specific subcase.
78257         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78258         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78259         acls are unsupported.
78260         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78261         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78262         are unsupported.
78263
78264 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78265
78266         Sync from coreutils.
78267         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78268
78269 2006-01-07  Bruno Haible  <bruno@clisp.org>
78270
78271         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78272         gl_EARLY.
78273
78274 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78275
78276         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78277         Problem reported for Mingw by Mark Junker.
78278
78279 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78280
78281         * README: Gnulib normally doesn't generate a tarball.
78282
78283 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78284
78285         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78286         long int, not int, for nanosecond counts, so that people who are
78287         used to POSIX struct timespec won't be surprised.  Reported by Jim
78288         Meyering.
78289
78290 2005-12-28  Bruno Haible  <bruno@clisp.org>
78291
78292         * build-aux/config.rpath: Update from GNU gettext.
78293
78294 2005-12-16  Jim Meyering  <jim@meyering.net>
78295
78296         * modules/fprintftime: New module.
78297         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78298
78299 2005-12-16  Jim Meyering  <jim@meyering.net>
78300
78301         * m4/fprintftime.m4: New file.
78302
78303 2005-12-16  Jim Meyering  <jim@meyering.net>
78304
78305         * lib/fprintftime.c, lib/fprintftime.h: New files.
78306
78307 2005-12-15  Simon Josefsson  <jas@extundo.com>
78308
78309         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78310         new m4/socklen.m4.
78311
78312 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78313
78314         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78315         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78316
78317 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78318
78319         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78320         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78321         struct uparams is valid. Fall back to the default values if it is
78322         not.
78323
78324 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78325
78326         * modules/argp (Files): Add argp-pin.c
78327         (Depends-on): dirname
78328         (lib_SOURCES): Add argp-pin.c
78329
78330 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78331
78332         * m4/argp.m4:  Check if program_invocation_name and
78333         program_invocation_short_name are declared and define appropriate
78334         macros if they are not.
78335
78336 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78337
78338         * lib/argp-help.c (__argp_base_name): New function
78339         (__argp_short_program_name): Rewrite using __argp_base_name
78340         * lib/argp-namefrob.h: Define program_invocation_name and
78341         program_invocation_short_name if requested
78342         (__argp_base_name): Add prototype
78343         * lib/argp-parse.c (argp_def): Use gettext wrappers
78344         (argp_default_parser): Use __argp_base_name
78345         * lib/argp-pin.c: New file. Defines program_invocation_name and
78346         program_invocation_short_name on systems that lack them.
78347
78348 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78349
78350         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78351         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78352         porting problem reported by Georg Schwarz in
78353         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78354
78355 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78356
78357         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78358         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78359         porting problem reported by Georg Schwarz in
78360         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78361
78362 2005-12-05  Bruno Haible  <bruno@clisp.org>
78363
78364         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78365         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78366         Reported by Mark Junker <mjscod@gmx.de>.
78367
78368 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78369
78370         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78371         Use implementation from Albert Chin, with some
78372         comments/corrections by Stepan Kasal and myself.
78373
78374 2005-12-02  Bruno Haible  <bruno@clisp.org>
78375
78376         * gnulib-tool (func_import): Accept GPLed build tool modules when
78377         --lgpl is given.
78378         * modules/csharpcomp-script: New file.
78379         * modules/csharpcomp: Depend on it.
78380         * modules/javacomp-script: New file.
78381         * modules/javacomp: Depend on it.
78382         Suggested by Simon Josefsson.
78383
78384 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78385
78386         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78387         statement, to work around an HP-UX 10.20 compiler bug reported by
78388         Peter O'Gorman.
78389
78390 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78391
78392         * modules/savedir (Depends-on): Add openat.
78393
78394 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78395
78396         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78397         (uintmax_t) [defined uintmax_t]: Do not declare.
78398         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78399         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78400         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78401         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78402         sake of portability to weird hosts that C allows (though we don't
78403         know of any practical examples).
78404
78405         * lib/savedir.h (fdsavedir): New decl.
78406         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78407         contains most of the former guts of savedir.
78408         (savedir): Use savedirstream.
78409         Include "openat.h".
78410
78411 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78412
78413         * modules/obstack (Files): Add m4/ulonglong.m4.
78414         Problem reported by Davide Angelocola.
78415
78416 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78417
78418         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78419         coreutils no longer futzes with rounding modes.
78420
78421 2005-11-14  Jim Meyering  <jim@meyering.net>
78422
78423         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78424         replacement of mkstemp.
78425
78426 2005-11-10  Simon Josefsson  <jas@extundo.com>
78427
78428         * lib/readline.c: Remove EOL.
78429
78430 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78431
78432         * modules/gethrxtime (Depends-on): Add gettime.
78433
78434 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78435
78436         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78437         or gettimeofday; no longer needed.
78438
78439 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78442         time business.
78443         (gethrxtime) [! (HAVE_NANOUPTIME
78444         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78445         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78446         our own approximation.
78447
78448 2005-11-08  Eric Blake  <ebb9@byu.net>
78449
78450         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78451
78452 2005-11-08  Eric Blake  <ebb9@byu.net>
78453
78454         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78455
78456 2005-11-04  Bruno Haible  <bruno@clisp.org>
78457
78458         * gnulib-tool: Implement --update mode.
78459
78460 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78461
78462         Fix porting problem reported by Theodoros V. Kalamatianos.
78463         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78464         Don't assume that futimes failing means we must fail.
78465
78466 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78467
78468         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78469         variables to suggest the intended function of the PATH_MAX check.
78470
78471 2005-10-30  Kean Johnston  <jkj@sco.com>
78472
78473         Trivial changes to support SCO systems.
78474         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78475         as PATH_MAX.
78476         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78477         where __ptr is null when no I/O is pending.
78478
78479 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78480
78481         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78482         leave errno alone.  Problem reported by Dmitry V. Levin.
78483
78484 2005-10-28  Simon Josefsson  <jas@extundo.com>
78485
78486         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78487         Test more.
78488
78489         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78490
78491         * modules/md2, modules/md2-tests: New files.
78492
78493 2005-10-28  Simon Josefsson  <jas@extundo.com>
78494
78495         * m4/inet_ntop.m4: More tests.
78496
78497         * m4/gc-md2.m4, md2.m4: New file.
78498
78499 2005-10-28  Simon Josefsson  <jas@extundo.com>
78500
78501         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78502         "restrict" keywords, as per POSIX.  Protect the function
78503         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78504         Don't use K&R prototypes.  Check the sprintf return values.
78505         Re-define EAFNOSUPPORT if not present.  Indent.
78506
78507         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78508         suggested by Bruno Haible <bruno@clisp.org>.
78509
78510         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78511
78512         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78513
78514         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78515         libgcrypt).
78516
78517         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78518
78519         * lib/md2.h, lib/md2.c: New files.
78520
78521 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78522
78523         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78524         errno alone.  Problem reported by Frederic Jolliton.
78525
78526 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78527
78528         * modules/verify (License): Change from GPL to LGPL.  This is a
78529         tiny module and there are apparently near-equivalents that are
78530         under the BSD license.
78531
78532 2005-10-24  Simon Josefsson  <jas@extundo.com>
78533
78534         * modules/sha1: Relicense to LGPL.
78535
78536 2005-10-24  Simon Josefsson  <jas@extundo.com>
78537
78538         * lib/md4.h: Shrink buffer size, now that we changed the type.
78539
78540 2005-10-23  Simon Josefsson  <jas@extundo.com>
78541
78542         * gnulib-tool (func_import): Fix --tests-base.
78543
78544 2005-10-22  Simon Josefsson  <jas@extundo.com>
78545
78546         * modules/arcfour (Depends-on): Need stdint.
78547
78548 2005-10-22  Simon Josefsson  <jas@extundo.com>
78549
78550         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78551         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78552
78553 2005-10-22  Simon Josefsson  <jas@extundo.com>
78554
78555         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78556         suggested by Bruno Haible <bruno@clisp.org>.
78557
78558 2005-10-22  Simon Josefsson  <jas@extundo.com>
78559
78560         * lib/crc.h: Include stddef.h, for size_t.
78561
78562 2005-10-22  Simon Josefsson  <jas@extundo.com>
78563
78564         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78565         arcfour_context struct (simplify test vector testing in GNU
78566         Shishi).
78567
78568 2005-10-21  Simon Josefsson  <jas@extundo.com>
78569
78570         * modules/des, modules/des-tests: New files.
78571
78572         * modules/gc-des, modules/gc-des-tests: New files.
78573
78574         * tests/test-des.c, tests/test-gc-des.c: New file.
78575
78576 2005-10-21  Simon Josefsson  <jas@extundo.com>
78577
78578         * modules/arctwo, modules/arctwo-tests: New files.
78579
78580         * tests/test-arctwo.c: New file.
78581
78582         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78583
78584         * tests/test-gc-arctwo.c: New file.
78585
78586 2005-10-21  Simon Josefsson  <jas@extundo.com>
78587
78588         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78589         Bruno Haible <bruno@clisp.org>.
78590
78591         * m4/gc-des.m4: New file.
78592
78593 2005-10-21  Simon Josefsson  <jas@extundo.com>
78594
78595         * m4/arctwo.m4: New file.
78596
78597         * m4/gc-arctwo.m4: New file.
78598
78599 2005-10-21  Simon Josefsson  <jas@extundo.com>
78600
78601         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78602         block.
78603
78604 2005-10-21  Simon Josefsson  <jas@extundo.com>
78605
78606         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78607         <bruno@clisp.org>.
78608
78609         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78610
78611         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78612         Bruno Haible <bruno@clisp.org>.
78613
78614         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78615         <bruno@clisp.org>.
78616
78617 2005-10-21  Simon Josefsson  <jas@extundo.com>
78618
78619         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78620
78621 2005-10-21  Simon Josefsson  <jas@extundo.com>
78622
78623         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78624
78625 2005-10-21  Simon Josefsson  <jas@extundo.com>
78626
78627         * lib/des.h, lib/des.c: New files.
78628
78629         * lib/gc-gnulib.c: Support DES.c
78630
78631 2005-10-21  Simon Josefsson  <jas@extundo.com>
78632
78633         * lib/arctwo.h, lib/arctwo.c: New files.
78634
78635         * lib/gc-gnulib.c: Support ARCTWO.
78636
78637 2005-10-21  Simon Josefsson  <jas@extundo.com>
78638
78639         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78640         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78641
78642 2005-10-21  Simon Josefsson  <jas@extundo.com>
78643
78644         * gnulib-tool (func_import, func_create_testdir): Define automake
78645         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78646         Makefile.am snippet),
78647         suggested by Bruno Haible <bruno@clisp.org>.
78648
78649         * modules/gc (Makefile.am): Use it.
78650
78651 2005-10-21  Bruno Haible  <bruno@clisp.org>
78652
78653         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78654         patch.
78655
78656 2005-10-19  Simon Josefsson  <jas@extundo.com>
78657
78658         * tests/test-gc-rijndael.c: New file.
78659
78660         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78661
78662 2005-10-19  Simon Josefsson  <jas@extundo.com>
78663
78664         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78665         interface too.
78666
78667 2005-10-19  Simon Josefsson  <jas@extundo.com>
78668
78669         * tests/test-gc-arcfour.c: New file.
78670
78671         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78672
78673 2005-10-19  Simon Josefsson  <jas@extundo.com>
78674
78675         * modules/gc-md4, modules/gc-md4-tests: New file.
78676
78677         * tests/test-gc-md4.c: New file.
78678
78679 2005-10-19  Simon Josefsson  <jas@extundo.com>
78680
78681         * m4/gc-md4.m4: New file.
78682
78683 2005-10-19  Simon Josefsson  <jas@extundo.com>
78684
78685         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78686         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78687         <kasal@ucw.cz>.
78688
78689 2005-10-19  Simon Josefsson  <jas@extundo.com>
78690
78691         * m4/gc-arcfour.m4: New file.
78692
78693         * m4/gc-rijndael.m4: New file.
78694
78695 2005-10-19  Simon Josefsson  <jas@extundo.com>
78696
78697         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78698
78699 2005-10-19  Simon Josefsson  <jas@extundo.com>
78700
78701         * lib/gc-gnulib.c: Support ARCFOUR.
78702
78703 2005-10-19  Simon Josefsson  <jas@extundo.com>
78704
78705         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78706         support.
78707
78708         * lib/gc.h: Add ECB enum type.
78709
78710         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78711
78712 2005-10-18  Simon Josefsson  <jas@extundo.com>
78713
78714         * tests/test-md5.c: New file.
78715
78716         * modules/md5-tests: New file.
78717
78718 2005-10-18  Simon Josefsson  <jas@extundo.com>
78719
78720         * tests/test-md4.c: New file.
78721
78722         * modules/md4, modules/md4-tests: New files.
78723
78724 2005-10-18  Simon Josefsson  <jas@extundo.com>
78725
78726         * m4/md4.m4: New file.
78727
78728 2005-10-18  Simon Josefsson  <jas@extundo.com>
78729
78730         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78731
78732 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78733
78734         * gnulib-tool (func_create_testdir): Omit the second check whether
78735         BUILT_SOURCES in nonempty.
78736
78737 2005-10-17  Simon Josefsson  <jas@extundo.com>
78738
78739         * tests/test-rijndael.c: New file.
78740
78741 2005-10-17  Simon Josefsson  <jas@extundo.com>
78742
78743         * modules/sha1: Depend on stdint instead of md5.
78744
78745         * modules/md5: Depend on stdint, remove uint32_t.
78746
78747 2005-10-17  Simon Josefsson  <jas@extundo.com>
78748
78749         * modules/gc-sha1-tests: New file.
78750
78751         * tests/test-gc-sha1.c: New file.
78752
78753 2005-10-17  Simon Josefsson  <jas@extundo.com>
78754
78755         * m4/md5.m4: Remove call to uint32_t.m4.
78756
78757 2005-10-17  Simon Josefsson  <jas@extundo.com>
78758
78759         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78760
78761         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78762         md5.h.
78763
78764         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78765
78766         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78767
78768 2005-10-17  Simon Josefsson  <jas@extundo.com>
78769
78770         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78771
78772 2005-10-17  Simon Josefsson  <jas@extundo.com>
78773
78774         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78775
78776 2005-10-17  Simon Josefsson  <jas@extundo.com>
78777
78778         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78779
78780         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78781
78782 2005-10-17  Bruno Haible  <bruno@clisp.org>
78783
78784         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78785         that it can also be used in a test.
78786
78787 2005-10-16  Bruno Haible  <bruno@clisp.org>
78788
78789         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78790         TESTS_ENVIRONMENT, so that individual tests can augment it.
78791
78792         * gnulib-tool (func_create_testdir): Use an intermediate target for
78793         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78794         macros, like $(ALLOCA_H), which cannot be passed through the command
78795         line.
78796
78797 2005-10-15  Simon Josefsson  <jas@extundo.com>
78798
78799         * modules/rijndael-tests: New file.
78800
78801         * modules/rijndael: New file.
78802
78803 2005-10-15  Simon Josefsson  <jas@extundo.com>
78804
78805         * m4/rijndael.m4: New file.
78806
78807 2005-10-15  Simon Josefsson  <jas@extundo.com>
78808
78809         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78810
78811         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78812
78813 2005-10-14  Simon Josefsson  <jas@extundo.com>
78814
78815         * tests/test-arcfour.c: New file.
78816
78817         * modules/arcfour, modules/arcfour-tests: New files.
78818
78819 2005-10-14  Simon Josefsson  <jas@extundo.com>
78820
78821         * m4/arcfour.m4: New file.
78822
78823 2005-10-14  Simon Josefsson  <jas@extundo.com>
78824
78825         * lib/arcfour.h, lib/arcfour.c: New files.
78826
78827 2005-10-14  Roland McGrath  <roland@redhat.com>
78828
78829         Import from libc.  [BZ #1331]
78830         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
78831         macro argument.
78832         Reported by Matej Vela <vela@debian.org>.
78833
78834 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78835
78836         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
78837         include <wchar.h>; no longer needed.
78838
78839 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78840
78841         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
78842
78843 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
78844         and  Ulrich Drepper  <drepper@redhat.com>
78845
78846         Import from libc.
78847         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
78848         instead of inline stream orientation test and two separate
78849         function calls.  Pay no attention to USE_IN_LIBIO.
78850
78851 2005-10-13  Simon Josefsson  <jas@extundo.com>
78852
78853         * modules/gc-hmac-md5-tests: New file.
78854
78855         * tests/test-gc-hmac-sha1.c: New file.
78856
78857         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
78858
78859         * modules/gc-hmac-md5-tests: New file.
78860
78861         * tests/test-gc-md5.c: New file.
78862
78863         * modules/gc-md5-tests: New file.
78864
78865 2005-10-13  Simon Josefsson  <jas@extundo.com>
78866
78867         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
78868         Move memory allocation outside of loop.
78869
78870 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
78871
78872         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
78873         intermediate directory is in a read-only file system.  Problem
78874         reported by Eric Blake.
78875
78876 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
78877
78878         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
78879
78880 2005-10-12  Simon Josefsson  <jas@extundo.com>
78881
78882         * tests/test-hmac-sha1.c: New file.
78883
78884         * modules/hmac-sha1-tests: New file.
78885
78886         * modules/hmac-sha1: New file.
78887
78888 2005-10-12  Simon Josefsson  <jas@extundo.com>
78889
78890         * modules/gc-sha1: New file.
78891
78892 2005-10-12  Simon Josefsson  <jas@extundo.com>
78893
78894         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
78895
78896         * tests/test-gc-pbkdf2-sha1.c: New file.
78897
78898 2005-10-12  Simon Josefsson  <jas@extundo.com>
78899
78900         * modules/gc-md5, modules/gc-hmac-md5: New files.
78901
78902         * modules/gc (Files): Remove md5, memxor and hmac files.
78903
78904 2005-10-12  Simon Josefsson  <jas@extundo.com>
78905
78906         * m4/gc-pbkdf2-sha1.m4: New file.
78907
78908         * m4/gc-hmac-sha1.m4: New file.
78909
78910         * m4/gc-sha1: New file.
78911
78912         * m4/hmac-sha1.m4: New file.
78913
78914 2005-10-12  Simon Josefsson  <jas@extundo.com>
78915
78916         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
78917
78918         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
78919
78920 2005-10-12  Simon Josefsson  <jas@extundo.com>
78921
78922         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
78923         suggested by Bruno Haible <bruno@clisp.org>.
78924
78925 2005-10-12  Simon Josefsson  <jas@extundo.com>
78926
78927         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
78928
78929 2005-10-12  Simon Josefsson  <jas@extundo.com>
78930
78931         * lib/gc-pbkdf2-sha1.c: New file.
78932
78933         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
78934
78935 2005-10-12  Simon Josefsson  <jas@extundo.com>
78936
78937         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
78938
78939         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
78940
78941 2005-10-12  Simon Josefsson  <jas@extundo.com>
78942
78943         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
78944         GC_USE_HMAC_MD5, respectively.
78945
78946         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
78947         (gc_md5): Fix typo.
78948
78949         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
78950
78951         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
78952
78953         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
78954
78955 2005-10-12  Bruno Haible  <bruno@clisp.org>
78956
78957         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
78958         Reported by Stepan Kasal <kasal@ucw.cz>.
78959
78960 2005-10-11  Simon Josefsson  <jas@extundo.com>
78961
78962         * tests/test-crc.c: New file.
78963
78964         * modules/crc, modules/crc-tests: New files.
78965
78966 2005-10-11  Simon Josefsson  <jas@extundo.com>
78967
78968         * m4/crc.m4: New file.
78969
78970 2005-10-11  Simon Josefsson  <jas@extundo.com>
78971
78972         * lib/gc.h: Add gc_hash and gc_hash_buffer.
78973
78974         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
78975
78976         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
78977
78978 2005-10-11  Simon Josefsson  <jas@extundo.com>
78979
78980         * lib/crc.h, lib/crc.c: New files.
78981
78982         * lib/gc.h (gc_hash_buffer): Add doc.
78983
78984 2005-10-11  Bruno Haible  <bruno@clisp.org>
78985
78986         * modules/c-strcasestr: New file.
78987         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
78988
78989 2005-10-11  Bruno Haible  <bruno@clisp.org>
78990
78991         * modules/c-strcase: New file.
78992         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
78993
78994 2005-10-11  Bruno Haible  <bruno@clisp.org>
78995
78996         * lib/strcasecmp.c: Include limits.h.
78997         (strcasecmp): Avoid integer overflow on exotic platforms.
78998         * lib/strncasecmp.c: Include limits.h.
78999         (strncasecmp): Avoid integer overflow on exotic platforms.
79000         Reported by Paul Eggert.
79001
79002 2005-10-11  Bruno Haible  <bruno@clisp.org>
79003
79004         * lib/c-strcasestr.h: New file, from GNU gettext.
79005         * lib/c-strcasestr.c: New file, from GNU gettext.
79006
79007 2005-10-11  Bruno Haible  <bruno@clisp.org>
79008
79009         * lib/c-strcase.h: New file, from GNU gettext.
79010         * lib/c-strcasecmp.c: New file, from GNU gettext.
79011         * lib/c-strncasecmp.c: New file, from GNU gettext.
79012
79013 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79014
79015         * modules/mempcpy (License): GPL -> LGPL.
79016         * modules/strchrnul (License): Likewise.
79017         * modules/sysexits (License): Likewise.
79018
79019 2005-10-08  Simon Josefsson  <jas@extundo.com>
79020
79021         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79022
79023 2005-10-07  Simon Josefsson  <jas@extundo.com>
79024
79025         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79026
79027 2005-10-06  Simon Josefsson  <jas@extundo.com>
79028
79029         * tests/test-hmac-md5.c: New file.
79030
79031         * modules/hmac-md5-tests: New file.
79032
79033         * modules/hmac-md5: New file.
79034
79035 2005-10-06  Simon Josefsson  <jas@extundo.com>
79036
79037         * m4/hmac-md5.m4: New file.
79038
79039         * m4/memxor.m4: Require gl_C_RESTRICT.
79040
79041 2005-10-06  Simon Josefsson  <jas@extundo.com>
79042
79043         * lib/memxor.c (memxor): Avoid casts and warnings.
79044
79045 2005-10-06  Simon Josefsson  <jas@extundo.com>
79046
79047         * lib/hmac-md5.c: New file.
79048
79049         * lib/hmac.h: New file.
79050
79051 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79052
79053         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79054         promotes to int, not unsigned int, to catch the AIX 5.3
79055         compiler bug.
79056
79057 2005-10-05  Simon Josefsson  <jas@extundo.com>
79058
79059         * modules/memxor: New file.
79060
79061         * modules/iconv (Files): Move config.rpath to havelib, it is used
79062         there.
79063
79064         * modules/havelib (Files): Add config.rpath.
79065
79066 2005-10-05  Simon Josefsson  <jas@extundo.com>
79067
79068         * m4/memxor.m4: New file.
79069
79070 2005-10-05  Simon Josefsson  <jas@extundo.com>
79071
79072         * lib/memxor.c (memxor): Fix compiler error.
79073
79074         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79075         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79076
79077         * lib/memxor.h, lib/memxor.c: New files.
79078
79079         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79080         we assume all systems have it, suggested by Jim Meyering
79081         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79082         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79083         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79084         same reasons.
79085
79086 2005-10-05  Simon Josefsson  <jas@extundo.com>
79087
79088         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79089
79090 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79093         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79094         needed, since the source code now assumes these .h files.
79095
79096 2005-10-05  Derek Price  <derek@ximbiot.com>
79097
79098         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79099
79100 2005-10-05  Bruno Haible  <bruno@clisp.org>
79101
79102         * modules/stdint (License): Change to LGPL.
79103
79104 2005-10-04  Simon Josefsson  <jas@extundo.com>
79105
79106         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79107         D. Baushke" <mdb@gnu.org>.
79108
79109 2005-10-04  Bruno Haible  <bruno@clisp.org>
79110
79111         * lib/verify.h (verify_true): Provide alternative definition for C++.
79112
79113 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79114
79115         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79116         (SSIZE_MAX): New macro, if not already defined.
79117         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79118         than 2 GiB.
79119
79120 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79121
79122         Sync from coreutils.
79123         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79124         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79125         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79126         ULLONG_MAX doesn't work with 2.7.2.1.
79127
79128 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79129
79130         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79131         From Ben Pfaff.
79132
79133         * modules/exclude (Depends-on): Depend on verify.
79134         * modules/strtoimax (Depends-on): Likewise.
79135         * modules/utimecmp (Depends-on): Likewise.
79136
79137 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79138
79139         * lib/exclude.c: Include verify.h.
79140         (verify): Remove.  All callers changed to use verify.h's version.
79141         * lib/strtoimax.c: Likewise.
79142         * lib/utimecmp.c: Likewis.e
79143
79144         Sync from coreutils.
79145         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79146         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79147         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79148         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79149         bother returning ENOSYS if settimeofday or stime fails; just let
79150         them return whatever errno they want to return.
79151         * lib/utimens.c: Include unistd.h, for dup2.
79152         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79153         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79154
79155 2005-10-02  Jim Meyering  <jim@meyering.net>
79156
79157         Sync from coreutils.
79158         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79159         from glibc-2.2.5 that fails for read-only files.
79160
79161 2005-10-02  Jim Meyering  <jim@meyering.net>
79162
79163         Sync from coreutils.
79164         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79165         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79166         `#if HAVE_CONFIG_H'.
79167         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79168         Remove AT_FDCWD test.
79169         Do not consume the fd unless successful.
79170         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79171         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79172         block, so that we don't even try to compile it if settimeofday is
79173         available.  This works around a compilation failure on OSF1 V5.1,
79174         due to stime requiring a `long int*' while tv_sec is `int'.
79175
79176 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79177
79178         Sync from coreutils.
79179         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79180         against `yes', rather than just testing for nonempty.
79181
79182 2005-10-01  Simon Josefsson  <jas@extundo.com>
79183
79184         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79185         and Darwin.
79186
79187         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79188         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79189         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79190         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79191         Check if struct addrinfo is declared.
79192
79193 2005-10-01  Simon Josefsson  <jas@extundo.com>
79194
79195         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79196         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79197         AI_* and EAI_* definitions.  Protect function declarations.
79198
79199 2005-10-01  Jim Meyering  <jim@meyering.net>
79200
79201         Sync from coreutils.
79202
79203         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79204         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79205         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79207         in the inet and nsl libraries.  Required on Solaris 5.7.
79208
79209 2005-10-01  Jim Meyering  <jim@meyering.net>
79210
79211         Sync from coreutils.
79212         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79213         in the inet and nsl libraries.  Required on Solaris 5.7.
79214
79215 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79216
79217         * lib/getdelim.c (getdelim): Remove unused variables.
79218
79219 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79220
79221         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79222         so that the code works even with ancient cpp.  Portability problem
79223         with GCC 2.7.2.1 reported by Thomas M.Ott.
79224
79225 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79226
79227         * modules/regex (Depends-on): Add strcase.
79228
79229         * modules/gethostname (Licence): Change from GPL to LGPL, since
79230         gethostname.c is a trivial implementation of a standard library
79231         function.
79232         * modules/poll (License): Change from GPL to LGPL, since it's
79233         derived from LGPL code.
79234
79235 2005-09-27  Jim Meyering  <jim@meyering.net>
79236
79237         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79238         HAVE_CONFIG_H.
79239
79240         * lib/intprops.h (signed_type_or_expr__): Define.
79241         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79242         for unsigned types.
79243
79244 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79245
79246         * lib/verify.h (verify_expr): Remove, replacing with:
79247         (verify_true): New macro that returns true instead of void.
79248         (verify_type__): Remove.
79249         (verify): Use verify_true rather than verify_type__.
79250
79251 2005-09-26  Bruno Haible  <bruno@clisp.org>
79252
79253         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79254         is necessary.
79255         (lib_SOURCES): Remove mbchar.c.
79256         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79257         (Files): Add m4/mbrtowc.m4.
79258         * modules/mbiter: Likewise.
79259         * modules/mbuiter: Likewise.
79260
79261 2005-09-26  Bruno Haible  <bruno@clisp.org>
79262
79263         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79264         compile mbchar.c if they are not both present.
79265         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79266         * m4/mbiter.m4 (gl_MBITER): Likewise.
79267         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79268         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79269         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79270
79271 2005-09-25  Jim Meyering  <jim@meyering.net>
79272
79273         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79274         also uses socklen_t.
79275
79276 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79277
79278         * lib/utimens.c (ENOSYS): Define if not already defined.
79279         (futimens): Support having a null PATH if the file descriptor
79280         is nonnegative.
79281
79282         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79283         Remove.
79284         (__attribute): Define to empty unless GCC 3.1 or later.
79285         This works around a core dump on OpenBSD 3.4, which has GCC
79286         2.95.3, which dumps core when given __attribute__(()).  It also
79287         simplifies other tests, since we really don't want to bother with
79288         worrying about which ancient version of GCC supported what.
79289         Original problem reported by Yoann Vandoorselaere, with part of
79290         the fix suggested by Derek Price.
79291
79292 2005-09-24  Jim Meyering  <jim@meyering.net>
79293
79294         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79295         so we can once again use a positive bitfield width of 1 -- now we
79296         don't have to explain why we were using a bitfield width of 2.
79297
79298 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79299
79300         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79301         and similarly for the other external symbols.  Problem reported
79302         by James Gallager.
79303
79304         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79305         bug reported by Jim Meyering.
79306
79307         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79308         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79309         not needed, since socklen is a prerequisite module.
79310
79311 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79312
79313         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79314         Problem reported by Eric Blake.
79315         (getaddrinfo): Initialize se so that it's not garbage.
79316         Redo internal storage allocation so that it doesn't make unportable
79317         assumptions about alignment.
79318         Fix a memory leak.
79319
79320         * lib/utimens.c (futimens): Use futimesat if available.
79321         Prefer it to futimes since it doesn't have the futimes bug.
79322
79323         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79324         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79325         Instead, declare a function that returns a pointer to an array,
79326         and use verify_type__ to declare the size of the array.
79327         Problem and germ of a solution reported by Bruno Haible.
79328         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79329         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79330
79331 2005-09-23  Jim Meyering  <jim@meyering.net>
79332
79333         Sync from coreutils.
79334         Correct build failure (socklen_t not defined) on at least
79335         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79336         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79337
79338 2005-09-23  Jim Meyering  <jim@meyering.net>
79339
79340         * modules/getaddrinfo (Depends-on): Add socklen.
79341
79342 2005-09-23  Bruno Haible  <bruno@clisp.org>
79343
79344         * tests/test-verify.c: New file.
79345
79346 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79347
79348         Sync from coreutils.
79349
79350         * modules/argmatch (Depends-on): Add verify.
79351         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79352         unistd-safer.
79353         * modules/save-cwd (Depends-on): Likewise.
79354
79355         * modules/openat (Files): Add lib/openat-die.c.
79356         (Depends-on): Remove error, exitfail.
79357         Add dirname.
79358
79359         * modules/verify: New file.
79360         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79361         with "verify" module.
79362
79363 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79364
79365         Sync from coreutils.
79366
79367         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79368         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79369         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79370         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79371         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79372         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79373         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79374         Don't bother checking for string.h, stdlib.h, unistd.h.
79375         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79376         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79377         module's job.
79378         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79379         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79380
79381         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79382         (gl_GETDATE): Use it.
79383
79384         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79385
79386 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         Sync from coreutils.
79389
79390         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79391         stat-time.h.
79392         * lib/argmatch.h: Include verify.h
79393         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79394         (ARGMATCH_ASSERT): Remove; unused.
79395         * lib/canonicalize.c: Assume STDC_HEADERS.
79396         * lib/exclude.c: Include "strcase.h".
79397         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79398         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79399         and stdio-safer.h.
79400         (getusershell): Call fopen, not fopen_safer.
79401         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79402         Do not include unistd-safer.h.
79403         (save_cwd): Don't call fd_safer; no longer needed
79404         now that we include fcntl--.h.
79405
79406         * lib/getdate.y (relative_time): New type.
79407         (RELATIVE_TIME_0): New constant.
79408         (parser_control): Use relative_time instead of doing it ourselves.
79409         (%union): Add new relative_time rel member.
79410         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79411         Now typeless.
79412         (relunit, relunit_snumber): Now of type rel.
79413         (zone, rel, relunit, get_date): Adjust to above changes.
79414
79415         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79416         Do not include unistd-safer.h.
79417         (getloadavg): Don't call fd_safer; no longer needed
79418         now that we include fcntl--.h.
79419
79420         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79421         (make_dir_parents): Treat ENOSYS like EEXIST.
79422
79423         Improve quality of diagnostics on restore_cwd failure.
79424         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79425         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79426         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79427         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79428         each time through the loop.  Do not diagnose restore_cwd failure;
79429         that is the caller's job (and perhaps the caller does not care).
79430
79431         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79432         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79433         If the file already exists but is not a directory, don't bother
79434         to try to make its parents.
79435         Close potential file descriptor leak if we can't chdir("/") (!).
79436         Don't always return true if chdir($PWD) fails; return true only
79437         if the requested action was done successfully (except for the
79438         chdir($PWD)).
79439         Don't log final directory unless we actually made it.
79440         Refactor to avoid duplicate code to fix up permissions.
79441         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79442
79443         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79444         to make it a bit faster and (I hope) clearer.
79445         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79446         Fix bug in formats like %2N.
79447
79448         * lib/verify.h: New file.
79449
79450 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79451
79452         Sync from coreutils.
79453         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79454
79455 2005-09-22  Jim Meyering  <jim@meyering.net>
79456
79457         Sync from coreutils.
79458
79459         * m4/lstat.m4 (gl_FUNC_LSTAT):
79460         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79461         Remove obsolete comment.
79462         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79463         * m4/xstrtod.m4: Likewise.
79464
79465         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79466
79467 2005-09-22  Jim Meyering  <jim@meyering.net>
79468
79469         Sync from coreutils.
79470
79471         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79472
79473         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79474         the .tm_year member, since otherwise gcc-4.0 would now warn about
79475         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79476
79477         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79478         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79479
79480         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79481         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79482         when run in a time zone for which daylight savings time is in effect
79483         for the starting date.
79484
79485         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79486         stop us from restricting permissions of just-created absolute-named
79487         directories.
79488         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79489         to restore initial working directory.
79490         * lib/mkdir-p.c (make_dir_parents): New parameter:
79491         different_working_dir, to tell caller if/when we change the working
79492         directory and are unable to return to the initial one.
79493         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79494         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79495         `return false'.  This fixes a bug introduced on 2004-07-30.
79496
79497         * lib/openat.c (fdopendir): Be sure to close the supplied
79498         file descriptor before returning.  This makes our replacement
79499         implementation a little closer to Solaris's, where fdopendir
79500         ties the file descriptor to the returned DIR* pointer.
79501         * lib/openat.c (unlinkat): New function.
79502         * lib/openat.h (unlinkat): Add prototype.
79503         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79504         (openat_restore_fail): Rename from openat_restore_die.
79505         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79506
79507         Provide an alternative to exiting immediately upon save_cwd or
79508         restore_cwd failure.  Now, an application can arrange e.g.,
79509         to perform a longjump in that case.
79510         * lib/openat.c: Include dirname.h.
79511         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79512         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79513         and openat_restore_die rather than calling error directly.
79514         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79515
79516         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79517         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79518         define.
79519
79520         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79521         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79522                             int utc, int nanoseconds);
79523         Background:
79524         date should not have to allocate a megabyte of virtual memory to
79525         handle a format argument like +%1048575T.  When implemented with
79526         strftime, it must allocate such a buffer, use strftime to fill it
79527         in, print it, then free it.
79528         With fprintftime, it simply prints everything and exits.
79529         With no need for memory allocation, that's one fewer way to fail.
79530         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79531         optional field width, not before, so we accept %9:z, not %:9z.
79532         (my_strftime): Be sure to use L_('x') for literals.
79533
79534         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79535         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79536         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79537         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79538         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79539         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79540         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79541         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79542         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79543         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79544         * lib/xgethostname.c, lib/xreadlink.c:
79545         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79546
79547         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79548         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79549         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79550         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79551         and don't include <sys/file.h>).
79552
79553 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79554
79555         Sync from coreutils.
79556
79557         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79558         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79559         [!LDAV_DONE]: Avoid unused variable warning.
79560
79561 2005-09-21  Bruno Haible  <bruno@clisp.org>
79562
79563         * lib/unicodeio.h (unicode_to_mb): New declaration.
79564
79565 2005-09-20  Derek Price  <derek@ximbiot.com>
79566
79567         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79568         getaddrinfo.h.
79569
79570 2005-09-20  Bruno Haible  <bruno@clisp.org>
79571
79572         * gnulib-tool: Remove trailing slashes from the values specified for
79573         --source-base, --m4-base, --tests-base, --aux-dir.
79574         Suggested by Simon Josefsson <jas@extundo.com>.
79575
79576 2005-09-20  Bruno Haible  <bruno@clisp.org>
79577
79578         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79579         func_modules_to_filelist, func_import, func_create_testdir): Make all
79580         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79581         change when gnulib-tool is invoked in a different locale.
79582
79583 2005-09-19  Simon Josefsson  <jas@extundo.com>
79584
79585         * m4/socklen.m4: Fix typo.
79586
79587 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79588
79589         Use a consistent style for including <config.h>.
79590         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79591         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79592         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79593         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79594         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79595         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79596         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79597         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79598         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79599         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79600         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79601         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79602         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79603         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79604         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79605         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79606         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79607         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79608         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79609         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79610         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79611         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79612         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79613         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79614         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79615         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79616         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79617         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79618         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79619         lib/xstrtoumax.c, lib/yesno.c:
79620         Standardize inclusion of config.h.
79621         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79622         lib/inttostr.h:  Removed inclusion of config.h from header files.
79623         * lib/inttostr.c:  Adjusted in-tree users.
79624         * lib/timespec.h: Remove superfluous warning to include config.h.
79625         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79626         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79627         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79628         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79629         config.h with HAVE_CONFIG_H.
79630
79631 2005-09-19  Jim Meyering  <jim@meyering.net>
79632
79633         * modules/pathmax (License): Change to LGPL.
79634
79635 2005-09-19  Derek Price  <derek@ximbiot.com>
79636
79637         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79638
79639 2005-09-19  Bruno Haible  <bruno@clisp.org>
79640
79641         * gnulib-tool (import): Provide default for --tests-base.
79642
79643 2005-09-19  Bruno Haible  <bruno@clisp.org>
79644
79645         * doc/quote.texi: New file, extracted from gnulib.texi.
79646         * doc/ctime.texi: New file, extracted from gnulib.texi.
79647         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79648         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79649         * doc/gnulib.texi: Include them.
79650
79651 2005-09-18  Bruno Haible  <bruno@clisp.org>
79652
79653         Portability fix.
79654         * gnulib-tool (func_readlink): New function.
79655         (func_ln_if_changed): Use it.
79656
79657 2005-09-18  Bruno Haible  <bruno@clisp.org>
79658
79659         * gnulib-tool: Support --with-tests also with --import.
79660         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79661         (func_import): Use variables $testsbase and $inctests. Emit a
79662         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79663         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79664         SUBDIRS += $testsdir.
79665         (func_create_testdir): Update.
79666
79667 2005-09-18  Bruno Haible  <bruno@clisp.org>
79668
79669         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79670         instead of $dry_run.
79671         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79672         (func_ln_if_changed): Don't handle dry-run here.
79673         (func_import): In dry-run mode, detect more precisely which actions
79674         would be performed, and don't use "...ing" verbs.
79675
79676 2005-09-18  Bruno Haible  <bruno@clisp.org>
79677
79678         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79679         (func_import): Use join on two temporary files instead of three nested
79680         loops, in order to determine which files are new or old.
79681
79682 2005-09-18  Bruno Haible  <bruno@clisp.org>
79683
79684         * gnulib-tool (func_import): Comment out code that spits out the
79685         new files with --dry-run.
79686
79687 2005-09-18  Bruno Haible  <bruno@clisp.org>
79688
79689         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79690
79691 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79692
79693         * lib/stat-time.h: New file.
79694         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79695         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79696         in a different way.
79697         (timespec_cmp): New function.
79698         * lib/utimecmp.c: Include stat-time.h.
79699         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79700         members exist, not on the obsolescent ST_MTIM_NSEC.
79701         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79702
79703 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79704
79705         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79706
79707 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79708
79709         * MODULES.html.sh (File system functions): Add stat-time.
79710         * modules/stat-time: New file.
79711         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79712         is now done in a different way, by the stat-time module.
79713         * modules/utimecmp (Depends-on): Add stat-time.
79714
79715 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79716
79717         * m4/st_mtim.m4: Remove.  Superseded by...
79718         * m4/stat-time.m4: New file.
79719         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79720         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79721
79722 2005-09-15  Derek Price  <derek@ximbiot.com>
79723
79724         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79725
79726 2005-09-15  Derek Price  <derek@ximbiot.com>
79727
79728         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79729         * lib/regex_internal.c: Ditto, using this...
79730         (__GNUC_PREREQ): ...new macro.
79731         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79732         using...
79733         (__GNUC_PREREQ): ...this new macro.
79734
79735         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79736
79737 2005-09-15  Derek Price  <derek@ximbiot.com>
79738             Paul Eggert  <eggert@cs.ucla.edu>
79739
79740         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79741         changes, consolidating in...
79742         * lib/regex_internal.h: ...this file.
79743
79744 2005-09-13  Jim Meyering  <jim@meyering.net>
79745
79746         * lib/canon-host.c: Filter through gnu indent and reword comments
79747         slightly.
79748         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79749
79750 2005-09-13  Derek Price  <derek@ximbiot.com>
79751
79752         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79753         failure.
79754         Reported by Jim Meyering  <jim@meyering.net>.
79755
79756 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79757
79758         * lib/base64.c: Typo.
79759         (base64_encode): Put b64str in initialized data section.
79760
79761 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79762
79763         Merge glibc and coreutils changes into gnulib, plus a few
79764         extra fixes.
79765         * lib/md5.c: Use #error rather than a string.
79766         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79767         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79768         (__attribute__): Define to empty for non recent-GCC.
79769         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79770         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79771         Renamed from their non-__ counterparts, with new macros replacing
79772         them if not _LIBC.  Add __THROW attribute.
79773         (rol): Remove.
79774         (struct md5_ctx): Align buffer if using GCC.
79775         * lib/sha1.h (struct sha1_ctx): Likewise.
79776         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79777         The old name was backwards.
79778         (NOTSWAP): Remove; not used.
79779         (rol): New macro, moved here from md5.h.
79780         (sha1_process_block): Remove a FIXME that doesn't make sense.
79781
79782 2005-09-12  Derek Price  <derek@ximbiot.com>
79783
79784         Return usable errors from canon-host.
79785         * lib/canon-host.h: New file.
79786         * lib/canon-host.c (canon_host): Wrap...
79787         (canon_host_r): ...this new function, which now relies exclusively on
79788         getaddrinfo.
79789         (ch_strerror): New function.
79790         (last_cherror): New global.
79791         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79792         interface.
79793         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79794         void *.
79795         (freeaddrinfo): Free ai->ai_canonname when set.
79796
79797 2005-09-12  Derek Price  <derek@ximbiot.com>
79798
79799         Make canon-host require getaddrinfo.
79800         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79801         AC_LIBSOURCE canon-host.h.  Call...
79802         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79803         gl_GETADDRINFO.
79804         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79805
79806 2005-09-12  Derek Price  <derek@ximbiot.com>
79807
79808         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79809         LGPL.
79810         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79811
79812 2005-09-12  Derek Price  <derek@ximbiot.com>
79813
79814         * lib/gai_strerror.c: Include config.h when available.  Include
79815         getaddrinfo.h before other headers to test interface.
79816         Reported by Larry Jones <lawrence.jones@ugs.com>.
79817
79818 2005-09-12  Derek Price  <derek@ximbiot.com>
79819             Paul Eggert  <eggert@cs.ucla.edu>
79820
79821         * modules/glob (Files): Add glob-libc.h.
79822
79823 2005-09-12  Derek Price  <derek@ximbiot.com>
79824             Paul Eggert  <eggert@cs.ucla.edu>
79825
79826         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
79827         glob_.h, glob-libc.h.
79828         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
79829
79830 2005-09-12  Derek Price  <derek@ximbiot.com>
79831             Paul Eggert  <eggert@cs.ucla.edu>
79832
79833         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
79834         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
79835         protecting things that should be done only in gnulib contexts.
79836         * lib/glob_.h: New file, containing only the glob things needed for
79837         gnulib.
79838         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
79839         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
79840         (glob, globfree, glob_pattern_p): Now defined simply in terms of
79841         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
79842         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
79843         and to respect the namespace rules better.
79844
79845 2005-09-08  Simon Josefsson  <jas@extundo.com>
79846
79847         * modules/socklen: New file.
79848
79849 2005-09-08  Simon Josefsson  <jas@extundo.com>
79850
79851         * m4/socklen.m4: New file.
79852
79853 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79854
79855         * modules/utimens (Files): Add m4/utimbuf.m4, since
79856         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
79857         Reported by Sergey Poznyakoff.
79858
79859 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79860
79861         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
79862         definitions, since that's the preferred style in glibc.
79863         Fix a minor spacing issue, and update copyright notice to match
79864         glibc's.
79865
79866 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79867
79868         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
79869
79870 2005-09-06  Simon Josefsson  <jas@extundo.com>
79871
79872         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
79873         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
79874
79875 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79876
79877         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
79878         warning.
79879
79880 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79881
79882         * config/srclist.txt: Add glibc bug 1302.
79883
79884 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
79885
79886         Change bitset word type from unsigned int to unsigned long int,
79887         as this has better performance on typical 64-bit hosts.
79888         Port bitset code to hosts with unusual word sizes.
79889         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
79890         (build_collating_symbol):
79891         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
79892         argument is a bitset.  This is merely a style issue, but it makes
79893         it clearer that an entire array is expected.
79894         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
79895         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
79896         Port to the case where bitset_word is not the same as unsigned int.
79897         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79898         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
79899         Likewise.
79900         * lib/regexec.c (check_dst_limits_calc_pos_1,
79901         check_subexp_matching_top):
79902         (build_trtable, group_nodes_into_DFAstates):
79903         Likewise.
79904         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
79905         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
79906         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
79907         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
79908         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
79909         * lib/regcomp.c (optimize_subexps, lower_subexp):
79910         Work even if bitset_word has holes in its bitwise representation.
79911         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
79912         * lib/regexec.c (check_dst_limits_calc_pos_1,
79913         check_subexp_matching_top):
79914         Likewise.
79915         * lib/regex_internal.c (re_string_reconstruct):
79916         Don't assume UCHAR_MAX == 255.
79917         * lib/regex_internal.h (bitset_set_all): Likewise.
79918         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
79919         All uses changed.
79920         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
79921         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
79922         All uses changed.
79923         (BITSET_WORD_MAX): New macro.
79924         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
79925         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
79926         (bitset_empty, bitset_copy):
79927         Prefer sizeof (bitset) to multiplying it out ourselves.
79928         (bitset_not_merge): Remove; unused.
79929         (bitset_contain): Return bool, not unsigned int with one bit on.
79930         All callers changed.
79931         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
79932         alignment than re_node_set; do this by defining a new internal
79933         type struct dests_alloc and using it to allocate memory.
79934
79935 2005-09-05  Bruno Haible  <bruno@clisp.org>
79936
79937         * gnulib-tool (func_import): Fix comparison in handling of symbolic
79938         links.
79939
79940 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
79941
79942         * modules/size_max (Makefile.am): Add size_max.h
79943
79944 2005-09-04  Derek Price  <derek@ximbiot.com>
79945
79946         * gnulib-tool (func_import): Fix reversed $symbolic logic.
79947
79948 2005-09-03  Simon Josefsson  <jas@extundo.com>
79949
79950         * gnulib-tool: Fix typo.
79951
79952 2005-09-03  Simon Josefsson  <jas@extundo.com>
79953
79954         * config/srclist.txt: Add glibc bug 1293.
79955
79956 2005-09-03  Derek Price  <derek@ximbiot.com>
79957
79958         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
79959         From Larry Jones <lawrence.jones@ugs.com>.
79960
79961 2005-09-02  Simon Josefsson  <jas@extundo.com>
79962
79963         * modules/socklen: New file.
79964
79965 2005-09-02  Simon Josefsson  <jas@extundo.com>
79966
79967         * modules/havelib: New module.
79968
79969         * modules/gettext, modules/iconv, modules/lock, modules/readline:
79970         Use havelib.
79971
79972 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79973
79974         Check for arithmetic overflow when calculating sizes, to prevent
79975         some buffer-overflow issues.  These patches are conservative, in the
79976         sense that when I couldn't determine whether an overflow was possible,
79977         I inserted a run-time check.
79978         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
79979         macros.
79980         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
79981         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
79982         (re_xnrealloc, re_x2nrealloc): New inline functions.
79983         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
79984         parse_bracket_exp):
79985         (build_equiv_class, build_charclass): Check for arithmetic overflow
79986         in size expression calculations.
79987         * lib/regex_internal.c (re_string_realloc_buffers):
79988         (build_wcs_upper_buffer, re_node_set_add_intersect):
79989         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
79990         (re_dfa_add_node, register_state): Likewise.
79991         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
79992         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
79993         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
79994         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
79995
79996 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79997
79998         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79999         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80000
80001 2005-09-02  Bruno Haible  <bruno@clisp.org>
80002
80003         Support for lib vs. lib64 distinction on biarch platforms.
80004         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80005         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80006         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80007
80008 2005-09-02  Bruno Haible  <bruno@clisp.org>
80009
80010         * gnulib-tool (import): In the other first-use case, provide defaults
80011         as well.
80012
80013 2005-09-02  Bruno Haible  <bruno@clisp.org>
80014
80015         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80016         patches not yet found in the latest gettext release.
80017
80018 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80019
80020         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80021         to avoid a collision with bits/local_lim.h in glibc.
80022         All uses changed.  Problem reported by Dmitry V. Levin in
80023         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80024
80025         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80026         bugs in int versus size_t comparisons.
80027         (re_string_context_at): Fix bug where the code assumed that
80028         Idx is signed.
80029
80030         Use bool where appropriate.
80031         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80032         All callers changed.
80033         (calc_eclosure_iter): Likewise, for ROOT arg.
80034         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80035         (build_charclass_op): Likewise, for NON_MATCH arg.
80036         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80037         (re_string_construct_common): Likewise, for ICASE arg.
80038         * lib/regexec.c (re_search_2_stub, re_search_stub):
80039         Likewise, for RET_LEN arg.
80040         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80041         (set_regs): Likewise, for FL_BACKTRACK arg.
80042         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80043         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80044         (calc_eclosure_iter, parse_bracket_exp):
80045         Use bool for internal variables that are booleans.
80046         * lib/regexec.c (re_search_internal, check_matching,
80047         proceed_next_node):
80048         (set_regs, build_sifted_states, sift_states_bkref):
80049         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80050         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80051         (find_collation_sequence_value):
80052         Likewise.
80053         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80054         (re_node_set_compare):
80055         Return bool, not int. All callers changed.
80056         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80057         (build_trtable, check_node_accept): Likewise.
80058         * lib/regex_internal.h: Include stdbool.h.
80059
80060         Fix bugs uncovered when converting to bool.
80061         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80062         failure instead of charging ahead blindly.
80063         * lib/regex_internal.c (register_state): Likewise.
80064         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80065         for freeing internal storage.
80066         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80067         bitset pieces used as boolean, to avoid undefined behavior
80068         on hosts that do int overflow checking.
80069
80070 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80071
80072         * config/srclist.txt: Add glibc bugs 1285-1287.
80073
80074 2005-09-01  Jim Meyering  <jim@meyering.net>
80075
80076         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80077         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80078         Require gl_STAT_MACROS, too.
80079
80080 2005-09-01  Bruno Haible  <bruno@clisp.org>
80081
80082         * gnulib-tool (import): In the first-use case, provide defaults.
80083
80084 2005-09-01  Bruno Haible  <bruno@clisp.org>
80085
80086         * gnulib-tool (func_import): Remove the .tmp files.
80087
80088 2005-09-01  Bruno Haible  <bruno@clisp.org>
80089
80090         * gnulib-tool (func_import): Fix handling of symbolic links.
80091
80092 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80093
80094         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80095         old glibc regex code mishandles strings longer than 2**31 bytes.
80096         This patch fixes this when the regex code is used in gnulib
80097         (i.e., outside glibc).
80098
80099         This patch should not affect the use of the regex code inside
80100         glibc.  No doubt this problem also needs to be handled for glibc
80101         as well, but the result will be an incompatible change to the
80102         glibc ABI, and the old ABI will have to be supported too.  That
80103         can be the the subject for another patch.
80104
80105         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80106         governing whether the rest of this patch is active.  By default,
80107         the macro is disabled and the patch has no effect.
80108         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80109         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80110         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80111         (re_match_2, re_set_registers): Use the new types.
80112         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80113         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80114         New macros.
80115         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80116         (re_string_context_at, bin_tree_t, re_dfastate_t):
80117         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80118         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80119         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80120         (re_string_char_size_at, re_string_wchar_at):
80121         (re_string_elem_size_at):
80122         Use the new types and macros to port to 64-bit hosts.
80123         Use unsigned types for internal values, so that the code
80124         mostly works even for arrays larger than SSIZE_MAX.
80125         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80126         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80127         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80128         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80129         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80130         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80131         (calc_inveclosure, parse_dup_op, build_range_exp):
80132         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80133         (fetch_number, create_token_tree, mark_opt_subexp):
80134         Likewise.
80135         * lib/regex_internal.c (re_string_construct_common,
80136         create_ci_newstate):
80137         (create_cd_newstate, re_string_allocate, re_string_construct):
80138         (re_string_realloc_buffers, build_wcs_upper_buffer):
80139         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80140         (re_string_reconstruct, re_string_peek_byte_case):
80141         (re_string_fetch_byte_case, re_string_context_at):
80142         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80143         (re_node_set_init_copy, re_node_set_add_intersect):
80144         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80145         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80146         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80147         (re_acquire_state, re_acquire_state_context, register_state):
80148         Likewise.
80149         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80150         search_cur_bkref_entry):
80151         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80152         (re_search_internal, re_search_2_stub, re_search_stub)
80153         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80154         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80155         (update_cur_sifted_state, check_dst_limits):
80156         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80157         (check_subexp_limits, sift_states_bkref, merge_state_array):
80158         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80159         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80160         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80161         (expand_bkref_cache, check_node_accept_bytes):
80162         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80163         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80164         (acquire_init_state_context, check_halt_node_context):
80165         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80166         (sift_states_backward, clean_state_log_if_needed):
80167         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80168         (find_recover_state, transit_state_sb, transit_state_mb):
80169         (transit_state_bkref, build_trtable, match_ctx_clean):
80170         Likewise.
80171         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80172         to work around an assumption that REG_MISSING is negative.
80173
80174         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80175         (seek_collating_symbol_entry) [defined _LIBC]:
80176         (lookup_collation_sequence_value) [defined _LIBC]:
80177         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80178         Use prototypes rather than old-style function definitions.
80179         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80180         (transit_state_sb) [0]:
80181         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80182
80183         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80184         rm_eo.
80185
80186         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80187         (optimize_subexps, lower_subexp):
80188         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80189         since the signed shift might overflow.  Use 1u<<31 instead.
80190         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80191         Likewise.
80192         * lib/regexec.c (check_dst_limits_calc_pos_1,
80193         check_subexp_matching_top): Likewise.
80194
80195         * lib/regcomp.c (optimize_subexps, lower_subexp):
80196         Use CHAR_BIT rather than 8, for clarity.
80197         * lib/regexec.c (check_dst_limits_calc_pos_1):
80198         (check_subexp_matching_top): Likewise.
80199         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80200         have to worry about portability issues when shifting it left.
80201         Remove no-longer-needed test for table_size > 0.
80202         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80203         in a word, as the resulting behavior is undefined.
80204         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80205         in one case, a <= should have been an <, and in another case the
80206         whole test was missing.
80207         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80208         the standard name CHAR_BIT.
80209         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80210         this is not true on one's complement and signed-magnitude hosts.
80211
80212         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80213         next_last_offset.
80214         (struct re_dfa_t): Remove unused member states_alloc.
80215         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80216
80217 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80218
80219         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80220         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80221         and large-file glibc and in 32-bit large-file Solaris.
80222
80223 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80224
80225         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80226         lengths fit in regoff_t; this isn't true if regoff_t is the same
80227         width as size_t.
80228         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80229         (= START + RANGE) instead of RANGE.  This avoids overflow
80230         problems when regoff_t is the same width as size_t.
80231         All callers changed.
80232         (re_search_2_stub): Check for overflow when adding the
80233         sizes of the two strings.
80234         (re_search_stub): Check for overflow when adding START
80235         to RANGE; if it occurs, substitute the extreme value.
80236
80237 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80238
80239         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80240
80241 2005-08-31  Jim Meyering  <jim@meyering.net>
80242
80243         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80244         a pointer-to-const.
80245         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80246         (register_state): Likewise.
80247         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80248         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80249         (group_nodes_into_DFAstates): Likewise.
80250
80251 2005-08-31  Jim Meyering  <jim@meyering.net>
80252
80253         * check-module: Add a FIXME comment.
80254
80255 2005-08-31  Eric Blake  <ebb9@byu.net>
80256
80257         * modules/unistd-safer (Files): Add unistd--.h.
80258         * modules/stdio-safer (Files): Add stdio--.h.
80259
80260 2005-08-31  Derek Price  <derek@ximbiot.com>
80261
80262         * lib/getdelim.c (getdelim): Return EOF on EOF.
80263         Reported by Larry Jones <lawrence.jones@ugs.com>.
80264
80265 2005-08-31  Bruno Haible  <bruno@clisp.org>
80266
80267         Avoid unnecessary diffs in the generated lib/Makefile.am.
80268         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80269         the generated files.
80270         (func_import): Don't set cmd.
80271
80272 2005-08-31  Bruno Haible  <bruno@clisp.org>
80273
80274         * lib/strstr.c: Include <stddef.h>, for NULL.
80275         * lib/strcasestr.c: Likewise.
80276         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80277
80278 2005-08-31  Bruno Haible  <bruno@clisp.org>
80279
80280         * gnulib-tool: New option --macro-prefix.
80281         (func_import): Use macro_prefix.
80282         (import): Handle option --macro-prefix.
80283
80284 2005-08-31  Bruno Haible  <bruno@clisp.org>
80285
80286         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80287         Also use new variables cached_lgpl, cached_libtool.
80288
80289 2005-08-31  Bruno Haible  <bruno@clisp.org>
80290
80291         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80292         always instantiating them.
80293
80294 2005-08-31  Bruno Haible  <bruno@clisp.org>
80295
80296         * gnulib-tool (func_import): Read the previous cached settings
80297         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80298         earlier added by gnulib but are now dropped. Warn when a gnulib file
80299         overwrites a non-gnulib file.
80300
80301 2005-08-31  Bruno Haible  <bruno@clisp.org>
80302
80303         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80304         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80305         projects that don't keep autogenerated files in CVS. Put into
80306         actioncmd only the specified modules, not the transitive closure.
80307
80308 2005-08-31  Bruno Haible  <bruno@clisp.org>
80309
80310         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80311         Create directories that shall be filled.
80312         (import): Don't look for gl_* macros in configure.ac. Recurse across
80313         all directories containing a gnulib-cache.m4 files, if meaningful.
80314
80315 2005-08-31  Bruno Haible  <bruno@clisp.org>
80316
80317         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80318         (import): Set seen_libtool when we see gl_LIBTOOL.
80319
80320 2005-08-31  Bruno Haible  <bruno@clisp.org>
80321
80322         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80323         declaration macro definitions from generated gnulib.m4.
80324
80325 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80326
80327         * lib/iconvme.h: Add prototype for iconv_alloc.
80328
80329 2005-08-29  Simon Josefsson  <jas@extundo.com>
80330
80331         * lib/iconvme.c: Fix errno.
80332
80333 2005-08-29  Bruno Haible  <bruno@clisp.org>
80334
80335         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80336         that it works when the directory contains spaces.
80337
80338 2005-08-29  Bruno Haible  <bruno@clisp.org>
80339
80340         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80341
80342 2005-08-29  Bruno Haible  <bruno@clisp.org>
80343
80344         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80345         Emit more advice.
80346
80347 2005-08-29  Bruno Haible  <bruno@clisp.org>
80348         and Stepan Kasal  <kasal@ucw.cz>
80349
80350         * check-module: If more parameters are given, check each of them
80351         separately; add more exceptions, as noted by Jim Meyering.
80352         (check_module): New procedure.
80353         (%exempt_header): Now contains all exceptions.
80354
80355 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80356
80357         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80358
80359 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80360
80361         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80362
80363 2005-08-28  Bruno Haible  <bruno@clisp.org>
80364
80365         * m4/gnulib-tool.m4: New file.
80366
80367 2005-08-27  Jim Meyering  <jim@meyering.net>
80368
80369         * modules/unistd-safer (Files): Add pipe-safer.c.
80370         * modules/fcntl-safer (Files): Add creat-safer.c.
80371
80372 2005-08-27  Jim Meyering  <jim@meyering.net>
80373
80374         * m4/stdlib-safer.m4: New file.  From coreutils.
80375         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80376         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80377         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80378         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80379         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80380
80381 2005-08-27  Jim Meyering  <jim@meyering.net>
80382
80383         * lib/fopen-safer.c: Merge minor changes from coreutils.
80384         * lib/dup-safer.c: Likewise.
80385         * lib/fd-safer.c: Likewise.
80386
80387         Merge from coreutils.
80388         * lib/stdio--.h: New file.
80389         * lib/stdlib--.h: New file.
80390         * lib/mkstemp-safer.c: New file.
80391
80392         GNU tar needs these.
80393         * lib/pipe-safer.c: New file.
80394         * lib/creat-safer.c: New file.
80395         * lib/fcntl--.h (creat): Define to creat_safer.
80396         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80397         * lib/unistd--.h (pipe): Define to pipe_safer.
80398         * lib/unistd-safer.h: Declare pipe_safer.
80399
80400 2005-08-26  Simon Josefsson  <jas@extundo.com>
80401
80402         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80403         Haible <bruno@clisp.org>.
80404
80405 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80406
80407         * lib/regex_internal.h: Remove all references to
80408         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80409         or better.
80410         (bitset_not, bitset_merge, bitset_not_merge):
80411         (bitset_mask, re_string_allocate, re_string_construct):
80412         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80413         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80414         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80415         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80416         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80417         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80418         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80419         (re_acquire_state_context):
80420         Remove unnecessary forward decls.
80421         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80422         Put __attribute at function definition,
80423         now that the function decl has been removed.
80424         * lib/regex_internal.c (re_string_peek_byte_case):
80425         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80426         Likewise.
80427
80428 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80429
80430         * m4/regex.m4: Add AC_PREREQ(2.50).
80431         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80432
80433 2005-08-25  Simon Josefsson  <jas@extundo.com>
80434
80435         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80436         __fsetlocking.
80437
80438 2005-08-25  Simon Josefsson  <jas@extundo.com>
80439
80440         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80441         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80442         GLIBC specific code.
80443
80444 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80445
80446         Make regex safe for g++.  This fixes one real bug (an "err"
80447         that should have been "*err").  g++ problem reported by
80448         Sam Steingold.
80449         * lib/regex_internal.h (re_calloc): New macro, consistent with
80450         re_malloc etc.  All callers of calloc changed to use re_calloc.
80451         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80452         not int.  All callers changed.
80453         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80454         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80455         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80456         (find_recover_state): Change "err" to "*err"; this fixes what
80457         appears to be a real bug.
80458         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80459         versus int.
80460
80461 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80462
80463         * modules/regex (Depends-on): Add malloc, since the code
80464         assumes that !malloc(0) means failure.
80465
80466 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80467
80468         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80469
80470         alloca modernization/simplification for regex.
80471         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80472         needs to be at the start of the file, and can be moved into
80473         regex_internal.h and simplified.
80474         * lib/regex_internal.h: Include <alloca.h>.
80475         (__libc_use_alloca) [!defined _LIBC]: New macro.
80476         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80477         now works outside glibc.
80478
80479 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80480
80481         * config/srclist.txt: Add glibc bugs 1241, 1245.
80482
80483 2005-08-25  Jim Meyering  <jim@meyering.net>
80484
80485         * lib/open-safer.c: Include <config.h>.
80486         Otherwise, we'd lose LARGEFILE support in any file using
80487         e.g. "fcntl--.h"
80488
80489 2005-08-25  Bruno Haible  <bruno@clisp.org>
80490
80491         * m4/minmax.m4: Require autoconf 2.52.
80492         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80493         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80494         alternatives of translit over the alphabet.
80495         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80496
80497 2005-08-24  Simon Josefsson  <jas@extundo.com>
80498
80499         * tests/test-getpass.c: New file.
80500
80501 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80502
80503         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80504         for GNU regex features.
80505
80506 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80507
80508         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80509         * lib/regex.h (regerror): Likewise.
80510
80511         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80512         requires this.  (The code never needed it.)
80513
80514         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80515         All uses of recently-renamed identifiers changed to use the new,
80516         POSIX-compliant names.  The code will build and run just fine
80517         without these changes, but it's better to eat our own dog food
80518         and use the standard-conforming names.
80519
80520         * lib/regex.h: Fix a multitude of POSIX name space violations.
80521         These changes have an effect only for programs that define
80522         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80523         do not change anything for programs compiled in the normal way.
80524         Also, there is no effect on the ABI.
80525
80526         (_REGEX_SOURCE): New macro.
80527         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80528         defined and _GNU_SOURCE is not; this fixes a name space violation.
80529
80530         Rename the following macros to obey POSIX requirements.
80531         The old names are still visible as macros if _REGEX_SOURCE is defined.
80532         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80533         RE_BACKSLASH_ESCAPE_IN_LISTS.
80534         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80535         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80536         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80537         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80538         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80539         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80540         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80541         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80542         (REG_INTERVALS): renamed from RE_INTERVALS.
80543         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80544         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80545         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80546         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80547         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80548         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80549         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80550         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80551         RE_UNMATCHED_RIGHT_PAREN_ORD.
80552         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80553         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80554         (REG_DEBUG): renamed from RE_DEBUG.
80555         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80556         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80557         unusual, since we can't clash with the POSIX REG_ICASE.
80558         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80559         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80560         (REG_NO_SUB): renamed from RE_NO_SUB.
80561         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80562         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80563         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80564         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80565         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80566         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80567         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80568         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80569         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80570         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80571         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80572         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80573         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80574         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80575         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80576         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80577         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80578         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80579         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80580         (REG_FIXED): Renamed from REGS_FIXED.
80581         (REG_NREGS): Renamed from RE_NREGS.
80582
80583         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80584         of other REG_* macros, since POSIX says the user is allowed to
80585         #undef these macros selectively.
80586
80587         (reg_errcode_t): Update comment stating what other tables need
80588         to be consistent.
80589
80590         Rename the following enum values to obey POSIX requirements.
80591         The old names are still visible as macros.
80592         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80593         is not defined, since GNU is supposed to be a superset of POSIX as
80594         much as possible, and since we want reg_errcode_t to be a signed
80595         type for implementation consistency.
80596         (_REG_NOERROR): Renamed from REG_NOERROR.
80597         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80598         (_REG_BADPAT): Renamed from REG_BADPAT.
80599         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80600         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80601         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80602         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80603         (_REG_EBRACK): Renamed from REG_EBRACK.
80604         (_REG_EPAREN): Renamed from REG_EPAREN.
80605         (_REG_EBRACE): Renamed from REG_EBRACE.
80606         (_REG_BADBR): Renamed from REG_BADBR.
80607         (_REG_ERANGE): Renamed from REG_ERANGE.
80608         (_REG_ESPACE): Renamed from REG_ESPACE.
80609         (_REG_BADRPT): Renamed from REG_BADRPT.
80610         (_REG_EEND): Renamed from REG_EEND.
80611         (_REG_ESIZE): Renamed from REG_ESIZE.
80612         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80613         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80614         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80615         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80616         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80617
80618         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80619         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80620         changed.  But support the old name if the new one is not defined
80621         and if _REGEX_SOURCE.
80622
80623         Change the following member names in struct re_pattern_buffer.
80624         The old names are still supported if !_REGEX_SOURCE.
80625         The new names are always supported, regardless of _REGEX_SOURCE.
80626         (re_buffer): Renamed from buffer.
80627         (re_allocated): Renamed from allocated.
80628         (re_used): Renamed from used.
80629         (re_syntax): Renamed from syntax.
80630         (re_fastmap): Renamed from fastmap.
80631         (re_translate): Renamed from translate.
80632         (re_can_be_null): Renamed from can_be_null.
80633         (re_regs_allocated): Renamed from regs_allocated.
80634         (re_fastmap_accurate): Renamed from fastmap_accurate.
80635         (re_no_sub): Renamed from no_sub.
80636         (re_not_bol): Renamed from not_bol.
80637         (re_not_eol): Renamed from not_eol.
80638         (re_newline_anchor): Renamed from newline_anchor.
80639
80640         Change the following member names in struct re_registers.
80641         The old names are still supported if !_REGEX_SOURCE.
80642         The new names are always supported, regardless of _REGEX_SOURCE.
80643         (rm_num_regs): Renamed from num_regs.
80644         (rm_start): Renamed from start.
80645         (rm_end): Renamed from end.
80646
80647         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80648         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80649         Prepend __ to parameter names.
80650
80651         Undo yesterday's changes.
80652
80653 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80654
80655         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80656         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80657         lib/regex.c.
80658
80659 2005-08-24  Jim Meyering  <jim@meyering.net>
80660
80661         Sync from coreutils.
80662         * m4/fcntl-safer.m4: New file.
80663
80664         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80665         and object files for this module.
80666
80667 2005-08-24  Jim Meyering  <jim@meyering.net>
80668
80669         Sync from coreutils.
80670         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80671
80672 2005-08-24  Jim Meyering  <jim@meyering.net>
80673
80674         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80675         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80676
80677 2005-08-24  Jim Meyering  <jim@meyering.net>
80678
80679         * modules/fcntl-safer: New module.
80680         * modules/fts (Depends-on): Add fcntl-safer.
80681         * MODULES.html.sh (File descriptor based Input/Output):
80682         Add fcntl-safer.
80683
80684 2005-08-24  Bruno Haible  <bruno@clisp.org>
80685
80686         Support for unit test modules.
80687         * modules/README: Mention tests modules.
80688         * modules/TEMPLATE-TESTS: New file.
80689         * gnulib-tool: New options --extract-tests-module, --with-tests and
80690         --tests-base (unused for the moment).
80691         (testsbase, inctests): New variables.
80692         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80693         (func_verify_module): Exclude TEMPLATE-TESTS.
80694         (func_verify_nontests_module, func_verify_tests_module): New functions.
80695         (func_get_dependencies): Add implicit dependency for tests modules.
80696         (func_get_tests_module): New function.
80697         (func_modules_transitive_closure): When --with-tests was specified,
80698         include the unit tests as well, unless explicitly avoided.
80699         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80700         (func_emit_tests_Makefile_am): New function.
80701         (func_create_testdir): When --with-tests was specified, emit a
80702         tests/ directory.
80703         * MODULES.html.sh (Future developments): Update.
80704
80705 2005-08-24  Bruno Haible  <bruno@clisp.org>
80706
80707         * modules/tls-tests: New file.
80708         * tests/test-tls.c: New file, from GNU gettext.
80709
80710 2005-08-24  Bruno Haible  <bruno@clisp.org>
80711
80712         * modules/lock-tests: New file.
80713         * tests/test-lock.c: New file, from GNU gettext.
80714
80715 2005-08-24  Bruno Haible  <bruno@clisp.org>
80716
80717         * lib/lock.h: Add multiple inclusion guard.
80718         * lib/tls.h: Add multiple inclusion guard.
80719
80720 2005-08-24  Bruno Haible  <bruno@clisp.org>
80721
80722         * gnulib-tool: Add support for the --aux-dir option to
80723         --create-testdir, --create-megatestdir, --test, --megatest.
80724         (func_create_testdir, func_create_megatestdir): Optionally emit a
80725         AC_CONFIG_AUX_DIR directive.
80726         (create-testdir, create-megatestdir, test, megatest): Provide a
80727         default value for $auxdir.
80728
80729 2005-08-24  Bruno Haible  <bruno@clisp.org>
80730
80731         * gnulib-tool (import): Use compound statement instead of subshell
80732         where possible.
80733
80734 2005-08-24  Bruno Haible  <bruno@clisp.org>
80735
80736         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80737
80738 2005-08-24  Bruno Haible  <bruno@clisp.org>
80739
80740         * gnulib-tool (func_version): Update.
80741
80742 2005-08-24  Bruno Haible  <bruno@clisp.org>
80743
80744         * gnulib-tool (func_import, func_create_testdir,
80745         func_create_megatestdir): Quote all autoconf macro arguments.
80746
80747 2005-08-24  Bruno Haible  <bruno@clisp.org>
80748
80749         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80750         option --force, because --force causes the aclocal.m4 of each
80751         subdirectory to be newer than the corresponding config.h.in.
80752
80753 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80754
80755         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80756         All contents moved to gl_REGEX.
80757         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80758         assume that it does.
80759
80760 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80761
80762         * lib/regex.h (REG_NOSYS)
80763         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80764         Define, since POSIX requires it as of 2001.
80765         (_REG_ENOSYS)
80766         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80767         New private symbol, used to keep the enum signed in all cases.
80768         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80769         Youngman in
80770         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80771
80772         * lib/regex_internal.c (re_string_skip_chars, register_state):
80773         (calc_state_hash):
80774         Remove forward decls; no longer needed now that we use prototypes.
80775         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80776         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80777         (clean_state_log_if_needed): Likewise.
80778
80779 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80780
80781         * config/srclist.txt: Add glibc bugs 1231-1233.
80782
80783 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80784
80785         Fix problems reported by Sam Steingold in
80786         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80787         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80788         assumed that reg_errcode_t is a signed type, which is not
80789         necessarily true if _XOPEN_SOURCE is not defined.
80790         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80791         since some compilers warn about it otherwise.
80792
80793 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80794
80795         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80796         (init_word_char, create_initial_state, duplicate_node_closure):
80797         (fetch_token, peek_token_bracket, build_range_exp):
80798         (build_collating_symbol): Remove forward decls; no longer needed
80799         now that we use prototypes.
80800
80801         * lib/regcomp.c:
80802         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80803         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80804         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80805         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80806         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80807         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80808         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80809         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80810         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80811         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80812         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80813         (build_charclass, build_charclass_op, fetch_number, create_tree):
80814         (create_token_tree, mark_opt_subexp, duplicate_tree):
80815         Use prototypes rather than old-style definitions.
80816
80817         * lib/regex_internal.c:
80818         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80819         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80820         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80821         (re_string_reconstruct, re_string_peek_byte_case):
80822         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80823         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80824         (re_node_set_init_copy, re_node_set_add_intersect):
80825         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80826         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80827         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80828         (re_acquire_state, re_acquire_state_context, register_state):
80829         (create_ci_newstate, create_cd_newstate, free_state):
80830         Likewise.
80831         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
80832         re_search_2):
80833         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
80834         (re_search_internal, prune_impossible_nodes):
80835         (acquire_init_state_context, check_matching, static):
80836         (check_halt_node_context, check_halt_state_context, proceed_next_node):
80837         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
80838         (update_regs, sift_states_backward, build_sifted_states):
80839         (clean_state_log_if_needed, merge_state_array):
80840         (update_cur_sifted_state, add_epsilon_src_nodes):
80841         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
80842         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
80843         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
80844         (find_recover_state, check_subexp_matching_top, transit_state_mb):
80845         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
80846         (check_arrival, check_arrival_add_next_nodes):
80847         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80848         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80849         (check_node_accept_bytes, check_node_accept, extend_buffers):
80850         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
80851         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
80852         (sift_ctx_init):
80853         Likewise.
80854
80855         * lib/regex_internal.h:
80856         (re_string_allocate, re_string_construct, re_string_reconstruct):
80857         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
80858         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
80859         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
80860         (re_string_context_at, re_string_peek_byte_case):
80861         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
80862         is defined, since we now use prototypes always.
80863
80864         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
80865         C89 or better.  All uses removed.
80866
80867 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80868
80869         * config/srclist.txt: Add glibc bugs 1220-1227.
80870
80871 2005-08-20  Jim Meyering  <jim@meyering.net>
80872
80873         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
80874         of unused local, dfa.
80875
80876 2005-08-20  Bruno Haible  <bruno@clisp.org>
80877
80878         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
80879
80880 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80881
80882         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
80883         (re_node_set_insert_last, re_dfa_add_node):
80884         Rename local variables to avoid GCC shadowing warnings.
80885
80886 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80887
80888         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
80889         [defined lint]: Suppress bogus uninitialized-variable warnings.
80890
80891         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
80892         and let the caller return REG_ESPACE if out of space.  This
80893         removes an uninitialied-variable warning with GCC 4.0.1, and also
80894         avoids taking the address of a local variable.  All callers
80895         changed.
80896
80897 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80898
80899         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
80900         $LIBCSRC/posix/regexec.c.
80901         Add glibc bug 1217 for regcomp.c.
80902
80903 2005-08-19  Jim Meyering  <jim@meyering.net>
80904
80905         * lib/regexec.c (proceed_next_node): Redo local variables to
80906         avoid GCC shadowing warnings.
80907
80908 2005-08-18  Bruno Haible  <bruno@clisp.org>
80909
80910         * lib/strstr.c (strstr): Fix return value in multibyte case.
80911         * lib/strcasestr.c (strcasestr): Likewise.
80912
80913 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80914
80915         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
80916
80917 2005-08-17  Jim Meyering  <jim@meyering.net>
80918
80919         Make the %s format (seconds since the epoch) work for a negative
80920         number and when used with a zero-padded field width, e.g. %015s.
80921
80922         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
80923         label so that it precedes the code to set `digits'.  Otherwise,
80924         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
80925         print `00-22'.  Now, it prints `-0022', as it should.
80926
80927 2005-08-17  Bruno Haible  <bruno@clisp.org>
80928
80929         * modules/strstr (Files): Add m4/mbrtowc.m4.
80930         (Depends-on): Add mbuiter.
80931
80932 2005-08-17  Bruno Haible  <bruno@clisp.org>
80933
80934         * modules/strcasestr: New file.
80935         * MODULES.html.sh (String handling, based on ANSI C 89): Add
80936         strcasestr.
80937
80938 2005-08-17  Bruno Haible  <bruno@clisp.org>
80939
80940         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
80941
80942 2005-08-17  Bruno Haible  <bruno@clisp.org>
80943
80944         * modules/mbuiter: New file.
80945         * MODULES.html.sh (Extended multibyte and wide character utilities):
80946         Add mbuiter.
80947
80948 2005-08-17  Bruno Haible  <bruno@clisp.org>
80949
80950         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
80951         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
80952
80953 2005-08-17  Bruno Haible  <bruno@clisp.org>
80954
80955         * m4/strcasestr.m4: New file.
80956
80957 2005-08-17  Bruno Haible  <bruno@clisp.org>
80958
80959         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
80960         * lib/strstr.c: Completely rewritten, with multibyte locale support.
80961
80962 2005-08-17  Bruno Haible  <bruno@clisp.org>
80963
80964         * lib/strcasestr.h: New file.
80965         * lib/strcasestr.c: New file.
80966
80967 2005-08-17  Bruno Haible  <bruno@clisp.org>
80968
80969         * lib/strcasecmp.c: Use mbuiter.h.
80970
80971 2005-08-17  Bruno Haible  <bruno@clisp.org>
80972
80973         * lib/mbuiter.h: New file.
80974
80975 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80976
80977         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
80978         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
80979         and gl_GETOPT are both invoked via different paths (as happens
80980         with GNU tar CVS because it uses both argp and getopt), the former
80981         wins.
80982
80983 2005-08-16  Bruno Haible  <bruno@clisp.org>
80984
80985         * modules/tls: New file.
80986         * MODULES.html.sh (Multithreading): Add tls.
80987
80988 2005-08-16  Bruno Haible  <bruno@clisp.org>
80989
80990         * modules/strnlen1: New file.
80991         * MODULES.html.sh (String handling): Add strnlen1.
80992
80993 2005-08-16  Bruno Haible  <bruno@clisp.org>
80994
80995         * modules/strcase (Files): Add m4/mbrtowc.m4.
80996         (Depends-on): Add strnlen1, mbchar.
80997
80998 2005-08-16  Bruno Haible  <bruno@clisp.org>
80999
81000         * modules/mbiter: New file.
81001         * MODULES.html.sh (Extended multibyte and wide character utilities):
81002         Add mbiter.
81003
81004 2005-08-16  Bruno Haible  <bruno@clisp.org>
81005
81006         * modules/mbfile: New file.
81007         * MODULES.html.sh (Extended multibyte and wide character utilities):
81008         Add mbfile.
81009
81010 2005-08-16  Bruno Haible  <bruno@clisp.org>
81011
81012         * modules/mbchar: New file.
81013         * MODULES.html.sh (Extended multibyte and wide character utilities):
81014         New section.
81015
81016 2005-08-16  Bruno Haible  <bruno@clisp.org>
81017
81018         * m4/tls.m4: New file, from GNU gettext.
81019
81020 2005-08-16  Bruno Haible  <bruno@clisp.org>
81021
81022         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81023         always.
81024         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81025
81026 2005-08-16  Bruno Haible  <bruno@clisp.org>
81027
81028         * m4/mbiter.m4: New file.
81029
81030 2005-08-16  Bruno Haible  <bruno@clisp.org>
81031
81032         * m4/mbfile.m4: New file.
81033
81034 2005-08-16  Bruno Haible  <bruno@clisp.org>
81035
81036         * m4/mbchar.m4: New file.
81037
81038 2005-08-16  Bruno Haible  <bruno@clisp.org>
81039
81040         * lib/tls.h: New file, from GNU gettext.
81041         * lib/tls.c: New file, from GNU gettext.
81042
81043 2005-08-16  Bruno Haible  <bruno@clisp.org>
81044
81045         * lib/strnlen1.h: New file.
81046         * lib/strnlen1.c: New file.
81047
81048 2005-08-16  Bruno Haible  <bruno@clisp.org>
81049
81050         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81051         (mbi_init): Update.
81052         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81053         NUL byte, not after it.
81054
81055 2005-08-16  Bruno Haible  <bruno@clisp.org>
81056
81057         * lib/strcase.h (strcasecmp): Add note in comments.
81058         * lib/strncasecmp.c: Use code from strcasecmp.c.
81059         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81060         (strcasecmp): Work correctly in multibyte locales.
81061
81062 2005-08-16  Bruno Haible  <bruno@clisp.org>
81063
81064         * lib/mbiter.h: New file.
81065
81066 2005-08-16  Bruno Haible  <bruno@clisp.org>
81067
81068         * lib/mbfile.h: New file.
81069
81070 2005-08-16  Bruno Haible  <bruno@clisp.org>
81071
81072         * lib/mbchar.h: New file.
81073         * lib/mbchar.c: New file.
81074
81075 2005-08-16  Bruno Haible  <bruno@clisp.org>
81076
81077         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81078         the valid ones. Makes the comparison operations transitive:
81079         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81080         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81081
81082 2005-08-15  Simon Josefsson  <jas@extundo.com>
81083
81084         * modules/ssize_t (License): Change to 'unlimited'.
81085
81086         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81087
81088 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81089
81090         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81091         Add comments for each pending glibc patch.
81092
81093 2005-08-15  Bruno Haible  <bruno@clisp.org>
81094
81095         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81096         __cplusplus is defined.
81097
81098 2005-08-14  Jim Meyering  <jim@meyering.net>
81099
81100         Sync from coreutils.
81101
81102         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81103         Use the hash-table-based cycle-detection code not just when
81104         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81105         Reported by James Youngman in
81106         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81107         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81108         FTS_TIGHT_CYCLE_CHECK.
81109         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81110         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81111         once again.
81112         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81113         * lib/fts.c (fd_safer): Remove decl.
81114         Include fcntl--.h rather than unistd-safer.h
81115         (fts_safe_changedir): Don't call fd_safer; no longer needed
81116         now that we include fcntl--.h.
81117
81118 2005-08-12  Simon Josefsson  <jas@extundo.com>
81119
81120         * modules/getndelim2: Use ssize_t module.
81121         * modules/getnline: Likewise.
81122         * modules/safe-read: Likewise.
81123         * modules/xreadlink: Likewise.
81124
81125         * modules/ssize_t: New file.
81126
81127 2005-08-12  Simon Josefsson  <jas@extundo.com>
81128
81129         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81130
81131 2005-08-12  Simon Josefsson  <jas@extundo.com>
81132
81133         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81134         ssize_t.
81135
81136 2005-08-12  Simon Josefsson  <jas@extundo.com>
81137
81138         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81139         readline, getdelim and check_version.
81140         (Support for systems lacking ISO C 99: Sizes of integer types):
81141         Add size_max.
81142
81143 2005-08-12  Bruno Haible  <bruno@clisp.org>
81144
81145         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81146
81147 2005-08-11  Simon Josefsson  <jas@extundo.com>
81148
81149         * modules/readline: New file.
81150
81151         * modules/strnlen (Files): Add strnlen.h.
81152
81153 2005-08-11  Simon Josefsson  <jas@extundo.com>
81154
81155         * m4/readline.m4: New file.
81156
81157 2005-08-11  Simon Josefsson  <jas@extundo.com>
81158
81159         * lib/readline.h, readline.c: New file.
81160
81161 2005-08-11  Simon Josefsson  <jas@extundo.com>
81162
81163         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81164         gl_AVOID.
81165
81166 2005-08-11  Bruno Haible  <bruno@clisp.org>
81167
81168         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81169
81170 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81171
81172         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81173
81174 2005-08-10  Simon Josefsson  <jas@extundo.com>
81175
81176         * tests/test-iconvme.c: New file.
81177
81178 2005-08-10  Simon Josefsson  <jas@extundo.com>
81179
81180         * m4/strnlen.m4: New file.
81181
81182         * m4/strndup.m4: Don't check for strnlen declaration, done in
81183         strnlen.m4.
81184
81185 2005-08-10  Simon Josefsson  <jas@extundo.com>
81186
81187         * lib/strndup.c: Use strnlen.h.
81188
81189         * lib/strnlen.h: New file.
81190
81191 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81192
81193         * README: Typos.
81194
81195 2005-08-02  Simon Josefsson  <jas@extundo.com>
81196
81197         * modules/readline: New file.
81198
81199 2005-08-02  Simon Josefsson  <jas@extundo.com>
81200
81201         * modules/getdelim: New file.
81202
81203         * modules/getline: Rewrite, don't use getndelim2.
81204
81205 2005-08-02  Simon Josefsson  <jas@extundo.com>
81206
81207         * m4/getline.m4: Separate out getdelim stuff into separate module.
81208
81209         * m4/getdelim.m4: New file.
81210
81211 2005-08-02  Simon Josefsson  <jas@extundo.com>
81212
81213         * lib/getline.h, getline.c: Rewrite.
81214
81215         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81216
81217 2005-07-31  Bruno Haible  <bruno@clisp.org>
81218
81219         * lib/lock.h (gl_lock_initializer): New macro.
81220         (gl_lock_define_initialized): Use it.
81221         (gl_rwlock_initializer): New macro.
81222         (gl_rwlock_define_initialized): Use it.
81223         (gl_recursive_lock_initializer): New macro.
81224         (gl_recursive_lock_define_initialized): Use it.
81225
81226 2005-07-30  Karl Berry  <karl@gnu.org>
81227
81228         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81229         Report from Ben Pfaff, regarding getopt.
81230
81231 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81232
81233         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81234         normal way.
81235         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81236         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81237         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81238         (gl_GETOPT): Use the new macros.  Most of the implementation
81239         is moved to the new macros.  This is for programs like Emacs
81240         that don't want all the functionality of gl_GETOPT.
81241
81242 2005-07-26  Bruno Haible  <bruno@clisp.org>
81243
81244         * m4/lock.m4: Update from GNU gettext.
81245
81246 2005-07-26  Bruno Haible  <bruno@clisp.org>
81247
81248         * lib/lock.h: Update from GNU gettext.
81249         * lib/lock.c: Update from GNU gettext.
81250
81251 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81252
81253         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81254         obsolescent AC_TRY_RUN.  Include the default includes files, for
81255         'exit'.
81256
81257 2005-07-24  Bruno Haible  <bruno@clisp.org>
81258
81259         * modules/visibility: New file.
81260         * MODULES.html.sh (Misc): Add visibility.
81261
81262 2005-07-24  Bruno Haible  <bruno@clisp.org>
81263
81264         * m4/visibility.m4: New file.
81265
81266 2005-07-24  Bruno Haible  <bruno@clisp.org>
81267
81268         * doc/visibility.texi: New file.
81269
81270 2005-07-22  Bruno Haible  <bruno@clisp.org>
81271
81272         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81273         $(ALLOCA_H), redundant through BUILT_SOURCES.
81274         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81275         redundant through BUILT_SOURCES.
81276         * modules/byteswap (Makefile.am): Remove explicit dependency on
81277         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81278         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81279         $(FNMATCH_H), redundant through BUILT_SOURCES.
81280         * modules/getopt (Makefile.am): Remove explicit dependency on
81281         $(GETOPT_H), redundant through BUILT_SOURCES.
81282         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81283         redundant through BUILT_SOURCES.
81284         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81285         redundant through BUILT_SOURCES.
81286         * modules/stdbool (Makefile.am): Remove explicit dependency on
81287         $(STDBOOL_H), redundant through BUILT_SOURCES.
81288         * modules/stdint (Makefile.am): Remove explicit dependency on
81289         $(STDINT_H), redundant through BUILT_SOURCES.
81290         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81291         Remove explicit dependency on $(SYSEXITS_H).
81292         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81293
81294 2005-07-18  Simon Josefsson  <jas@extundo.com>
81295
81296         * lib/check-version.c (check_version): Accept identical versions too.
81297
81298 2005-07-18  Bruno Haible  <bruno@clisp.org>
81299
81300         * modules/lock: New file.
81301         * MODULES.html.sh (Multithreading): New section.
81302
81303 2005-07-18  Bruno Haible  <bruno@clisp.org>
81304
81305         * m4/lock.m4: New file, from GNU gettext.
81306
81307 2005-07-18  Bruno Haible  <bruno@clisp.org>
81308
81309         * lib/lock.h: New file, from GNU gettext.
81310         * lib/lock.c: New file, from GNU gettext.
81311
81312 2005-07-18  Bruno Haible  <bruno@clisp.org>
81313
81314         * lib/lock.h (gl_once_t): New type.
81315         (gl_once_define, gl_once): New macros.
81316         * lib/lock.c (fresh_once): New variable.
81317         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81318         functions.
81319
81320 2005-07-16  Simon Josefsson  <jas@extundo.com>
81321
81322         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81323         workaround, suggested by Bruno.
81324
81325 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81326
81327         * modules/xalloc (Depends-on): Add xalloc-die.
81328         * modules/xvasprintf (Depends-on): Add xalloc-die.
81329
81330 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81331
81332         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81333         with a minor change.
81334
81335 2005-07-15  Bruno Haible  <bruno@clisp.org>
81336
81337         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81338         When using lib/poll.c, define poll as rpl_poll.
81339
81340 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81341
81342         * modules/argp (Depends-on): Remove unlocked-io.
81343
81344 2005-07-14  Derek Price  <derek@ximbiot.com>
81345
81346         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81347         for glob symlink bug.
81348
81349 2005-07-14  Bruno Haible  <bruno@clisp.org>
81350
81351         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81352         Instead, test for *_unlocked function declarations directly.
81353
81354 2005-07-11  Simon Josefsson  <jas@extundo.com>
81355
81356         * modules/size_max: New file.
81357
81358         * modules/xsize: Depend on size_max module for size_max.m4.
81359
81360 2005-07-11  Simon Josefsson  <jas@extundo.com>
81361
81362         * lib/size_max.h: New file.
81363
81364 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81365
81366         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81367         copyright symbol and the year.
81368         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81369         (version_etc_va): Use parameterized copyright notice.
81370         Reword to conform to the current GNU coding standards.
81371
81372 2005-07-11  Karl Berry  <karl@gnu.org>
81373
81374         * doc/gnulib.texi (Quoting): new node.
81375         (Initial import): more info, from Patrice.
81376
81377 2005-07-11  Bruno Haible  <bruno@clisp.org>
81378
81379         * gnulib-tool (func_usage): Document option --avoid.
81380         (Command line options): Handle --avoid.
81381         (func_acceptable): New function.
81382         (func_modules_transitive_closure): Use it.
81383
81384 2005-07-11  Bruno Haible  <bruno@clisp.org>
81385
81386         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81387         Reported by Jim Meyering.
81388
81389 2005-07-10  Bruno Haible  <bruno@clisp.org>
81390
81391         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81392         Needed when size_t is smaller than 'unsigned int'.
81393         Reported by Paul Eggert.
81394
81395 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81396
81397         * modules/argp (Depends-on): Add unlocked-io
81398
81399 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81400
81401         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81402         block of defines.
81403
81404 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81405
81406         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81407         fix now.
81408
81409 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81410         and Paul Eggert  <eggert@cs.ucla.edu>
81411
81412         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81413         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81414
81415 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81416
81417         * modules/regex (Files): Add lib/regex_internal.c,
81418         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81419         (Depends-on): Add extensions.
81420         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81421
81422 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81423
81424         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81425         pathconf.
81426         * m4/same.m4 (gl_SAME): Likewise.
81427         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81428
81429         * m4/regex.m4: Adjust to new libc regex implementation.
81430         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81431         all the .c and .h parts of (the new) regex.
81432         Quote the m4 stuff better.
81433         Check for RE_ICASE bug of old gnulib.
81434         Check for REG_STARTEND of recent libc.
81435         Rename local variables from jm_* to gl_*.
81436         Quote operand of "test -f".
81437         Say "recent enough" version of libc, not "version 2".
81438         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81439         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81440         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81441         Remove check for btowc, isascii.
81442         Require AM_LANGINFO_CODESET.
81443
81444 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81445
81446         * lib/regex.c, regex.h: Sync from libc.
81447         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81448         * lib/regexec.c:
81449         New files, synced from libc, except that regex_internal.h
81450         currently has a small porting fix.
81451
81452 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81453
81454         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81455         regex_internal.c, regexec.c.
81456         Add regex_internal.h too, but as a comment, since the libc version
81457         is currently broken in gnulib mode.
81458
81459 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81460
81461         Support programs like Emacs that use gnulib but not gettext.
81462         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81463         * modules/gettext-h: New file.
81464         * modules/gettext (Files): Remove lib/gettext.h.
81465         (Depends-on): Add gettext-h.
81466         (Makefile.am): Remove lib_SOURCES.
81467         * modules/argmatch, modules/c-stack, modules/closeout:
81468         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81469         * modules/execute, modules/file-type, modules/getaddrinfo:
81470         * modules/getopt, modules/human, modules/javacomp:
81471         * modules/javaexec, modules/mkdir-p, modules/obstack:
81472         * modules/openat, modules/pagealign_alloc, modules/pipe:
81473         * modules/quotearg, modules/regex, modules/rpmatch:
81474         * modules/unicodeio, modules/userspec, modules/version-etc:
81475         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81476         * modules/xsetenv:
81477         Depend on gettext-h, not gettext.
81478
81479 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81480
81481         * gnulib-tool (func_import): Add support for 'public domain' license.
81482         * modules/alloca, modules/atexit, modules/memmove:
81483         Now public domain, not GPL.
81484         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81485         * modules/realloc, modules/strerror, modules/strtod:
81486         Now LGPL, not GPL.
81487
81488 2005-07-05  Bruno Haible  <bruno@clisp.org>
81489
81490         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81491         autoconf CVS. Needed for mingw.
81492
81493 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81494
81495         Remove the dependency of the strftime module on the tzset module.
81496         * modules/strftime (Depends-on): Remove dependency on tzset.
81497
81498 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81499
81500         Remove the dependency of the strftime module on the tzset module.
81501         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81502         gl_FUNC_TZSET_CLOBBER.
81503
81504 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81505
81506         Remove the dependency of the strftime module on the tzset module.
81507         * lib/strftime.c (my_strftime)
81508         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81509         Copy the input structure, to work around some of the bug with
81510         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81511         Solaris releases, you should also use the tzset module, but we won't
81512         require it as a dependency any more since we don't want LGPLed code
81513         to depend on GPLed code.
81514
81515 2005-07-02  Jim Meyering  <jim@meyering.net>
81516
81517         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81518         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81519         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81520         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81521
81522 2005-07-02  Jim Meyering  <jim@meyering.net>
81523
81524         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81525
81526 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81527
81528         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81529         declares only 'struct timespec;' (!).
81530
81531 2005-07-01  Jim Meyering  <jim@meyering.net>
81532
81533         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81534         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81535         * lib/save-cwd.c, tempname.c:
81536         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81537         and don't include <sys/file.h>).
81538
81539 2005-06-29  Jim Meyering  <jim@meyering.net>
81540
81541         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81542         type name.  Use the variable name instead.
81543         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81544         Likewise.
81545
81546 2005-06-28  Simon Josefsson  <jas@extundo.com>
81547
81548         * modules/check-version (Files): Add check-version.m4.
81549
81550 2005-06-28  Simon Josefsson  <jas@extundo.com>
81551
81552         * m4/check-version.m4: New file, suggested by Jim Meyering
81553         <jim@meyering.net>.
81554
81555 2005-06-28  Simon Josefsson  <jas@extundo.com>
81556
81557         * lib/check-version.h, lib/check-version.c: New files.
81558
81559 2005-06-28  Simon Josefsson  <jas@extundo.com>
81560
81561         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81562         collision with global variable.  Better indentation.  Don't
81563         increment buffer pointer beyond buffer end.  Based on comments
81564         from Paul Eggert <eggert@cs.ucla.edu>.
81565
81566         * lib/base64.h: Indent.
81567
81568 2005-06-28  Simon Josefsson  <jas@extundo.com>
81569
81570         * doc/gnulib.texi (Library version handling): New section.
81571
81572 2005-06-28  Jim Meyering  <jim@meyering.net>
81573
81574         * check-module (find_included_lib_files): Hard-code another
81575         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81576         but modules/fts-lgpl (correctly) does not list those files.
81577
81578         * modules/canonicalize (Files): Add lib/pathmax.h.
81579
81580 2005-06-25  Simon Josefsson  <jas@extundo.com>
81581
81582         * modules/check-version: New file.
81583
81584 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81585
81586         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81587         initializer of struct addrinfo, as an indication that we don't
81588         care how many members the structure has.
81589
81590 2005-06-24  Derek Price  <derek@ximbiot.com>
81591         and Bruno Haible  <bruno@clisp.org>
81592
81593         Remove stat module & update lstat.
81594         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81595         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81596         * m4/stat.m4: Remove this file.
81597
81598 2005-06-24  Derek Price  <derek@ximbiot.com>
81599         and Bruno Haible  <bruno@clisp.org>
81600
81601         Remove stat module & update lstat.
81602         * lib/stat.c: Remove this file...
81603         (slash_aware_lstat): ...moving this content and its support...
81604         * lib/lstat.c (rpl_lstat): ...into here.
81605         * lib/lstat.h: New file.
81606
81607 2005-06-24  Derek Price  <derek@ximbiot.com>
81608         and Bruno Haible  <bruno@clisp.org>
81609
81610         Remove stat module & update lstat.
81611         * config/srclist.txt (libc sources): Remove stat.
81612
81613 2005-06-24  Derek Price  <derek@ximbiot.com>
81614         and Bruno Haible  <bruno@clisp.org>
81615
81616         Remove stat module & update lstat.
81617         * MODULES.html.sh (stat): Remove.
81618         * MODULES.html: Regenerated.
81619         * modules/lstat (Description): Correct function name.
81620         (Files): Add "lstat.h".
81621         (Depends-on): Remove stat, add xalloc, stat-macros.
81622         * modules/stat: Remove this file.
81623         (Include): Add "lstat.h", remove <sys/stat.h>.
81624
81625 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81626
81627         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81628         (ranged_convert): Don't save conversion in a temporary struct.
81629         This causes a warning with GCC 4.0.0, and anyway in the typical
81630         case it's not worth the extra 100 bytes or so of code.
81631         (ranged_convert, __mktime_internal): When calling a function via a
81632         pointer P, use P () rather than (*P) (), as we now assume C89 or
81633         better.
81634
81635 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81636
81637         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81638         "who -r" failed to give output.  Problem reported by Tim Waugh.
81639
81640         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81641         (xcalloc): Use it to avoid needless tests.
81642         Problem reported by Jim Meyering.
81643
81644 2005-06-20  Derek Price  <derek@ximbiot.com>
81645
81646         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81647         unnecessary for Autoconfs > 2.59c.
81648
81649 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81650
81651         * lib/argp.h (__option_is_short): Check upper limit of
81652         __key. Isprint() requires its argument to have the value
81653         of an unsigned char or EOF.
81654
81655 2005-06-16  Jim Meyering  <jim@meyering.net>
81656
81657         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81658         when either N or S is zero.
81659
81660 2005-06-16  Derek Price  <derek@ximbiot.com>
81661
81662         * m4/bison.m4: Declare YACC & YFLAGS precious.
81663
81664 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81665
81666         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81667         multibyte string or pattern, fall back on unibyte matching.
81668         Problem reported by James Youngman.
81669
81670 2005-06-08  Bruno Haible  <bruno@clisp.org>
81671
81672         * modules/csharpcomp: New file.
81673         * MODULES.html.sh (C#): Add csharpcomp.
81674
81675 2005-06-08  Bruno Haible  <bruno@clisp.org>
81676
81677         * m4/csharpcomp.m4: New file, from GNU gettext.
81678
81679 2005-06-08  Bruno Haible  <bruno@clisp.org>
81680
81681         * lib/csharpcomp.h: New file, from GNU gettext.
81682         * lib/csharpcomp.c: New file, from GNU gettext.
81683         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81684
81685 2005-06-08  Bruno Haible  <bruno@clisp.org>
81686
81687         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81688         warning on mingw.
81689
81690 2005-06-07  Derek Price  <derek@ximbiot.com>
81691
81692         Sync from CVS.
81693         * lib/glob_.h: Indent nested #ifdef.
81694
81695 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81696
81697         Sync from coreutils.
81698         Use "file name" when talking about file names, instead of "filename"
81699         or "path", as per the GNU coding standards.
81700         * lib/mkdir-p.c: Renamed from makepath.c.
81701         (make_dir_parents): Renamed from make_path.  All callers changed.
81702         * lib/mkdir-p.h: Likewise.  All includers changed.
81703         * lib/filenamecat.c: Renamed from path-concat.c.
81704         (file_name_concat): Renamed from path_concat.  All callers changed.
81705         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81706         * lib/filenamecat.h: Likewise.  All includers changed.
81707         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81708         in comments or local variable names.
81709         * lib/basename.c: Likewise.
81710         * lib/canonicalize.c, canonicalize.h: Likewise.
81711         * lib/dirname.c, dirname.h: Likewise.
81712         * lib/euidaccess.c: Likewise.
81713         * lib/exclude.c: Likewise
81714         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81715         * lib/fsusage.c, fsuage.h: Likewise.
81716         * lib/fts.c, fts_.h: Likewise.
81717         * lib/getcwd.c: Likewise.
81718         * lib/getloadavg.c: Likewise.
81719         * lib/mkstemp.c: Likewise.
81720         * lib/mountlist.c, mountlist.h: Likewise.
81721         * lib/openat.c, openat.h: Likewise.
81722         * lib/readlink-stub.c: Likewise.
81723         * lib/readutmp.c, readutmp.h: Likewise.
81724         * lib/rename.c: Likewise.
81725         * lib/rmdir.c: Likewise.
81726         * lib/same.c: Likewise.
81727         * lib/savedir.c: Likewise.
81728         * lib/stripslash.c: Likewise.
81729         * lib/tempname.c: Likewise.
81730         * lib/xreadlink.c: Likewise.
81731         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81732         All uses changed.
81733         * lib/exclude.h: Likewise.
81734
81735         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81736         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81737         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81738         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81739         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81740         files have been getting away with it for years (MORE/BSD 4.3
81741         is extinct now).
81742         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81743         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81744
81745         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81746         Define to 256, not 255, as per modern POSIX.
81747
81748 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81749
81750         Sync from coreutils.
81751         Use "file name" when talking about file names, instead of "filename"
81752         or "path", as per the GNU coding standards.
81753         * MODULES.html.sh: mkdir-p renamed from makepath.
81754         filenamecat renamed from path-concat.
81755         * modules/filenamecat: Renamed from modules/path-concat.
81756         (Files): filenamecat.h and filenamecat.c renamed from
81757         path-concat.h and path-concat.c.
81758         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81759         (Include): filenamecat.h, not path-concat.h.
81760         * modules/mkdir-p: Renamed from modules/makepath.
81761         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81762         makepath.c.
81763         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81764         (Include): mkdir-p.h, not makepath.h.
81765
81766 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81767
81768         Sync from coreutils.
81769         * m4/mkdir-p.m4: Renamed from makepath.m4.
81770         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81771         Rename files from makepath.c to mkdir-p.c, and from
81772         makepath.h to mkdir-p.h.
81773         * m4/filenamecat.m4: Renamed from path-concat.m4.
81774         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81775         Rename files from path-concat.c to filenamecat.c,
81776         and from path-concat.h to filenamecat.h.
81777         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81778         "file name" in local variables or comments.
81779         * m4/rename.m4: Likewise.
81780
81781 2005-06-01  Bruno Haible  <bruno@clisp.org>
81782
81783         * modules/csharpexec: New file.
81784         * MODULES.html.sh (C#): New section.
81785
81786 2005-06-01  Bruno Haible  <bruno@clisp.org>
81787
81788         * m4/csharp.m4: New file, from GNU gettext.
81789         * m4/csharpexec.m4: New file, from GNU gettext.
81790
81791 2005-06-01  Bruno Haible  <bruno@clisp.org>
81792
81793         * lib/csharpexec.h: New file, from GNU gettext.
81794         * lib/csharpexec.c: New file, from GNU gettext.
81795         * lib/csharpexec.sh.in: New file, from GNU gettext.
81796
81797 2005-05-31  Derek Price  <derek@ximbiot.com>
81798             Paul Eggert  <eggert@cs.ucla.edu>
81799
81800         Sync from cvs.
81801         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81802
81803 2005-05-31  Derek Price  <derek@ximbiot.com>
81804             Paul Eggert  <eggert@cs.ucla.edu>
81805
81806         Sync from cvs.
81807         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81808
81809 2005-05-29  Derek Price  <derek@ximbiot.com>
81810
81811         * config/srclist.txt (glob_.h, glob.c): Add these files.
81812
81813 2005-05-29  Derek Price  <derek@ximbiot.com>
81814
81815         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81816         * modules/glob: New file.
81817         * modules/getlogin_r: Add link to POSIX spec in description.
81818
81819 2005-05-29  Derek Price  <derek@ximbiot.com>
81820             Paul Eggert  <eggert@cs.ucla.edu>
81821
81822         * m4/glob.m4: New file.
81823
81824 2005-05-29  Derek Price  <derek@ximbiot.com>
81825             Paul Eggert  <eggert@cs.ucla.edu>
81826
81827         * lib/glob_.h, lib/glob.c: New files.
81828
81829 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81830
81831         * modules/fts (Files): Remove m4/inttypes-pri.m4.
81832         * modules/fts-lgpl (Depends-on): Remove gettext.
81833
81834 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81835
81836         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
81837         and don't require gt_INTTYPES_PRI.
81838
81839 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81840
81841         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
81842
81843         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
81844         the configuration hassle isn't worth it.
81845         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
81846         (LONGEST_MODIFIER, PRIuMAX): Remove.
81847
81848 2005-05-27  Bruno Haible  <bruno@clisp.org>
81849
81850         * lib/getlogin_r.h: Remove second include of <stddef.h>.
81851
81852 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
81853
81854         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
81855         _POSIX_PTHREAD_SEMANTICS for Solaris.
81856
81857 2005-05-25  Derek Price  <derek@ximbiot.com>
81858
81859         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
81860
81861 2005-05-25  Derek Price  <derek@ximbiot.com>
81862             Paul Eggert  <eggert@cs.ucla.edu>
81863
81864         * modules/getlogin_r, m4/getlogin_r.m4: New files.
81865         * lib/getlogin_r.c, getlogin_r.h: New files.
81866
81867 2005-05-25  Bruno Haible  <bruno@clisp.org>
81868             Derek Price  <derek@ximbiot.com>
81869
81870         * lib/getlogin_r.h: Simplify API documentation.
81871
81872 2005-05-23  Derek Price  <derek@ximbiot.com>
81873
81874         * modules/minmax (Files): Add m4/minmax.m4.
81875         (configure.ac): Add gl_MINMAX.
81876
81877 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81878
81879         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
81880         so that unistd-safer.h (GPL'ed code) need not be included.
81881
81882 2005-05-22  Bruno Haible  <bruno@clisp.org>
81883
81884         * m4/minmax.m4: New file.
81885         Based on a patch by Derek Price <derek@ximbiot.com>.
81886
81887 2005-05-22  Bruno Haible  <bruno@clisp.org>
81888
81889         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
81890         (INT64_MIN): Fix definition.
81891         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
81892
81893         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
81894         NEED_SIGNED_INT_TYPES.
81895
81896         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
81897         HAVE_SYSTEM_INTTYPES.
81898
81899 2005-05-22  Bruno Haible  <bruno@clisp.org>
81900
81901         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
81902         Also include <sys/param.h> if it defines MIN, MAX.
81903         Based on a patch by Derek Price <derek@ximbiot.com>.
81904
81905 2005-05-21  Jim Meyering  <jim@meyering.net>
81906
81907         * modules/fts (Files): Add m4/inttypes-pri.m4.
81908         (Depends-on): Add lstat and remove gettext.  Alphabetize.
81909
81910 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81911
81912         New fts module.
81913         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
81914         (setup_dir, free_dir): New functions.
81915         (enter_dir, leave_dir): Define trivial
81916         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
81917         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
81918         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
81919         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
81920         Move to fts-cycle.c.
81921         (fts_open): Use setup_dir.
81922         (fts_close): Use free_dir.
81923         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
81924         This adds a label and some gotos, but the alternatives were messier.
81925         Check for memory allocation failure when entering a dir.
81926         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
81927         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
81928         (FTS): New member fts_cycle, that is a union that contains the
81929         old active_dir_ht and cycle_state.  All uses changed to mention
81930         fts_cycle.ht and fts_cycle.state.
81931         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
81932         fts.c, with the following changes:
81933         (setup_dir, free_dir): New functions.
81934         (enter_dir): Now returns bool.  Return true if successful, false
81935         if memory exhausted.  All callers changed.
81936         Do not bother partly cleaning up on
81937         memory allocation failure; that is free_dir's job.
81938         However, free ad if hash_insert fails, to avoid memory leak.
81939         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
81940         fts->fts_options to see which union member to use.
81941
81942 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81943
81944         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
81945         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
81946
81947 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81948
81949         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
81950
81951 2005-05-20  Jim Meyering  <jim@meyering.net>
81952
81953         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
81954         Now a macro, to pacify GCC.
81955
81956 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81957
81958         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
81959         of -1.
81960
81961 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81962
81963         * lib/chown.c (rpl_chown): Return -1 on failure.
81964
81965 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81966
81967         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
81968         Don't check for stddef.h.
81969         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
81970         don't use its results.
81971         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
81972         since we include them unconditionally.  Don't require
81973         AM_STDBOOL_H, since stdbool is a prerequisite.
81974         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
81975         since we assume C89 or better.
81976         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
81977         as we don't use their results.
81978         Don't check for fchdir, memmove, memset, strrchr, as we use
81979         them unconditionally.
81980         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
81981         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
81982
81983 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81984
81985         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
81986         Include <stddef.h> unconditionally, since we assume C89 now.
81987         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
81988         * lib/fts.c: Include fts_.h first, to check interface.
81989         Do not include intprops.h; no longer needed.
81990         Include cycle-check.h and hash.h, since fts_.h no longer does.
81991         Remove unnecessary casts of closedir to void.
81992         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
81993         decide whether to decrement nlinks.
81994         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
81995         (FTS): Use struct hash_table * instead of Hash_table, so that
81996         we no longer need to include hash.h here.
81997
81998 2005-05-18  Jim Meyering  <jim@meyering.net>
81999
82000         * modules/dirfd (License): Change to LGPL.  Most of the code
82001         is already in the public domain.
82002
82003 2005-05-18  Jim Meyering  <jim@meyering.net>
82004
82005         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82006         Reported by Yoann Vandoorselaere.
82007
82008 2005-05-17  Jim Meyering  <jim@meyering.net>
82009
82010         * m4/fts.m4: New file, from coreutils.
82011
82012 2005-05-17  Jim Meyering  <jim@meyering.net>
82013
82014         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82015
82016 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82017
82018         Sync from coreutils.
82019         * m4/unlinkdir.m4: New file.
82020
82021 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82022
82023         Sync from coreutils.
82024         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82025         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82026         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82027         White space changes only.
82028         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82029         special.
82030         * lib/yesno.c: Include getline.h, not ctype.h.
82031         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82032         Use getline to remove arbitrary restriction on response length.
82033
82034 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82035
82036         * config/srclist-update: Spell out "Street" in FSF postal
82037         mail address; this is the style the FSF seems to prefer.
82038
82039         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82040         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82041         this updates FSF postal mail address.
82042
82043         Sync from coreutils.
82044         * modules/unlinkdir: New file.
82045         * modules/yesno (Depends-on): Add getline.
82046         * MODULES.html.sh (File system functions): Add unlinkdir.
82047
82048 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82049
82050         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82051         lib/strsep.h:
82052         Change the initial comment to refer to GPL, not LGPL.
82053         gnulib-tool will change it to LGPL as needed.
82054
82055         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82056         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82057         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82058         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82059         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82060         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82061         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82062         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82063         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82064         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82065         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82066         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82067         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82068         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82069         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82070         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82071         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82072         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82073         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82074         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82075         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82076         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82077         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82078         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82079         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82080         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82081         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82082         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82083         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82084         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82085         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82086         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82087         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82088         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82089         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82090         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82091         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82092         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82093         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82094         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82095         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82096         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82097         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82098         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82099         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82100         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82101         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82102         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82103         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82104         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82105         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82106         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82107         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82108         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82109         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82110         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82111         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82112         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82113         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82114         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82115         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82116         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82117         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82118         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82119         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82120         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82121         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82122         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82123         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82124         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82125         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82126         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82127         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82128         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82129         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82130         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82131         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82132         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82133         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82134         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82135         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82136         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82137         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82138         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82139         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82140         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82141         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82142         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82143         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82144         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82145         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82146         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82147         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82148         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82149         lib/yesno.c, lib/yesno.h:
82150         Update FSF postal mail address.
82151
82152 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82153
82154         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82155         tests/test-memmem.c, tests/test-stpncpy.c:
82156         Update FSF postal mail address.
82157
82158 2005-05-13  Bruno Haible  <bruno@clisp.org>
82159
82160         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82161         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82162         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82163         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82164         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82165         Add support for 64-bit integers in the MSVC compiler.
82166
82167 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82168
82169         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82170
82171 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82172
82173         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82174
82175 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82176
82177         * doc/getdate.texi (General date syntax): Don't say that date
82178         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82179         Problem reported by Nic Ferrier.
82180
82181 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82182
82183         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82184         specified in ai_socktype. Fix invalid ai_protocol
82185         check. ai_protocol is usually set to 0 or depending on
82186         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82187         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82188         ai_socktype / ai_protocol in the returned addrinfo structure.
82189
82190 2005-05-10  Simon Josefsson  <jas@extundo.com>
82191
82192         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82193         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82194
82195 2005-05-10  Karl Berry  <karl@gnu.org>
82196
82197         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82198         (from http://www.gnu.org/licenses).
82199         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82200         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82201         fdl.texi suffices.
82202
82203 2005-05-10  Karl Berry  <karl@gnu.org>
82204
82205         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82206         (COPYING.DOC): remove.
82207
82208         * config/srclist-update: new FSF address.
82209
82210 2005-05-10  Derek Price  <derek@ximbiot.com>
82211
82212         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82213         possible.
82214
82215 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82216             Bruno Haible  <bruno@clisp.org>
82217
82218         * modules/inet_ntop: New file.
82219         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82220         inet_ntop.
82221
82222 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82223             Bruno Haible  <bruno@clisp.org>
82224
82225         * m4/inet_ntop.m4: New file.
82226
82227 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82228             Bruno Haible  <bruno@clisp.org>
82229
82230         * lib/inet_ntop.h: New file.
82231         * lib/inet_ntop.c: New file, from glibc with modifications.
82232
82233 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82234
82235         * modules/time_r (License): Change to LGPL.
82236         * modules/extensions (License): Change to LGPL.  Actually,
82237         the license is more permissive than that, but currently gnulib-tool
82238         doesn't know how to handle more-permissive licenses.
82239
82240         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82241         Problem reported by Dave Love.
82242
82243 2005-05-08  Jim Meyering  <jim@meyering.net>
82244
82245         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82246         blank.
82247
82248 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82249
82250         * modules/argmatch (Depends-on): Add stdbool.
82251         * modules/backupfile (Depends-on): Likewise.
82252         * modules/chdir-long (Depends-on): Likewise.
82253         * modules/closeout (Depends-on): Likewise.
82254         * modules/cycle-check (Depends-on): Likewise.
82255         * modules/dirname (Depends-on): Likewise.
82256         * modules/fnmatch (Depends-on): Likewise.
82257         * modules/fsusage (Depends-on): Likewise.
82258         * modules/fwriteerror (Depends-on): Likewise.
82259         * modules/getcwd (Depends-on): Likewise.
82260         * modules/getloadavg (Depends-on): Likewise.
82261         * modules/hard-locale (Depends-on): Likewise.
82262         * modules/makepath (Depends-on): Likewise.
82263         * modules/mountlist (Depends-on): Likewise.
82264         * modules/nanosleep (Depends-on): Likewise.
82265         * modules/posixtm (Depends-on): Likewise.
82266         * modules/quotearg (Depends-on): Likewise.
82267         * modules/readtokens (Depends-on): Likewise.
82268         * modules/readtokens0 (Depends-on): Likewise.
82269         * modules/readutmp (Depends-on): Likewise.
82270         * modules/save-cwd (Depends-on): Likewise.
82271         * modules/strftime (Depends-on): Likewise.
82272         * modules/userspec (Depends-on): Likewise.
82273         * modules/utimecmp (Depends-on): Likewise.
82274         * modules/xgetcwd (Depends-on): Likewise.
82275         * modules/xnanosleep (Depends-on): Likewise.
82276         * modules/xstrtod (Depends-on): Likewise.
82277         * modules/yesno (Depends-on): Likewise.
82278
82279 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82280
82281         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82282         needless checks.
82283
82284 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82285
82286         Merge from coreutils.  Among other things,
82287         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82288         * lib/fd-safer.c: New file.
82289         * lib/fcntl-safer.h, open-safer.c: Remove.
82290         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82291         * lib/dup-safer.c: Include unistd-safer.h first.
82292         Don't include errno.h.
82293         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82294         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82295         * lib/file-type.c: Rely on file-type.h change.
82296         * lib/getloadavg.c: Include unistd-safer.h.
82297         (getloadavg): Use safer open.
82298         * lib/getusershell.c: Include "stdio-safer.h".
82299         (getusershell): Use safer fopen.
82300         * lib/long-options.c (long_options): Use NULL rather than 0.
82301         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82302         'free'.
82303         * lib/modechange.c: Likewise.
82304         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82305         (MODE_DONE): New constant.
82306         (struct mode_change): Remove 'next' member.
82307         (make_node_op_equals): New function; like the old one of the
82308         same name, except it allocates an array.
82309         (mode_compile, mode_create_from_ref): Use it.
82310         (mode_compile): Allocate result as an array, not a linked list.
82311         Parse octal string ourself, so that we catch mistakes like "+0".
82312         (mode_adjust): Arg is an array, not a linked list.
82313         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82314         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82315         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82316         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82317         Remove.  This is now stat-macros.h's job.
82318         (talloc): Remove.  All callers replaced by xalloc, so that
82319         our invokers don't have to worry about reporting memory failures.
82320         (make_node_op_equals): Remove.
82321         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82322         New constants.
82323         (struct mode_change): Moved here from modechange.h.
82324         (mode_append_entry): Remove.
82325         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82326         apps to have incorrect behavior.  Use simpler algorithm for head
82327         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82328         Detect more invalid usages rather than having somewhat-random behavior.
82329         Don't insert an "a=" action, as that leads to incorrect behavior.
82330         (mode_compile, mode_create_from_ref): Return NULL on error instead
82331         of an enum, since now there's only one way to have an error.  All
82332         callers changed.
82333         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82334         at the correct time.  Simplify calculation of "+u" and its ilk.
82335         Don't mishandle "+X".
82336         (mode_free): Remove "register" and localize decls.
82337         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82338         (struct mode_change): Move to modechange.c; callers don't
82339         need to see this stuff.
82340         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82341         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82342         (mode_change, mode_adjust): Reflect the new signatures noted above.
82343         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82344         that might redefine system include files.
82345         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82346         (my_usleep): Use NULL rather than (void *) 0.
82347         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82348         Use siginterrupt to specify that system calls should be interrupted.
82349         (rpl_nanosleep): Move initialization of suspended closer to call of
82350         my_usleep.
82351         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82352         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82353         (desirable_utmp_entry): New function.
82354         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82355         using x2nrealloc, to simplify logic.
82356         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82357         size calculation.  Do not assume utmp file is a regular file.
82358         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82359         (READ_UTMP_CHECK_PIDS): New constant.
82360         * lib/save-cwd.c: Include unistd-safer.h.
82361         (save_cwd): Use fd_safer.
82362         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82363         [!_LIBC] Include "stat-macros.h" instead.
82364         * lib/unistd-safer.h (fd_safer): New decl.
82365
82366 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82367
82368         * modules/getloadavg (Depends-on): Add unistd-safer.
82369         * modules/getusershell (Depends-on): Add stdio-safer.
82370         * modules/lstat (Depends-on): Remove xalloc.
82371         * modules/mkstemp (Depends-on): Add stat-macros.
82372         * modules/modechange (Depends-on): Remove xstrtol.
82373         Add stat-macros, xalloc.
82374         * modules/save-cwd (Depends-on): Add unistd-safer.
82375         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82376         * modules/unistd-safer (Files): Add lib/fd-safer.c
82377         (Makefile.am): Remove lib_SOURCES.
82378
82379         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82380         Remove fcntl-safer; unistd-safer supersedes it.
82381
82382 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82383
82384         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82385         AC_HEADER_STAT.
82386         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82387         (gl_PREREQ_CHOWN): Remove.
82388         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82389         it.  Don't require AC_HEADER_STAT.
82390         (gl_PREREQ_LSTAT): Remove.
82391         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82392         Don't require AC_HEADER_STAT.
82393         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82394         (gl_PREREQ_RMDIR): Remove.
82395         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82396         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82397         the stat-macros module a prerequisite.
82398         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82399         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82400         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82401         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82402         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82403         variable names.
82404         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82405         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82406         variable prefixes.
82407         * m4/fcntl-safer.m4: Remove.
82408         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82409         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82410         Invoke gl_PREREQ_FD_SAFER.
82411         (gl_PREREQ_FD_SAFER): New macro.
82412         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82413         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82414         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82415         Remove duplicate call to AC_LIBOBJ(readutmp).
82416         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82417
82418         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82419         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82420
82421 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82422
82423         * MODULES.html.sh (Misc): Add byteswap.
82424
82425 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82426
82427         * modules/getcwd (Depends-on): Add extensions.
82428         * modules/openat (Depends-on): Likewise.
82429
82430 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82431
82432         * modules/byteswap: New file.
82433
82434 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82435
82436         * m4/byteswap.m4: New file.
82437
82438 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82439
82440         * lib/byteswap_.h: New file.
82441
82442 2005-04-25  Karl Berry  <karl@gnu.org>
82443
82444         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82445
82446 2005-04-25  Albert Chin  <china@thewrittenword.com>
82447
82448         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82449         Toolkit C bug.
82450
82451 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82452
82453         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82454         (func_ln_if_changed): Remove forcibly for no error message
82455         in case file does not exist.
82456
82457 2005-04-19  Simon Josefsson  <jas@extundo.com>
82458
82459         * gnulib-tool (Options): Make --symlink mean --symbolic.
82460
82461 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82462
82463         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82464
82465 2005-04-16  Simon Josefsson  <jas@extundo.com>
82466
82467         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82468
82469 2005-04-15  Simon Josefsson  <jas@extundo.com>
82470
82471         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82472
82473 2005-04-15  Simon Josefsson  <jas@extundo.com>
82474
82475         * gnulib-tool: Rename --symlink to --symbolic.
82476
82477 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82478
82479         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82480         symbolic links to files instead of copying/moving.  Add --aux-dir,
82481         specifying directory relative --dir where auxiliary build tools
82482         are placed.
82483
82484 2005-04-14  Bruno Haible  <bruno@clisp.org>
82485
82486         * modules/allocsa (License): Change to LGPL.
82487         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82488
82489 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82490
82491         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82492         that "UTC +1 second" continues to work.  Problem reported
82493         by Dmitry V. Levin.
82494         (relunit_snumber): New rule.
82495         (relunit): Use it.
82496
82497 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82498
82499         * lib/getdate.y (universal_time_zone_table): New constant.
82500         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82501         universal_time_zone_table.
82502         (lookup_zone): Prefer universal_time_zone_table to
82503         local_time_zone_table, so that "GMT" time stamps are allowed in
82504         London during the summer.  Problem reported by Ian Abbott.
82505
82506 2005-04-12  Jim Meyering  <jim@meyering.net>
82507
82508         * lib/human.c (humblock): Set *options even when returning due to
82509         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82510         warning from gcc-4.
82511
82512 2005-04-09  Jim Meyering  <jim@meyering.net>
82513
82514         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82515         -Wuninitialized: initialize tm0.tm_year.
82516
82517 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82518
82519         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82520         count, since there's no maximum.  All uses changed.
82521         Add member dsts_seen.
82522         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82523         not being INT_MAX.
82524         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82525         Use pc_rels_seen to decide whther a date is absolute.
82526
82527         * lib/getdate.y (number): Don't overwrite year.
82528         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82529         check.
82530
82531 2005-04-02  Simon Josefsson  <jas@extundo.com>
82532
82533         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82534         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82535
82536 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82537
82538         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82539         where no absolute path name can be longer than PATH_MAX.
82540
82541 2005-03-27  Jim Meyering  <jim@meyering.net>
82542
82543         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82544
82545 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82546
82547         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82548         "one's complement" -> "ones' complement" in comment, as per Knuth.
82549         "value of type" -> "type or expression" in comment.
82550         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82551
82552 2005-03-26  Jim Meyering  <jim@meyering.net>
82553
82554         Comment nits.
82555         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82556         Correct typos: s/or/of/.
82557
82558 2005-03-26  Jim Meyering  <jim@meyering.net>
82559
82560         * modules/check-include-files: Move to ../ and rename to...
82561         * check-module: ...this.
82562
82563 2005-03-25  Jim Meyering  <jim@meyering.net>
82564
82565         * modules/xvasprintf (Files): Add xalloc.h.
82566
82567 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82568
82569         * modules/gettext (Files): config/config.rpath ->
82570         build-aux/config.rpath
82571         * modules/iconv (Files): Likewise.
82572         Problem reported by Oskar Liljeblad.
82573
82574 2005-03-23  Jim Meyering  <jim@meyering.net>
82575
82576         * modules/check-include-files: New script to check for
82577         missing dependencies, multiple includes, etc.
82578
82579         * modules/c-strtold (Depends-on): Add xalloc.
82580         * modules/c-strtod (Depends-on): Add xalloc.
82581         * modules/hash (Depends-on): Add xalloc.
82582         (Files): Remove lib/xalloc.h.
82583
82584         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82585         * modules/userspec (Files): Add lib/inttostr.h.
82586
82587 2005-03-23  Jim Meyering  <jim@meyering.net>
82588
82589         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82590
82591 2005-03-22  Jim Meyering  <jim@meyering.net>
82592
82593         * modules/stat-macros: New module.
82594         * modules/canonicalize, modules/euidaccess, modules/file-type,
82595         * modules/filemode, modules/lchown, modules/makepath,
82596         * modules/rmdir, modules/stat: Depend on new stat-macros module
82597         rather than listing lib/stat-macros.h manually.
82598         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82599
82600 2005-03-22  Jim Meyering  <jim@meyering.net>
82601
82602         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82603
82604 2005-03-22  Bruno Haible  <bruno@clisp.org>
82605
82606         * config/srclist.txt: Replace target directory 'config' with
82607         'build-aux'.
82608         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82609         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82610         ../build-aux/.
82611
82612 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82613
82614         * modules/chdir-long (Depends-on): Add mempcpy.
82615
82616         * modules/acl, modules/backupfile, modules/c-strtod,
82617         modules/c-strtold, modules/canon-host, modules/canonicalize,
82618         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82619         modules/exclude, modules/exitfail, modules/file-type,
82620         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82621         modules/getdate, modules/getline, modules/getpagesize,
82622         modules/getpass, modules/getugroups, modules/group-member,
82623         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82624         modules/inttostr, modules/long-options, modules/makepath,
82625         modules/md5, modules/memcasecmp, modules/memcoll,
82626         modules/modechange, modules/mountlist, modules/path-concat,
82627         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82628         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82629         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82630         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82631         modules/strftime, modules/strndup, modules/strverscmp,
82632         modules/timespec, modules/unlocked-io, modules/userspec,
82633         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82634         modules/yesno:
82635         Remove lib_SOURCES line from Makefile.am section, as this is now
82636         done automatically by the corresponding Autoconf macro.
82637
82638 2005-03-21  Jim Meyering  <jim@meyering.net>
82639
82640         Changes imported from coreutils.
82641
82642         * lib/cycle-check.c: Don't include xalloc.h.
82643
82644         * lib/path-concat.c: Don't include assert.h.
82645         (path_concat): Remove assertion that would have triggered
82646         for ABASE starting with more than one slash.
82647         Reported by Andreas Schwab.
82648
82649         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82650         properly when ABASE is an absolute file name.
82651         Correct the description of this function.
82652         Include <assert.h>.
82653         Add an assertion and a test driver.
82654         This fixes a bug introduced on 2004-07-02.
82655         Andreas Schwab reported the resulting failure of cp --parents:
82656         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82657
82658 2005-03-21  Jim Meyering  <jim@meyering.net>
82659
82660         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82661         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82662
82663 2005-03-21  Jim Meyering  <jim@meyering.net>
82664         and  Paul Eggert  <eggert@cs.ucla.edu>
82665
82666         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82667         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82668         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82669         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82670         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82671         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82672         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82673         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82674         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82675         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82676         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82677         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82678         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82679         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82680         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82681         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82682         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82683         for these modules.
82684
82685 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82686
82687         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82688         (which shouldn't happen), generate nothing instead of returning 0
82689         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82690
82691 2005-03-16  Bruno Haible  <bruno@clisp.org>
82692
82693         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82694         HAVE_LONGLONG_64BIT.
82695
82696 2005-03-16  Bruno Haible  <bruno@clisp.org>
82697
82698         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82699         HAVE_LONGLONG_64BIT.
82700
82701 2005-03-16  Bruno Haible  <bruno@clisp.org>
82702
82703         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82704         HAVE_LONGLONG_64BIT.
82705
82706 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82707
82708         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82709         reliably distinguish strftime failure from empty output on POSIX
82710         hosts.
82711
82712 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82713
82714         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82715         (iconv_string): Don't guess a size-zero buffer, as that might cause
82716         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82717         result would be 'too large', where 'too large' is (heuristically)
82718         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82719         overflow concerns.  This will prevent some unwanted malloc failures
82720         when the inputs are very large.
82721
82722 2005-03-15  Karl Berry  <karl@gnu.org>
82723
82724         * config/srclist.txt (config.rpath): from gettext.
82725         * config/config.rpath: update.
82726
82727 2005-03-15  Bruno Haible  <bruno@clisp.org>
82728
82729         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82730         to 'negate'.
82731
82732         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82733         variable.
82734
82735         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82736         results.
82737
82738 2005-03-14  Simon Josefsson  <jas@extundo.com>
82739
82740         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82741         <fx@gnu.org>.
82742
82743 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82744
82745         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82746         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82747         intprops.h.
82748         * lib/strtol.c: Likewise.
82749
82750 2005-03-14  Jim Meyering  <jim@meyering.net>
82751
82752         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82753         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82754         to be nonzero so that we (and caller) can detect the difference
82755         between a valid zero-length expansion and an error return, even
82756         when the underlying strftime fails before writing anything into
82757         that location.
82758
82759 2005-03-14  Bruno Haible  <bruno@clisp.org>
82760
82761         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82762         Update from GNU gettext 0.14.3.
82763
82764 2005-03-10  Jim Meyering  <jim@meyering.net>
82765
82766         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82767
82768 2005-03-10  Jim Meyering  <jim@meyering.net>
82769
82770         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82771         so that this module works on systems without fchdir.
82772
82773 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82774
82775         Factor int-properties macros into a single file, except for
82776         glibc-related files.
82777         * lib/intprops.h: New file.
82778         * lib/getloadavg.c: Include it instead of limits.h.
82779         (INT_STRLEN_BOUND): Remove.
82780         * lib/human.c: Include intprops.h.
82781         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82782         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82783         302/1000.
82784         * lib/inttostr.h: Include intprops.h instead of limits.h.
82785         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82786         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82787         for consistency with intprops.h.
82788         (time_t_is_integer, twos_complement_arithmetic): Use them.
82789         * lib/sig2str.h: Include <signal.h>, intprops.h.
82790         (INT_STRLEN_BOUND): Remove.
82791         * lib/strftime.c (TYPE_SIGNED): Remove.
82792         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82793         * lib/strtol.c: Adjust comments to match intprops.h.
82794         * lib/userspec.c: Include intprops.h.
82795         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82796         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82797         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82798         instead of rolling our own expressions.
82799         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82800
82801         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82802         instead of int.
82803         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82804         the right thing even if adding 1900 would overflow.  Similarly
82805         for tm_mon + 1 and tm_yday + 1.
82806         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82807         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82808         (DO_SIGNED_NUMBER): New macro.
82809         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82810
82811 2005-03-07  Bruno Haible  <bruno@clisp.org>
82812
82813         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82814
82815 2005-03-07  Bruno Haible  <bruno@clisp.org>
82816
82817         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82818
82819 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82820
82821         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82822         (func_import): Only replace files via --import when they have actually
82823         changed.
82824
82825 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82826
82827         * m4/mmap-anon.m4: New file.
82828         * m4/pagealign_alloc.m4: New file.
82829
82830 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82831             Bruno Haible  <bruno@clisp.org>
82832
82833         * modules/pagealign_alloc: New file.
82834         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
82835
82836 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82837             Bruno Haible  <bruno@clisp.org>
82838
82839         * lib/pagealign_alloc.h: New file.
82840         * lib/pagealign_alloc.c: New file.
82841
82842 2005-03-03  Bruno Haible  <bruno@clisp.org>
82843
82844         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
82845         Use an all-permissive copyright notice, recommended by RMS.
82846
82847 2005-03-02  Bruno Haible  <bruno@clisp.org>
82848
82849         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
82850         of AIX, the replacement has to be done only after <string.h> is
82851         included, therefore not in config.h. stpncpy.h does the replacement,
82852         and stpncpy.c uses it.
82853
82854 2005-03-02  Bruno Haible  <bruno@clisp.org>
82855
82856         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
82857         stpncpy.c uses it.
82858
82859 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82860
82861         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
82862         The workaround isn't strictly needed for POSIX conformance, and
82863         it's too much of a pain to configure and maintain.  We'll ask
82864         people to fix their kernels instead.
82865         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
82866         (NANOSLEEP_BUG_WORKAROUND): Remove.
82867         (xnanosleep): Remove the workaround.
82868
82869 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82870
82871         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
82872         Reported by Derek Price.
82873         (Include): Add "timespec.h".
82874
82875         * modules/xnanosleep (Depends-on): Remove gethrxtime.
82876
82877 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82878
82879         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
82880         to detect nanosleep bug.
82881
82882 2005-03-01  Bruno Haible  <bruno@clisp.org>
82883
82884         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
82885
82886 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82887
82888         * modules/gethrxtime: New file.
82889         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
82890         (Depends-on): Add gethrxtime.
82891         (configure.ac): Add gl_XNANOSLEEP.
82892         (Makefile.am): Remove lib_SOURCES line.
82893
82894 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82895
82896         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
82897         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
82898
82899 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82900
82901         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
82902         * lib/timespec.h (gettime): Return void, since it always
82903         succeeds now.  All uses changed.
82904         * lib/gettime.c (gettime): Likewise.
82905         [HAVE_NANOTIME]: Prefer nanotime.
82906         Assume gettimeofday succeeds, as POSIX requires.
82907         Assime time () succeeds, since other code already does.
82908         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
82909         (timespec_subtract): Remove.
82910         (NANOSLEEP_BUG_WORKAROUND): New constant.
82911         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
82912         things considerably.  Use it only on GNU/Linux hosts, since the
82913         workaround shouldn't be needed elsewhere.
82914
82915 2005-02-24  Bruno Haible  <bruno@clisp.org>
82916
82917         * modules/gettext (Files): Add m4/glibc2.m4.
82918
82919 2005-02-24  Bruno Haible  <bruno@clisp.org>
82920
82921         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
82922         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
82923         * m4/progtest.m4:
82924         Update from GNU gettext 0.14.2.
82925         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
82926
82927 2005-02-24  Bruno Haible  <bruno@clisp.org>
82928
82929         * lib/localcharset.c: Update from GNU gettext 0.14.2.
82930         * lib/config.charset: Update from GNU gettext 0.14.2.
82931
82932 2005-02-24  Bruno Haible  <bruno@clisp.org>
82933
82934         * lib/gettext.h: Update from GNU gettext 0.14.2.
82935
82936 2005-02-23  Simon Josefsson  <jas@extundo.com>
82937
82938         * m4/iconvme.m4: New file.
82939
82940 2005-02-23  Jim Meyering  <jim@meyering.net>
82941
82942         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
82943         change.
82944         Thanks to Bruno Haible for catching it.
82945
82946 2005-02-22  Simon Josefsson  <jas@extundo.com>
82947
82948         * modules/iconvme: New file.
82949
82950         * MODULES.html.sh: Add iconvme.
82951
82952 2005-02-22  Simon Josefsson  <jas@extundo.com>
82953
82954         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
82955
82956 2005-02-22  Simon Josefsson  <jas@extundo.com>
82957
82958         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
82959
82960 2005-02-22  Jim Meyering  <jim@meyering.net>
82961
82962         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
82963         s/ifndef/ifdef/.
82964
82965 2005-02-20  Neil Conway  <neilc@samurai.com>
82966
82967         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
82968         returned by OSX/Darwin if the specified buffer is not large
82969         enough for the hostname.
82970
82971 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82972
82973         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
82974         pass it to _help, otherwise the latter coredumps trying to
82975         dereference state.root_argp.
82976
82977 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82978
82979         * modules/chdir-long (Depends-on): Add memrchr.
82980         * modules/memrchr (Files): Add lib/memrchr.h.
82981         (Include): "memrchr.h".
82982
82983 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82984
82985         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
82986
82987 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82988
82989         * lib/memrchr.h: New file.
82990         * lib/chdir-long.c: Include it.
82991         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
82992         Don't bother including stddef.h.
82993
82994 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
82995
82996         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
82997         inclusion.
82998         Include <sys/types.h>, for dev_t.
82999         (ME_DUMMY, ME_REMOTE): Move from here....
83000         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83001         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83002         Dmitry V. Levin.
83003         Include mountlist.h first, to test the interface.
83004
83005 2005-01-29  Bruno Haible  <bruno@clisp.org>
83006
83007         * lib/progname.c (program_name): Initialize.
83008         Needed when linking statically on MacOS X.
83009
83010 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83011
83012         Sync from coreutils.
83013         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83014         (Depends-on): Add c-strtod.
83015         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83016
83017 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83018
83019         Sync from coreutils.
83020         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83021
83022         Remove files that are specific to coreutils.
83023         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83024
83025 2005-01-28  Bruno Haible  <bruno@clisp.org>
83026
83027         * modules/javacomp: New file.
83028         * MODULES.html.sh (Java): Add javacomp.
83029
83030 2005-01-28  Bruno Haible  <bruno@clisp.org>
83031
83032         * m4/javacomp.m4: New file, from GNU gettext.
83033
83034 2005-01-28  Bruno Haible  <bruno@clisp.org>
83035
83036         * lib/javacomp.sh.in: New file, from GNU gettext.
83037         * lib/javacomp.h: New file, from GNU gettext.
83038         * lib/javacomp.c: New file, from GNU gettext.
83039
83040 2005-01-26  Simon Josefsson  <jas@extundo.com>
83041
83042         * lib/gai_strerror.c: Use GPL in header.
83043
83044 2005-01-26  Bruno Haible  <bruno@clisp.org>
83045
83046         * modules/javaexec: New file.
83047         * MODULES.html.sh (Java): Add javaexec.
83048
83049 2005-01-26  Bruno Haible  <bruno@clisp.org>
83050
83051         * m4/javaexec.m4: New file, from GNU gettext.
83052
83053 2005-01-26  Bruno Haible  <bruno@clisp.org>
83054
83055         * lib/javaexec.sh.in: New file, from GNU gettext.
83056         * lib/javaexec.h: New file, from GNU gettext.
83057         * lib/javaexec.c: New file, from GNU gettext.
83058
83059 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83060
83061         * modules/lchown (Depends-on): Remove lchown.h
83062
83063 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83064
83065         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83066         must be defined if the header file was not found, in order
83067         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83068
83069 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83070
83071         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83072         initializers for struct pentry_state.
83073         (__argp_error): Check return value of __asprintf
83074         (__argp_failure): Translate error message
83075
83076         * lib/argp-parse.c: Removed braces around the expansion of N_()
83077
83078 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83079
83080         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83081         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83082         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83083         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83084         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83085         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83086         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83087         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83088         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83089         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83090         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83091         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83092         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83093         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83094         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83095         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83096         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83097         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83098         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83099         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83100         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83101         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83102         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83103         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83104         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83105         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83106         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83107         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83108         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83109         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83110         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83111         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83112         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83113         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83114         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83115         Use an all-permissive copyright notice, recommended by RMS.
83116
83117 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83118
83119         * modules/chdir-long (Depends-on): Remove mempcpy.
83120
83121 2005-01-21  Jim Meyering  <jim@meyering.net>
83122
83123         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83124         same value as for Solaris 9.
83125
83126         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83127         component length.  This included changing the parameter to be
83128         of type `char *' rather than `char const *'.
83129         * lib/chdir-long.h (chdir_long): Update prototype.
83130
83131         * lib/openat.c (fdopendir, fstatat): New functions.
83132         * lib/openat.h: Include headers required for use of DIR and struct
83133         stat.
83134         [AT_SYMLINK_NOFOLLOW]: Define.
83135         (fdopendir, fstatat): Add prototypes.
83136
83137 2005-01-21  Bruno Haible  <bruno@clisp.org>
83138
83139         * modules/classpath: New file.
83140         * MODULES.html.sh (Java): Add classpath.
83141
83142 2005-01-21  Bruno Haible  <bruno@clisp.org>
83143
83144         * lib/classpath.h: New file, from GNU gettext.
83145         * lib/classpath.c: New file, from GNU gettext.
83146
83147 2005-01-20  Simon Josefsson  <jas@extundo.com>
83148
83149         * modules/version-etc-fsf: New file.
83150
83151 2005-01-20  Simon Josefsson  <jas@extundo.com>
83152
83153         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83154         * lib/version-etc.c: Remove version_etc_copyright.
83155         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83156         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83157
83158 2005-01-20  Simon Josefsson  <jas@extundo.com>
83159
83160         * lib/base64.h (isbase64): Add.
83161
83162         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83163         using a unsigned prototype, don't inline.
83164         (base64_decode): Use it.
83165
83166 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83167
83168         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83169         it.
83170
83171 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83172
83173         * lib/save-cwd.c (save_cwd): Remove code to support the case
83174         where fchdir is missing or flaky.
83175
83176 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83177
83178         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83179
83180 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83181
83182         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83183         AC_LIBSOURCES now does this.
83184         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83185         with new ullong_max module.
83186
83187 2005-01-19  Bruno Haible  <bruno@clisp.org>
83188
83189         * modules/sh-quote: New file.
83190         * MODULES.html.sh (Executing programs): Add sh-quote.
83191
83192 2005-01-19  Bruno Haible  <bruno@clisp.org>
83193
83194         * lib/sh-quote.h: New file, from GNU gettext.
83195         * lib/sh-quote.c: New file, from GNU gettext.
83196
83197 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83198
83199         Merge from coreutils.
83200         * m4/ullong_max.m4: New file.
83201         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83202         (gl_MACROS): Assume localeconv exists.
83203
83204 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83205
83206         Merge changes from coreutils, as described below in several
83207         changelogs dated today.
83208
83209         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83210         (O_DIRECTORY): Remove; not needed here, since "." must be
83211         a directory.  All uses removed.
83212         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83213         universal on Suns, and we also need to test for IRIX.
83214         Revamp code to use 'if' rather than '#if'.
83215         Avoid unnecessary comparison of cwd->desc to 0.
83216
83217         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83218         for known valid error numbers rather than observed invalid ones.
83219
83220 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83221
83222         * modules/ullong_max: New file.
83223
83224         * modules/chdir-long, modules/openat: New files.
83225         * modules/save-cwd (Depends-on): Depend on chdir-long.
83226         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83227
83228 2005-01-18  Jim Meyering  <jim@meyering.net>
83229
83230         Merge from coreutils.
83231         * m4/chdir-long.m4, m4/openat.m4: New files.
83232         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83233         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83234         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83235         is sane and DOES follow symlinks.  Besides, testing 20 different
83236         systems found no broken chown implementations.
83237         Prompted by a change in rsync's copy of this macro.
83238         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83239
83240         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83241
83242         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83243         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83244         NULL-means-set-to-current-time semantics.
83245         Remove temporary file immediately, rather than waiting
83246         for configure's at-exit trap code to do it.
83247
83248 2005-01-18  Jim Meyering  <jim@meyering.net>
83249
83250         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83251
83252         * lib/utimens.c (futimens): Account for the fact that futimes
83253         can also fail with errno == ENOSYS or errno == ENOENT.
83254         Patch from Dmitry V. Levin.
83255
83256         Change the name of the robust chdir function from chdir to chdir_long.
83257         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83258         (restore_cwd): Use chdir_long, not chdir.
83259         * lib/chdir-long.c: Renamed from chdir.c.
83260         * lib/chdir-long.h: Renamed from chdir.h.
83261         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83262         Hurd.
83263
83264 2005-01-18  Bruno Haible  <bruno@clisp.org>
83265
83266         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83267         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83268         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83269         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83270         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83271         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83272         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83273         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83274         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83275         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83276         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83277         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83278         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83279         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83280         Use an all-permissive copyright notice, recommended by RMS.
83281
83282 2005-01-18  Bob Proulx  <bob@proulx.com>
83283
83284         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83285         simplify offsetof() macro construct to avoid compile failure with
83286         native HP-UX 11.0 ANSI C compiler.
83287
83288 2005-01-17  Bruno Haible  <bruno@clisp.org>
83289
83290         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83291         redundant because stpncpy.m4 takes care of it.
83292
83293 2005-01-17  Bruno Haible  <bruno@clisp.org>
83294
83295         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83296
83297 2005-01-17  Bruno Haible  <bruno@clisp.org>
83298
83299         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83300         used.
83301
83302 2005-01-17  Bruno Haible  <bruno@clisp.org>
83303
83304         * lib/fwriteerror.h (fwriteerror): Change specification to include
83305         fclose.
83306         * lib/fwriteerror.c: Include <stdbool.h>.
83307         (fwriteerror): At the end, close the file stream. Record whether
83308         stdout was already closed.
83309
83310 2005-01-17  Bruno Haible  <bruno@clisp.org>
83311
83312         * lib/execute.c (environ): Declare if needed.
83313         * lib/pipe.c (environ): Likewise.
83314         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83315
83316 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83317
83318         * modules/argp: Depend on vsnprintf
83319
83320 2005-01-10  Jim Meyering  <jim@meyering.net>
83321
83322         * modules/closeout (Depends-on): Add atexit.
83323
83324 2005-01-06  Bruno Haible  <bruno@clisp.org>
83325
83326         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83327
83328 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83329
83330         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83331         definitions to be after all include files, to avoid collisions.
83332         Problem reported by Bob Proulx.
83333
83334 2005-01-04  Jim Meyering  <jim@meyering.net>
83335
83336         Changes imported from coreutils.
83337         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83338         as the mkstemp template, use a temporary directory and an
83339         8.3-friendly template to avoid trouble on systems like DJGPP.
83340         Reported by Juan M. Guerrero via Stepan Kasal.
83341         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83342         close. Remove the temporary directory right away, rather than waiting
83343         for configure's at-exit trap code to do it.
83344         Suggestion from Stepan Kasal.
83345
83346 2005-01-01  Simon Josefsson  <jas@extundo.com>
83347
83348         * gnulib-tool: Print #include directives when --import'ing.
83349
83350 2004-12-28  Simon Josefsson  <jas@extundo.com>
83351
83352         * tests/test-base64.c: Include required header files.  Remove
83353         unused variables.
83354
83355 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83356
83357         * modules/error (Depends-on): Remove gettext.
83358
83359 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83360
83361         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83362         not needed.  This removes a dependency on the gettext module.
83363         [defined _LIBC]: Do not include <libintl.h>; not needed.
83364
83365 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83366
83367         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83368         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83369
83370 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83371
83372         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83373         HAVE_DECL_STRTOLD.
83374
83375 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83376
83377         * modules/getdate (Depends-on): Remove alloca-opt.
83378
83379 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83380
83381         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83382
83383 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83384
83385         * lib/argp-parse.c: Include <stddef.h>.
83386         (alignof, alignto): New macros.
83387         (parser_init): Don't assume that void * is aligned sufficiently
83388         for struct option.
83389
83390         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83391         need to extend the stack.
83392         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83393         large.
83394
83395 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83396
83397         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83398
83399 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83400
83401         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83402         (2004-10-24) change.  Apparently this was a false alarm.
83403
83404         * modules/getdate: Depend on alloca-opt, not alloca.
83405
83406 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83407
83408         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83409         Remove now-obsolete comment about AIX.
83410         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83411         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83412         (YYMAXDEPTH): New macro.
83413
83414 2004-12-18  Simon Josefsson  <jas@extundo.com>
83415
83416         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83417
83418 2004-12-18  Bruno Haible  <bruno@clisp.org>
83419
83420         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83421
83422 2004-12-18  Bruno Haible  <bruno@clisp.org>
83423
83424         * lib/fatal-signal.c (fatal_signals): Make non-const.
83425         (init_fatal_signals): New function.
83426         (uninstall_handlers, install_handlers): Ignore signals that were set to
83427         SIG_IGN.
83428         (at_fatal_signal): Call init_fatal_signals.
83429         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83430         SIG_IGN.
83431         Reported by Paul Eggert.
83432
83433 2004-12-18  Bruno Haible  <bruno@clisp.org>
83434
83435         * doc/alloca.texi: New file.
83436         * doc/alloca-opt.texi: New file.
83437
83438 2004-12-17  Jim Meyering  <jim@meyering.net>
83439
83440         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83441         Otherwise, install-sh could exit with improper exit status when
83442         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83443
83444 2004-12-16  Simon Josefsson  <jas@extundo.com>
83445
83446         * tests/test-base64.c: Add license.
83447
83448 2004-12-15  Stepan Kasal  <address@hidden>
83449
83450         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83451
83452 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83453
83454         * modules/getcwd (Files): Add m4/d-ino.m4.
83455         Suggested by Mark D. Baushke.
83456
83457 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83458
83459         * lib/getdate.y (textint): New member "negative".
83460         (time_zone_hhmm): New function.
83461         Expect 14 shift-reduce conflicts, not 13.
83462         (o_colon_minutes): New rule.
83463         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83464         (yylex): Set the "negative" member of signed numbers.
83465
83466 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83467
83468         * doc/getdate.texi (Time of day items, Time zone items):
83469         Describe new formats +00:00, UTC+00:00.
83470
83471 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83472
83473         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83474         spurious "-l"s.  Problem reported by Stepan Kasal.
83475
83476 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83477
83478         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83479         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83480
83481 2004-12-04  Simon Josefsson  <jas@extundo.com>
83482
83483         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83484         Vandoorselaere <yoann@prelude-ids.org>.
83485
83486 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83487
83488         Changes imported from coreutils.
83489         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83490         exist.
83491         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83492
83493 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83494
83495         Changes imported from coreutils.
83496         * lib/hard-locale.c: Assume <locale.h> exists.
83497         Include "strdup.h".
83498         (GLIBC_VERSION): New macro.
83499         (hard_locale): Assume setlocale exists.
83500         Rewrite to avoid #ifdef.
83501         Use strdup rather than malloc + strcpy.
83502         * lib/human.c: Assume <locale.h> exists.
83503         (human_readable): Assume localeconv exists.
83504
83505 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83506
83507         * modules/hard-locale (Depends-on): Add strdup.
83508
83509 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83510
83511         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83512         convert T2, not T.  (Imported from libc.)
83513
83514 2004-11-30  Simon Josefsson  <jas@extundo.com>
83515
83516         * modules/restrict (License): Change to LGPL.
83517
83518 2004-11-30  Simon Josefsson  <jas@extundo.com>
83519
83520         * m4/restrict.m4: Add copyright and copying conditions.
83521
83522 2004-11-30  Simon Josefsson  <jas@extundo.com>
83523
83524         * m4/base64.m4: New file.
83525
83526 2004-11-30  Simon Josefsson  <jas@extundo.com>
83527
83528         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83529         base64.
83530
83531         * tests/test-base64.c: New file.
83532
83533         * modules/base64: New file.
83534
83535 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83536
83537         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83538         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83539
83540         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83541
83542 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83543
83544         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83545         (__getcwd.c): Don't restore errno; glibc doesn't.
83546         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83547         first, falling back to our code only if its results look suspicious.
83548         Ensure that the resulting buffer is only as large as necessary.
83549
83550         * lib/readutmp.c: Include readutmp.h first.
83551         Include <errno.h>, since readutmp.h no longer does that.
83552         * lib/readutmp.h: Don't include <errno.h>,
83553         <sys/param.h>, <time.h>; not needed to establish interface.
83554         (errno): Remove decl.
83555         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83556         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83557         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83558
83559 2004-11-28  Simon Josefsson  <jas@extundo.com>
83560
83561         * lib/base64.h, base64.c: New file.
83562
83563 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83564
83565         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83566
83567 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83568
83569         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83570         (Depends-on): Remove pathmax, same.  Add mempcpy.
83571         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83572         (Makefile.am): Append getcwd.h to lib_SOURCES.
83573         (Include): Add getcwd.h.
83574         (Maintainer): Change from Jim Meyering to "all, glibc",
83575         since getdate now uses intended-for-glibc code.
83576         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83577         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83578
83579 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83580
83581         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83582         HP's ANSI C compiler.
83583         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83584         Declaring int functions causes warnings on some modern systems and
83585         shouldn't be needed to compile on ancient ones.
83586         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83587         defined.
83588
83589         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83590         with the following changes.
83591         (__set_errno): Parenthesize properly.
83592         Include <stdbool.h>.
83593         (MIN, MAX, MATCHING_INO): New macros.
83594         (__getcwd): Define with prototype, not K&R form.
83595         Use heuristics to allocate default buffer on stack if possible.
83596         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83597         behavior, and to avoid the PATH_MAX limit when computing
83598         ../../../../...
83599         Use MATCHING_INO to compare inode number to file.
83600         Check for arithmetic overflow in size calculations.
83601         Fix bug in reallocation of dot array that caused getcwd to fail
83602         on directories nested deeper than 75.
83603         Be more careful about saving errno on error.
83604         Do not use realloc; use only free+malloc, as this is a bit
83605         more flexible and avoids a needless copy operation.
83606         Do not inspect st_dev and st_ino for symbolic links; POSIX
83607         doesn't specify the latter.
83608         Check for closedir errors.
83609         Avoid needless casts.
83610         Use "#ifdef weak_alias" around weak_alias, to be like other
83611         glibc code.
83612         The following changes to getcwd.c have effect only when used in
83613         gnulib; they have no effect inside glibc proper.
83614         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83615         as alloca isn't used.
83616         (alloca, __alloca): Likewise.
83617         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83618         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83619         unconditionally, as gnulib assumes C89 or better.
83620         Do not include <sys/param.h>.
83621         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83622         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83623         better.
83624         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83625         Include <dirent.h> in a way that is compatible with modern Autoconf.
83626         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83627         New macros, if not already defined.
83628         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83629         Use "_LIBC", not "defined _LIBC", for consistency.
83630         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83631         a mempcpy module.
83632         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83633         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83634         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83635         credit only to Jim Meyering and adjust the copyright dates.
83636         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83637         <stdlib.h>, <unistd.h>, "pathmax.h".
83638         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83639         (INITIAL_BUFFER_SIZE): Remove.
83640         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83641
83642 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83643
83644         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83645         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83646         Use the _ONCE methods, for efficiency.
83647         Check for fcntl.h.  In test program, include <errno.h>
83648         and <fcntl.h> if available.  Remove old K&R cruft from
83649         test program.  Check for common errors in GNU/Linux,
83650         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83651         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83652         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83653         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83654         name accordingly.
83655         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83656         accommodate new getcwd.c.
83657         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83658         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83659         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83660         that's all we need now.
83661
83662 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83663
83664         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83665         argp-parse.c depends on getopt internals, that means we should
83666         always use our getopt, to be on the safe side.
83667         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83668         order not to spoil the result of an eventual previous invocation
83669         of gl_GETOPT_SUBSTITUTE.
83670
83671 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83672
83673         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83674         redefinition warnings. To avoid them, include the defines
83675         in `#if !defined __need_getopt ... #endif'. The only place
83676         where __getopt_argv_const is used is in definitions
83677         of getopt_long and getopt_long_only below, which are as well
83678         protected by `#ifndef __need_getopt'.
83679         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83680         __need_getopt after including <stdio.h> and <unistd.h> These
83681         headers might have defined it.
83682
83683 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83684
83685         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83686
83687 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83688
83689         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83690         (futimens): New function, which uses futimes if available.
83691         (futimens, utimens): Support timespec==NULL, with same semantics
83692         as utime and utimens.
83693         * lib/utimens.h (futimens): New decl.
83694
83695 2004-11-23  Jim Meyering  <jim@meyering.net>
83696
83697         * lib/getopt_.h: Remove trailing blanks.
83698
83699 2004-11-23  Jim Meyering  <jim@meyering.net>
83700
83701         * lib/__fpending.c: Add comment.
83702
83703 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83704
83705         * modules/canonicalize (Depends-on): Add xreadlink.
83706         Problem reported by James Youngman.
83707
83708 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83709
83710         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83711         New macros.
83712         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83713         optopt): Use them instead of invoking ## directly; otherwise, the
83714         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83715
83716 2004-11-19  Bruno Haible  <bruno@clisp.org>
83717
83718         * lib/strtok_r.c: Move comments from here...
83719         * lib/strtok_r.h: ... to here.
83720
83721 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83722
83723         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83724         implementations that mishandle size_t overflow.
83725
83726 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83727
83728         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83729         might fail.  Problem reported by Yoann Vandoorselaere.
83730         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83731         implementations that mishandle size_t overflow.
83732
83733 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83734
83735         * modules/canon-host (Depends-on): Add strdup.
83736
83737 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83738
83739         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83740
83741 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83742
83743         * lib/canon-host.c: Include "strdup.h".
83744         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83745         Use strdup instead of malloc/strcpy to duplicate strings.
83746
83747         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83748         (human_space_before_unit): New constant.
83749         * lib/human.c (human_readable): Support it.
83750
83751         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83752         (xgetcwd): Set errno correctly when failing.
83753         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83754         the failure is actually due to a PATH_MAX problem.
83755
83756         Further getopt changes to make it more likely that glibc will
83757         buy the changes back.
83758         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83759         (getopt): Use it, so to preserve glibc semantic
83760         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83761         when compiling for libc.
83762         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83763         (getopt_long, getopt_long_only): Use it.
83764
83765         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83766         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83767         (getopt): Argv is now char * const *, as per standard.
83768         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83769         not char *__getopt_argv_const *.
83770         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83771         _getopt_long_only_r): Likewise.
83772         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83773         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83774         _getopt_long_r, _getopt_long_only_r): Likewise.
83775         * lib/getopt_.h (__getopt_argv_const): Remove.
83776         (getopt): Argv is now char * const *, as per standard.
83777
83778         * lib/getdate.y (tORDINAL): New token.
83779         (day, relunit): Allow it for relative times.
83780         (relative_time_table): Use tORDINAL for ordinals.
83781
83782 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83783
83784         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83785         Document that "second" isn't allowed as an ordinal number.
83786
83787 2004-11-16  Jim Meyering  <jim@meyering.net>
83788
83789         * modules/closeout (Depends-on): Add fpending.
83790
83791 2004-11-15  Jim Meyering  <jim@meyering.net>
83792
83793         * lib/closeout.c: Include "__fpending.h" once again.
83794         Include <stdbool.h>.
83795         (close_stdout): Don't fail just because stdout was closed initially,
83796         since some programs don't write to stdout in the normal course of
83797         operation (other than --version and --help), and we don't want this
83798         function to make e.g. `touch file >&-' fail.
83799         But do fail if it was closed and someone has tried to write to it.
83800         E.g., `printf foo >&-' must fail.
83801
83802 2004-11-13  Jim Meyering  <jim@meyering.net>
83803
83804         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83805
83806 2004-11-12  Simon Josefsson  <jas@extundo.com>
83807
83808         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83809         small doc fix is still pending.
83810
83811 2004-11-11  Simon Josefsson  <jas@extundo.com>
83812
83813         * modules/strtok_r: New file.
83814
83815         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83816         strtok_r.
83817
83818 2004-11-11  Simon Josefsson  <jas@extundo.com>
83819
83820         * m4/strtok_r.m4: New file.
83821
83822         * m4/getopt.m4: Replace opterr.
83823
83824 2004-11-11  Simon Josefsson  <jas@extundo.com>
83825
83826         * lib/strtok_r.h, strtok_r.c: New file.
83827
83828 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83829
83830         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
83831         of replacing opterr, getopt, etc.  This should handle the
83832         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
83833
83834 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83835
83836         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
83837         we can stop lying to compilers about the constness of argv when we
83838         are compiled outside glibc.
83839         (getopt, getopt_long, getopt_long_only): Use it.
83840         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83841         _getopt_internal, getopt): Likewise.
83842         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83843         _getopt_long_only_r): Likewise.
83844         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83845         _getopt_long_r, _getopt_long_only_r): Likewise.
83846
83847         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
83848         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
83849         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
83850         the other external symbols.
83851         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
83852         declaration, since the above renaming now works around collisions.
83853
83854 2004-11-11  Jim Meyering  <jim@meyering.net>
83855
83856         * lib/linebreak.c: Remove trailing blanks.
83857         * lib/alloca_.h: Likewise.
83858         * lib/acosl.c: Likewise.
83859         * lib/euidaccess.c: Likewise.
83860         * lib/allocsa.h: Likewise.
83861
83862 2004-11-10  Simon Josefsson  <jas@extundo.com>
83863
83864         * m4/getaddrinfo.m4: New file.
83865
83866 2004-11-10  Simon Josefsson  <jas@extundo.com>
83867
83868         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
83869
83870 2004-11-10  Simon Josefsson  <jas@extundo.com>
83871
83872         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83873         getaddrinfo.
83874
83875         * modules/getaddrinfo: New file.
83876
83877 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83878
83879         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
83880
83881 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83882
83883         * lib/mktime.c (SHR): New macro, which is a portable
83884         substitute for >> that should work even on Crays.
83885         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
83886         Problem reported by Mark D. Baushke in
83887         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
83888         * lib/getdate.y (SHR): Likewise.
83889         (tm_diff): Use it.
83890         * lib/strftime.c (SHR): Likewise.
83891         (tm_diff): Use it.
83892         * lib/quotearg.c (struct quoting_options): Use unsigned int for
83893         quote_these_too, so that right shifts are well defined.  All uses
83894         changed.
83895
83896 2004-11-10  Jim Meyering  <jim@meyering.net>
83897
83898         Ensure that no close failure goes unreported.
83899         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
83900         return early when it seems there's nothing to flush.
83901         Don't include __fpending.h.
83902
83903 2004-11-10  Jim Meyering  <jim@meyering.net>
83904
83905         * modules/closeout (Depends-on): Remove fpending.
83906
83907 2004-11-10  Jim Meyering  <jim@meyering.net>
83908
83909         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
83910
83911 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83912
83913         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
83914         gl_FUNC_STRFTIME.
83915         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
83916         and AC_REQUIRE when possible, to avoid duplicate checks.
83917         Check for <wchar.h>.
83918
83919 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83920
83921         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
83922
83923 2004-11-09  Bruno Haible  <bruno@clisp.org>
83924
83925         * m4/sockpfaf.m4: New file.
83926
83927 2004-11-05  Bruno Haible  <bruno@clisp.org>
83928
83929         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
83930         Reported by Mark D. Baushke <mdb@cvshome.org>.
83931
83932 2004-11-04  Bruno Haible  <bruno@clisp.org>
83933
83934         2004-09-11  Bruno Haible  <bruno@clisp.org>
83935                 * allocsa.valgrind: New file.
83936         2004-02-06  Bruno Haible  <bruno@clisp.org>
83937                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
83938                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
83939                 Reported by Christopher Seip <chris.seip@hp.com>.
83940
83941 2004-11-04  Bruno Haible  <bruno@clisp.org>
83942
83943         * modules/allocsa (Files): Add lib/allocsa.valgrind.
83944         (Makefile.am): Distribute it.
83945
83946 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
83947
83948         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
83949         with errno == ERANGE if the buffer is too small.
83950         Problem reported by Mark D. Baushke.
83951
83952 2004-11-03  Albert Chin  <china@thewrittenword.com>
83953             Paul Eggert  <eggert@cs.ucla.edu>
83954
83955         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
83956         equivalent, substitute $ac_type for equivalent type rather than
83957         blindly using uint32_t *always* which won't work if uint32_t is not
83958         available.  Define _UINT32_T to work around typedef of uint32_t if
83959         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
83960         2.5.1.
83961
83962 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83963
83964         * m4/jm-macros.m4: Sync from coreutils.
83965         (gl_MACROS): Check for mbrlen, for pathchk.
83966         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
83967
83968 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83969
83970         * lib/xreadlink.c (MAXSIZE): New macro.
83971         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
83972         size does not exceed MAXSIZE.  Avoid cast.
83973         As suggested by Mark D. Baushke in
83974         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
83975         if readlink fails with buffer size just under MAXSIZE, try again
83976         with MAXSIZE.
83977
83978 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83979
83980         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
83981
83982 2004-11-02  Derek R. Price  <derek@ximbiot.com>
83983         and  Paul Eggert  <eggert@cs.ucla.edu>
83984
83985         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
83986         (get_date): Overparenthesize to avoid GCC warning.
83987
83988 2004-11-02  Bruno Haible  <bruno@clisp.org>
83989
83990         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
83991         returns void.
83992
83993 2004-11-02  Bruno Haible  <bruno@clisp.org>
83994
83995         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
83996         function returns void.
83997
83998 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83999
84000         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84001         fflush_unlocked, flockfile, funlockfile, funlockfile,
84002         fputs_unlocked, putc_unlocked.
84003
84004 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84005
84006         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84007         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84008         already declared.
84009
84010 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84011
84012         * modules/getdate (Files): Add doc/getdate.texi.
84013         (Depends-on): Add setenv, xalloc.
84014
84015 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84016
84017         * lib/getdate.y: Add support for TZ="foo" within a date string.
84018         Fix some bugs near time_t boundaries.  Reject dates with
84019         out-of-range components, e.g., "Sept 31".
84020         Include <stdlib.h>, "setenv.h", "xalloc.h".
84021         (ISDIGIT_LOCALE): Remove; unused.
84022         Note that the TZ and time functions used here are not reentrant.
84023         (mktime_ok, get_tz): New functions.
84024         (TZBUFSIZE): New constant.
84025         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84026         This requires that we sometimes generate our own TZ="XXX..." setting.
84027
84028 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84029
84030         * doc/getdate.texi: New file, from coreutils with modifications for
84031         the new TZ parsing.
84032
84033 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84034
84035         * lib/mktime.c (not_equal_tm): Remove redundant check.
84036
84037 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84038
84039         * modules/regex (lib_SOURCES): Add regex.c.
84040         Reported by James Youngman in
84041         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84042
84043 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84044
84045         * lib/getdate.y: Use Bison 1.875 features, and some minor
84046         code cleanups.  This change does not affect semantics.
84047         Don't include <stdlib.h>; no longer needed.
84048         Don't include unlocked-io.h; only the "#if TEST" code uses
84049         stdio, and performance isn't crucial there.
84050         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84051         Bison 1.875 features as described below.
84052         All uses of "PC." replaced by "pc->".
84053         (YYSTYPE): Add a forward declaration.
84054         (yylex, yyerror): Use full prototypes in forward decls.
84055         Use "%pure-parser" rather than obsolescent "%pure_parser".
84056         Use %parse-param and %lex-param instead of obsolescent
84057         YYPARSE_PARAM and YYLEX_PARAM.
84058         (meridian_table, month_and_day_table, time_units_table,
84059         relative_time_table, time_zone_table, military_table,
84060         lookup_zone, lookup_word, get_date):
84061         Use NULL instead of 0 where appropriate.
84062         (to_hour): Avoid abort (), to avoid a dependency on
84063         stdlib.h.
84064         (yyerror, yylex): Now accepts parser_control * arg.
84065         (main) [TEST]: Use '\0' rather than 0 for char.
84066
84067 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84068
84069         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84070
84071 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84072
84073         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84074         It's now the caller's responsibility to handle the case where
84075         !HAVE_GETPAGESIZE && !defined getpagesize.
84076
84077         * lib/mktime.c (leapyear): Arg is long int, not int.
84078
84079 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84080
84081         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84082
84083 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84084
84085         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84086         missing.  Problem reported by James Youngman.
84087
84088 2004-10-16  Simon Josefsson  <jas@extundo.com>
84089
84090         * gnulib-tool: Fix comments.  Fix parse problem.
84091         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84092
84093 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84094
84095         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84096         implementation of getopt_long.  Problem reported by Alexander Taler in:
84097         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84098
84099 2004-10-15  Bruno Haible  <bruno@clisp.org>
84100
84101         * gnulib-tool: Untabify. Initialize supplied_libname.
84102         (func_usage): More homogenous output.
84103         (func_modules_transitive_closure, func_modules_to_filelist,
84104         func_emit_lib_Makefile_am): New functions.
84105         (func_import): New function, extracted from big case statement. Use
84106         func_get_license, func_modules_transitive_closure,
84107         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84108         opt_lgpl. Don't use test -a, as it's not portable.
84109         (func_create_testdir): Use func_modules_transitive_closure,
84110         func_modules_to_filelist, func_emit_lib_Makefile_am.
84111
84112 2004-10-15  Bruno Haible  <bruno@clisp.org>
84113
84114         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84115
84116 2004-10-15  Bruno Haible  <bruno@clisp.org>
84117
84118         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84119         the portions belonging to each module.
84120         Suggested by Derek Robert Price <derek@ximbiot.com>.
84121
84122 2004-10-12  Simon Josefsson  <jas@extundo.com>
84123
84124         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84125         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84126         to real functions.
84127
84128 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84129
84130         * modules/vsnprintf: New file.
84131
84132 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84133
84134         * m4/vsnprintf.m4: New file.
84135
84136 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84137
84138         * lib/vsnprintf.h: New file.
84139         * lib/vsnprintf.c: New file.
84140
84141 2004-10-11  Bruno Haible  <bruno@clisp.org>
84142
84143         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84144         vsnprintf.
84145
84146 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84147
84148         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84149
84150 2004-10-07  Bruno Haible  <bruno@clisp.org>
84151
84152         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84153         fits into the provided buffer.
84154
84155 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84156
84157         * lib/diacrit.c, diacrit.h: Add GPL notice.
84158
84159         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84160         notice.
84161         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84162         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84163         This avoids a potential constant-folding bug.
84164
84165 2004-10-05  Bruno Haible  <bruno@clisp.org>
84166
84167         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84168         for the declaration of strsep.
84169
84170 2004-10-05  Bruno Haible  <bruno@clisp.org>
84171
84172         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84173
84174 2004-10-04  Simon Josefsson  <jas@extundo.com>
84175
84176         * modules/memmem: New file.
84177         * tests/test-memmem.c: New file.
84178         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84179
84180 2004-10-04  Simon Josefsson  <jas@extundo.com>
84181
84182         * m4/memmem.m4: New file.
84183
84184 2004-10-04  Simon Josefsson  <jas@extundo.com>
84185
84186         * lib/memmem.h: New file.
84187         * lib/memmem.c: New file, taken from glibc.
84188
84189 2004-10-04  Simon Josefsson  <jas@extundo.com>
84190
84191         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84192         '#ifdef USE_UNLOCKED_IO'.
84193
84194 2004-10-04  Simon Josefsson  <jas@extundo.com>
84195
84196         * config/srclist.txt: Add memmem from glibc.
84197
84198 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84199
84200         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84201
84202         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84203         modules/exclude, modules/getdate, modules/getline,
84204         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84205         modules/getusershell, modules/linebuffer, modules/md5,
84206         modules/mountlist, modules/posixtm, modules/readtokens,
84207         modules/readutmp, modules/regex, modules/sha1,
84208         modules/version-etc, modules/yesno:
84209         Remove dependency on unlocked-io.
84210
84211 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84212
84213         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84214
84215         * m4/unlocked-io.m4: Add copyright notice.
84216         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84217
84218 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84219
84220         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84221         * lib/xmalloc.c (xmemdup): Likewise.
84222         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84223         XFREE): Remove these long-obsolescent macros.
84224         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84225         * lib/xstrdup.c: Remove.
84226
84227         * lib/regex.c (re_comp): Cast gettext return value to char *,
84228         Problem reported by Martin Neitzel via Mark D. Baushke.
84229
84230 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84231
84232         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84233         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84234         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84235         regex.c, sha1.c, version-etc.c, yesno.c:
84236         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84237         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84238         the includer's responsibility.
84239
84240         Sync from coreutils.
84241
84242         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84243         points to the start of a string, as the C Standard says the
84244         resulting behavior is undefined.
84245
84246         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84247         simple -> simple_backups, numbered_existing ->
84248         numbered_existing_backups, numbered -> numbered_backups
84249         to avoid shadowing problems.  All uses changed.
84250         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84251         * lib/backupfile.c (check_extension, numbered_backup):
84252         Rename locals to avoid shadowing 'basename'.
84253         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84254         once.
84255
84256         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84257         * lib/.cvsignore: Add getopt.h.
84258
84259 2004-10-04  Bruno Haible  <bruno@clisp.org>
84260
84261         * modules/README: New file.
84262         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84263         not a module.
84264
84265 2004-10-02  Jim Meyering  <jim@meyering.net>
84266
84267         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84268
84269 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84270
84271         * modules/strsep: New file.
84272
84273 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84274
84275         * m4/strsep.m4: New file.
84276
84277 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84278
84279         * lib/strsep.h: New file.
84280         * lib/strsep.c: New file.
84281
84282 2004-10-01  Simon Josefsson  <jas@extundo.com>
84283
84284         * lib/snprintf.c (snprintf): Handle size==0.
84285
84286 2004-10-01  Simon Josefsson  <jas@extundo.com>
84287             Bruno Haible  <bruno@clisp.org>
84288
84289         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84290         (snprintf): Declare 'args'.
84291
84292 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84293
84294         * lib/snprintf.c: Remove comments as to why each header is needed.
84295
84296 2004-10-01  Bruno Haible  <bruno@clisp.org>
84297
84298         * MODULES.html.sh: Add strsep.
84299
84300 2004-09-30  Simon Josefsson  <jas@extundo.com>
84301
84302         * modules/snprintf: New file.
84303
84304 2004-09-30  Simon Josefsson  <jas@extundo.com>
84305
84306         * m4/snprintf.m4: New file.
84307
84308 2004-09-30  Simon Josefsson  <jas@extundo.com>
84309
84310         * lib/snprintf.h, lib/snprintf.c: New files.
84311
84312 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84313
84314         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84315         (hol_entry_help): Never translate an empty string.
84316         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84317         * lib/argp.h (OPTION_NO_TRANS): New option.
84318
84319 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84320
84321         * modules/argp (Maintainer): Replace Simon Josefsson
84322         by Sergey Poznyakoff.
84323
84324 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84325
84326         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84327         changes merged back into glibc.
84328
84329 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84330
84331         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84332
84333 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84334
84335         * lib/xvasprintf.c: Include xalloc.h.
84336         (xvasprintf): Use xalloc_die, not xmalloc_die.
84337
84338 2004-09-29  Bruno Haible  <bruno@clisp.org>
84339
84340         * modules/alloca-opt: New file, derived from modules/alloca.
84341         * modules/allocsa: Depend on alloca-opt instead of alloca.
84342         * modules/setenv: Likewise.
84343         * modules/vasnprintf: Likewise.
84344         * MODULES.html.sh: Add alloca-opt.
84345
84346 2004-09-28  Simon Josefsson  <jas@extundo.com>
84347
84348         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84349         LGPL, and to replace license template from GPL to LGPL.
84350
84351 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84352
84353         * modules/dummy: Change license to LGPL.
84354
84355 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84356
84357         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84358
84359 2004-09-24  Simon Josefsson  <jas@extundo.com>
84360
84361         * modules/minmax (License): Change from GPL to LGPL.
84362
84363 2004-09-23  Simon Josefsson  <jas@extundo.com>
84364
84365         * gnulib-tool (--import): Typo.
84366
84367 2004-09-23  Simon Josefsson  <jas@extundo.com>
84368
84369         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84370
84371 2004-09-22  Bruno Haible  <bruno@clisp.org>
84372
84373         * modules/*: Add 'License' field.
84374         * gnulib-tool: Accept --extract-license option.
84375         (func_get_license): New function.
84376
84377 2004-09-21  Bruno Haible  <bruno@clisp.org>
84378
84379         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84380         Reported by Simon Josefsson.
84381
84382 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84383
84384         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84385         gl_AC_TYPE_LONG_LONG.
84386
84387 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84388
84389         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84390
84391 2004-09-18  Simon Josefsson  <jas@extundo.com>
84392         and  Paul Eggert  <eggert@cs.ucla.edu>
84393
84394         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84395         calls with autoreconf.  Define GL_LIB.
84396
84397 2004-09-14  Karl Berry  <karl@gnu.org>
84398
84399         * config/srclist.txt: unsync setenv.c, sigh.
84400
84401 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84402
84403         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84404         Problem reported by Bruno Haible in:
84405         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84406
84407 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84408
84409         * config/srclist.txt: Comment out argp-pvh.c.
84410
84411 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84412
84413         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84414         in case some system header has #define'd it.  Problem reported by
84415         Soeren D. Schulze in
84416         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84417
84418 2004-09-09  Karl Berry  <karl@gnu.org>
84419
84420         * regex.[ch]: delete from the root.  These were supposed to be
84421                 synced with emacs cvs, but this has not happened for about
84422                 a year, and anyway nothing else uses emacs regex.[ch].
84423                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84424                 lib/regex[.ch] is untouched.
84425
84426 2004-09-09  Bruno Haible  <bruno@clisp.org>
84427
84428         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84429
84430 2004-09-09  Bruno Haible  <bruno@clisp.org>
84431
84432         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84433         modifications.
84434         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84435
84436 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84437
84438         * modules/xvasprintf: New file.
84439         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84440
84441 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84442
84443         * lib/xvasprintf.h: New file.
84444         * lib/xvasprintf.c: New file.
84445         * lib/xasprintf.c: New file.
84446
84447 2004-09-08  Bruno Haible  <bruno@clisp.org>
84448
84449         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84450
84451 2004-09-08  Bruno Haible  <bruno@clisp.org>
84452
84453         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84454         length is > INT_MAX.
84455         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84456         more.
84457
84458 2004-09-08  Bruno Haible  <bruno@clisp.org>
84459
84460         * lib/stdint_.h: New file, taken from GNU clisp.
84461
84462 2004-09-08  Bruno Haible  <bruno@clisp.org>
84463             Oskar Liljeblad  <oskar@osk.mine.nu>
84464
84465         * modules/stdint: New file.
84466         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84467
84468 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84469
84470         Import from coreutils.
84471         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84472         strings on unbounded length.  alloca's performance benefits aren't
84473         that important here.
84474         (V_STRDUP): Remove.
84475         (parse_with_separator): New function, with most of the internals
84476         of the old parse_user_spec.  Allow user to omit both user and group,
84477         for compatibility with FreeBSD.
84478         Clone only the user name, not the entire spec.
84479         Do not set *uid, *gid unless entirely successful.
84480         Avoid memory leak in some failing cases.
84481         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84482         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84483         (parse_user_spec): Rewrite to use parse_with_separator.
84484
84485 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84486
84487         * modules/userspec: Don't depend on alloca.
84488
84489 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84490
84491         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84492
84493 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84494
84495         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84496         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84497         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84498
84499 2004-08-16  Simon Josefsson  <jas@extundo.com>
84500
84501         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84502         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84503         Add --dry-run for --import.
84504         Let user provided command line parameters override configure.ac
84505         settings.
84506
84507 2004-08-12  Simon Josefsson  <jas@extundo.com>
84508
84509         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84510         as discussed with Paul Eggert in threads rooted at
84511         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84512         and
84513         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84514         Before, the test was empty, and relied on ELIDE_CODE in source
84515         code.)
84516         (gl_PREREQ_GETOPT): New macro.
84517         (gl_GETOPT): Use them.
84518
84519 2004-08-12  Simon Josefsson  <jas@extundo.com>
84520
84521         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84522         * lib/getopt_.h: Renamed from getopt.h.
84523
84524 2004-08-12  Simon Josefsson  <jas@extundo.com>
84525
84526         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84527         Change default library name from libfoo to libgnu.
84528         Now, if you have a configure.ac that says:
84529                 gl_SOURCE_BASE(gl)
84530                 gl_M4_BASE(gl/m4)
84531                 gl_MODULES(error getopt etcetera)
84532                 gl_INIT
84533         you can import all you need by running:
84534                 ../gnulib/gnulib-tool --import
84535
84536         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84537         (Makefile.am): Rewrite, use logic from argz.
84538         (Include): Use <getopt.h> instead of "getopt.h".
84539
84540 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84541
84542         * modules/argp (Files): Add m4/unlocked-io.m4.
84543         (Depends-on): Add extensions.
84544
84545 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84546
84547         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84548         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84549         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84550         Check for program_invocation_name, program_invocation_short_name,
84551         flockfile, funlockfile, features.h, _getopt_long_only_r.
84552
84553 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84554
84555         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84556         its complicated substitute.
84557         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84558         and program_invocation_name.
84559         (__argp_basename) [!_LIBC]: Remove; the only use was
84560         replaced by its body.
84561         (__argp_short_program_name): Change condition from
84562         !defined __argp_short_program_name to
84563         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84564         to match argp-namefrob.h.
84565         (__argp_failure): Don't assume strerror_r returns char *.
84566         * lib/argp-parse.c (N_): Define unconditionally.
84567         (argp_default_options): Fill out initializers with 0 to avoid
84568         gcc warnings.
84569
84570 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84571
84572         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84573         getopt1.c.
84574
84575 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84576
84577         Merge from coreutils.
84578
84579         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84580
84581         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84582         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84583
84584 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84585
84586         Merge from coreutils.
84587
84588         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84589         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84590         for Reliant Unix 5.43.
84591
84592         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84593         (union fooround): Use uintmax_t, not long int.
84594         The rest is a merge from libc:
84595         [defined _LIBC]: Include <shlib-compat.h>.
84596         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84597
84598         * lib/settime.c (settime): Recode to avoid warning with
84599         Sun Forte C 6U2.
84600
84601         * lib/strverscmp.c: Convert to UTF-8.
84602
84603 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84604
84605         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84606         m4/uintmax_t.m4.
84607
84608 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84609
84610         * modules/xalloc-die: New file.
84611         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84612
84613         * modules/md5 (Files): Add m4/uint32_t.m4.
84614         * modules/sha1: Renamed from modules/sha.
84615         (Files):
84616         Rename lib/sha.h to lib/sha1.h.
84617         Rename lib/sha.c to lib/sha1.c.
84618         Rename m4/sha.m4 to m4/sha1.m4.
84619         (lib_SOURCES): Likewise.
84620         (configure.ac): Rename gl_SHA to gl_SHA1.
84621         (Include): sha.h -> sha1.h.
84622
84623 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84624
84625         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84626         * m4/sha1.m4: Renamed from sha.m4.
84627         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84628
84629 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84630
84631         * lib/obstack.h (obstack_empty_p):
84632         Don't assume that chunk->contents is suitably aligned.
84633         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84634         Likewise. Problem reported by Benno in
84635         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84636
84637         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84638         readable.  This could be improved further but it'd take some work.
84639
84640 2004-08-08  Simon Josefsson  <jas@extundo.com>
84641
84642         * modules/xgethostname (Depends-on): Remove exit and error (not
84643         used).
84644
84645         * modules/getpass-gnu: Add getpass.h.
84646         (Depends-on): Add stdbool.
84647         * modules/getpass: Add getpass.h.
84648
84649 2004-08-08  Simon Josefsson  <jas@extundo.com>
84650
84651         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84652         Check getpass declaration.
84653
84654 2004-08-08  Simon Josefsson  <jas@extundo.com>
84655
84656         * lib/xgethostname.c: Don't include error.h (not used).
84657
84658         * lib/getpass.h: Add.
84659         * lib/getpass.c: Include getpass.h first.
84660
84661 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84662
84663         * lib/xalloc-die.c: New file.
84664         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84665         All uses removed.
84666         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84667         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84668         xalloc-die.c.
84669         (_, N_, xalloc_die): Move to xalloc-die.c.
84670         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84671         so that we needn't mess with xalloc_msg_memory_exhausted.
84672
84673         * lib/sha1.h: Renamed from sha.h.
84674         (SHA1_H): Renamed from _SHA_H.
84675         (sha1_ctx): Renamed from sha_ctx.
84676         (sha1_init_ctx): Renamed from sha_init_ctx.
84677         (sha1_process_block): Renamed from sha_process_block.
84678         (sha1_process_bytes): Renamed from sha_process_bytes.
84679         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84680         (sha1_read_ctx): Renamed from sha_read_ctx.
84681         (sha1_stream): Renamed from sha_stream.
84682         (sha1_buffer): Renamed from sha_buffer.
84683         * lib/sha1.c: Likewise; renamed from sha.c.
84684         Do not include <sys/types.h>.
84685         Include <stddef.h> rather than <stdlib.h>.
84686
84687 2004-08-08  Bruno Haible  <bruno@clisp.org>
84688
84689         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84690         FILESYSTEM_PREFIX_LEN.
84691         * lib/progreloc.c: Likewise.
84692         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84693
84694 2004-08-06  Simon Josefsson  <jas@extundo.com>
84695
84696         * modules/progname (Depends-on): Don't depend on stdbool.
84697
84698 2004-08-06  Simon Josefsson  <jas@extundo.com>
84699
84700         * modules/getsubopt: New file.
84701         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84702         getsubopt.
84703
84704 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84705
84706         More merge from coreutils.
84707
84708         * m4/utimens.m4, m4/utimecmp.m4: New files.
84709         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84710         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84711         prereq.m4, sha.m4: Import changes from coreutils.
84712
84713 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84714
84715         More merge from coreutils.
84716         * modules/raise, modules/readtokens0, modules/utimens:
84717         * modules/utimecmp, module/xnanosleep: New files.
84718         * modules/strftime: Add lib/strftime.h.
84719         Change include from <time.h> to "strftime.h".
84720         * modules/yesno: Add lib/yesno.h.
84721         * modules/backupfile: Remove lib/addext.c.
84722         * modules/euidaccess: Add stat-macros.h.
84723         * modules/canonicalize, modules/euidaccess,
84724         modules/filemode, modules/lchown, modules/makepath,
84725         modules/rmdir, modules/stat: Likewise.
84726
84727 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84728
84729         Merge from tar.
84730         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84731         SIZE_MAX is a valid preprocessor constant.
84732         (__argp_basename): Change from "#ifndef _LIBC"
84733         to "#ifndef __argp_short_program_name", so that
84734         we don't compile these functions for tar.
84735
84736         More merges from coreutils.
84737         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84738         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84739         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84740         * lib/addext.c: Remove; no longer needed.
84741         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84742         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84743         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84744         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84745         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84746         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84747         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84748         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84749         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84750         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84751         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84752         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84753         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84754         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84755         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84756         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84757         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84758         Import changes from coreutils.
84759
84760 2004-08-05  Simon Josefsson  <jas@extundo.com>
84761
84762         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84763
84764 2004-08-05  Simon Josefsson  <jas@extundo.com>
84765
84766         * m4/getsubopt.m4: New file.
84767
84768 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84769
84770         Merge from coreutils.
84771
84772         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84773         * m4/getcwd-path-max.m4: New files.
84774
84775         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84776         FILESYSTEM_PREFIX_LEN ->
84777         FILE_SYSTEM_PREFIX_LEN.
84778         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84779         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84780         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84781         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84782
84783         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84784         prerequisite modules now handle the DOS stuff.
84785         Don't check for unistd.h.
84786
84787 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84788
84789         Merge from coreutils.
84790
84791         * lib/.gdb-history: Remove; this doesn't belong here.
84792
84793         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84794         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84795         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84796         * lib/getcwd.c: New files.
84797
84798         * lib/dirname.h: Include <stdbool.h>.
84799         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84800         for consistency with POSIX terminology.  All uses changed.
84801         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84802         (strip_trailing_slashes): Use bool for booleans.
84803         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84804
84805         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84806         sometimes returns a positive errno value even when it succeeds.
84807         (print_errno_message) [!LIBC]: Fall back on strerror if
84808         __strerror_r fails.
84809
84810         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84811         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84812         (longest_relative_suffix): New function.
84813         (path_concat): Use it.  Assume first argument is not NULL.
84814         Port to DOS.  Omit redundant separators.
84815         Report an error instead of returning NULL.
84816         Use mempcpy instead of memcpy.
84817         (xpath_concat): Remove: not declared or used.
84818
84819         * lib/same.h: Include <stdbool.h>
84820         (same_name): Return bool, not int.
84821         * lib/same.c (same_name): Likewise.
84822         (errno): Don't declare; we assume C89 or better now.
84823
84824         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84825         if not already defined.
84826
84827         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
84828         * lib/dup-safer.c (errno): Likewise.
84829
84830 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84831
84832         Merge from coreutils.
84833         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
84834         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
84835         * modules/path-concat: Don't depend on strdup.
84836
84837 2004-08-03  Simon Josefsson  <jas@extundo.com>
84838
84839         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
84840         * lib/progname.h: Don't include stdbool.h.
84841
84842 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84843
84844         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
84845         * MODULES.html.sh (func_all_modules): Remove fatal.
84846
84847 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84848
84849         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
84850
84851 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84852
84853         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
84854         working.
84855
84856 2004-08-02  Simon Josefsson  <jas@extundo.com>
84857
84858         * lib/getsubopt.h: New file, with comments from Bruno Haible.
84859         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
84860         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
84861
84862 2004-08-01  Simon Josefsson  <jas@extundo.com>
84863
84864         * lib/xgetdomainname.c: Include stdlib.h, for free().
84865
84866 2004-07-19  Bruno Haible  <bruno@clisp.org>
84867
84868         * MODULES.html.sh (func_all_modules): Add dummy.
84869
84870 2004-07-16  Simon Josefsson  <jas@extundo.com>
84871
84872         * modules/dummy: New file.
84873
84874 2004-07-16  Simon Josefsson  <jas@extundo.com>
84875
84876         * lib/dummy.c: New file.
84877
84878 2004-07-16  Bruno Haible  <bruno@clisp.org>
84879
84880         * lib/backupfile.h: Add extern "C" for C++.
84881         * lib/closeout.h: Likewise.
84882         * lib/copy-file.h: Likewise.
84883         * lib/findprog.h: Likewise.
84884         * lib/full-write.h: Likewise.
84885         * lib/pathname.h: Likewise.
84886         * lib/progname.h: Likewise.
84887         * lib/stpcpy.h: Likewise.
84888         * lib/stpncpy.h: Likewise.
84889         * lib/strcase.h: Likewise.
84890         * lib/strstr.h: Likewise.
84891         * lib/xalloc.h: Likewise.
84892
84893         * lib/mbswidth.h: Add extern "C" for C++.
84894         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
84895
84896 2004-07-13  Robert Millan  <robertmh@gnu.org>
84897
84898         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
84899
84900 2004-07-09  Simon Josefsson  <jas@extundo.com>
84901
84902         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
84903         failed without this.)
84904
84905 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84906
84907         * modules/chown (Files): Add lib/fchown-stub.c, since
84908         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
84909
84910 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84911
84912         * lib/fchown-stub.c: New file.
84913
84914 2004-06-24  Jim Meyering  <jim@meyering.net>
84915
84916         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
84917
84918 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84919
84920         * modules/argz: Omit "#include".
84921
84922         * MODULES.html.sh (func_all_modules): Add calloc, to match
84923         2004-06-01 addition of calloc module.
84924
84925 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84926
84927         * m4/argz.m4: New file, which is autoupdated from libtool.
84928
84929 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84930
84931         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
84932         libtool.
84933
84934 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84935
84936         * config/srclist-update: Don't insist on "USA." before the
84937         close-comment, as libtool omits the period and puts the */ on a
84938         separate line.
84939         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
84940         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
84941
84942 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
84943
84944         * modules/argz: New file.
84945         * MODULES.html.sh (func_all_modules): Add argz.
84946
84947 2004-06-12  Jim Meyering  <jim@meyering.net>
84948         and  Paul Eggert  <eggert@cs.ucla.edu>
84949
84950         * modules/hash (Files): Add lib/xalloc.h.
84951         * modules/pipe (Depends-on): Add wait-process.
84952         * modules/stat (Depends-on): Add xalloc.
84953         * modules/userspec (Files): Add lib/userspec.h.
84954         * modules/xstrto
84955
84956         Upgrade from gettext-0.13.
84957         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
84958         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
84959         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
84960
84961 2004-06-10  Jim Meyering  <jim@meyering.net>
84962
84963         * lib/calloc.c: New file.
84964
84965 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84966
84967         * lib/getdate.y (yylex): Allow space between sign and number.
84968         Problem reported by Dan Jacobson.
84969
84970 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84971
84972         Merge from coreutils CVS.
84973
84974         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
84975         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
84976         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
84977         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
84978         xstrtol.m4: Fix copyright date and/or serial number.
84979
84980         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
84981         See if we need an fchown replacement.
84982         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
84983         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
84984         and use the replacement function if we detect either defect.
84985
84986         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
84987         gl_UTIMECMP.
84988
84989 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84990         and  Jim Meyering  <jim@meyering.net>
84991
84992         Merge from coreutils CVS.
84993
84994         * lib/stat-macros.h: New file, with contents from file-type.h
84995         and coreutils' system.h.
84996         * lib/file-type.c: Include "stat-macros.h".
84997         * lib/file-type.h (file_type): Move all macro definitions to new file,
84998         stat-macros.h.
84999
85000         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85001         Wrap old code with this conditional.
85002         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85003         function that does not dereference symlinks.
85004         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85005
85006         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85007         dependency problems.
85008         (xreadlink): Accept new arg SIZE, for efficiency.
85009         All decls and uses changed.
85010         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85011
85012         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85013         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85014
85015         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85016         sysexits.h.
85017
85018 2004-06-01  Jim Meyering  <jim@meyering.net>
85019
85020         * m4/calloc.m4: New file.
85021
85022 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85023
85024         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85025         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85026         Also, fix a typo in a diagnostic.
85027
85028 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85029
85030         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85031         or AC_FUNC_REALLOC.
85032
85033 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85034
85035         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85036         macros to be defined.
85037         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85038         the allocator returns NULL because the requested size is zero.
85039
85040 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85041
85042         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85043         var.  Add comment explaining why libc still defines it.  This
85044         merges the following patch from glibc:
85045         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85046
85047 2004-05-20  Andreas Schwab  <schwab@suse.de>
85048
85049         * m4/free.m4: Replace free if it not known to work, not the other
85050         way round.
85051
85052 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85053
85054         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85055         present in glibc since revision 1.1 of this file.
85056         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85057         obstack_alignment_mask, obstack_alloc, obstack_base,
85058         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85059         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85060         obstack_grow0, obstack_init, obstack_int_grow,
85061         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85062         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85063         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85064         nonexistent functions.
85065
85066 2004-05-18  Karl Berry  <karl@gnu.org>
85067
85068         * config/srclist.txt: break link for vasnprintf.c.
85069
85070 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85071
85072         Port obstack to the AS/400, where pointers are 16 bytes wide and
85073         you cannot cast an integer to a valid pointer.  This patch is
85074         currently waiting to be integrated into glibc; see
85075         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85076
85077         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85078         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85079         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85080         (struct obstack): temp member is now a union of a pointer and
85081         an integer, instead of an integer.  All integer uses changed.
85082         This does not affect the physical layout of struct obstack,
85083         except on hosts (like the AS/400) where the size or alignment of
85084         void * is greater than that of ptrdiff_t.
85085         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85086         __STDC__)]: Store temporary in pointer member of union, not
85087         integer member.
85088         * lib/obstack.c: Include <stddef.h>, for offsetof.
85089         (struct fooalign): Remove; it doesn't need a name.
85090         (union fooround): Change double to long double, and add void *.
85091         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85092         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85093         not a macro.  Hence the values are always int; so remove all
85094         casts-to-int in uses.
85095
85096 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85097
85098         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85099         we can get this patch merged into glibc.
85100
85101 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85102             Paul Eggert  <eggert@cs.ucla.edu>
85103
85104         * m4/argp: Depend on alloca.
85105
85106 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85107             Paul Eggert  <eggert@cs.ucla.edu>
85108
85109         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85110         freecoding.
85111
85112 2004-05-17  Bruno Haible  <bruno@clisp.org>
85113
85114         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85115         precision that consists of a '.' followed by an empty digit string.
85116         Patch by Tor Lillqvist <tml@iki.fi>.
85117
85118 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85119
85120         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85121         for backward compatibility with older code.  We need our own
85122         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85123         it under some other name, and our alloca.h will define it.
85124
85125 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85126             Derek Price  <derek@ximbiot.com>
85127
85128         * lib/alloca.c: Include <alloca.h>, to get our interface.
85129         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85130         include <alloca.h> first.  Use C89 prototype for alloca; this
85131         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85132         Use #elif for simplicity, since we can assume C89 now.
85133         Don't try to source the system alloca.h since it will not be found
85134         and to prevent recursively including its replacement.
85135         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85136         * lib/regex.c: Likewise.
85137
85138 2004-05-16  Derek Price  <derek@ximbiot.com>
85139             Paul Eggert  <eggert@cs.ucla.edu>
85140
85141         getline cleanup.  This changes the getndelim2 API: both order of
85142         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85143         no delimiter).
85144
85145         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85146         interface does that.
85147         (getline): Always use getdelim, so that we don't have two
85148         copies of this code.
85149         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85150         if available.
85151         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85152         (GETNDELIM2_MAXIMUM): New macro.
85153         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85154         instead of the old practice of delim2==0.  All callers changed.
85155         Return -1 on overflow, instead of returning junk.
85156         Do not set *linesize unless allocation succeeds.
85157         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85158         that we include sys/types.h.
85159         * lib/getnline.h: Likewise.
85160         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85161         (getndelim2): Reorder arguments.
85162         * lib/getnline.c (getnline, getndelim):
85163         Don't discard the NMAX argument.
85164         (getnline): Invoke getndelim, to avoid code duplication.
85165         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85166         of (size_t) -1 by callers of the getnline family.
85167
85168 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85169
85170         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85171         Check for gettimeofday.
85172         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85173         Check for settimeofday, stime.
85174
85175 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85176
85177         * lib/nanosleep.c (suspended): Change its type from int to
85178         sig_atomic_t volatile.
85179         (first_call): Make it private to rpl_nanosleep, and have it
85180         be zero initially as that's a bit faster.
85181         (my_usleep): Round up fractional times instead of truncating them,
85182         as this is the usual meaning for 'sleep'.
85183
85184         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85185         doesn't work.
85186         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85187         (ENOSYS): Define if not defined.
85188         (settime): Fall back on stime if it exists and settimeofday fails.
85189         But don't bother with fallbacks if a method fails with errno == EPERM.
85190
85191 2004-05-11  Jim Meyering  <jim@meyering.net>
85192
85193         Prior to this change, the save_cwd caller required read access to the
85194         current directory on most systems (ones with the fchdir function).
85195
85196         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85197         fails, try write-only, and finally, resort to using xgetcwd.
85198
85199 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85200
85201         * lib/obstack.c, obstack.h: Import changes from libc.
85202
85203 2004-04-28  Bruno Haible  <bruno@clisp.org>
85204
85205         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85206         also implicitly appends .exe to executables.
85207         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85208         accepts Windows pathnames.
85209         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85210         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85211         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85212         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85213         Reported by Derek Robert Price <derek@ximbiot.com>.
85214
85215 2004-04-21  Karl Berry  <karl@gnu.org>
85216
85217         * config/srclist.txt (localcharset.c): break sync.
85218
85219 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85220
85221         * m4/host-os.m4: Add a copyright notice.
85222
85223 2004-04-20  Jim Meyering  <jim@meyering.net>
85224
85225         Change UTILS_ to gl_ in AC_DEFINE'd names.
85226         Change utils_- and jm_-prefixed variables, too.
85227         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85228         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85229         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85230
85231         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85232         Don't emit trailing blanks.
85233         Also rename jm_-prefixed variables to have gl_ prefix.
85234
85235         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85236         Also rename jm_-prefixed variables to have gl_ prefix.
85237
85238         * m4/jm-macros.m4: Reflect the renamings.
85239         * m4/prereq.m4: Likewise.
85240
85241 2004-04-20  Jim Meyering  <jim@meyering.net>
85242
85243         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85244         memory.
85245
85246 2004-04-20  Jim Meyering  <jim@meyering.net>
85247             Bruno Haible  <bruno@clisp.org>
85248
85249         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85250         memory when realloc fails.
85251
85252 2004-04-19  Jim Meyering  <jim@meyering.net>
85253
85254         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85255         now that readutmp.c may call `free (0)'.
85256
85257 2004-04-19  Bruno Haible  <bruno@clisp.org>
85258
85259         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85260         * m4/inttypes_h.m4: Likewise.
85261         * m4/stdint_h.m4: Likewise.
85262         * m4/intmax_t.m4: Likewise.
85263         * m4/uintmax_t.m4: Likewise.
85264
85265 2004-04-18  Jim Meyering  <jim@meyering.net>
85266
85267         * m4/prereq.m4: Don't forbid jm_ prefix.
85268
85269         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85270         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85271         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85272         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85273         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85274         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85275         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85276         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85277         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85278         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85279         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85280         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85281         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85282         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85283         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85284         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85285         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85286         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85287         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85288
85289 2004-04-18  Jim Meyering  <jim@meyering.net>
85290
85291         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85292         failure, don't leak memory and do call END_UTMP_ENT.
85293
85294 2004-04-16  Jim Meyering  <jim@meyering.net>
85295
85296         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85297         coreutils' stat program.
85298         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85299
85300 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85301
85302         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85303         C89.
85304         (CHAR_BIT): Remove, since we assume C89.
85305         Include <stdint.h> if available, as per current Autoconf CVS advice.
85306
85307 2004-03-31  Jim Meyering  <jim@meyering.net>
85308
85309         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85310         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85311         * m4/xalloc.m4: Likewise.
85312
85313 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85314
85315         Merge from coreutils.
85316
85317         * m4/inttostr.m4: New file.
85318         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85319         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85320         Require gl_CLOCK_TIME.
85321         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85322
85323 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85324
85325         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85326         not bool, to be more consistent with Unix conventions.
85327         Suggested by Bruno Haible.
85328
85329         Merge from coreutils.
85330
85331         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85332         * lib/umaxtostr.c: New files.
85333
85334         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85335         the usual <time.h> dance.
85336         (get_date): Change signature to support fractional time stamps.
85337         All callers changed.
85338         * lib/getdate.y: Include "getdate.h" first, as we can now
85339         assume C89 and don't need to worry about 'const'.
85340         Similarly, include "unlocked-io.h" near start, not in middle.
85341         Include <limits.h>.
85342         (textint.value): Use long int rather than int.
85343         (textint.digits): Use size_t rather than int.
85344         (BILLION, LOG10_BILLION): New constants.
85345         (parser_control): New member rel_ns.  Members day_ordinal,
85346         time_zone, month, day, hour, minutes, rel_year, rel_month,
85347         rel_day, rel_hour, rel_minutes, rel_seconds
85348         are now long int, not int.  Member seconds is now struct timespec,
85349         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85350         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85351         not int.
85352         (%union.intval): Now long int, not int.
85353         New member timespec.
85354         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85355         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85356         (spec): Now is a timespec or an item list.
85357         (timespec, items): New nonterminals.
85358         (time, rel, relunit, number, get_date):
85359         Add support for fractional seconds.
85360         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85361         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85362         (to_hour): First arg is now long int, not int.
85363         (to_year): Returns long int, not int.
85364         Don't treat year -70 like 70.
85365         (tm_diff): Returns long int, not int.
85366         (lookup_word): Use bool instead of int when appropriate.
85367         (yylex): Use size_t for count, not int.
85368         Detect overflow when parsing large integer constants.
85369         Add support for fractions.
85370         (get_date): Make pointers 'const' if possible.
85371         Use more-portable code to detect integer overflow.
85372         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85373         Don't use ctime; it's not reliable if the year has >4 digits.
85374
85375         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85376         This is for compatibility with BSD.
85377
85378         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85379         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85380         From coreutils' system.h.
85381
85382         * lib/userspec.c: Don't include "posixver.h".
85383         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85384         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85385         compatible extension.  Simplify code by removing a boolean int
85386         that was always nonzero if a string was nonnull.
85387
85388 2004-03-30  Jim Meyering  <jim@meyering.net>
85389
85390         Merge from coreutils.
85391
85392         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85393         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85394         on some systems one must include <grp.h> before it.
85395         Reported by Christian Krackowizer.
85396
85397 2004-03-30  Jim Meyering  <jim@meyering.net>
85398
85399         Merge from coreutils.
85400
85401         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85402
85403         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85404         an empty input stream.
85405
85406         * lib/readtokens.c: Include <stdbool.h>.
85407         (readtoken): Use `size_t' rather than int/long.
85408         All callers adjusted.
85409         Use `bool' rather than `int' where appropriate.
85410         Use memset rather than an explicit loop.
85411         Use x2nrealloc rather than xrealloc.
85412         Allow the use of `\0' as a delimiter.
85413         (readtokens): Likewise.
85414         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85415
85416 2004-03-30  Jim Meyering  <jim@meyering.net>
85417
85418         * m4/realloc.m4: Remove file, since now it does no more than
85419         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85420         the `configure.ac' section of module/realloc.
85421         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85422
85423 2004-03-30  Bruno Haible  <bruno@clisp.org>
85424
85425         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85426         nonnull.
85427
85428 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85429
85430         Merge changes to getloadavg.c from coreutils and Emacs.
85431
85432         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85433         Define to an expression, not to the empty string.
85434         Include cloexec.h and xalloc.h.
85435         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85436         Use set_cloexec_flag rather than rolling our own.
85437         * lib/cloexec.c, lib/cloexec.h: New files.
85438
85439 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85440
85441         * m4/cloexec.m4: New file.
85442
85443 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85444
85445         * lib/getopt.h: Sync with libc CVS.
85446
85447 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85448             Bruno Haible  <bruno@clisp.org>
85449
85450         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85451         mbswidth.
85452
85453 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85454             Bruno Haible  <bruno@clisp.org>
85455
85456         * lib/mbswidth.h: Include <wchar.h> only if
85457         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85458         <wchar.h>.
85459         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85460
85461 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85462
85463         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85464         Sync with libc CVS.
85465         * lib/getopt_int.h: New file, also synced from libc.
85466
85467 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85468
85469         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85470         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85471         Bring back getopt.c, getopt.h, getopt1.c.
85472
85473 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85474
85475         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85476         All uses changed.  Check for sa_sigaction member; this fixes
85477         a bug first reported by Jason Andrade in
85478         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85479
85480 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85481
85482         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85483         '#if' expressions.  Unlike the code it replaces, it does not
85484         depend on (defined _SC_PAGESIZE).  However, it does depend on
85485         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85486         first reported by Jason Andrade in
85487         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85488
85489 2004-02-25  Simon Josefsson  <jas@extundo.com>
85490
85491         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85492
85493 2004-02-25  Simon Josefsson  <jas@extundo.com>
85494
85495         * lib/strdup.h: New file.
85496         * lib/strdup.c: Include it.
85497         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85498         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85499
85500 2004-02-23  Karl Berry  <karl@gnu.org>
85501
85502         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85503         (from fencepost.gnu.org:/gd/gnuorg).
85504
85505 2004-02-23  Karl Berry  <karl@gnu.org>
85506
85507         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85508         * config/srclist.txt: add maintain/standards documents.
85509
85510 2004-02-18  Bruno Haible  <bruno@clisp.org>
85511
85512         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85513         Reported by Derek Robert Price <derek@ximbiot.com>.
85514
85515 2004-02-16  Karl Berry  <karl@gnu.org>
85516
85517         * config/mkinstalldirs, install-sh: update from automake.
85518
85519 2004-02-06  Karl Berry  <karl@gnu.org>
85520
85521         * m4/po.m4: update from gettext 0.14.1.
85522
85523 2004-02-06  Karl Berry  <karl@gnu.org>
85524
85525         * lib/config.charset: update from gettext 0.14.1.
85526
85527 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85528
85529         Add comments and code, prompted by suggestions from Bruno Haible
85530         for sh-quote.
85531         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85532         describing the enum quoting_style values.
85533         * lib/quotearg.c (quotearg_alloc): New function.
85534         (quotearg_buffer_restyled): Treat lone { and } as special.
85535         Treat = as special.  Work around bug with older shells
85536         that "see" a '\' that is really the 2nd byte of a multibyte char.
85537         Quote empty string with shell_quoting_style.
85538
85539 2004-02-03  Bruno Haible  <bruno@clisp.org>
85540
85541         * m4/pipe.m4: New file, from GNU gettext.
85542
85543 2004-02-03  Bruno Haible  <bruno@clisp.org>
85544
85545         * lib/pipe.h: New file, from GNU gettext.
85546         * lib/pipe.c: New file, from GNU gettext.
85547
85548 2004-01-27  Bruno Haible  <bruno@clisp.org>
85549
85550         * m4/execute.m4: New file, from GNU gettext.
85551
85552 2004-01-27  Bruno Haible  <bruno@clisp.org>
85553
85554         * lib/execute.h: New file, from GNU gettext.
85555         * lib/execute.c: New file, from GNU gettext.
85556         * lib/w32spawn.h: New file, from GNU gettext.
85557
85558 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85559
85560         Merge from diffutils.
85561
85562         * lib/file-type.c (file_type): Add typed memory objects.
85563         * lib/file-type.h (S_TYPEISTMO): New macro.
85564
85565         * lib/c-stack.h (c_stack_action): Remove argv argument.
85566         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85567         (die): Don't calculate message unless segv_action returns.
85568         (get_stack_location, min_address_from_argv, max_address_from_argv,
85569         volatile stack_base, volatile_stack_size): Remove.
85570         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85571         that every segmentation violation is a stack overflow.  (Ouch!)
85572         See Debian bug 136249 (still outstanding) for more info about why
85573         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85574
85575 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85576
85577         Exit-status fix from coreutils.
85578
85579         Use exit_failure consistently in place of EXIT_FAILURE,
85580         so that program exit statuses are consistent on failure.
85581
85582         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85583         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85584         * lib/argmatch.h: Comment fix to match the above.
85585         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85586         Now a macro referring to exit_failure, instead of a separate
85587         variable.  Include "exitfail.h" to get it.
85588         * lib/xstrtol.h: Include "exitfail.h".
85589         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85590
85591         * lib/long-options.c (parse_long_options): Use prototype
85592         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85593         for clarity.
85594
85595 2004-01-21  Jim Meyering  <jim@meyering.net>
85596
85597         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85598         so as not to conflict with a different-sized __mktime_internal
85599         function in GNU libc.
85600         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85601         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85602
85603 2004-01-20  Karl Berry  <karl@gnu.org>
85604
85605         * config/config.guess: update from config.
85606
85607         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85608
85609 2004-01-20  Bruno Haible  <bruno@clisp.org>
85610
85611         Safer stack allocation.
85612         * lib/setenv.c: Include allocsa.h.
85613         (alloca): Remove fallback definition.
85614         (freea): Remove macro.
85615         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85616         instead of freea.
85617
85618 2004-01-20  Bruno Haible  <bruno@clisp.org>
85619
85620         * m4/eealloc.m4: New file, from GNU gettext.
85621
85622 2004-01-20  Bruno Haible  <bruno@clisp.org>
85623
85624         * m4/allocsa.m4: New file, from GNU gettext.
85625
85626 2004-01-20  Bruno Haible  <bruno@clisp.org>
85627
85628         * lib/xallocsa.h: New file, from GNU gettext.
85629         * lib/xallocsa.c: New file, from GNU gettext.
85630
85631 2004-01-20  Bruno Haible  <bruno@clisp.org>
85632
85633         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85634
85635 2004-01-20  Bruno Haible  <bruno@clisp.org>
85636
85637         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85638         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85639         specially.
85640
85641 2004-01-20  Bruno Haible  <bruno@clisp.org>
85642
85643         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85644         patch.
85645
85646 2004-01-20  Bruno Haible  <bruno@clisp.org>
85647
85648         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85649
85650 2004-01-20  Bruno Haible  <bruno@clisp.org>
85651
85652         * lib/eealloc.h: New file.
85653
85654 2004-01-20  Bruno Haible  <bruno@clisp.org>
85655
85656         * lib/binary-io.h: Avoid warnings on Cygwin.
85657
85658 2004-01-20  Bruno Haible  <bruno@clisp.org>
85659
85660         * lib/allocsa.h: New file, from GNU gettext.
85661         * lib/allocsa.c: New file, from GNU gettext.
85662
85663 2004-01-18  Karl Berry  <karl@gnu.org>
85664
85665         * doc/gpl.texi, doc/lgpl.texi: new files.
85666
85667 2004-01-18  Karl Berry  <karl@gnu.org>
85668
85669         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85670         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85671
85672 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85673
85674         Merge from coreutils.
85675
85676         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85677         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85678         (gl_DEFAULT_POSIX2_VERSION): Move
85679         the documentation from 'configure' into 'config.hin',
85680         so that 'configure --help' isn't burdened by it and
85681         we don't have to worry about its formatting there.
85682         Reword the documentation so that it's more succinct
85683         and can be run together into a single paragraph.
85684         * m4/same.m4 (gl_SAME): Check for pathconf.
85685
85686 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85687
85688         Merge from coreutils.
85689
85690         * lib/posixver.c: Include posixver.h.
85691
85692         * lib/same.c: Include <stdbool.h>, <limits.h>.
85693         (_POSIX_NAME_MAX): Define if not defined.
85694         (MIN): New macro.
85695         (same_name): If file names are silently truncated, report
85696         that the file names are the same if they are the same after
85697         the silent truncation.
85698
85699         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85700         conversion function.
85701         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85702         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85703         longer needed.
85704
85705 2004-01-15  Jim Meyering  <jim@meyering.net>
85706
85707         Merge from coreutils.
85708
85709         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85710         if no library is required.
85711         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85712         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85713         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85714         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85715         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85716         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85717         value, $ac_cv_search_crypt, if it's "none required".
85718         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85719         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85720         not gl_FUNC_GETLOADAVG.
85721         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85722         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85723
85724 2004-01-15  Jim Meyering  <jim@meyering.net>
85725
85726         Merge from coreutils.
85727
85728         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85729         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85730         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85731
85732         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85733         optional configure-time default.
85734
85735         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85736
85737         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85738
85739 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85740
85741         Merge from coreutils.
85742
85743         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85744         value, $ac_cv_search_nanosleep, if it's "none required".
85745
85746 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85747
85748         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85749         with like-named macro in fnmatch.c.
85750         (EXT): Use an internal constant instead.
85751
85752         Merge fnmatch patches from glibc.
85753         * lib/fnmatch.c (mbsinit): Remove define.
85754         Add libc_hidden_ver (__fnmatch, fnmatch).
85755         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85756         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85757
85758 2004-01-14  Karl Berry  <karl@gnu.org>
85759
85760         * config/install-sh: update from automake.
85761
85762 2004-01-13  Karl Berry  <karl@gnu.org>
85763
85764         * config/install-sh: update from automake.
85765
85766 2004-01-09  Karl Berry  <karl@gnu.org>
85767
85768         * config/install-sh: update from automake.
85769
85770 2004-01-05  Karl Berry  <karl@gnu.org>
85771
85772         * config/config.{sub,guess}: update from config.
85773
85774 2003-12-31  Karl Berry  <karl@gnu.org>
85775
85776         * config/depcomp: update from automake.
85777
85778 2003-12-14  Karl Berry  <karl@gnu.org>
85779
85780         * lib/config.charset: update from gettext-runtime.
85781
85782 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85783
85784         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85785         Bug reported by Alfred M. Szmidt.
85786
85787 2003-12-03  Bruno Haible  <bruno@clisp.org>
85788
85789         * m4/gettext.m4: Upgrade from gettext-0.13.
85790         * m4/po.m4: Upgrade from gettext-0.13.
85791         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85792         * m4/intmax.m4: New file, from gettext-0.13.
85793         * m4/printf-posix.m4: New file, from gettext-0.13.
85794
85795 2003-11-29  Karl Berry  <karl@gnu.org>
85796
85797         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85798
85799 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85800             Bruno Haible  <bruno@clisp.org>
85801
85802         * lib/printf-parse.h: Don't include sys/types.h.
85803         (ARG_NONE): New macro.
85804         (char_directive): Change type of *arg_index fields to size_t.
85805         * lib/printf-parse.c: Don't include sys/types.h.
85806         (SSIZE_MAX): Remove macro.
85807         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85808         Remove unnecessary overflow check.
85809         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85810         fields.
85811
85812 2003-11-25  Bruno Haible  <bruno@clisp.org>
85813
85814         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85815
85816 2003-11-25  Bruno Haible  <bruno@clisp.org>
85817
85818         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85819         gt_TYPE_SSIZE_T.
85820
85821 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85822
85823         * modules/alloca: Remove dependency on xalloc.
85824
85825 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85826
85827         * lib/alloca.c: Remove dependency on xalloc module.
85828         (xalloc_die): Remove.
85829         (memory_full) [!defined emacs]: New macro.
85830         [!defined emacs]: Don't include xalloc.h.
85831         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
85832         address arithmetic overflows.  Change datatypes a bit to avoid
85833         unnecessary casts.
85834
85835 2003-11-22  Jim Meyering  <jim@meyering.net>
85836
85837         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
85838         s/size/size_t/.
85839
85840 2003-11-21  Karl Berry  <karl@gnu.org>
85841
85842         * config/config.{sub,guess}: update from config.
85843
85844 2003-11-18  Karl Berry  <karl@gnu.org>
85845
85846         * config/config.{sub,guess}: update from config.
85847
85848         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
85849
85850 2003-11-17  Paul Eggert  <eggert@twinsun.com>
85851
85852         * README: Mention that S+T cannot overflow if S is the size of
85853         an existing object and T is sufficiently small.
85854
85855 2003-11-17  Jim Meyering  <jim@meyering.net>
85856
85857         On systems without utime and without a utimes function capable of
85858         dealing with a NULL struct utimbuf* argument, this utime replacement
85859         could -- in unusual circumstances -- leak a file descriptor.
85860         * lib/utime.c: Include <unistd.h> and <errno.h>.
85861         (utime_null): Be sure to close `fd' and to preserve errno.
85862         Reported by Geoff Collyer via Arnold Robbins.
85863
85864 2003-11-17  Bruno Haible  <bruno@clisp.org>
85865
85866         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
85867         (Depends-on): Add xsize.
85868
85869 2003-11-17  Bruno Haible  <bruno@clisp.org>
85870
85871         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
85872
85873 2003-11-17  Bruno Haible  <bruno@clisp.org>
85874
85875         * lib/vasnprintf.c (alloca): Remove fallback definition.
85876         (freea): Remove definition.
85877         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
85878         Reported by Paul Eggert.
85879
85880 2003-11-16  Paul Eggert  <eggert@twinsun.com>
85881             Bruno Haible  <bruno@clisp.org>
85882
85883         Protect against address arithmetic overflow.
85884         * lib/printf-args.h: Include stddef.h.
85885         (arguments): Change type of field 'count' to size_t.
85886         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
85887         'unsigned int' where appropriate.
85888         * lib/printf-parse.h: Include sys/types.h.
85889         (char_directive): Change type of *arg_index fields to ssize_t.
85890         (char_directives): Change type of fields 'count', max_*_length to
85891         size_t.
85892         * lib/printf-parse.c: Include sys/types.h and xsize.h.
85893         (SSIZE_MAX): Define fallback value.
85894         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
85895         instead of 'int' where appropriate. Check a_allocated, d_allocated
85896         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
85897         * lib/vasnprintf.c: Include xsize.h.
85898         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
85899         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
85900         overflow. Avoid wraparound when converting a width or precision from
85901         decimal to binary.
85902
85903 2003-11-16  Bruno Haible  <bruno@clisp.org>
85904
85905         Update from GNU gettext.
85906         * lib/printf-parse.c: Generalize to it can be compiled for wide
85907         strings.
85908         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
85909         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
85910         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
85911         SNPRINTF): New macros.
85912         Don't include <alloca.h> if the file is used inside libintl.
85913         (local_wcslen): New function, for Solaris 2.5.1.
85914         (VASNPRINTF): Use it instead of wcslen.
85915
85916 2003-11-16  Bruno Haible  <bruno@clisp.org>
85917
85918         * lib/xsize.h (xmax): New function.
85919         (xsum, xsum3, xsum4): Declare as "pure" functions.
85920
85921 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85922
85923         * modules/xalloc (Files): Undo latest change, since xalloc.h
85924         no longer needs SIZE_MAX or PTRDIFF_MAX.
85925
85926 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85927
85928         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
85929         gl_PTRDIFF_MAX.
85930
85931 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85932
85933         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
85934         "return", to pacify some unknown compiler.  Problem reported
85935         by Joerg Schilling.
85936
85937 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85938
85939         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
85940         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
85941         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
85942         heuristic is just as accurate as far as we know, and it removes a
85943         dependency on size_max.m4 and ptrdiff_max.m4.
85944
85945 2003-11-11  Bruno Haible  <bruno@clisp.org>
85946
85947         * modules/xsize (Files): Add m4/size_max.m4.
85948         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
85949
85950 2003-11-11  Bruno Haible  <bruno@clisp.org>
85951
85952         * m4/size_max.m4: New file.
85953         * m4/ptrdiff_max.m4: New file.
85954         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
85955         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
85956         (gl_XALLOC): Invoke it.
85957
85958 2003-11-11  Bruno Haible  <bruno@clisp.org>
85959
85960         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
85961         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
85962         defined.
85963
85964 2003-11-10  Paul Eggert  <eggert@twinsun.com>
85965
85966         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
85967         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
85968         rejected some allocations of exactly SIZE_MAX - 2 bytes.
85969         From Bruno Haible.
85970         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
85971         not (size_t) -1, since it's defined here.
85972
85973 2003-11-09  Karl Berry  <karl@gnu.org>
85974
85975         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
85976
85977 2003-11-06  Paul Eggert  <eggert@twinsun.com>
85978
85979         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
85980         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
85981         Reject sizes of exactly SIZE_MAX bytes.
85982         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
85983         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
85984
85985 2003-11-05  Bruno Haible  <bruno@clisp.org>
85986
85987         * lib/xsize.h: Include limits.h, to avoid a possible collision with
85988         SIZE_MAX defined in <limits.h> on Solaris.
85989
85990 2003-11-04  Jim Meyering  <jim@meyering.net>
85991
85992         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
85993         variable names, rather than @VAR@.
85994         * modules/poll: Likewise.
85995
85996 2003-11-04  Bruno Haible  <bruno@clisp.org>
85997
85998         * modules/xsize: New file.
85999         * modules/linebreak: Depend on xsize.
86000         * MODULES.html.sh (func_all_modules): Add xsize.
86001
86002 2003-11-04  Bruno Haible  <bruno@clisp.org>
86003
86004         * m4/xsize.m4: New file.
86005
86006 2003-11-04  Bruno Haible  <bruno@clisp.org>
86007
86008         * lib/xsize.h: New file.
86009         * lib/linebreak.c: Include xsize.h.
86010         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86011         argument for overflow.
86012         Suggested by Paul Eggert.
86013
86014 2003-11-03  Karl Berry  <karl@gnu.org>
86015
86016         * config/config.{guess,sub}: update from config.
86017
86018 2003-11-03  Jim Meyering  <jim@meyering.net>
86019
86020         * modules/userspec (lib_SOURCES): Add userspec.h.
86021         (Include): Add "userspec.h".
86022         Improve description.
86023
86024 2003-11-03  Jim Meyering  <jim@meyering.net>
86025
86026         * lib/userspec.c: Include "userspec.h".
86027         * lib/userspec.h: New file.
86028
86029 2003-11-03  Bruno Haible  <bruno@clisp.org>
86030
86031         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86032
86033 2003-11-03  Bruno Haible  <bruno@clisp.org>
86034
86035         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86036         available, to avoid (extremely rare) race condition.
86037         Suggested by Paul Eggert.
86038
86039 2003-11-02  Karl Berry  <karl@gnu.org>
86040
86041         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86042
86043 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86044
86045         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86046         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86047         (read_filesystem_list): Set and use me_type_malloced.
86048         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86049         whatever the type happens to be), for brevity and consistency.
86050         Check for size calculation overflow on Alphas running OSF/1.
86051
86052 2003-10-31  Jim Meyering  <jim@meyering.net>
86053
86054         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86055
86056         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86057
86058 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86059             Bruno Haible  <bruno@clisp.org>
86060
86061         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86062         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86063
86064 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86065
86066         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86067         netbsd*-gnu*.  Suggested by Robert Millan.
86068
86069 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86070
86071         * modules/group-member: Depend on stdbool.
86072
86073 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86074
86075         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86076
86077 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86078
86079         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86080         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86081         after the 'gnu' in these cases.  This fixes some bugs in the
86082         previous change, and is based on suggestions by Robert Millan.
86083
86084 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86085
86086         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86087         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86088         no longer needed.
86089         * lib/quotearg.c (quotearg_n_options): Use it.
86090         * lib/group-member.c: Include <stdbool.h>.
86091         (free_group_info): Arg is now const *; don't free arg.
86092         (get_group_info): Now returns bool and accepts struct group_info *,
86093         rather than returning a malloc'ed struct group_info *.
86094         All uses changed.  Check for overflow in internal size calculation.
86095
86096         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86097         rather than xmalloc/xrealloc.
86098         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86099         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86100         conformance bug: the old code used a pointer after freeing the
86101         storage that it addressed.
86102         * lib/hash.c (hash_initialize): Simplify the code by using
86103         xalloc_oversized rather than doing it by hand.
86104         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86105         the buffer preserved.  Use free and xmalloc instead.
86106         * lib/quotearg.c (quotearg_n_options): Likewise.
86107         Use a simpler test for size overflow.  Don't use xalloc_oversized
86108         because unsigned int might be wider than size_t (!); this suggests
86109         that we should switch from unsigned int to size_t for slot numbers.
86110
86111 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86112
86113         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86114         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86115         NetBSD kernels.  Requested by Richard Stallman.
86116
86117 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86118
86119         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86120         to allocate the returned structure.  Do not allocate a subarray,
86121         as x2nrealloc will do that.
86122         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86123         instead of xnrealloc.
86124         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86125
86126 2003-10-27  Bruno Haible  <bruno@clisp.org>
86127
86128         * lib/stdbool_.h: Better support for BeOS.
86129
86130 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86131
86132         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86133         now uses inline.
86134
86135 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86136
86137         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86138         callers that want to do their own size-overflow checking.  Include
86139         <stdbool.h>, since xalloc_oversized returns bool.
86140         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86141         to use xalloc_oversized.
86142
86143         Add two functions x2realloc, x2nrealloc, for programs that grow
86144         arrays dynamically by doubling their sizes.
86145         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86146         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86147         New functions.
86148
86149         Port to C99 semantics for 'inline' of external functions.
86150         Bug reported by Bruno Haible.
86151         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86152         with the old contents of xnmalloc.
86153         (xnmalloc, xmalloc): Use it.
86154         (xnrealloc_inline): New static inline function,
86155         with the old contents of xnrealloc.
86156         (xnrealloc, xrealloc): Use it.
86157
86158         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86159         that.
86160
86161 2003-10-26  Karl Berry  <karl@gnu.org>
86162
86163         * config/srclist.txt (COPYING.DOC): no longer available from
86164         /gd/gnuorg; don't know where the ultimate source is.
86165
86166 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86167
86168         Fix several address-calculation bugs in the hash modules,
86169         plus some minor code cleanup.
86170
86171         * lib/hash.h: Include <stdbool.h>, for bool.
86172         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86173         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86174         hash_get_n_entries, hash_get_max_bucket_length,
86175         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86176         hash_rehash): Use size_t rather than unsigned.
86177         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86178         hash_get_n_buckets_used, hash_get_n_entries,
86179         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86180         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86181         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86182         Likewise.
86183         (SIZE_MAX): Define if not defined.
86184         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86185         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86186         hash_print):
86187         Use const * when possible.
86188         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86189         (check_tuning): Fix bug: if tuning parameters were very close to
86190         0 or 1, rounding errors could have caused subscript violations.
86191         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86192         (hash_initialize): Add 'fail:' label
86193         to free table and return NULL, and use it to simplify code.
86194         Use calloc rather than clearing the storage ourself.
86195         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86196         buffer size calculations.
86197         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86198         Include <stddef.h>, for size_t.
86199         * lib/hash-pjw.c (hash_pjw): Likewise.
86200         Switch to method described by Bruno Haible.
86201         Include <limits.h>, for CHAR_BIT.
86202         (SIZE_BITS): New macro.
86203
86204 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86205
86206         * m4/getline.m4 (AM_FUNC_GETLINE):
86207         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86208         hosts.  Problem reported by Derek Robert Price in
86209         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86210         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86211         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86212
86213 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86214
86215         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86216         ceiling the allocation at NMAX bytes rather than silently
86217         discarding input bytes before NMAX is reached.  This makes
86218         a difference only if NMAX exceeds SIZE_MAX / 2.
86219
86220         * lib/obstack.c: Merge from glibc.
86221         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86222         Add libc_hidden_def (_obstack_newchunk).
86223         (_obstack_free) [! defined _LIBC]: Remove.
86224         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86225         a clone of the function body.
86226         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86227         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86228
86229         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86230         glibc.
86231         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86232         arg to memcpy.
86233
86234         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86235         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86236         Don't use lvalue casts, as GCC plans to remove support for them
86237         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86238         was also present in the non-GCC version, indicating that this
86239         code had always been buggy and had never been widely used.
86240         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86241         Use the fast variant of each macro, rather than copying the
86242         definiens of the fast variant; that way, we'll be more likely to
86243         catch future bugs in the fast variants.
86244
86245 2003-10-20  Bruno Haible  <bruno@clisp.org>
86246
86247         * modules/wait-process: New file.
86248         * MODULES.html.sh (func_all_modules): Add wait-process.
86249
86250 2003-10-20  Bruno Haible  <bruno@clisp.org>
86251
86252         * m4/wait-process.m4: New file.
86253
86254 2003-10-20  Bruno Haible  <bruno@clisp.org>
86255
86256         * lib/wait-process.h: New file, from GNU gettext.
86257         * lib/wait-process.c: New file, from GNU gettext.
86258
86259 2003-10-19  Jim Meyering  <jim@meyering.net>
86260
86261         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86262         HPUX 10.20.
86263
86264 2003-10-18  Karl Berry  <karl@gnu.org>
86265
86266         * config/config.guess: update from config.
86267
86268 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86269
86270         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86271         (getgroups): First arg is int, not size_t.
86272         Don't let 'free' mangle errno.
86273
86274 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86275
86276         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86277
86278 2003-10-16  Karl Berry  <karl@gnu.org>
86279
86280         * config/config.{guess,sub}: update from config.
86281
86282 2003-10-16  Jim Meyering  <jim@meyering.net>
86283
86284         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86285         memcpy.
86286
86287 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86288
86289         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86290         (SIZE_MAX): Remove.
86291         (new_exclude, add_exclude_file): Initial size no longer needs to
86292         be a power of 2.
86293         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86294         our own address arithmetic overflow checking.
86295
86296         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86297         (fnmatch): Do not alloca more than 2000 wide characters;
86298         instead, use malloc for large buffers.
86299         Check for address arithmetic overflow, and return -1
86300         with errno set to ENOMEM in that case.
86301         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86302         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86303         instead, return -1.  Check for address arithmetic overflow.
86304
86305 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86306
86307         Handle invalid suffixes and overflow independently, so that
86308         callers can treat them independently as needed.  Fix some bugs in
86309         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86310         suffix for a human-readable blocksize.  The major caller-visible
86311         change is the addition of a new
86312         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86313         that both overflow and suffix chars were found.
86314
86315         * lib/human.c (humblock): Don't check separately for invalid suffix
86316         char; that is xstrtoumax's job (now that its bug is fixed).
86317         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86318         INTMAX_MAX]: New macros.
86319         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86320         TYPE_MAXIMUM): New macros.
86321         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86322         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86323         if overflow occurs, as it's what __strtol does and it's more useful
86324         in practice.
86325         (__xstrtol): If __strtol reports some error other than ERANGE,
86326         reflect it to the caller as LONGINT_INVALID.  If it reports
86327         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86328         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86329         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86330         value.
86331         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86332         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86333         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86334         [defined UINTMAX_MAX]: New macros.
86335
86336 2003-10-14  Bruno Haible  <bruno@clisp.org>
86337
86338         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86339
86340 2003-10-14  Bruno Haible  <bruno@clisp.org>
86341
86342         * m4/sig_atomic_t: New file, from GNU gettext.
86343         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86344
86345 2003-10-14  Bruno Haible  <bruno@clisp.org>
86346
86347         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86348         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86349         Also use volatile where needed.
86350
86351 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86352
86353         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86354         Change maintainer from Bruno Haible to 'all'.
86355
86356 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86357
86358         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86359
86360 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86361
86362         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86363         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86364         and define in terms of the other primitives.
86365         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86366         (SIZE_MAX): Define if not already defined.
86367         (array_size_overflow): New function.
86368         (xalloc_die): Abort instead of exiting if 'error' returns.
86369         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86370         (xmalloc, xrealloc): Use them.
86371         (xcalloc): Check for address arithmetic overflow.
86372         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86373         a bit faster than strcpy.
86374
86375 2003-10-10  Simon Josefsson  <jas@extundo.com>
86376
86377         * modules/argp (Depends-on): Add restrict and strcase.
86378
86379 2003-10-10  Simon Josefsson  <jas@extundo.com>
86380
86381         * m4/argp.m4: Add AC_C_INLINE.
86382
86383 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86384
86385         Merge getpass from libc, plus a few fixes.
86386
86387         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86388         Include <stdbool.h>.
86389         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86390         __fsetlocking to empty.
86391         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86392         do include <bits/libc-lock.h>.
86393         Do not include <fcntl.h>; not needed.
86394         [_LIBC]: Include <wchar.h>.
86395         (NOTCANCEL_MODE): New macro.
86396         (flockfile, funlockfile) [_LIBC]: New macros.
86397         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86398         [!_LIBC]: New macros.
86399         (call_fclose): New function.
86400         (getpass): Use it.  Save tty stream separately; this simplifies the
86401         code and makes it more reliable if stdin happens to equal stdout.
86402         Invoke __fsetlocking on tty.
86403         Handle thread cancellation if needed.
86404         Namespace cleanup (use __tcgetattr, __getline).
86405         Use bool for Booleans.
86406         [USE_IN_LIBIO]: Handle wide streams.
86407         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86408         stream might go where.
86409
86410         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86411         doesn't have to include <stdio.h> before us.
86412         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86413         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86414         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86415         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86416         if not declared, so that we can use getpass.c code from libc without
86417         rewriting it.
86418         (flockfile, ftrylockfile, funlockfile): New macros.
86419
86420 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86421
86422         * modules/getpass: Depend on stdbool.
86423
86424 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86425
86426         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86427
86428 2003-10-07  Karl Berry  <karl@gnu.org>
86429
86430         * config/config.{guess,sub}: update from config.
86431
86432 2003-10-06  Jim Meyering  <jim@meyering.net>
86433             Bruno Haible  <bruno@clisp.org>
86434
86435         This lets translators provide better translations for the
86436         "Written by ..." part of --version output.
86437         * lib/version-etc.h: Include stdarg.h.
86438         (version_etc_copyright): Declare as readonly.
86439         (version_etc): Make this function variadic with a NULL-terminated list
86440         of author name strings.
86441         (version_etc_va): New declaration.
86442         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86443         (version_etc_copyright): Declare as readonly.
86444         (version_etc_va): New function. Provide a different translatable string
86445         for each possible number of authors < 10. Abbreviate when there are 10
86446         authors or more.
86447         (version_etc): Make this function variadic. Call version_etc_va.
86448         Suggestion from Gary V. Vaughan.
86449
86450         * lib/long-options.h (parse_long_options): Change prototype: the
86451         authors string is moved to the end and becomes variadic.
86452         * lib/long-options.c: Include stdarg.h.
86453         (parse_long_options): Make this function variadic, too.
86454         Call version_etc_va, not version_etc.
86455
86456 2003-10-06  Bruno Haible  <bruno@clisp.org>
86457
86458         * modules/version-etc-2: Remove file.
86459         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86460
86461 2003-10-06  Bruno Haible  <bruno@clisp.org>
86462
86463         * modules/fatal-signal: New file.
86464         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86465
86466 2003-10-06  Bruno Haible  <bruno@clisp.org>
86467
86468         * m4/fatal-signal.m4: New file.
86469         * m4/signalblocking.m4: New file, from GNU gettext.
86470
86471 2003-10-06  Bruno Haible  <bruno@clisp.org>
86472
86473         * lib/version-etc-2.h: Remove file.
86474         * lib/version-etc-2.c: Remove file.
86475
86476 2003-10-06  Bruno Haible  <bruno@clisp.org>
86477
86478         * lib/fatal-signal.h: New file, from GNU gettext.
86479         * lib/fatal-signal.c: New file, from GNU gettext.
86480
86481 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86482
86483         * README: Rework advice for preventing empty .o files.
86484         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86485         not <sys/types.h>.
86486
86487 2003-10-04  Karl Berry  <karl@gnu.org>
86488
86489         * lib/argp*: update from libc.
86490
86491 2003-10-04  Karl Berry  <karl@gnu.org>
86492
86493         * config/config.{guess,sub}: update from config.
86494
86495 2003-10-02  Bruno Haible  <bruno@clisp.org>
86496
86497         * modules/lchown (Include): Add lchown.h.
86498         * modules/time_r (Include): Use "..." syntax.
86499         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86500
86501 2003-10-01  Simon Josefsson  <jas@extundo.com>
86502
86503         * MODULES.html.sh (func_all_modules): Move gethostname from section
86504         'based on' to section 'lacking' POSIX:2001.
86505
86506 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86507
86508         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86509         to output mode on the same stream.
86510
86511 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86512
86513         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86514         Fix arg typo in previous patch.
86515
86516 2003-09-28  Jim Meyering  <jim@meyering.net>
86517
86518         * lib/error.c: Correct cpp indentation.
86519
86520 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86521
86522         * modules/free: New file.
86523
86524 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86525
86526         * m4/free.m4: New file.
86527
86528 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86529
86530         * lib/minmax.h (MIN, MAX)
86531         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86532         Omit the special code that used __typeof__, since we worry that
86533         it could be more trouble than it's worth.  See:
86534         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86535         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86536
86537         * lib/free.c: New file.
86538
86539 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86540
86541         Trivial fixes to Makefile.am parts of module listings.
86542         * modules/strstr: Append strstr.h to lib_SOURCES.
86543         * modules/strcase: Likewise, for strcase.h.
86544
86545 2003-09-27  Karl Berry  <karl@gnu.org>
86546
86547         * config/mkinstalldirs: update from automake.
86548
86549 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86550
86551         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86552         (error_tail): Do not loop, reallocating temporary buffer, since
86553         the output cannot contain more wide characters than the input
86554         contains bytes, the size must be big enough already.  This avoids
86555         one potential size overflow calculation.  Check for size overflow
86556         when calculating temporary buffer size.  Free temporary buffer
86557         when done, if it was allocated with malloc; this plugs a memory
86558         leak.  Remove casts from void * to pointers, that are no longer
86559         needed now that we're assuming C89 or better.
86560
86561         Merge error changes from glibc.
86562
86563         * lib/error.c, error.h: Update copyright notice header to match glibc.
86564         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86565         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86566         Disable cancellation while printing error.
86567         * lib/error.h: Prepend __ to parameter names.
86568
86569 2003-09-26  Jim Meyering  <jim@meyering.net>
86570
86571         * lib/error.c (error_tail): Move some declarations
86572         into inner scope where the local variables are used.
86573
86574 2003-09-26  Bruno Haible  <bruno@clisp.org>
86575
86576         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86577         stpncpy().
86578         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86579
86580 2003-09-26  Bruno Haible  <bruno@clisp.org>
86581
86582         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86583         (stpncpy): Define as alias for gnu_stpncpy.
86584         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86585
86586 2003-09-25  Simon Josefsson  <jas@extundo.com>
86587
86588         * lib/xgetdomainname.h: New file.
86589         * lib/xgetdomainname.c: New file.
86590
86591 2003-09-25  Simon Josefsson  <jas@extundo.com>
86592             Bruno Haible  <bruno@clisp.org>
86593
86594         * modules/getdomainname: New file.
86595         * modules/xgetdomainname: New file.
86596         * MODULES.html.sh (func_all_modules): Add getdomainname,
86597         xgetdomainname.
86598
86599 2003-09-25  Simon Josefsson  <jas@extundo.com>
86600             Bruno Haible  <bruno@clisp.org>
86601
86602         * m4/getdomainname.m4: New file.
86603
86604 2003-09-25  Simon Josefsson  <jas@extundo.com>
86605             Bruno Haible  <bruno@clisp.org>
86606
86607         * lib/getdomainname.h: New file.
86608         * lib/getdomainname.c: New file.
86609
86610 2003-09-25  Karl Berry  <karl@gnu.org>
86611
86612         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86613
86614 2003-09-25  Karl Berry  <karl@gnu.org>
86615
86616         * config/install-sh: update from automake.
86617
86618 2003-09-25  Bruno Haible  <bruno@clisp.org>
86619
86620         * modules/version-etc-2: New file, from modules/version-etc with
86621         modifications.
86622         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86623
86624 2003-09-25  Bruno Haible  <bruno@clisp.org>
86625
86626         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86627         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86628
86629 2003-09-24  Simon Josefsson  <jas@extundo.com>
86630
86631         * modules/xgethostname: Add xgethostname.h.
86632
86633 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86634
86635         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86636         the buffer associated with the argument.  Bug reported by
86637         Simon Josefsson.
86638
86639 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86640
86641         * README: Document assumptions that 'int' is at least 32 bits
86642         wide, that integer arithmetic is 2's complement without overflow,
86643         that there are no holes in integer values, that adding sizes of
86644         two nonoverlapping objects can't overflow, and that all-bits-zero
86645         yields scalar zero.  Fix spelling and capitalization typos.
86646
86647 2003-09-19  Karl Berry  <karl@gnu.org>
86648
86649         * lib/argp.h: update from libc.
86650
86651 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86652
86653         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86654         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86655         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86656
86657 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86658
86659         * gnulib-tool: Use "test -h", not "test -L", for portability
86660         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86661         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86662         (sed_extract_prog): Issue s commands one-by-one, rather than
86663         using \| in one s command.
86664
86665 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86666
86667         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86668         input error, instead of returning NULL the next time we are called
86669         (and therefore losing track of errno).
86670
86671 2003-09-16  Bruno Haible  <bruno@clisp.org>
86672
86673         * gnulib-tool (func_create_testdir): Warn about duplicated
86674         dependencies.
86675
86676 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86677
86678         * modules/argmatch, modules/fatal, modules/obstack,
86679         modules/xalloc, modules/xgethostname: Sort dependencies by
86680         importance, not alphabetically.
86681
86682 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86683
86684         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86685         fails, so that the caller gets the proper errno.
86686
86687         * lib/readutmp.c (read_utmp): Likewise.
86688         Check for fstat error.  Close stream and free storage
86689         when failing.
86690
86691 2003-09-14  Karl Berry  <karl@gnu.org>
86692
86693         * config/srclist.txt (strdup.c): disable for c89 changes.
86694
86695 2003-09-14  Jim Meyering  <jim@meyering.net>
86696
86697         * lib/getloadavg.c: Correct cpp indentation.
86698         * lib/strdup.c: Likewise.
86699         * lib/vasnprintf.c: Likewise.
86700
86701 2003-09-14  Bruno Haible  <bruno@clisp.org>
86702
86703         * modules/fwriteerror: New file.
86704         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86705
86706 2003-09-14  Bruno Haible  <bruno@clisp.org>
86707
86708         * lib/fwriteerror.h: New file.
86709         * lib/fwriteerror.c: New file.
86710
86711 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86712
86713         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86714         modules/xgethostname, modules/xalloc: Depend on exit.
86715
86716 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86717
86718         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86719
86720         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86721         and AC_MINIX, too, so that their extensions are available.
86722
86723         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86724         This macro has been superseded by gl_BACKUPFILE.
86725
86726         More patches to assume C89 or better.
86727
86728         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86729
86730         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86731         unconditionally.
86732         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86733         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86734         Include <string.h>, <stdlib.h> unconditionally.
86735         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86736         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86737         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86738         headers or for string.h.
86739         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86740         or strtoul.
86741
86742         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86743         headers.
86744         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86745         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86746         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86747         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86748         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86749         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86750         memcpy, memset.
86751         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86752         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86753         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86754         strtol.
86755         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86756         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86757         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86758         strtoul.
86759
86760 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86761
86762         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86763         * lib/obstack.c [!defined _LIBC]: Likewise.
86764         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86765         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86766         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86767
86768         More changes to assume C89 or better.
86769
86770         * lib/error.c (error_tail): Assume vprintf.
86771
86772         * lib/argmatch.c (getenv): Remove decl.
86773         * lib/progreloc.c (get_full_program_name): Define via prototype.
86774         * lib/setenv.c (clearenv): Likewise.
86775         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86776         needed.
86777         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86778         (malloc, memcpy): Remove decls.
86779         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86780         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86781         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86782         (memcpy): Remove macro.
86783         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86784         (__P): Remove.  All uses removed.
86785         (PTR): Remove.  All uses changed to void *.
86786         (CHAR_BIT, NULL): Remove.
86787         (spaces, zeros, memset_space, memset_zero)
86788         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86789         Remove.
86790         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86791         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86792         Define with prototype.
86793         Remove now-unnecessary prototype decl.
86794         (extra_args_spec): Assume ANSI C.  All uses changed.
86795         (extra_args_spec_iso): Remove.
86796         (my_strftime, emacs_strftimeu): Define via prototype.
86797         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86798         unconditionally.
86799         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86800         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86801         (strtoul, strtol): Remove decls.
86802         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86803         LONG_MAX): Remove.
86804         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86805         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86806         (LOCALE_PARAM_PROTO): New macro.
86807         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86808         (INTERNAL (strtol), strtol): Define with a prototype.
86809         (PARAMS): Remove.  All uses removed.
86810         * lib/tempname.c: Include <string.h> unconditionally.
86811         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86812         * lib/xgethostname.c (main): Define with a prototype.
86813         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86814         Include <stdlib.h> unconditionally.
86815         (calloc, malloc, realloc, free): Remove decls.
86816         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86817         Include <stdlib.h> unconditionally.  Sort include file names.
86818         (strtod): Remove.
86819         (xstrtod): Define with a prototype.
86820         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86821         (strtol, strtoul): Remove decls.
86822
86823 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86824
86825         More patches to assume C89 or better.
86826         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
86827         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
86828         string.h, memchr, STDC_HEADERS.
86829
86830 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86831
86832         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
86833         Include <stdlib.h>, <string.h> unconditionally.
86834         Remove now-unnecessary cast to char *.
86835         * lib/strnlen.c: Include <string.h> unconditionally.
86836         * lib/yesno.c (yesno): Define with a prototype.
86837
86838 2003-09-11  Bruno Haible  <bruno@clisp.org>
86839
86840         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
86841
86842 2003-09-10  Jim Meyering  <jim@meyering.net>
86843
86844         * lib/error.c: Correct indentation of cpp directives.
86845
86846 2003-09-10  Bruno Haible  <bruno@clisp.org>
86847
86848         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
86849         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
86850         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
86851         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
86852         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
86853         <stdlib.h> and <string.h> checks.
86854         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
86855         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
86856
86857 2003-09-10  Bruno Haible  <bruno@clisp.org>
86858
86859         * lib/strcspn.c: Include <string.h> unconditionally.
86860         * lib/strpbrk.c: Include <string.h> unconditionally.
86861         * lib/strstr.c: Include <string.h> unconditionally.
86862         * lib/unicodeio.c: Include <string.h> unconditionally.
86863         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
86864         * lib/unsetenv.c: Likewise.
86865         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
86866         * lib/yesno.c: Include <stdlib.h> unconditionally.
86867         (rpmatch): Add prototype.
86868
86869 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86870
86871         More patches to assume C89 or better.
86872         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
86873         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
86874         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
86875         or for string.h.
86876         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
86877         stdlib.h.
86878         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
86879         C headers.
86880         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
86881         string.h.
86882         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
86883         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
86884         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
86885         or for string.h.
86886         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
86887         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
86888         C headers.
86889         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
86890         memcpy.
86891         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
86892         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
86893         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
86894         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
86895         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
86896         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
86897         string.h, free.
86898         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
86899         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
86900         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
86901         C headers, or for string.h.
86902         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
86903         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
86904         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
86905         headers, memory.h, stdlib.h, string.h, strings.h.
86906         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
86907         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
86908         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
86909         strchr.
86910         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
86911         headers, memory.h, string.h.
86912         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
86913         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
86914         free.
86915         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
86916         headers.
86917         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
86918         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
86919         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
86920         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
86921         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
86922
86923 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86924
86925         More K&R removal.
86926
86927         * lib/acosl.c (main): Use a prototype.
86928         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
86929         tanl.c: Likewise.
86930
86931         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
86932
86933         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
86934         (getopt, etopt_long, getopt_long_only, _getopt_internal)
86935         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
86936         with a prototype.
86937         * lib/getopt.c (const): Remove macro.
86938         Include <string.h> unconditionally.
86939         (my_index): Remove; all uses changed to strchr.
86940         (strlen): Remove decl.
86941         (exchange): Remove forward decl; no longer needed.
86942         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
86943         Define with prototype.
86944         * lib/getopt1.c (const): Remove macro.
86945         (getopt_long, getopt_long_only, main): Define with prototype.
86946
86947         * lib/getugroups.c: Include <string.h> unconditionally.
86948
86949         * lib/getusershell.c: Include <stdlib.h> unconditionally.
86950         (getusershell, setusershell, endusershell, readname, main):
86951         Define with prototypes.
86952
86953         * lib/group-member.c: Include group-member.h first.
86954         Include <stdlib.h> unconditionally.
86955
86956         * lib/hard-locale.c: Include hard-locale.h first.
86957         Include <stdlib.h>, <string.h> unconditionally.
86958
86959         * lib/hash.c (free, malloc): Remove decls.
86960         Include <stdlib.h> unconditionally.
86961
86962         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
86963         (getenv): Do not declare.
86964
86965         * lib/idcache.c: Include <string.h> unconditionally.
86966
86967         * lib/long-options.c: Include long-options.h first, to test interface.
86968         Include <stdlib.h> unconditionally.
86969
86970         * lib/makepath.c: Include makepath.h first, to test interface.
86971         Include <stdlib.h> and <string.h> unconditionally.
86972
86973         * lib/linebuffer.c: Include <stdlib.h>.
86974         (free): Remove decl.
86975
86976         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
86977         stddef.h. rpl_malloc returns void *, not char *.
86978         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
86979         prototype.
86980
86981         * lib/md5.h: Include <limits.h> unconditionally.
86982         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
86983         (__P): Remove; all uses removed.
86984         * lib/md5.c: Include "md5.h" first.
86985         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
86986         md5_buffer, md5_process_bytes, md5_process_block):
86987         Define with prototypes.
86988         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
86989         * lib/sha.c: Include "sha.h" first.
86990         Include <stdlib.h>, <string.h> unconditionally.
86991
86992         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
86993         * lib/memcmp.c (__ptr_t): Likewise.
86994         * lib/memrchr.c (__ptr_t): Likewise.
86995         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
86996         Include <string.h> unconditionally.
86997         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
86998         * lib/memchr.c: Include <stdlib.h> unconditionally.
86999         * lib/memchr.c (LONG_MAX): Remove.
87000         * lib/memrchr.c (LONG_MAX): Likewise.
87001         * lib/memchr.c (__memchr): Define via a prototype.
87002         * lib/memrchr.c (__memrchr): Likewise.
87003         * lib/memcmp.c (__P): Remove, and remove all uses.
87004         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87005         Remove forward decls; no longer needed.
87006         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87007         Use types required by C89 in prototype.
87008
87009         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87010         * lib/savedir.c: Likewise.
87011         * lib/mkdir.c (free): Remove decl.
87012         * lib/rmdir.c (rmdir): Define with a prototype.
87013         * lib/savedir.c: Include savedir.h first, to test interface.
87014
87015         * lib/mktime.c (STDC_HEADERS): Remove.
87016         Include <stdlib.h>, <string.h> unconditionally.
87017
87018         * lib/modechange.c: Include <stdlib.h> unconditionally.
87019         (malloc): Remove decl.
87020
87021         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87022         (free): Remove decl.
87023
87024         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87025         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87026         (This type really should be intptr_t, but that's a C99ism.)
87027         (_obstack_memcpy): Remove: all uses changed to memcpy.
87028         Include <string.h> unconditionally.
87029         (struct obstack): Assume __STDC__ for types of members
87030         chunkfun, freefun, extra_arg.
87031         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87032         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87033         obstack_begin, obstack_specify_allocation,
87034         obstack_specify_allocation_with_arg, obstack_chunkfun,
87035         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87036         Remove unprototyped decls and the macros that use them.
87037         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87038         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87039         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87040         (defined __STDC__ && __STDC__)]:
87041         Remove nonprototyped code.
87042         Include <stdlib.h> unconditionally.
87043         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87044         _obstack_allocated_p, _obstack_free, obstack_free,
87045         _obstack_memory_used, print_and_abort):
87046         Define using prototypes.
87047         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87048         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87049         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87050         obstack_next_free, obstack_object_size, obstack_room) [0]:
87051         Remove unused, unprototyped code.
87052
87053         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87054
87055         * lib/physmem.c (physmem_total, physmem_available, main): Define
87056         with prototypes.
87057
87058         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87059         (main): Define with a prototype.
87060
87061         * lib/posixver.c (getenv): Remove decl.
87062
87063         * lib/putenv.c (malloc): Returns void *, not char *.
87064         Include <string.h> unconditionally.
87065         (strchr, memcpy, NULL): Do not define.
87066
87067         * lib/readtokens.c: Include readtokens.h first, to test interface.
87068         Include <stdlib.h>, <string.h> unconditionally.
87069         (init_tokenbuffer): Define with a prototype.
87070
87071         * lib/regex.c (PARAMS): Remove.  All uses removed.
87072         All uses of _RE_ARGS removed, too.
87073         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87074         unconditionally.
87075         (bzero): Assume memset exists.
87076         (memcmp, memcpy, NULL): Remove.
87077         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87078         char, or assignments to local vars of type signed char.
87079         (init_syntax_once, PREFIX(extract_number_and_incr),
87080         PREFIX(print_partial_compiled_pattern),
87081         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87082         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87083         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87084         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87085         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87086         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87087         wcs_compile_range, byte_compile_range, truncate_wchar,
87088         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87089         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87090         count_mbs_length, wcs_re_match_2_internal,
87091         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87092         PREFIX(alt_match_null_string_p),
87093         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87094         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87095         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87096         now-unnecessary declaration, if any.
87097         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87098         regcomp, regexec):
87099         Remove now-unnecessary casts among pointer types.
87100         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87101
87102         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87103         (free): Remove decl.
87104
87105         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87106
87107         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87108         (free): Remove decl.
87109
87110         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87111         * lib/xgetcwd.c: Likewise.
87112
87113         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87114         (free): Remove decl.
87115
87116         * lib/strchrnul.c (strchrnul): Define with a prototype.
87117         Fix bug: c_in was not converted to char before searching.
87118
87119         The following changes are not K&R related:
87120
87121         * lib/group-member.h: Include <sys/types.h>, so that this file is
87122         self-contained.
87123         * lib/makepath.h: Likewise.
87124
87125         * lib/getusershell.c (readname, default_index, line_size, readname):
87126         Use size_t, not int, for sizes.
87127         (readname): If the size overflows, report an error instead of
87128         looping forever.
87129
87130 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87131
87132         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87133         libc.
87134
87135 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87136
87137         * README: New section: portability guidelines.
87138
87139 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87140
87141         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87142         C89 spec.
87143
87144 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87145
87146         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87147
87148 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87149
87150         Assume C89 or better; remove K&R cruft.
87151         A few of these changes were first proposed by Derek Robert Price
87152         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87153
87154         * lib/addext.c: Include <string.h> unconditionally.
87155         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87156         Don't declare getenv or malloc.
87157
87158         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87159         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87160         (NULL): Remove.
87161         (find_stack_direction, alloca): Use prototypes.
87162
87163         * lib/atexit.c (atexit): Define using a prototype.
87164
87165         * lib/basename.c, dirname.c, stripslash.c:
87166         Include <string.h> unconditionally.
87167
87168         * lib/bcopy.c: Include <stddef.h>.
87169         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87170
87171         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87172
87173         * lib/error.h (error, error_at_line, error_print_progname)
87174         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87175         * lib/error.c: Include error.h first, to check interface.
87176         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87177         (VA_START): Remove; all uses changeed to va_start.
87178         (exit, strerror): Remove decls.
87179         (error_print_progname): Prototype uncondionally.
87180         Don't include <errno.h>; no longer needed.
87181         (private_strerror): Remove.
87182         (error_tail): Always define.
87183         (error, error_at_line): Assume C89 or better; always use prototypes.
87184         * lib/fatal.c: Include "fatal.h" first, to test interface.
87185         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87186         (VA_START): Remove; all uses changed to va_start.
87187         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87188         this case.
87189         (exit): Remove decl.
87190         (fatal): Prototype unconditionally.  Assume va_start works.
87191         Abort at end, to pacify gcc.
87192
87193         * lib/euidaccess.c (main): Define with a prototype.
87194
87195         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87196
87197         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87198
87199         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87200         prototypes.
87201         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87202         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87203         (getenv): Remove decl.
87204         (fnmatch): Define using a prototype.
87205         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87206         (FCT): Define using a prototype.
87207
87208         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87209
87210         * lib/gethostname.c: Include <stddef.h>.
87211         (gethostname): Define with prototype.  Length is size_t, not int.
87212
87213 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87214
87215         Assume C89 or better; remove K&R cruft.
87216         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87217         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87218         string.h, getenv, malloc.
87219         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87220         headers.
87221         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87222         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87223         do not check for strerror.
87224         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87225         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87226         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87227         do not check for doprnt or vprintf.
87228         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87229         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87230
87231 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87232
87233         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87234         getversion.c should have been removed then, but was accidentally
87235         preserved.
87236
87237         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87238         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87239
87240 2003-09-08  Karl Berry  <karl@gnu.org>
87241
87242         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87243                 config, forget about prep.
87244
87245         * config/depcomp, missing: update from automake.
87246
87247 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87248
87249         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87250         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87251
87252 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87253
87254         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87255         copy_tm_result.  Bug reported by Simon Josefsson in
87256         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87257
87258 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87259
87260         * m4/time_r.m4: New file.
87261         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87262         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87263         is. Check for timegm declaration.
87264         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87265         Do not check for gmtime_r.
87266         Replace mktime if __mktime_internal does not exist and if mktime
87267         hasn't been replaced already.
87268
87269 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87270
87271         * lib/time_r.c, lib/time_r.h: New files.
87272
87273         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87274         __localtime_r.
87275         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87276         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87277
87278         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87279         __gmtime_r.
87280         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87281         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87282         Include <time_r.h>.
87283
87284         * lib/timegm.c: Switch to glibc implementation, with the following
87285         changes:
87286         [defined HAVE_CONFIG_H]: Include <config.h>.
87287         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87288         (__mktime_internal) [!defined _LIBC]: New decl.
87289         (__gmtime_r) [!defined _LIBC]: New macro and function.
87290         (timegm): Use a prototype, since gnulib assumes C89.
87291         Do not bother declaring tmp to be const, as it's not really usefu.
87292         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87293         (timegm): Declare only if HAVE_DECL_TIMEGM.
87294
87295 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87296
87297         * MODULES.html.sh (func_all_modules): Add time_r.
87298         * modules/time_r: New file.
87299         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87300         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87301
87302 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87303
87304         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87305         Bug reported by Lute Kamstra in
87306         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87307
87308         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87309         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87310         course with correspondingly smaller numbers for tomorrow and
87311         yesterday.  From Tadayoshi Funaba.  Originally installed into
87312         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87313         coreutils merge?).
87314
87315 2003-08-31  Simon Josefsson  <jas@extundo.com>
87316
87317         * modules/timegm: New file.
87318         * MODULES.html.sh (func_all_modules): Add timegm.
87319
87320 2003-08-31  Simon Josefsson  <jas@extundo.com>
87321
87322         * m4/timegm.m4: New file.
87323
87324 2003-08-31  Simon Josefsson  <jas@extundo.com>
87325
87326         * lib/timegm.h: New file.
87327         * lib/timegm.c: New file.  Based on
87328         wget-1.8.2/src/http.c:mktime_from_utc.
87329
87330 2003-08-31  Karl Berry  <karl@gnu.org>
87331
87332         * lib/argp.h: update from libc.
87333
87334 2003-08-28  Bruno Haible  <bruno@clisp.org>
87335
87336         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87337         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87338         followed by '#define fnmatch fnmatch_posix' gives an error.
87339
87340 2003-08-28  Bruno Haible  <bruno@clisp.org>
87341
87342         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87343         warning on QNX, which defines O_BINARY to 000000.
87344
87345 2003-08-27  Jim Meyering  <jim@meyering.net>
87346
87347         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87348         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87349         would fail after 32.  Reported by Danny Levinson.  Details here:
87350         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87351
87352 2003-08-24  Bruno Haible  <bruno@clisp.org>
87353
87354         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87355         MSVC7 <stdio.h> is included later.
87356
87357 2003-08-22  Simon Josefsson  <jas@extundo.com>
87358
87359         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87360
87361 2003-08-20  Karl Berry  <karl@gnu.org>
87362
87363         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87364
87365 2003-08-20  Bruno Haible  <bruno@clisp.org>
87366
87367         * modules/progname: New file.
87368         * MODULES.html.sh (func_all_modules): Add progname.
87369
87370 2003-08-20  Bruno Haible  <bruno@clisp.org>
87371
87372         * lib/progname.h: New file, from GNU gettext.
87373         * lib/progname.c: New file, from GNU gettext.
87374         * lib/progreloc.c: New file, from GNU gettext.
87375
87376 2003-08-19  Jim Meyering  <jim@meyering.net>
87377
87378         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87379         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87380
87381 2003-08-19  Bruno Haible  <bruno@clisp.org>
87382
87383         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87384         more.
87385
87386 2003-08-19  Bruno Haible  <bruno@clisp.org>
87387
87388         * lib/xstrdup.c: Assume <string.h> exists.
87389
87390 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87391
87392         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87393         in makefile rules.
87394
87395 2003-08-18  Jim Meyering  <jim@meyering.net>
87396
87397         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87398         * m4/lib-ld.m4: Likewise.
87399
87400 2003-08-18  Jim Meyering  <jim@meyering.net>
87401
87402         * lib/setenv.h: Indent nested cpp directive.
87403         * lib/vasnprintf.c: Remove trailing blanks.
87404
87405 2003-08-17  Simon Josefsson  <jas@extundo.com>
87406
87407         * modules/xstrndup: New file.
87408         * MODULES.html.sh (func_all_modules): Add xstrndup.
87409
87410 2003-08-17  Simon Josefsson  <jas@extundo.com>
87411
87412         * modules/argp: Fix autoconf macro name. Add more dependencies.
87413
87414 2003-08-17  Simon Josefsson  <jas@extundo.com>
87415
87416         * m4/xstrndup.m4: New file.
87417
87418 2003-08-17  Simon Josefsson  <jas@extundo.com>
87419
87420         * m4/argp.m4: New file.
87421
87422 2003-08-17  Simon Josefsson  <jas@extundo.com>
87423             Bruno Haible  <bruno@clisp.org>
87424
87425         * lib/xstrndup.h: New file.
87426         * lib/xstrndup.c: New file.
87427
87428 2003-08-17  Bruno Haible  <bruno@clisp.org>
87429
87430         * modules/strndup (Files, Include): Add lib/strndup.h.
87431
87432 2003-08-17  Bruno Haible  <bruno@clisp.org>
87433
87434         * modules/euidaccess (Files): Add lib/euidaccess.h.
87435
87436 2003-08-17  Bruno Haible  <bruno@clisp.org>
87437
87438         * lib/strndup.h: New file.
87439
87440 2003-08-17  Bruno Haible  <bruno@clisp.org>
87441
87442         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87443         like AC_GNU_SOURCE.
87444         * modules/extensions (configure.ac): Comment out the invocation of
87445         gl_USE_SYSTEM_EXTENSIONS.
87446
87447 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87448
87449         Merges from coreutils, etc.
87450         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87451         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87452         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87453         fixing a typo.
87454         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87455         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87456
87457 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87458
87459         Document merge from coreutils.
87460         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87461         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87462         * modules/utime: Add m4/utimes-null.m4.
87463
87464 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87465
87466         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87467         space, undoing this 2003-08-12 change:
87468         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87469
87470 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87471
87472         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87473         strtoul.c from libc, undoing this 2003-08-12 change:
87474         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87475
87476 2003-08-16  Jim Meyering  <jim@meyering.net>
87477
87478         Merges from coreutils.
87479         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87480         prefix.  Adjust cache variables similarly.  Create 500 rather than
87481         just 300 files, to exercise bug on Darwin6.5, too.
87482         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87483         $missing_dir.
87484         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87485         AM_SYS_POSIX_TERMIOS.
87486         Reported by mkc@mathdogs.com.
87487         Also change use of $am_cv_sys_posix_termios
87488         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87489         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87490         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87491         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87492         in /proc/mounts until it finds one with matching device number.  This
87493         is unnecessary when the FILE argument *is* a mount point.  No stat call
87494         is necessary in that case.  So, disable the statvfs-testing code on
87495         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87496         as RedHat bug# 84846.
87497         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87498         to 1MB, so as not to render systems with no stack size limit (e.g.,
87499         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87500         Include <unistd.h>.  On some systems,
87501         it is required for the definition of _SC_PAGESIZE.
87502
87503 2003-08-16  Jim Meyering  <jim@meyering.net>
87504
87505         Merge from coreutils.
87506         * lib/xstrtoimax.c: #else #if -> #elif.
87507         * lib/xstrtoumax.c: Likewise.
87508
87509 2003-08-16  Jim Meyering  <jim@meyering.net>
87510
87511         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87512         * m4/utimes.m4: Removed.
87513         * m4/utimes-null.m4: Renamed from utimes.m4.
87514
87515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87516         to 1MB, so as not to render systems with no stack size limit (e.g.,
87517         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87518         Include <unistd.h>.  On some systems,
87519         it is required for the definition of _SC_PAGESIZE.
87520
87521 2003-08-16  Jim Meyering  <jim@meyering.net>
87522         and Paul Eggert  <eggert@cs.ucla.edu>
87523
87524         Merges from coreutils, etc.
87525
87526         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87527         using the latest version from cvs.  This avoids problems with #line
87528         directives using a vendor (Sun) compiler.
87529         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87530         Don't set GETGROUPS_LIB here; now it's
87531         done via getgroups.m4's wrapper function.
87532         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87533         rather than just in sh-util/configure.in, so that the
87534         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87535         same.
87536         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87537         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87538         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87539         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87540         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87541         Remove code that is now done by the newly-required macros.
87542         Append $(EXEEXT) to DF_PROG.
87543         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87544         Do not invoke or require the following here,
87545         since prereq.m4 or some gnulib .m4 now does this for us:
87546         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87547         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87548         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87549         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87550         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87551         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87552         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87553         AC_FUNC_OBSTACK.
87554         Do not replace the following functions, as this is now the job
87555         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87556         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87557         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87558         atexit getpass, strdup, getpagesize.
87559         Replace 'raise'.
87560         Do not check for the following functions, as this is now the job
87561         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87562         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87563         setregid.
87564         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87565         Check for sys/sysctl.h.
87566         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87567         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87568         of checking for ssize_t ourselves.
87569
87570         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87571         Require every macro that gnulib/modules/* suggests for us.
87572         (jm_PREREQ_ADDEXT): New macro.
87573         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87574         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87575
87576         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87577         (gl_PHYSMEM): Use it.
87578         Also check for `table' function.
87579         Check for new headers and functions.
87580         Add check for sys/sysmp.h.
87581         With suggestions from Kaveh Ghazi.
87582         Ignore headers that are present but cannot be compiled.  This
87583         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87584         C 5.4.
87585
87586 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87587
87588         Document merge from coreutils.
87589         * modules/userspec: Depend on posixver.
87590         * modules/strftime: Depend on tzset.
87591
87592 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87593
87594         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87595         rather than tab, after '#' in shell-script copyright notices.
87596         Suggested by Bruno Haible.
87597
87598 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87599
87600         * config/srclist-update: Use three spaces, rather than tab, after '#'
87601         in shell-script copyright notices.  Suggested by Bruno Haible.
87602         Remove unnecessary parenthesization in regular expression.
87603
87604 2003-08-15  Jim Meyering  <jim@meyering.net>
87605
87606         Merge from coreutils.
87607         * lib/xgethostname.c: Include <stdlib.h>.
87608         (xghostname): Don't exit for anything other than memory-related
87609         failure; just return NULL.
87610         * lib/userspec.c: Include "posixver.h".
87611         (parse_user_spec): Accept `.' as a separator only
87612         in pre-POSIX-200112 mode.
87613         * lib/strtoimax.c: Use #elif rather than #else #if.
87614         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87615         Remove function, now that we can rely on a working tzset function.
87616         [!_LIBC]: Ensure that the required autoconf test has been run.
87617         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87618         Use underlying_strftime for %r.
87619         * lib/sha.c: Merge in some clean-up and optimization changes from
87620         glibc.
87621         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87622         Ensure that it is a multiple of 64.
87623         Rearrange loop exit tests so as to avoid performing an
87624         additional fread after encountering an error or EOF.
87625         * lib/realloc.c: Update copyright date.
87626
87627 2003-08-15  Jim Meyering  <jim@meyering.net>
87628         and Paul Eggert  <eggert@twinsun.com>
87629
87630         Merge from coreutils.
87631         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87632         member but strut utmpx does not.  Needed for AIX 4.3.3.
87633         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87634
87635 2003-08-15  Jim Meyering  <jim@meyering.net>
87636         and Paul Eggert  <eggert@cs.ucla.edu>
87637
87638         Merges from coreutils, etc.
87639         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87640         Require gl_FUNC_TZSET_CLOBBER.
87641         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87642         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87643         members.
87644
87645 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87646
87647         Help the merge from coreutils.
87648         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87649         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87650         * m4/tzset.m4: Use it too.
87651
87652 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87653
87654         * modules/tzset: New file.
87655
87656 2003-08-14  Jim Meyering  <jim@meyering.net>
87657
87658         Merges from coreutils.
87659         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87660         variable names, rather than @FNMATCH_H@.
87661         * modules/alloca: Likewise for $(ALLOCA_H).
87662
87663         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87664         the three copies of the literal target, `fnmatch.h'.
87665         * modules/alloca (alloca.h): Likewise.
87666
87667 2003-08-14  Jim Meyering  <jim@meyering.net>
87668
87669         Merge from coreutils.
87670         * m4/tzset.m4: New file.
87671         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87672         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87673         otherwise, AIX 5.1 systems would end up using the latter.
87674         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87675         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87676         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87677         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87678
87679 2003-08-14  Jim Meyering  <jim@meyering.net>
87680
87681         Merge from coreutils.
87682         * lib/obstack.h: Whitespace changes.
87683         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87684         and xcalloc return values.
87685         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87686         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87687         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87688         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87689         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87690         error from mntctl.
87691         Use mntctl's return value to drive the entry-processing loop, since
87692         we can't rely on the value of the vmt_length member in the last
87693         entry.  On some systems doing so could result in exhausting
87694         virtual memory.  Based in part on a patch from Mike Jetzer.
87695
87696 2003-08-14  Jim Meyering  <jim@meyering.net>
87697         and Paul Eggert  <eggert@twinsun.com>
87698
87699         Merges from coreutils, plus other fixes.
87700         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87701         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87702         for credits and details.  Thanks to Kaveh Ghazi for helping
87703         to keep these files in sync.
87704         (ARRAY_SIZE): Define it.
87705         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87706         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87707         (memcasecmp): Don't assume size_t fits in unsigned int.
87708         Remove casts and duplicate code.
87709         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87710         (memcpy): Remove definition.
87711         Merge in some clean-up and optimization changes from glibc.
87712         [BLOCKSIZE]: Move definition to top of file.
87713         Ensure that it is a multiple of 64.
87714         Rearrange loop exit tests so as to avoid performing an
87715         additional fread after encountering an error or EOF.
87716         * lib/md5.h (md5_uintptr): Define.
87717         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87718         return to the initial working directory.  Preserve errno
87719         for caller.
87720         * lib/idcache.c: Include "xalloc.h".
87721         (xmalloc, xrealloc): Remove decls.
87722         (getuser): Remove casts no longer required in C89.
87723         * lib/human.c: Include stdio.h, for sprintf.
87724         * lib/group-member.c: Include "xalloc.h".
87725         (xmalloc, xrealloc): Remove decls.
87726         (get_group_info): Remove casts no longer required in C89.
87727         * lib/getusershell.c (readname): Remove casts no longer required in
87728         C89.
87729         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87730         * lib/getline.c: Whitespace fix, from coreutils.
87731
87732 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87733
87734         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87735         Check for isascii.
87736
87737         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87738         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87739         Undo previous (whitespace-only) change.
87740
87741 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87742
87743         * lib/exclude.c: Include <ctype.h>
87744         (IN_CTYPE_DOMAIN): New macro.
87745         (is_space): New fn.
87746         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87747         and empty lines.
87748
87749         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87750         Undo previous (whitespace-only) change.
87751
87752 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87753
87754         * config/srclist-update: Change update back to the old behavior,
87755         leaving whitespace alone.  Use one 'sed' command rather than a
87756         pipeline.
87757         (fixlicense): Now a variable, not a function.
87758         (remove_trailing_blanks): Remove.
87759         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87760         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87761         Undo previous (whitespace-only) change.
87762
87763 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87764
87765         Merge from coreutils.
87766         * modules/euidaccess: Add lib_SOURCES, include for new
87767         file euidaccess.h
87768
87769 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87770
87771         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87772         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87773         Normalize leading white space and remove trailing white space.
87774
87775         Merge from coreutils
87776         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87777
87778         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87779         0.12.1.  These files are now being upgraded automatically by
87780         ../config/srclist-update.
87781
87782 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87783
87784         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87785         Normalize leading white space and remove trailing white space.
87786         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87787         notice, as per ../config/srclist-update.
87788
87789         Merge from coreutils.
87790         * lib/euidaccess.h: New file.
87791         * lib/euidaccess.c: Include it.
87792         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87793         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87794         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87795
87796 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87797
87798         * config/srclist-update: Add copyright notice.
87799         (remove_id_lines, remove_trailing_blanks): New constants.
87800         (fixfile): Use them to normalize spacing a bit in copied files.
87801         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87802         Normalize leading white space and remove trailing white space.
87803
87804         * config/texinfo.tex: Sync with texinfo.
87805
87806         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87807         strtoul.c from libc, to merge coreutils whitespace changes.
87808
87809         * config/srclist.txt: Get the following m4 files from gettext:
87810         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87811         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87812         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87813         wint_t.m4.
87814
87815 2003-08-12  Karl Berry  <karl@gnu.org>
87816
87817         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87818         been made.
87819
87820 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87821
87822         * modules/gnu-source, m4/gnu-source.m4:
87823         Remove; we're assuming Autoconf 2.54 or later now.
87824         Suggested by Bruno Haible.
87825         * MODULES.html.sh (func_all_modules): Remove gnu-source.
87826
87827 2003-08-11  Bruno Haible  <bruno@clisp.org>
87828
87829         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
87830
87831 2003-08-11  Bruno Haible  <bruno@clisp.org>
87832
87833         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
87834         (vasnprintf): Use it instead of wcslen.
87835
87836 2003-08-11  Bruno Haible  <bruno@clisp.org>
87837
87838         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
87839         value to ensure that _Bool promotes to int. Use #define for _Bool when
87840         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
87841
87842 2003-08-10  Karl Berry  <karl@gnu.org>
87843
87844         * lib/regex.h: update from libc (whitespace fix).
87845
87846 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87847
87848         Merge some files from coreutils.  These changes were
87849         originally made by Jim Meyering.
87850         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
87851         many older Unixes require this.
87852         * lib/alloca.c (alloca): Remove cast to argument of free;
87853         no longer needed in C89.
87854         * lib/alloca_.h, regex.h: Fix white space to match
87855         what GNU indent does.
87856
87857 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87858
87859         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
87860         apparently Emacs's Unicode mode got confused before my 2003-08-05
87861         checkin.
87862
87863 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87864
87865         * m4/extensions.m4: New file.
87866         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
87867         Require gl_USE_SYSTEM_EXTENSIONS.
87868         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
87869         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
87870
87871 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87872
87873         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
87874         * modules/extensions, modules/gnu-source: New files.
87875         * modules/timespec, modules/unlocked-io: Depend on extensions.
87876
87877 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87878
87879         * modules/restrict: New file.
87880         * MODULES.html.sh (func_all_modules): Add restrict.
87881         * modules/regex: Depend on restrict.
87882
87883 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87884
87885         * m4/restrict.m4: New file.
87886         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
87887
87888 2003-08-07  Bruno Haible  <bruno@clisp.org>
87889
87890         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
87891         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
87892
87893 2003-08-07  Bruno Haible  <bruno@clisp.org>
87894
87895         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
87896         makes the module 'getndelim2' compatible with the module 'getline'.
87897
87898 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87899
87900         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
87901         byte with "\201" to avoid glitches when editing that source file
87902         with multi-gnome-terminal.
87903
87904 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87905
87906         * lib/bumpalloc.h: Remove.
87907
87908 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87909
87910         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
87911         * modules/bumpalloc: Remove.
87912
87913 2003-08-04  Paul Eggert  <eggert@twinsun.com>
87914
87915         * lib/getloadavg.c: Change copyright notice and spacing to conform to
87916         GNU coding style.
87917
87918         Merge from coreutils.
87919         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
87920         1. From glibc.
87921         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
87922         from Karl Berry, implemented by Jim Meyering.
87923         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
87924         from Dmitry V. Levin.
87925         Remove anachronistic cast of xrealloc.
87926         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
87927         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
87928         type. Otherwise, it wouldn't compile with at least /bin/cc on
87929         ymp-cray-unicos9.0.2.X.
87930         Combine two mostly-identical uses of alloca into one.
87931         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
87932
87933 2003-08-04  Dave Love  <d.love@dl.ac.uk>
87934
87935         [From Emacs.]
87936
87937         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
87938         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
87939         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
87940         obsolete NLIST_NAME_UNION.
87941         [__GNU__]: Undef BSD and FSCALE.
87942         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
87943
87944 2003-08-03  Paul Eggert  <eggert@twinsun.com>
87945
87946         * lib/stdbool_.h (_Bool): Make it signed char, instead of
87947         an enum type, so that it's guaranteed to promote to int.  See:
87948         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
87949
87950 2003-08-03  Karl Berry  <karl@gnu.org>
87951
87952         * config/depcomp: update from automake.
87953
87954 2003-07-31  Paul Eggert  <eggert@twinsun.com>
87955
87956         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
87957         (strerror): Don't assume that a printable int fits in 14 bytes.
87958
87959 2003-07-31  Bruno Haible  <bruno@clisp.org>
87960
87961         * modules/getpass-gnu: New file.
87962         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
87963
87964 2003-07-31  Bruno Haible  <bruno@clisp.org>
87965
87966         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
87967
87968 2003-07-24  Karl Berry  <karl@gnu.org>
87969
87970         * config/missing: update from automake.
87971
87972 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
87973             Bruno Haible  <bruno@clisp.org>
87974
87975         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
87976         * lib/getline.c (getline, getdelim): Likewise.
87977         Remove _GNU_SOURCE define; now it's defined in config.h through
87978         m4/getline.m4.
87979
87980 2003-07-23  Karl Berry  <karl@gnu.org>
87981
87982         * config/config.sub: update from prep.
87983
87984 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87985
87986         * modules/xalloc (Depends-on): Add exitfail.
87987         * modules/xmemcoll: Likewise.
87988
87989 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87990
87991         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
87992         over-parenthesization in macros.
87993
87994         Sync with coreutils.
87995
87996         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
87997         required by C99.
87998
87999         Use `exit_failure' for xalloc and xmemcoll instead of their own
88000         private exit-failure variables.
88001         * lib/xalloc.h (xalloc_exit_failure): Remove.
88002         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88003         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88004         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88005         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88006         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88007
88008 2003-07-20  Jim Meyering  <jim@meyering.net>
88009
88010         * modules/closeout (Depends-on): Add exitfail.
88011         Suggestion from Bruno Haible.
88012
88013 2003-07-19  Karl Berry  <karl@gnu.org>
88014
88015         * config/config.sub: update from prep.
88016
88017 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88018
88019         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88020         Remove.
88021         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88022         to test that it can stand by itself.  Include "exitfail.h".
88023         Clients should set exit_failure instead.
88024         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88025
88026 2003-07-18  Bruno Haible  <bruno@clisp.org>
88027
88028         * modules/getndelim2: New file.
88029         * modules/getline: Share files with module getndelim2.
88030         * modules/getnline: Depend on getndelim2 instead of sharing files with
88031         it. Add getnline.c to lib_SOURCES.
88032         * MODULES.html.sh (func_all_modules): Add getndelim2.
88033
88034 2003-07-18  Bruno Haible  <bruno@clisp.org>
88035
88036         * m4/getndelim2.m4: New file.
88037         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88038         invoke gl_PREREQ_GETNDELIM2.
88039         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88040         gl_PREREQ_GETNDELIM2.
88041         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88042         gl_GETNDELIM2.
88043
88044 2003-07-18  Bruno Haible  <bruno@clisp.org>
88045
88046         * lib/getndelim2.h: New file.
88047         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88048         getndelim2.h.
88049         (getndelim2): Make non-static. Change return type to ssize_t.
88050         * lib/getline.h: Change argument names.
88051         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88052         * lib/getnline.c: Include getndelim2.h.
88053
88054 2003-07-18  Andreas Schwab  <schwab@suse.de>
88055
88056         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88057
88058 2003-07-17  Karl Berry  <karl@gnu.org>
88059
88060         * config/config.sub: update from prep.
88061
88062 2003-07-17  Bruno Haible  <bruno@clisp.org>
88063
88064         * modules/getnline: New file.
88065         * modules/getline: Add lib/getndelim2.c to source file list.
88066         * MODULES.html.sh (func_all_modules): Add getnline.
88067
88068 2003-07-17  Bruno Haible  <bruno@clisp.org>
88069
88070         * m4/getnline.m4: New file.
88071
88072 2003-07-17  Bruno Haible  <bruno@clisp.org>
88073
88074         * m4/Makefile.am.in: Remove file.
88075         * m4/Makefile.am: Remove file.
88076         * m4/Makefile.in: Remove file.
88077
88078 2003-07-17  Bruno Haible  <bruno@clisp.org>
88079
88080         * lib/getnline.h: New file.
88081         * lib/getnline.c: New file.
88082         * lib/getndelim2.c: New file, extracted from getline.c.
88083         (getndelim2): Renamed from getdelim2, with added nmax argument.
88084         * lib/getline.c: Include getndelim2.c.
88085         (getdelim2): Moved out to getndelim2.c.
88086         (getline, getdelim): Update.
88087
88088 2003-07-17  Bruno Haible  <bruno@clisp.org>
88089
88090         * lib/Makefile.am: Remove file.
88091         * lib/Makefile.in: Remove file.
88092
88093 2003-07-17  Bruno Haible  <bruno@clisp.org>
88094
88095         * configure.in: Remove file.
88096         * Makefile.in: Remove file.
88097
88098 2003-07-17  Bruno Haible  <bruno@clisp.org>
88099
88100         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88101
88102 2003-07-16  Karl Berry  <karl@gnu.org>
88103
88104         * config/srclist-update: was running fixlicense twice, which caused
88105                 texinfo.tex to be nullified for some reason.  Simplify,
88106                 $gplsrc is no longer needed as far as I can see?
88107
88108 2003-07-16  Jim Meyering  <jim@meyering.net>
88109
88110         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88111
88112 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88113
88114         * config/srclist.txt: Get the following files from gettext-runtime/intl
88115         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88116         ref-del.sin.  From Bruno Haible.
88117         * config/srclist-update (fixfile): Change grep pattern again, since the
88118         previous fix didn't work (there was another trailing $).  Use
88119         '[$]' to escape the $s.
88120
88121 2003-07-15  Karl Berry  <karl@gnu.org>
88122
88123         * lib/vasnprintf.c: update from gettext.
88124
88125 2003-07-15  Karl Berry  <karl@gnu.org>
88126
88127         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88128         gets expanded when surrounded by '$'.
88129
88130 2003-07-15  Jim Meyering  <jim@meyering.net>
88131
88132         * modules/save-cwd: Don't depend on error.  From Derek Price.
88133
88134 2003-07-15  Jim Meyering  <jim@meyering.net>
88135
88136         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88137
88138 2003-07-14  Simon Josefsson  <jas@extundo.com>
88139
88140         * modules/mempcpy: New file.
88141         * MODULES.html.sh (func_all_modules): Add mempcpy.
88142
88143 2003-07-14  Simon Josefsson  <jas@extundo.com>
88144
88145         * m4/mempcpy.m4: New file.
88146
88147 2003-07-14  Simon Josefsson  <jas@extundo.com>
88148
88149         * lib/mempcpy.h: New file.
88150         * lib/mempcpy.c: New file.
88151
88152 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88153
88154         * modules/getdate, modules/posixtm: Depend on mktime.
88155
88156 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88157
88158         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88159         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88160         unicodeio.c, unicodeio.h, unlocked-io.h:
88161         Switch from LGPL to GPL.
88162
88163 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88164
88165         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88166         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88167         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88168         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88169         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88170         updated automatically by ../config/srclist-update.  This changes
88171         their license from LPGL to GPL.
88172
88173 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88174
88175         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88176         assumed to refer to the root of the most recent stable gettext version.
88177         * config/srclistvars.sh: Add defaults for eggert.
88178         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88179         Match "This program" as well as "The program".  This is needed
88180         for gettext.
88181
88182 2003-07-14  Jim Meyering  <jim@meyering.net>
88183
88184         Don't emit diagnostics.  Let callers do that.
88185         * lib/save-cwd.c: Don't include "error.h".
88186         (save_cwd): Don't call error.  Ensure that errno is valid
88187         when returning nonzero.
88188
88189         * lib/save-cwd.h (restore_cwd): Update prototype.
88190         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88191         Simplify.  Don't call error upon failure.  Let callers do that.
88192         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88193         when auditing is enabled.  But don't bother updating the #if.
88194
88195 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88196
88197         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88198         it breaks C++ compilation.
88199         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88200
88201 2003-07-10  Simon Josefsson  <jas@extundo.com>
88202
88203         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88204
88205 2003-07-10  Jim Meyering  <jim@meyering.net>
88206
88207         * m4/clock_time.m4: Remove trailing blank.
88208         * m4/intmax_t.m4: Likewise.
88209
88210 2003-07-10  Jim Meyering  <jim@meyering.net>
88211
88212         * lib/vasnprintf.c: Remove trailing blanks.
88213         Make cpp indentation consistent.
88214
88215 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88216
88217         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88218         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88219         Switch from LGPL to GPL.
88220
88221 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88222
88223         * config/srclist.txt: Sort sublists.  Add
88224         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88225         that differ from gnulib for one reason or another; we'd like this list
88226         to be smaller but for now let's document what we have.
88227
88228 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88229
88230         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88231         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88232         and sweeter "eval x=$x".
88233         * config/srclist.txt: Get lib/argp* from glibc.
88234
88235 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88236
88237         * lib/mktime.c: Fix some boundary cases and remove need for floating
88238         point.
88239
88240         Issue a compile-time diagnostic if time_t is floating point, or if
88241         two's complement arithmetic is not in effect, or if arithmetic
88242         right shift does not propagate the sign.  These assumptions were
88243         all in the original code but they weren't checked.
88244
88245         (TIME_T_MIDPOINT, verify): New macros.
88246         (__isleap): Remove; it has integer overflow problems.
88247         (leapyear): New function, without those problems.
88248         (ydhms_tm_diff): Remove; splitting into two parts.
88249         (ydhms_diff): New function, containing the arithmetic part of
88250         the old ydhms_tm_diff function.  Issue a compile-time
88251         diagnostic if we are not using C99 integer division.
88252         Avoid casts when possible.
88253         (guess_time_tm): New function, containing the checking part of
88254         the old ydhms_tm_diff function.  Return the new value, rather than
88255         the difference between it and the old.  Accept a new argument T
88256         so that *T specifies the old value.  Check for overflow in the result.
88257
88258         (__mktime_internal): Use a time_t offset, not a long int offset.
88259         This undoes the 2003-06-04 change, which is no longer needed now
88260         that we have better overflow checking.
88261         (localtime_offset): Likewise.
88262
88263         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88264         and long are 64-bit but int is only 32-bit.
88265         (ydhms_diff): Use long int to store year1 and yday1.
88266         Issue a compile-time diagnostic if long int is not wide enough.
88267
88268         (__mktime_internal): Use long int to store adjusted year and yday.
88269         Use plain C rather than preprocessor commands, if that doesn't
88270         affect efficiency.
88271         Check for overflow (and try to repair) after each probe
88272         rather than checking only at the very end.  This avoids some bugs
88273         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88274         does not equal GMT offset at maximum time).
88275         Use integer to check for overflow rather than floating point; this
88276         is more portable to non-IEEE hosts, and is a tad faster.
88277         When we detect that we are oscillating between two values,
88278         don't check whether tm_isdst has the requested value, since
88279         we already know the answer.  When tm_isdst has the wrong value,
88280         use a different heuristic to find the right one, based on the
88281         extreme values actually observed in practice in tz2003a,
88282         rather than the (overly optimistic) "previous 3 calendar quarters".
88283
88284         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88285         "T const" to accommodate glibc style.
88286         (check_result): Use less-confusing report format.  "long" -> "long int.
88287         (main): Likewise.
88288         Don't loop if the iteration overflows time_t.
88289         Allow a negative step in the iteration.
88290
88291 2003-07-06  Karl Berry  <karl@gnu.org>
88292
88293         * config/depcomp: update from automake.
88294         * config/config.sub: update from prep.
88295
88296 2003-07-03  Karl Berry  <karl@gnu.org>
88297
88298         * config/config.guess: update from prep.
88299
88300 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88301
88302         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88303         xreadlink.c now includes it unconditionally.
88304
88305 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88306
88307         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88308         having it depend on HAVE_SYS_TYPES_H.
88309
88310 2003-07-01  Bruno Haible  <bruno@clisp.org>
88311
88312         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88313         <sys/types.h> should be sufficient.
88314         Reported by Paul Eggert.
88315
88316 2003-06-26  Karl Berry  <karl@gnu.org>
88317
88318         * config/depcomp: update from automake.
88319
88320 2003-06-26  Bruno Haible  <bruno@clisp.org>
88321
88322         * modules/human: Depend on module stdbool.
88323
88324 2003-06-25  Bruno Haible  <bruno@clisp.org>
88325
88326         * modules/readlink: New file.
88327         * modules/xreadlink: Depend on it.
88328         * MODULES.html.sh (func_all_modules): Add readlink.
88329
88330 2003-06-25  Bruno Haible  <bruno@clisp.org>
88331
88332         * m4/readlink.m4: New file.
88333
88334 2003-06-25  Bruno Haible  <bruno@clisp.org>
88335
88336         * lib/readlink.c: New file.
88337
88338 2003-06-22  Karl Berry  <karl@gnu.org>
88339
88340         * config/srclist.txt: update mkinstalldirs from automake.
88341         * config/mkinstalldirs: update.
88342
88343 2003-06-22  Bruno Haible  <bruno@clisp.org>
88344
88345         Portability to mingw32.
88346         * m4/ssize_t.m4: New file, from GNU gettext.
88347         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88348         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88349
88350 2003-06-22  Bruno Haible  <bruno@clisp.org>
88351
88352         * modules/safe-read: Add m4/ssize_t.m4.
88353         * modules/xreadlink: Add m4/ssize_t.m4.
88354
88355 2003-06-20  Bruno Haible  <bruno@clisp.org>
88356
88357         Assume C89, so PARAMS isn't needed.
88358         * lib/unicodeio.h (PARAMS): Remove.
88359         * lib/unicodeio.c: Don't use PARAMS.
88360
88361 2003-06-18  Karl Berry  <karl@gnu.org>
88362
88363         * config/config.{guess,sub}: update from prep.
88364
88365 2003-06-18  Jim Meyering  <jim@meyering.net>
88366
88367         Merge changes from coreutils.
88368         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88369         Remove explicit declarations of xmalloc and realloc.
88370         Include xalloc.h.
88371         (read_utmp): Remove anachronistic cast of xmalloc.
88372
88373 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88374
88375         Assume C89, so PARAMS isn't needed.
88376         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88377         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88378         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88379         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88380         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88381         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88382         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88383         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88384         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88385         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88386         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88387         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88388         no longer needed. Anyway, config.h should always be included before any
88389         other file.
88390
88391 2003-06-11  Simon Josefsson  <jas@extundo.com>
88392
88393         * modules/sysexits: New file.
88394         * MODULES.html.sh (func_all_modules): Add sysexits.
88395
88396 2003-06-11  Simon Josefsson  <jas@extundo.com>
88397
88398         * lib/sysexit_.h: New file.
88399
88400 2003-06-11  Derek Price  <derek@ximbiot.com>
88401
88402         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88403         necessary.
88404
88405 2003-06-11  Bruno Haible  <bruno@clisp.org>
88406
88407         * m4/sysexits.m4: New file.
88408
88409 2003-06-10  Simon Josefsson  <jas@extundo.com>
88410
88411         * lib/argp.h: New file, from glibc.
88412         * lib/argp-ba.c: New file, from glibc.
88413         * lib/argp-eexst.c: New file, from glibc.
88414         * lib/argp-fmtstream.c: New file, from glibc.
88415         * lib/argp-fmtstream.h: New file, from glibc.
88416         * lib/argp-fs-xinl.c: New file, from glibc.
88417         * lib/argp-help.c: New file, from glibc.
88418         * lib/argp-namefrob.h: New file, from glibc.
88419         * lib/argp-parse.c: New file, from glibc.
88420         * lib/argp-pv.c: New file, from glibc.
88421         * lib/argp-pvh.c: New file, from glibc.
88422         * lib/argp-xinl.c: New file, from glibc.
88423
88424 2003-06-10  Simon Josefsson  <jas@extundo.com>
88425
88426         * modules/strchrnul: New file.
88427
88428 2003-06-10  Simon Josefsson  <jas@extundo.com>
88429
88430         * modules/argp: New file.
88431
88432 2003-06-10  Simon Josefsson  <jas@extundo.com>
88433
88434         * m4/strchrnul.m4: New file.
88435
88436 2003-06-10  Simon Josefsson  <jas@extundo.com>
88437
88438         * lib/strchrnul.h: New file.
88439         * lib/strchrnul.c: New file.
88440
88441 2003-06-10  Bruno Haible  <bruno@clisp.org>
88442
88443         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88444
88445 2003-06-07  Karl Berry  <karl@gnu.org>
88446
88447         * config/config.{guess,sub}: update from prep.
88448
88449 2003-06-07  Jim Meyering  <jim@meyering.net>
88450
88451         * modules/strtod: Use $(...) notation, not @...@ for
88452         AC_REPLACE'd variables.
88453         * modules/localcharset: Likewise.
88454
88455 2003-06-07  Jim Meyering  <jim@meyering.net>
88456
88457         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88458         in place of my name in the copyright comment.
88459         Remove definition and uses of __P.
88460
88461         From coreutils.
88462         * lib/stat.c: Don't declare xmalloc explicitly.
88463         Instead, include "xalloc.h".
88464         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88465         xrealloc, and xcalloc return values.
88466         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88467         Improve comment.
88468         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88469
88470 2003-06-07  Bruno Haible  <bruno@clisp.org>
88471
88472         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88473         avoid AC_CONFIG_LINKS.
88474         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88475         fnmatch.h, to avoid AC_CONFIG_LINKS.
88476         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88477
88478 2003-06-07  Bruno Haible  <bruno@clisp.org>
88479
88480         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88481         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88482         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88483         directory.
88484         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88485         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88486         directory.
88487
88488 2003-06-06  Jim Meyering  <jim@meyering.net>
88489
88490         Merge from coreutils.
88491         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88492         Consolidate declarations and initializations of *_base* locals.
88493
88494         Merge from coreutils.
88495         This avoids a core dump on systems without GNU putenv,
88496         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88497         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88498         (unsetenv): New static function, from GNU libc.
88499         (rpl_putenv): Use it.
88500
88501         * lib/modechange.c: Remove trailing blanks.
88502
88503         Merge from coreutils.
88504         * lib/fsusage.c: Remove declaration of statfs.
88505         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88506
88507         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88508
88509 2003-06-06  Jim Meyering  <jim@meyering.net>
88510
88511         * lib/stdbool_.h: Renamed from stdbool.h.in.
88512
88513 2003-06-06  Jim Meyering  <jim@meyering.net>
88514             Bruno Haible  <bruno@clisp.org>
88515
88516         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88517         Adjust Makefile.am snippet not to redirect directly to target.
88518         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88519
88520 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88521
88522         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88523         mismatch, look in future quarters as well as past.  This fixes a
88524         bug when processing fall-backwards gaps immediately after a long
88525         period of daylight-saving time.
88526
88527         * lib/mktime.c: Assume freestanding C89 or better.
88528         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88529         (__P): Remove; not used.
88530         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88531         (mktime, not_equal_tm, print_tm, check_result,
88532         main): Use prototypes.  Use const * where appropriate.
88533         (main): Fix typo in testing code that uncovered by above changes.
88534         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88535
88536 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88537
88538         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88539         locale.h, localeconv.  This merges changes from coreutils.
88540
88541         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88542         It can be removed after the next Autoconf is released.
88543         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88544         needed.
88545
88546 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88547
88548         * lib/mktime.c: Fix Debian bug 177940
88549         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88550         (localtime_offset): Now long int, not time_t, because we want it
88551         to be guaranteed to be signed.  All uses changed.
88552         (__mktime_internal): If overflow would occur when adding offset,
88553         don't add it.
88554
88555         Merge 'human' changes from coreutils.  Rewrite to support
88556         locale-specific notations like thousands separators.
88557         * lib/human.c: Simplify authorship notice.
88558         Include human.h immediately after config.h.
88559         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88560         <limits.h>: Do not include, since human.h does.
88561         (SIZE_MAX, UINTMAX_MAX): New macros.
88562         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88563         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88564         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88565         (power_letter): Renamed from suffixes.
88566         (generate_suffix_backwards): Remove.
88567         (adjust_value): Now takes int style (because of human.h changes)
88568         and long double value (for greater precision on some platforms).
88569         (group_number): New function.
88570         (human_readable): Use it.  Use integer options, not enum.
88571         Put the options before the sizes in the arg list.
88572         Support all the new options.
88573         The old human_readable function has been removed;
88574         use inttostr.h instead.
88575         (human_readable, default_block_size, humblock):
88576         Use uintmax_t, not int, for block sizes.
88577         (human_readable_inexact, block_size_types): Remove.
88578         (block_size_opts): New constant.
88579         (human_options): Renamed from human_block_size, with new signature
88580         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88581         * lib/human.h: Add copyright and authorship notice.
88582         Include <limits.h> and <stdbool.h> unconditionally.
88583         (PARAMS): Remove.  All uses removed.
88584         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88585         (enum human_inexact_style): Remove tag; now a nameless enum.
88586         (human_floor, human_ceiling, human_round_to_even): Now have
88587         values 2, 0, 1 rather than -1, 1, 0.
88588         (human_group_digits, human_suppress_point_zero, human_autoscale,
88589         human_base_1024, human_SI, human_B): New constants.
88590         (human_readable_inexact, human_block_size): Remove.
88591         (human_readable): Size args are now uintmax_t, not int.
88592         (human_options): New decl.
88593
88594         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88595         unnecessary now that we assume C89 or better.  This change
88596         imported from coreutils.
88597
88598         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88599         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88600         in the 2003-05-30 sync from glibc.
88601
88602         .h files should stand alone, but we shouldn't include <sys/types.h>
88603         if we can get away with just <stddef.h>.
88604
88605         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88606         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88607         rather than <sys/types.h>, as we merely need size_t.
88608         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88609         to get size_t.
88610         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88611         Include <stdio.h>, to get FILE.
88612         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88613         memcasecmp.h has included <stddef.h> and all we need is size_t.
88614         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88615         our interface, instead of including <sys/types.h>
88616
88617 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88618
88619         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88620         now, as glibc mktime is buggy on non-glibc systems.
88621
88622 2003-06-03  Karl Berry  <karl@gnu.org>
88623
88624         * config/config.sub: update from prep.
88625
88626 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88627
88628         [from coreutils]
88629         Fix some minor time-related bugs with POSIX time arguments.
88630         Some valid time stamps were being rejected (notably -1, and
88631         time stamps before 1900 on 64-bit hosts).  And some invalid
88632         time stamps were being accepted, e.g. September 31.
88633
88634         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88635         that we can return (time_t) -1 successfully.
88636         * lib/posixtm.c: Likewise.
88637         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88638         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88639         (t): Remove static var.
88640         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88641         of static var.  All uses changed.
88642         (year): Do not reject years before 1900; they can occur with
88643         64-bit time_t.
88644         (posix_time_parse): Do not check for out-of-range components;
88645         that is now the caller's responsibility, since our checks were
88646         only approximations.
88647         (posixtime): Use mktime to check for out-of-range components,
88648         since it knows them exactly.
88649         If mktime returns (time_t) -1, check whether an error actually occurred
88650         by invoking localtime on -1.
88651         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88652         posixtime failures better.
88653         Improve the test data (in comments only).
88654
88655 2003-06-02  Karl Berry  <karl@gnu.org>
88656
88657         * config/mkinstalldirs (version): new variable.
88658         (--version): new option.
88659         (usage): improve message.
88660
88661 2003-05-30  Karl Berry  <karl@gnu.org>
88662
88663         * lib/mktime.c: update from libc.
88664
88665 2003-05-30  Bruno Haible  <bruno@clisp.org>
88666
88667         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88668         * config/config.rpath: Upgrade to gettext-0.12.1.
88669
88670 2003-05-30  Bruno Haible  <bruno@clisp.org>
88671
88672         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88673         * m4/nls.m4: New file, from gettext-0.12.1.
88674         * m4/po.m4: New file, from gettext-0.12.1.
88675         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88676
88677 2003-05-30  Bruno Haible  <bruno@clisp.org>
88678
88679         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88680         * lib/localcharset.h: Likewise.
88681         * lib/localcharset.c: Likewise.
88682
88683 2003-05-29  Karl Berry  <karl@gnu.org>
88684
88685         * config/config.rpath: update from gettext.
88686
88687 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88688
88689         Assume the headers required for C89 freestanding compilers.
88690         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88691         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88692         * m4/human.m4 (gl_HUMAN): Likewise.
88693         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88694         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88695         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88696         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88697         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88698         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88699
88700 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88701
88702         Assume the headers required for C89 freestanding compilers.
88703         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88704         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88705         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88706         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88707         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88708         define, since <limits.h> is guaranteed to do that.
88709         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88710         * lib/exclude.c: Include <stdbool.h> unconditionally.
88711         * lib/tempname.c: Include <stddef.h> unconditionally.
88712         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88713         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88714         <stddef.h> does that.
88715         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88716         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88717         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88718         needed.
88719         * lib/xstrtol.c: Likewise.
88720         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88721         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88722
88723         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88724         warnings on some platforms.
88725
88726         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88727         arbitrarily.
88728
88729 2003-05-26  Jim Meyering  <jim@meyering.net>
88730
88731         Merge in a change from coreutils:
88732         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88733         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88734         that condition, rather than `-1' which is slightly misleading.
88735         Change the name of the cache variable to have the gl_ prefix.
88736         Prompted by a patch from Richard Dawe for DJGPP.
88737
88738 2003-05-24  Karl Berry  <karl@gnu.org>
88739
88740         * config/config.guess: update from prep.
88741
88742 2003-05-22  Karl Berry  <karl@gnu.org>
88743
88744         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88745
88746 2003-05-20  Karl Berry  <karl@gnu.org>
88747
88748         * config/config.guess: update from prep.
88749
88750 2003-05-18  Karl Berry  <karl@gnu.org>
88751
88752         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88753         might actually be set by the user.
88754
88755         * config/depcomp, install-sh, mdate-sh: update from automake.
88756
88757 2003-05-17  Bruno Haible  <bruno@clisp.org>
88758
88759         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88760         invalid expansion for AC_EGREP_CPP.
88761         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88762         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88763         Suggested by Akim Demaille <akim@epita.fr> in
88764         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88765
88766 2003-05-12  Jim Meyering  <jim@meyering.net>
88767
88768         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88769         the space-padded-by-default conversion specifiers, %e, %k, %l.
88770
88771 2003-05-12  Bruno Haible  <bruno@clisp.org>
88772
88773         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88774         the string is longer than 4 KB.
88775
88776 2003-05-11  Karl Berry  <karl@gnu.org>
88777
88778         * config/config.{guess,sub}: update from prep.
88779
88780 2003-05-09  Bruno Haible  <bruno@clisp.org>
88781
88782         * modules/error: Add m4/strerror_r.m4 to file list.
88783
88784 2003-05-03  Bruno Haible  <bruno@clisp.org>
88785
88786         Upgrade to Unicode-4.0.
88787         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88788         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88789         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88790         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88791         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88792         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88793         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88794         Change width of U+E0100..U+E01EF from 1 to 0.
88795
88796 2003-04-25  Jim Meyering  <jim@meyering.net>
88797
88798         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88799         of type size_t, not int.
88800
88801 2003-04-25  Bruno Haible  <bruno@clisp.org>
88802
88803         * lib/copy-file.c: Include <stddef.h>, for size_t.
88804
88805 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88806
88807         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88808         code which expansion is under static control.  Patch imported from
88809         Akim Demaille's patch to Bison; see
88810         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88811
88812 2003-04-14  Bruno Haible  <bruno@clisp.org>
88813
88814         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88815
88816 2003-04-11  Jim Meyering  <jim@meyering.net>
88817
88818         Merge changes from Coreutils.
88819
88820         2003-03-22  Jim Meyering  <jim@meyering.net>
88821
88822         * lib/strftime.c (widen): Cast alloca return value to proper type.
88823
88824         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88825
88826         From GNU libc.
88827         * lib/strftime.c (my_strftime): Handle very large width
88828         specifications for numeric values correctly.  Improve checks for
88829         overflow.
88830
88831         2003-01-19  Jim Meyering  <jim@meyering.net>
88832
88833         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
88834         definitions.
88835         (nl_get_alt_digit) [! defined my_strftime]: Define.
88836         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
88837         _nl_get_alt_digit and _nl_get_walt_digit.
88838
88839         * lib/strftime.c (my_strftime): Merge in locale-related changes from
88840         libc. These changes have no effect outside of _LIBC.
88841
88842 2003-04-10  Bruno Haible  <bruno@clisp.org>
88843
88844         * modules/findprog: New file.
88845         * MODULES.html.sh (func_all_modules): Add it.
88846
88847 2003-04-10  Bruno Haible  <bruno@clisp.org>
88848
88849         * m4/findprog.m4: New file.
88850         * m4/eaccess.m4: New file.
88851
88852 2003-04-10  Bruno Haible  <bruno@clisp.org>
88853
88854         * lib/findprog.h: New file, from GNU gettext.
88855         * lib/findprog.c: New file, from GNU gettext.
88856
88857 2003-04-05  Jim Meyering  <jim@meyering.net>
88858
88859         Merge changes from Coreutils.
88860
88861         * lib/exclude.h (PARAMS): Remove definition and uses.
88862         * lib/exclude.c: Remove uses of `PARAMS'.
88863
88864         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
88865         Add test-cases for DOS filenames. Declare program_name.
88866         (main): Set up program_name.  Patch by Rich Dawe.
88867
88868         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88869         error from mntctl.
88870         Use mntctl's return value to drive the entry-processing loop, since
88871         we can't rely on the value of the vmt_length member in the last
88872         entry.  On some systems doing so could result in exhausting
88873         virtual memory.  Based in part on a patch from Mike Jetzer.
88874
88875 2003-04-04  Bruno Haible  <bruno@clisp.org>
88876
88877         * modules/linebreak: New file.
88878         * MODULES.html.sh (func_all_modules): Add it.
88879
88880 2003-04-04  Bruno Haible  <bruno@clisp.org>
88881
88882         * m4/linebreak.m4: New file.
88883
88884 2003-04-04  Bruno Haible  <bruno@clisp.org>
88885
88886         * lib/linebreak.h: New file, from GNU gettext.
88887         * lib/linebreak.c: New file, from GNU gettext with slight
88888         modifications.
88889         * lib/lbrkprop.h: New file, from GNU gettext.
88890
88891 2003-04-03  Bruno Haible  <bruno@clisp.org>
88892
88893         * modules/utf8-ucs4: New file.
88894         * modules/utf16-ucs4: New file.
88895         * modules/ucs4-utf8: New file.
88896         * modules/ucs4-utf16: New file.
88897         * MODULES.html.sh (func_all_modules): Add them.
88898
88899 2003-04-03  Bruno Haible  <bruno@clisp.org>
88900
88901         * m4/utf-ucs4.m4: New file.
88902         * m4/ucs4-utf.m4: New file.
88903
88904 2003-04-03  Bruno Haible  <bruno@clisp.org>
88905
88906         * lib/utf8-ucs4.h: New file, from GNU gettext.
88907         * lib/utf16-ucs4.h: New file, from GNU gettext.
88908         * lib/ucs4-utf8.h: New file, from GNU gettext.
88909         * lib/ucs4-utf16.h: New file, from GNU gettext.
88910
88911 2003-04-02  Bruno Haible  <bruno@clisp.org>
88912
88913         * modules/binary-io: New file.
88914         * MODULES.html.sh (func_all_modules): Add it.
88915
88916 2003-04-02  Bruno Haible  <bruno@clisp.org>
88917
88918         * lib/binary-io.h: New file, from GNU gettext.
88919
88920 2003-04-01  Bruno Haible  <bruno@clisp.org>
88921
88922         * modules/pathname: New file.
88923         * MODULES.html.sh (func_all_modules): Add it.
88924
88925 2003-04-01  Bruno Haible  <bruno@clisp.org>
88926
88927         * lib/pathname.h: New file, from GNU gettext.
88928         * lib/concatpath.c: New file, from GNU gettext.
88929
88930 2003-03-30  Bruno Haible  <bruno@clisp.org>
88931
88932         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
88933
88934 2003-03-30  Bruno Haible  <bruno@clisp.org>
88935
88936         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
88937         function chown() doesn't exist.
88938
88939 2003-03-28  Bruno Haible  <bruno@clisp.org>
88940
88941         * modules/copy-file: New file.
88942         * MODULES.html.sh (func_all_modules): Add it.
88943
88944 2003-03-28  Bruno Haible  <bruno@clisp.org>
88945
88946         * m4/copy-file.m4: New file.
88947
88948 2003-03-28  Bruno Haible  <bruno@clisp.org>
88949
88950         * lib/copy-file.h: New file, from GNU gettext.
88951         * lib/copy-file.c: New file, from GNU gettext.
88952
88953 2003-03-18  Jim Meyering  <jim@meyering.net>
88954
88955         * lib/quote.c (quote_n): Fix typo in comment.
88956
88957 2003-03-18  Bruno Haible  <bruno@clisp.org>
88958
88959         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
88960         checking.
88961         * m4/onceonly_2_57.m4: Likewise.
88962
88963 2003-03-17  Bruno Haible  <bruno@clisp.org>
88964
88965         * m4/onceonly.m4: Require autoconf 2.54 or newer.
88966         (m4_quote): Remove macro.
88967         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
88968
88969 2003-03-14  Jim Meyering  <jim@meyering.net>
88970
88971         Merge changes from Coreutils.
88972         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
88973         to be const, in order to avoid warnings.
88974         (obstack_room): Likewise.
88975         (obstack_empty_p): Likewise.
88976
88977 2003-03-14  Bruno Haible  <bruno@clisp.org>
88978
88979         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
88980         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
88981
88982 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88983
88984         Merge changes from Bison.
88985         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
88986         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
88987         when compiling Bison 1.875's `bitset bset = obstack_alloc
88988         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
88989         * lib/hash.c: Include <stdbool.h> unconditionally.
88990
88991 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88992
88993         * m4/onceonly.m4 (m4_quote): New macro.
88994         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
88995         Quote AC_FOREACH variable-expansions properly.
88996
88997 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88998
88999         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89000
89001 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89002
89003         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89004         Reported by Bruce Becker; see:
89005         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89006
89007 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89008             Bruno Haible  <bruno@clisp.org>
89009
89010         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89011         Reported by John Hughes, see
89012         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89013
89014 2003-02-20  Bruno Haible  <bruno@clisp.org>
89015
89016         * MODULES.html.sh (func_all_modules): Add poll.
89017
89018 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89019
89020         * modules/poll: New file.
89021
89022 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89023
89024         * lib/poll_.h: New file.
89025         * lib/poll.c: New file.
89026
89027 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89028
89029         * m4/poll.m4: New file.
89030
89031 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89032
89033         * modules/mathl: New file.
89034
89035 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89036
89037         * lib/mathl.h: New file.
89038         * lib/acosl.c: New file.
89039         * lib/asinl.c: New file.
89040         * lib/atanl.c: New file.
89041         * lib/ceill.c: New file.
89042         * lib/cosl.c: New file.
89043         * lib/expl.c: New file.
89044         * lib/floorl.c: New file.
89045         * lib/frexpl.c: New file.
89046         * lib/ldexpl.c: New file.
89047         * lib/logl.c: New file.
89048         * lib/sincosl.c: New file.
89049         * lib/sinl.c: New file.
89050         * lib/sqrtl.c: New file.
89051         * lib/tanl.c: New file.
89052         * lib/trigl.c: New file.
89053         * lib/trigl.h: New file.
89054
89055 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89056
89057         * m4/mathl.m4: New file.
89058
89059 2003-02-18  Bruno Haible  <bruno@clisp.org>
89060
89061         * MODULES.html.sh (func_all_modules): Add mathl.
89062
89063 2003-02-17  Bruno Haible  <bruno@clisp.org>
89064
89065         * modules/mkdtemp: New module.
89066         * MODULES.html.sh (func_all_modules): Add it.
89067
89068 2003-02-17  Bruno Haible  <bruno@clisp.org>
89069
89070         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89071
89072 2003-02-17  Bruno Haible  <bruno@clisp.org>
89073
89074         * lib/mkdtemp.h: New file, from GNU gettext.
89075         * lib/mkdtemp.c: New file, from GNU gettext.
89076
89077 2003-02-02  Jim Meyering  <jim@meyering.net>
89078
89079         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89080         e.g. glibc-2.2.93.
89081
89082 2003-01-31  Bruno Haible  <bruno@clisp.org>
89083
89084         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89085         'rpl_rename'.
89086         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89087         'rpl_strnlen'.
89088         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89089         'rpl_strtod'.
89090         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89091         'rpl_utime'.
89092
89093 2003-01-31  Bruno Haible  <bruno@clisp.org>
89094
89095         * lib/rename.c: #undef rename before defining rpl_rename.
89096         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89097
89098 2003-01-30  Bruno Haible  <bruno@clisp.org>
89099
89100         * modules/vasnprintf, modules/vasprintf: New modules.
89101         * MODULES.html.sh (func_all_modules): Add them.
89102
89103 2003-01-30  Bruno Haible  <bruno@clisp.org>
89104
89105         * m4/signed.m4: New file, from GNU gettext.
89106         * m4/longdouble.m4: New file, from GNU gettext.
89107         * m4/wchar_t.m4: New file, from GNU gettext.
89108         * m4/wint_t.m4: New file, from GNU gettext.
89109         * m4/vasnprintf.m4: New file.
89110         * m4/vasprintf.m4: New file.
89111
89112 2003-01-30  Bruno Haible  <bruno@clisp.org>
89113
89114         * lib/printf-args.h: New file, from GNU gettext.
89115         * lib/printf-args.c: New file, from GNU gettext.
89116         * lib/printf-parse.h: New file, from GNU gettext.
89117         * lib/printf-parse.c: New file, from GNU gettext.
89118         * lib/vasnprintf.h: New file, from GNU gettext.
89119         * lib/vasnprintf.c: New file, from GNU gettext.
89120         * lib/asnprintf.c: New file, from GNU gettext.
89121         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89122         * lib/vasprintf.c: New file, from GNU gettext.
89123         * lib/asprintf.c: New file, from GNU gettext.
89124
89125 2003-01-29  Bruno Haible  <bruno@clisp.org>
89126
89127         * modules/stpncpy: New module.
89128         * MODULES.html.sh (func_all_modules): Add it.
89129
89130 2003-01-29  Bruno Haible  <bruno@clisp.org>
89131
89132         * m4/stpncpy.m4: New file.
89133
89134 2003-01-29  Bruno Haible  <bruno@clisp.org>
89135
89136         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89137         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89138
89139 2003-01-28  Bruno Haible  <bruno@clisp.org>
89140
89141         * modules/c-ctype: New module.
89142         * MODULES.html.sh (func_all_modules): Add it.
89143
89144 2003-01-28  Bruno Haible  <bruno@clisp.org>
89145
89146         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89147         Paul Eggert.
89148         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89149         Paul Eggert.
89150
89151 2003-01-27  Bruno Haible  <bruno@clisp.org>
89152
89153         * modules/xsetenv: New module.
89154         * MODULES.html.sh (func_all_modules): Add it.
89155
89156 2003-01-27  Bruno Haible  <bruno@clisp.org>
89157
89158         * lib/xsetenv.h: New file, from GNU gettext.
89159         * lib/xsetenv.c: New file, from GNU gettext.
89160
89161 2003-01-23  Jim Meyering  <jim@meyering.net>
89162
89163         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89164         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89165
89166 2003-01-23  Bruno Haible  <bruno@clisp.org>
89167
89168         * modules/minmax: New module.
89169         * MODULES.html.sh (func_all_modules): Add it.
89170
89171 2003-01-23  Bruno Haible  <bruno@clisp.org>
89172
89173         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89174         Eggert.
89175
89176 2003-01-22  Bruno Haible  <bruno@clisp.org>
89177
89178         * modules/exit: New module.
89179         * MODULES.html.sh (func_all_modules): Add it.
89180
89181 2003-01-22  Bruno Haible  <bruno@clisp.org>
89182
89183         * lib/exit.h: New file, from GNU gettext.
89184
89185 2003-01-19  Bruno Haible  <bruno@clisp.org>
89186
89187         * gnulib-tool: Recognize option --extract-maintainer.
89188         (func_get_maintainer): New function.
89189         * modules/*: Add Maintainer entry.
89190
89191 2003-01-16  Jim Meyering  <jim@meyering.net>
89192
89193         * m4/regex.m4: The `regex' struct is both input and output.
89194         Initialize it before each use.  Patch by Tim Waugh.
89195
89196 2003-01-16  Bruno Haible  <bruno@clisp.org>
89197
89198         * MODULES.html.sh: Add a table of contents. Add the module name as
89199         leftmost column. Add hyperlinks.
89200
89201 2003-01-15  Bruno Haible  <bruno@clisp.org>
89202
89203         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89204
89205 2003-01-15  Bruno Haible  <bruno@clisp.org>
89206
89207         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89208         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89209         suffix.
89210
89211 2003-01-15  Bruno Haible  <bruno@clisp.org>
89212
89213         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89214
89215 2003-01-15  Bruno Haible  <bruno@clisp.org>
89216
89217         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89218         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89219
89220 2003-01-14  Jim Meyering  <jim@meyering.net>
89221
89222         * lib/same.c (same_name): Tweak a comment.
89223
89224 2003-01-14  Bruno Haible  <bruno@clisp.org>
89225
89226         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89227         when a string comparison is sufficient.
89228
89229 2003-01-14  Bruno Haible  <bruno@clisp.org>
89230
89231         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89232         'unsigned int'.
89233
89234 2003-01-14  Bruno Haible  <bruno@clisp.org>
89235
89236         * lib/hash-pjw.c: Add comment about low quality of this function.
89237
89238 2003-01-13  Bruno Haible  <bruno@clisp.org>
89239
89240         * modules/stpcpy: Distribute lib/stpcpy.h.
89241         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89242
89243 2003-01-13  Bruno Haible  <bruno@clisp.org>
89244
89245         * modules/*: Add a description.
89246         * modules/strpbrk: Fix Makefile.am snippet.
89247         * modules/strtoimax: Fix dependencies.
89248         * modules/strtoumax: Likewise.
89249
89250 2003-01-13  Bruno Haible  <bruno@clisp.org>
89251
89252         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89253         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89254         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89255
89256 2003-01-13  Bruno Haible  <bruno@clisp.org>
89257
89258         * gnulib-tool (func_create_testdir): Store config/* files in the main
89259         directory.
89260         * config.rpath: Move to ...
89261         * config/config.rpath: ... here.
89262         * modules/gettext: Contains config/config.rpath, not config.rpath.
89263         * modules/iconv: Likewise.
89264
89265 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89266
89267         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89268         to avoid collisions with libcurses and libreadline.
89269
89270         * m4/getstr.m4: Remove.
89271         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89272
89273 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89274
89275         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89276         to avoid collisions with libcurses and libreadline.
89277
89278         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89279         * lib/getstr.h, getstr.c: Remove.
89280         * lib/getline.c: Include "getline.h", to check interface.
89281         Move body of old getstr.c here: this defines MIN_CHUNK and
89282         declares getdelim2, which is renamed from getstr.
89283         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89284
89285         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89286         All uses changed.
89287         * lib/linebuffer.h: Likewise.
89288         (readline): Remove backward-compatibility macro.
89289
89290 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89291
89292         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89293         to avoid collisions with libcurses and libreadline.
89294         * getstr: Remove.
89295         * MODULES.html.sh: Remove getstr.
89296         * modules/getline: Depend on unlocked-io, not getstr.
89297
89298 2003-01-12  Jim Meyering  <jim@meyering.net>
89299
89300         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89301
89302 2003-01-10  Bruno Haible  <bruno@clisp.org>
89303
89304         * modules/alloca: Change Makefile.am requirements. Simplify Include
89305         requirements. Add lib/alloca_.h to file list.
89306
89307 2003-01-10  Bruno Haible  <bruno@clisp.org>
89308
89309         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89310
89311 2003-01-10  Bruno Haible  <bruno@clisp.org>
89312
89313         * lib/alloca_.h: New file.
89314         * lib/getdate.y: Unconditionally include alloca.h.
89315         * lib/makepath.c: Likewise.
89316         * lib/setenv.c: Likewise.
89317         * lib/userspec.c: Likewise.
89318
89319 2003-01-09  Karl Berry  <karl@gnu.org>
89320
89321         * MODULES.html.sh: include `dirname $0` in PATH, to find
89322         gnulib-tool.
89323
89324 2003-01-09  Bruno Haible  <bruno@clisp.org>
89325
89326         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89327         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89328
89329 2003-01-09  Bruno Haible  <bruno@clisp.org>
89330
89331         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89332
89333 2003-01-09  Bruno Haible  <bruno@clisp.org>
89334
89335         * lib/stdbool.h.in: New file.
89336
89337 2003-01-09  Bruno Haible  <bruno@clisp.org>
89338
89339         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89340         * MODULES.html.sh: Likewise.
89341
89342 2003-01-08  Jim Meyering  <jim@meyering.net>
89343
89344         * lib/full-write.c: Undefine and define-away `const' after inclusion
89345         of errno.h, not before.  Suggestion from Bruno Haible.
89346
89347 2003-01-08  Bruno Haible  <bruno@clisp.org>
89348
89349         * modules/full-read: Depend on full-write.
89350
89351 2003-01-08  Bruno Haible  <bruno@clisp.org>
89352
89353         * lib/safe-read.c: Include specification header first, to ensure its
89354         selfcontainedness.
89355         * lib/full-write.c: Likewise.
89356
89357 2003-01-07  Jim Meyering  <jim@meyering.net>
89358
89359         * lib/full-write.c: Rework so that it may serve to define full_read,
89360         too.
89361         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89362
89363 2003-01-07  Bruno Haible  <bruno@clisp.org>
89364
89365         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89366         <inttypes.h>.
89367         * lib/xstrtol.h: Likewise.
89368         * lib/xstrtoimax.c: Likewise.
89369         * lib/xstrtoumax.c: Likewise.
89370         * lib/human.h: Likewise.
89371
89372         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89373         on systems that have <inttypes.h> but not <stdint.h>.
89374
89375 2003-01-07  Bruno Haible  <bruno@clisp.org>
89376
89377         * MODULES.html.sh: Add copyright notice.
89378         (missed_files): Omit CVS directory entries.
89379         (func_module): Make it work with sed-3.02.
89380         * MODULES.txt: Remove file.
89381
89382 2003-01-06  Jim Meyering  <jim@meyering.net>
89383
89384         * lib/version-etc.c: Update year in translatable copyright string.
89385
89386 2003-01-03  Karl Berry  <karl@gnu.org>
89387
89388         * config/config.{guess,sub}: update from prep.
89389
89390 2003-01-02  Karl Berry  <karl@gnu.org>
89391
89392         * doc/COPYING.DOC: belatedly updated to 1.2.
89393
89394 2003-01-01  Karl Berry  <karl@gnu.org>
89395
89396         * gnulib-tool (func_verify_module): report module name $module in
89397         error message, not $1.
89398         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89399         be created, only if it doesn't exist.
89400         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89401
89402 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89403
89404         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89405
89406 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89407
89408         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89409         memcmp if strcoll doesn't work.
89410
89411 2002-12-31  Bruno Haible  <bruno@clisp.org>
89412
89413         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89414         nonempty.
89415
89416 2002-12-31  Bruno Haible  <bruno@clisp.org>
89417
89418         * lib/memcoll.c (STRCOLL): New macro.
89419         (memcoll): Use it.
89420
89421 2002-12-31  Bruno Haible  <bruno@clisp.org>
89422
89423         * lib/localcharset.h: New file.
89424         * lib/localcharset.c: Include it.
89425         * lib/unicodeio.c: Likewise.
89426
89427 2002-12-31  Bruno Haible  <bruno@clisp.org>
89428
89429         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89430         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89431
89432 2002-12-31  Bruno Haible  <bruno@clisp.org>
89433
89434         * lib/getline.h: Include <stddef.h>, for size_t.
89435
89436         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89437         * lib/unicodeio.c: Don't include <stddef.h>.
89438
89439 2002-12-31  Bruno Haible  <bruno@clisp.org>
89440
89441         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89442         HAVE_TM_ZONE.
89443
89444 2002-12-24  Karl Berry  <karl@gnu.org>
89445
89446         * config/config.guess: update from prep.
89447
89448 2002-12-24  Bruno Haible  <bruno@clisp.org>
89449
89450         General infrasructure.
89451         * m4/README: Rewritten.
89452         * m4/onceonly.m4: New file.
89453         * m4/onceonly_2_57.m4: New file.
89454
89455         Module atexit.
89456         * m4/atexit.m4: New file.
89457
89458         Module strtod.
89459         * m4/strtod.m4: New file.
89460
89461         Module strtol.
89462         * m4/strtol.m4: New file.
89463
89464         Module strtoul.
89465         * m4/strtoul.m4: New file.
89466
89467         Module memchr.
89468         * m4/memchr.m4: New file.
89469
89470         Module memcmp.
89471         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89472         (jm_FUNC_MEMCMP): Invoke it.
89473
89474         Module memcpy.
89475         * m4/memcpy.m4: New file.
89476
89477         Module memmove.
89478         * m4/memmove.m4: New file.
89479
89480         Module memset.
89481         * m4/memset.m4: New file.
89482
89483         Module strcspn.
89484         * m4/strcspn.m4: New file.
89485
89486         Module strpbrk.
89487         * m4/strpbrk.m4: New file.
89488
89489         Module strstr.
89490         * m4/strstr.m4: New file.
89491
89492         Module strerror.
89493         * m4/strerror.m4: New file.
89494
89495         Module mktime.
89496         * m4/mktime.m4: Renamed from jm-mktime.m4.
89497         (gl_PREREQ_MKTIME): New macro.
89498         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89499
89500         Module malloc.
89501         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89502         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89503         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89504
89505         Module realloc.
89506         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89507         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89508         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89509
89510         Module strftime.
89511         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89512         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89513         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89514         gl_TM_GMTOFF.
89515         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89516
89517         Module xalloc.
89518         * m4/xalloc.m4: New file.
89519
89520         Module alloca.
89521         * m4/alloca.m4: New file.
89522
89523         Module putenv.
89524         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89525         (jm_FUNC_PUTENV): Invoke it.
89526
89527         Module setenv.
89528         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89529         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89530         when invoked twice.
89531         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89532         gt_FUNC_SETENV.
89533
89534         Module memrchr.
89535         * m4/memrchr.m4: New file.
89536
89537         Module stpcpy.
89538         * m4/stpcpy.m4: New file.
89539
89540         Module strcase.
89541         * m4/strcase.m4: New file.
89542
89543         Module strdup.
89544         * m4/strdup.m4: New file.
89545
89546         Module strnlen.
89547         * m4/strnlen.m4: New file.
89548
89549         Module strndup.
89550         * m4/strndup.m4: New file.
89551
89552         Module xstrtod.
89553         * m4/xstrtod.m4: New file.
89554
89555         Module xstrtol.
89556         * m4/xstrtol.m4: New file.
89557
89558         Module getdate.
89559         * m4/getdate.m4: New file.
89560
89561         Module unlocked-io.
89562         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89563         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89564         * m4/jm-glibc-io.m4n: Remove file.
89565
89566         Module long-options.
89567         * m4/long-options.m4: New file.
89568
89569         Module md5.
89570         * m4/md5.m4: New file.
89571
89572         Module sha.
89573         * m4/sha.m4: New file.
89574
89575         Module getstr.
89576         * m4/getstr.m4: New file.
89577
89578         Module getline.
89579         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89580         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89581         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89582         simply getline. Infoke gl_PREREQ_GETLINE.
89583
89584         Module obstack.
89585         * m4/obstack.m4: New file.
89586
89587         Module hash.
89588         * m4/hash.m4: New file.
89589
89590         Module readtokens.
89591         * m4/readtokens.m4: New file.
89592
89593         Module strverscmp.
89594         * m4/strverscmp.m4: New file.
89595
89596         Module stdbool.
89597         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89598         OSF/1.
89599
89600         Module strtoll.
89601         * m4/strtoll.m4: New file.
89602
89603         Module strtoull.
89604         * m4/strtoull.m4: New file.
89605
89606         Module strtoimax.
89607         * m4/strtoimax.m4: New file.
89608
89609         Module strtoumax.
89610         * m4/strtoumax.m4: New file.
89611
89612         Module xstrtoimax.
89613         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89614         jm_AC_PREREQ_XSTRTOIMAX.
89615         Moved the strtol prerequisites to strtol.m4.
89616         Moved the strtoll prerequisites to strtoll.m4.
89617         Moved the strtoimax prerequisites to strtoimax.m4.
89618
89619         Module xstrtoumax.
89620         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89621         jm_AC_PREREQ_XSTRTOUMAX.
89622         Moved the strtoul prerequisites to strtoul.m4.
89623         Moved the strtoull prerequisites to strtoull.m4.
89624         Moved the strtoumax prerequisites to strtoumax.m4.
89625
89626         Module chown.
89627         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89628         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89629
89630         Module dup2.
89631         * m4/dup2.m4: New file.
89632
89633         Module ftruncate.
89634         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89635         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89636
89637         Module getgroups.
89638         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89639         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89640
89641         Module gettimeofday.
89642         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89643         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89644         gl_PREREQ_GETTIMEOFDAY.
89645
89646         Module mkdir.
89647         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89648         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89649
89650         Module mkstemp.
89651         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89652         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89653         jm_AC_TYPE_UINTMAX_T.
89654         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89655
89656         Module stat.
89657         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89658         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89659
89660         Module lstat.
89661         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89662         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89663
89664         Module timespec.
89665         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89666         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89667         * m4/st_mtim.m4: Indentation.
89668
89669         Module nanosleep.
89670         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89671         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89672         gl_PREREQ_NANOSLEEP.
89673
89674         Module regex.
89675         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89676         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89677         (gl_REGEX): New macro.
89678
89679         Module rename.
89680         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89681         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89682
89683         Module rmdir.
89684         * m4/rmdir.m4: New file.
89685
89686         Module utime.
89687         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89688         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89689         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89690
89691         Module dirname.
89692         * m4/dirname.m4: New file.
89693
89694         Module getopt.
89695         * m4/getopt.m4: New file.
89696
89697         Module unistd-safer.
89698         * m4/unistd-safer.m4: New file.
89699
89700         Module fnmatch.
89701         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89702         declaration.
89703         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89704         (gl_FUNC_FNMATCH_POSIX): New macro.
89705         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89706         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89707         simply fnmatch.
89708
89709         Module exclude.
89710         * m4/exclude.m4: New file.
89711
89712         Module human.
89713         * m4/human.m4: New file.
89714
89715         Module acl.
89716         * m4/acl.m4: Nop.
89717
89718         Module backupfile.
89719         * m4/backupfile.m4: New file.
89720         * m4/d-ino.m4: Indentation.
89721
89722         Module fsusage.
89723         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89724         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89725         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89726
89727         Module dirfd.
89728         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89729         requirements.
89730
89731         Module euidaccess.
89732         * m4/euidaccess.m4: New file.
89733
89734         Module file-type.
89735         * m4/file-type.m4: New file.
89736
89737         Module fileblocks.
89738         * m4/fileblocks.m4: New file.
89739
89740         Module filemode.
89741         * m4/filemode.m4: New file.
89742
89743         Module isdir.
89744         * m4/isdir.m4: New file.
89745
89746         Module lchown.
89747         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89748         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89749
89750         Module makepath.
89751         * m4/makepath.m4: New file.
89752
89753         Module modechange.
89754         * m4/modechange.m4: New file.
89755
89756         Module mountlist.
89757         * m4/mountlist.m4: New file.
89758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89759         Indentation.
89760
89761         Module path-concat.
89762         * m4/path-concat.m4: New file.
89763
89764         Module pathmax.
89765         * m4/pathmax.m4: New file.
89766
89767         Module same.
89768         * m4/same.m4: New file.
89769
89770         Module save-cwd.
89771         * m4/save-cwd.m4: New file.
89772
89773         Module savedir.
89774         * m4/savedir.m4: New file.
89775
89776         Module xgetcwd.
89777         * m4/xgetcwd.m4: New file.
89778         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89779
89780         Module xreadlink.
89781         * m4/xreadlink.m4: New file.
89782
89783         Module safe-read.
89784         * m4/safe-read.m4: New file.
89785
89786         Module safe-write.
89787         * m4/safe-write.m4: New file.
89788
89789         Module closeout.
89790         * m4/closeout.m4: New file.
89791
89792         Module stdio-safer.
89793         * m4/stdio-safer.m4: New file.
89794
89795         Module getpass.
89796         * m4/getpass.m4: New file.
89797
89798         Module getugroups.
89799         * m4/getugroups.m4: New file.
89800
89801         Module group-member.
89802         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89803         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89804
89805         Module idcache.
89806         * m4/idcache.m4: New file.
89807
89808         Module userspec.
89809         * m4/userspec.m4: New file.
89810
89811         Module gettime.
89812         * m4/clock_time.m4: New file.
89813         * m4/gettime.m4: New file.
89814
89815         Module settime.
89816         * m4/settime.m4: New file.
89817
89818         Module posixtm.
89819         * m4/posixtm.m4: New file.
89820
89821         Module gethostname.
89822         * m4/gethostname.m4: New file.
89823
89824         Module canon-host.
89825         * m4/canon-host.m4: New file.
89826
89827         Module gettext.
89828         * m4/codeset.m4: New file, from gettext-0.11.5.
89829         * m4/gettext.m4: New file, from gettext-0.11.5.
89830         * m4/glibc21.m4: New file, from gettext-0.11.5.
89831         * m4/iconv.m4: New file, from gettext-0.11.5.
89832         * m4/intdiv0.m4: New file, from gettext-0.11.5.
89833         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
89834         * m4/inttypes.m4: New file, from gettext-0.11.5.
89835         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
89836         * m4/isc-posix.m4: New file, from gettext-0.11.5.
89837         * m4/lcmessage.m4: New file, from gettext-0.11.5.
89838         * m4/lib-ld.m4: New file, from gettext-0.11.5.
89839         * m4/lib-link.m4: New file, from gettext-0.11.5.
89840         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
89841         * m4/progtest.m4: New file, from gettext-0.11.5.
89842         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
89843         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
89844         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
89845
89846         Module localcharset.
89847         * m4/localcharset.m4: New file.
89848
89849         Module hard-locale.
89850         * m4/hard-locale.m4: New file.
89851
89852         Module mbswidth.
89853         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
89854         onceonly macros.
89855         * m4/mbrtowc.m4: Add comment.
89856
89857         Module memcasecmp.
89858         * m4/memcasecmp.m4: New file.
89859
89860         Module memcoll.
89861         * m4/memcoll.m4: New file.
89862
89863         Module unicodeio.
89864         * m4/unicodeio.m4: New file.
89865
89866         Module rpmatch.
89867         * m4/rpmatch.m4: New file.
89868
89869         Module yesno.
89870         * m4/yesno.m4: New file.
89871
89872         Module exitfail.
89873         * m4/exitfail.m4: New file.
89874
89875         Module c-stack.
89876         * m4/c-stack.m4 (gl_C_STACK): New macro.
89877         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
89878
89879         Module error.
89880         * m4/error.m4 (gl_ERROR): New macro.
89881         (jm_PREREQ_ERROR): Use onceonly macros.
89882
89883         Module fatal.
89884         * m4/fatal.m4: New file.
89885
89886         Module getloadavg.
89887         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
89888         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
89889
89890         Module getpagesize.
89891         * m4/getpagesize.m4: New file.
89892
89893         Module getusershell.
89894         * m4/getusershell.m4: New file.
89895
89896         Module physmem.
89897         * m4/physmem.m4: New file.
89898
89899         Module posixver.
89900         * m4/posixver.m4: New file.
89901
89902         Module quotearg.
89903         * m4/quotearg.m4: New file.
89904
89905         Module quote.
89906         * m4/quote.m4: New file.
89907
89908         Module readutmp.
89909         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
89910
89911         Module sig2str.
89912         * m4/sig2str.m4: New file.
89913
89914         Other.
89915         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
89916         ulonglong.m4.
89917         * m4/intmax_t.m4: New file.
89918         * m4/d-type.m4: Indentation.
89919         * m4/jm-macros.m4: Update.
89920         * m4/prereq.m4 (jm_PREREQ): Update.
89921         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
89922         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
89923         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
89924         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
89925         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
89926         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
89927         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
89928         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
89929         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
89930         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
89931         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
89932         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
89933         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
89934         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
89935         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
89936         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
89937         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
89938         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
89939         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
89940
89941 2002-12-24  Bruno Haible  <bruno@clisp.org>
89942
89943         * MODULES.txt: Update according to m4/ changes.
89944
89945         Module gettext.
89946         * config.rpath: New file, from gettext-0.11.5.
89947
89948         * modules/*: New module descriptions.
89949         * gnulib-tool: New file.
89950         * MODULES.html.sh: New file.
89951
89952 2002-12-21  Karl Berry  <karl@gnu.org>
89953
89954         * doc/fdl.texi: update to version 1.2.
89955
89956 2002-12-19  Karl Berry  <karl@gnu.org>
89957
89958         * config/config.guess: update from prep.
89959
89960 2002-12-18  Bruno Haible  <bruno@clisp.org>
89961
89962         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
89963         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
89964
89965 2002-12-17  Bruno Haible  <bruno@clisp.org>
89966
89967         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
89968         stdlib.h, string.h.
89969
89970 2002-12-17  Bruno Haible  <bruno@clisp.org>
89971
89972         * lib/canon-host.c (strdup): Remove unused declaration.
89973
89974         * lib/fsusage.c: Include full_read.h.
89975         (get_fs_usage): Use full_read instead of safe_read.
89976
89977         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
89978
89979 2002-12-12  Karl Berry  <karl@gnu.org>
89980
89981         * config/config.guess: update from prep.
89982
89983 2002-12-11  Bruno Haible  <bruno@clisp.org>
89984
89985         * m4/setenv.m4: New file, from gettext-0.11.5.
89986
89987 2002-12-11  Bruno Haible  <bruno@clisp.org>
89988
89989         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
89990         not unsetenv().
89991         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
89992         modifications:
89993
89994         2002-12-11  Bruno Haible  <bruno@clisp.org>
89995
89996                 * setenv.c (alloca): Fall back to malloc.
89997                 (freea): New macro.
89998                 (setenv): Use freea() to free memory allocated with alloca().
89999
90000         2002-11-13  Bruno Haible  <bruno@clisp.org>
90001
90002                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90003                 function declarations.
90004                 * unsetenv.c (unsetenv): Likewise.
90005
90006         2002-03-04  Bruno Haible  <bruno@clisp.org>
90007
90008                 Portability to AIX 4.3.3.
90009                 * unsetenv.c: New file, extracted from setenv.c.
90010                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90011
90012         2001-12-20  Bruno Haible  <bruno@clisp.org>
90013
90014                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90015                 use malloc instead. For SunOS 4.
90016
90017         2001-12-11  Bruno Haible  <bruno@clisp.org>
90018
90019                 * setenv.c: Declare alloca.
90020                 (compar_fn_t): New typedef.
90021                 (KNOWN_VALUE, STORE_VALUE): Use it.
90022
90023         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90024         setenv.h.
90025
90026 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90027
90028         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90029         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90030         Choose values that are less likely to collide with system fnmatch
90031         options.
90032         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90033         defined (e.g., a pure POSIX system).
90034         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90035         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90036
90037 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90038
90039         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90040         a pain in practice to deal with generated m4 files.  This change
90041         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90042
90043         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90044         and jm-glibc-io.m4, as they are no longer a special case.
90045         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90046         kludge and the auto-generation stuff.  Check only whether the
90047         functions are declared, not whether they exist, since older hosts
90048         that don't declare the functions can't use the optimization anyway.
90049
90050 2002-12-06  Jim Meyering  <jim@meyering.net>
90051
90052         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90053
90054         Merge in changes from libc's misc/error.c, in preparation
90055         for the merge of gnulib's changes back into libc.
90056
90057         * lib/error.c (_): Define only if not already defined.
90058         Move definition to follow all #include directives.
90059         Include unlocked-io.h only if !_LIBC.
90060         [_LIBC]: Include <libio/libioP.h>.
90061         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90062         (fflush): Tweak definition to use INTUSE.
90063         (putc): Define.
90064
90065 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90066
90067         * lib/alloca.c [defined emacs]: Include "lisp.h".
90068         (xalloc_die) [defined emacs]: New macro.
90069         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90070         [! defined emacs]: Include <xalloc.h>.
90071         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90072         (pointer): Typedef to POINTER_TYPE *.
90073         (malloc): Remove decl; we now always use xmalloc.
90074         (alloca): Use old-style definition, since Emacs needs this.
90075         Check for arithmetic overflow when computing combined size.
90076
90077 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90078
90079         Do not generate unlocked-io.h automatically, since it's easier to
90080         maintain it by hand.
90081
90082         * lib/unlocked-io.h: New file, from GNU diffutils,
90083         but with proper copyright notice and attribution.
90084         * lib/gen-uio: Remove.
90085         * lib/Makefile.am: Add copyright notice.
90086         (libfetish_a_SOURCES): Add unlocked-io.h.
90087         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90088         (DISTCLEANFILES, io_functions): Remove macros.
90089         (EXTRA_DIST): Remove gen_uio.
90090         (unlocked-io.h): Remove rule.
90091
90092 2002-12-04  Jim Meyering  <jim@meyering.net>
90093
90094         Reflect the fact that stat.c and lstat.c are no longer generated.
90095         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90096         (DISTCLEANFILES): Likewise.
90097         (EXTRA_DIST): Likewise.
90098         (all_local): Don't depend on stat.c or lstat.c.
90099         (stat.c, lstat.c): Remove rules.
90100         (EXTRA_DIST): Remove xstat.in.
90101
90102         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90103         * lib/stat.c: New file.  Contents mostly from xstat.in.
90104         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90105         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90106
90107         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90108         too.
90109         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90110
90111 2002-12-03  Jim Meyering  <jim@meyering.net>
90112
90113         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90114         but not semantics, to minimize the differences between these two files.
90115         (safe_read): Change comment to mention SAFE_READ_ERROR.
90116
90117         * lib/safe-read.c (IS_EINTR): Define.
90118         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90119
90120 2002-12-02  Jim Meyering  <jim@meyering.net>
90121
90122         * lib/safe-read.c (EINTR): Define.
90123         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90124         (INT_MAX): Provide fallback.
90125         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90126
90127         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90128
90129 2002-12-02  Bruno Haible  <bruno@clisp.org>
90130
90131         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90132         Define, taken from safe-read.c.
90133         (INT_MAX): Provide fallback.
90134         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90135         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90136
90137         * lib/safe-read.c (EINTR): Remove definition.
90138         (safe_read): Don't use EINTR if it is absent.
90139
90140 2002-12-01  Jim Meyering  <jim@meyering.net>
90141
90142         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90143         zero.
90144         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90145
90146 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90147
90148         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90149         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90150         with `if (! (value < limit)) abort ();', for readability.
90151
90152 2002-11-26  Karl Berry  <karl@gnu.org>
90153
90154         * lib/strdup.c: copy from libc again, with jim's ok.
90155         * lib/.cppi-disable: re-add strdup.c
90156
90157 2002-11-25  Karl Berry  <karl@gnu.org>
90158
90159         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90160         instead of "strtol.c".
90161
90162 2002-11-25  Karl Berry  <karl@gnu.org>
90163
90164         * config/install-sh: update from automake for variable quoting, $0 in
90165         error msgs, etc.
90166
90167         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90168         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90169         entry.
90170
90171 2002-11-25  Jim Meyering  <jim@meyering.net>
90172
90173         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90174
90175 2002-11-24  Karl Berry  <karl@gnu.org>
90176
90177         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90178         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90179
90180 2002-11-24  Jim Meyering  <jim@meyering.net>
90181
90182         Update from coreutils:
90183
90184         * lib/mktime.c: Merge in changes from libc.
90185
90186         Avoid a link-time failure on some Linux systems.
90187         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90188         (otherwise).
90189         (__mon_yday): Declare with the STATIC attribute.
90190         (__mktime_internal): Likewise.
90191         Based on a report from Greg Schafer.
90192
90193 2002-11-23  Jim Meyering  <jim@meyering.net>
90194
90195         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90196         Use `unsigned', not `int', as type of index.
90197
90198         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90199
90200         * lib/fsusage.c: Remove unneeded parentheses around operands of
90201         `defined'.
90202
90203 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90204
90205         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90206         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90207         so that we can be included first.
90208         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90209         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90210         No need to include stddef.h or sys/types.h any more.
90211         Surround local include files with "", not "<>".
90212         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90213         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90214         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90215         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90216         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90217         (ISPRINT): Remove; no longer needed now that we assume C89.
90218
90219         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90220         Preserve errno.
90221
90222         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90223         quotearg_char): Use SIZE_MAX rather than
90224         (size_t) -1 when we are talking about "infinity".
90225
90226         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90227
90228 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90229
90230         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90231         hint that one should use `if (! x) abort ();' rather than `assert
90232         (x);', and anyway it's one less thing to worry about configuring.
90233         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90234         hash_rehash, hash_insert): Use abort rather than assert.
90235
90236 2002-11-22  Bruno Haible  <bruno@clisp.org>
90237
90238         * lib/safe-read.h: Assume C89. Add comments.
90239         (safe_read): Change return type to size_t.
90240         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90241         byte counts > SSIZE_MAX correctly.
90242         * lib/safe-write.h: New file.
90243         * lib/safe-write.c: New file.
90244         * lib/full-read.h: New file.
90245         * lib/full-read.c: New file.
90246         * lib/full-write.h: Assume C89. Add comments.
90247         * lib/full-write.c: Include safe-write.h.
90248         (full_write): Rewritten to use safe_write.
90249         Suggested by Jim Meyering and Paul Eggert.
90250
90251 2002-11-21  Jim Meyering  <jim@meyering.net>
90252
90253         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90254
90255         Merge in changes from the coreutils.
90256
90257         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90258         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90259         <stdint.h>.
90260         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90261         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90262         int.  Work more efficiently if X is the same width as uintmax_t.
90263         Do not compare X to -1, to avoid bogus compiler warning.
90264         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90265         Don't assume that f_frsize and f_bsize are the same type.
90266
90267         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90268         warning on FreeBSD.
90269
90270         * lib/makepath.c (make_path): Restore umask *before* creating the final
90271         component.
90272         (make_path): Minor reformatting.
90273
90274         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90275         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90276         HAVE_MALLOC/HAVE_REALLOC.
90277
90278         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90279         dummy ones.  At least on GNU/Linux systems, `auto' means something
90280         else.
90281         From Michael Stone.
90282
90283 2002-11-21  Bruno Haible  <bruno@clisp.org>
90284
90285         Remove case insensitive option matching.
90286         * lib/argmatch.h (argcasematch): Remove declaration.
90287         (ARGCASEMATCH): Remove macro.
90288         (__xargmatch_internal): Remove case_sensitive argument.
90289         (XARGMATCH): Update.
90290         (XARGCASEMATCH): Remove macro.
90291         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90292         case_sensitive argument.
90293         (argcasematch): Remove function.
90294         (__xargmatch_internal): Remove case_sensitive argument.
90295         (main): Use XARGMATCH instead of XARGCASEMATCH.
90296
90297         * lib/xmalloc.c: Change compile-time error message. Add comment about
90298         required autoconf version.
90299
90300 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90301
90302         Merge argmatch cleanups from Bison.  Assume C89.
90303
90304         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90305         Include stdlib.h, for EXIT_FAILURE.
90306         Always include <string.h>, since we assume C89.
90307         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90308         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90309         Include <stddef.h> instead, since it's all we need for size_t.
90310         (PARAMS): Remove.  All uses removed.
90311         (ARRAY_CARDINALITY): Do not bother to #undef.
90312         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90313         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90314         Remove unnecessary parentheses.
90315         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90316         Insert necessary parentheses.
90317         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90318         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90319
90320 2002-11-19  Bruno Haible  <bruno@clisp.org>
90321
90322         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90323         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90324
90325         * lib/mbswidth.h (PARAMS): Remove macro.
90326         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90327         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90328
90329         * lib/gcd.h (PARAMS): Remove macro.
90330         (gcd): Use ANSI C function declarations.
90331         * lib/gcd.c (gcd): Likewise.
90332
90333 2002-11-15  Bruno Haible  <bruno@clisp.org>
90334
90335         * lib/strcspn.c: Include <stddef.h>.
90336         (strcspn): Use ANSI C function declaration. Change return type to
90337         size_t. Use NULL.
90338         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90339         (strpbrk): Use NULL.
90340         * lib/strpbrk.h (PARAMS): Remove macro.
90341         (strpbrk): Use ANSI C function declaration.
90342         * lib/strstr.c: Don't include <sys/types.h>.
90343         * lib/strstr.h (PARAMS): Remove macro.
90344         (strstr): Use ANSI C function declarations.
90345
90346 2002-11-14  Karl Berry  <karl@gnu.org>
90347
90348         * config/mkinstalldirs: `do' on separate line, instead of
90349         `for var; do'.
90350
90351 2002-11-06  Bruno Haible  <bruno@clisp.org>
90352
90353         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90354         * lib/gcd.c (gcd): Likewise.
90355
90356 2002-11-05  Bruno Haible  <bruno@clisp.org>
90357
90358         * lib/gcd.h: New file, from gettext-0.11.5.
90359         * lib/gcd.c: New file, from gettext-0.11.5.
90360
90361 2002-11-05  Bruno Haible  <bruno@clisp.org>
90362
90363         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90364         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90365         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90366         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90367
90368         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90369         <libintl.h>.
90370         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90371         <libintl.h>.
90372
90373         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90374         * lib/human.c: Include gettext.h instead of <libintl.h>.
90375         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90376         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90377         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90378         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90379         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90380         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90381         (textdomain): Remove definition.
90382         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90383
90384         * lib/long-options.c: Remove include of <libintl.h> and definition of
90385         _.
90386         * lib/same.c: Remove include of <libintl.h> and definition of _.
90387
90388 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90389
90390         * lib/config.charset: A few additions for Solaris.
90391
90392 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90393
90394         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90395         * lib/localcharset.c (locale_charset): Declare as extern "C".
90396
90397 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90398
90399         * lib/config.charset: msdos in uk_UA uses CP1125.
90400
90401 2002-11-04  Bruno Haible  <bruno@clisp.org>
90402
90403         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90404         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90405         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90406         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90407         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90408
90409 2002-11-04  Bruno Haible  <bruno@clisp.org>
90410
90411         * lib/localcharset.c (locale_charset): Don't return an empty string.
90412
90413 2002-11-04  Bruno Haible  <bruno@clisp.org>
90414
90415         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90416         aliases.
90417
90418 2002-11-04  Bruno Haible  <bruno@clisp.org>
90419
90420         * lib/config.charset: Update for newest glibc. Add canonical names
90421         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90422
90423 2002-11-04  Bruno Haible  <bruno@clisp.org>
90424
90425         * lib/config.charset: Add support for NetBSD.
90426
90427 2002-11-04  Bruno Haible  <bruno@clisp.org>
90428
90429         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90430
90431 2002-11-01  Bruno Haible  <bruno@clisp.org>
90432
90433         * configure.in: Add AC_CONFIG_AUX_DIR call.
90434         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90435         test/Makefile.
90436         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90437
90438 2002-09-28  Karl Berry  <karl@gnu.org>
90439
90440         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90441         installed automake until the next release, since changes have been
90442         made.
90443
90444 2002-09-25  Karl Berry  <karl@gnu.org>
90445
90446         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90447         * lib/getopt*: copy from libc/posix.
90448         * lib/gettext.h: copy from gettext.
90449         * lib/.cppi-disable: add strdup.c, gettext.h.
90450
90451 2002-09-25  Karl Berry  <karl@gnu.org>
90452
90453         * config/srclist.txt: enable gettext.h check.
90454         * config/config.{guess,sub}: update from prep.
90455         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90456                 from automake 1.6.3.
90457         See srclist*.
90458
90459 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90460
90461         * regex.c (PATFETCH): Remove the translating fetch.
90462         (PATFETCH_RAW): Rename to PATFETCH.
90463         (set_image_of_range): New fun.
90464         (SET_RANGE_TABLE_WORK_AREA): Use it.
90465         (regex_compile): Don't translate the pattern chars so eagerly.
90466         Only do it when inserting an `exactn' bytecode or when handling
90467         a char-range.
90468         (mutually_exclusive_p): Avoid empty statement.
90469
90470 2002-07-06  Jim Meyering  <meyering@lucent.com>
90471
90472         * m4/README: Don't mention Makefile.am.in.
90473         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90474
90475 2002-07-01  Jim Meyering  <meyering@lucent.com>
90476
90477         * lib/c-stack.c: Include sys/time.h.
90478         From Volker Borchert.
90479
90480 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90481
90482         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90483
90484 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90485
90486         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90487         New macro.  Use it uniformly instead of
90488         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90489         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90490         reported by Vin Shelton.
90491
90492 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90493
90494         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90495         Do not assume SA_SIGINFO behavior.
90496         Bug reported by Jim Meyering on NetBSD 1.5.2.
90497
90498 2002-06-22  Jim Meyering  <meyering@lucent.com>
90499
90500         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90501         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90502
90503         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90504         now that configure.ac uses AC_GNU_SOURCE.
90505         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90506         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90507
90508         Update to latest tools.  Suggestions from Paul Eggert.
90509         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90510         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90511         * m4/fnmatch.m4: Likewise.
90512         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90513         to AC_HEADER_STDBOOL
90514
90515 2002-06-22  Jim Meyering  <meyering@lucent.com>
90516
90517         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90518         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90519
90520 2002-06-22  Jim Meyering  <meyering@lucent.com>
90521
90522         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90523
90524         * lib/exitfail.c, exitfail.h: Likewise.
90525         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90526
90527         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90528         of fnmatch.h.
90529         (EXTRA_DIST): Add fnmatch_loop.c.
90530         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90531
90532         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90533         * lib/fnmatch.c: Update from diffutils-2.8.2.
90534         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90535         * lib/fnmatch.h: Remove file.
90536
90537 2002-06-21  Jim Meyering  <meyering@lucent.com>
90538
90539         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90540         * m4/mbrtowc.m4: Likewise.
90541
90542         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90543         * m4/mbswidth.m4: Reflect name change:
90544         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90545         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90546
90547         * m4/lib-link.m4: Update from gettext-0.11.2.
90548         * m4/gettext.m4: Likewise.
90549
90550         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90551         From Alfred M. Szmidt.
90552
90553 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90554
90555         * lib/file-type.h: Report an error if neither S_ISREG nor
90556         S_IFREG is defined, instead of using a test specific to glibc
90557         2.2.  This should be safe, since POSIX requires S_ISREG and
90558         Unix Version 7 had S_IFREG.  We don't need to check for
90559         <sys/types.h> since we don't use any symbols that it defines.
90560
90561 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90562
90563         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90564         $@-t, so that each temporary file name is unique and valid in the first
90565         8 characters, for operation under DOS.
90566
90567 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90568
90569         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90570
90571 2002-06-15  Jim Meyering  <meyering@lucent.com>
90572
90573         Work even with DJGPP 2.03, which lacks support for symlinks.
90574         From Richard Dawe.
90575         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90576         is defined.
90577         * lib/lchown.c (S_ISLNK): Likewise.
90578
90579 2002-06-15  Jim Meyering  <meyering@lucent.com>
90580
90581         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90582         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90583         have been included before this file.
90584
90585 2002-06-14  Jim Meyering  <meyering@lucent.com>
90586
90587         * lib/file-type.h: Use the version from diffutils-2.8.2.
90588         * lib/file-type.c: Likewise.
90589
90590 2002-06-07  Jim Meyering  <meyering@lucent.com>
90591
90592         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90593         They're needed at least for NetBSD 1.5.2.
90594         ($statxfs_includes): Include those same headers.
90595         ($statxfs_includes): Include sys/vfs.h if available.
90596         ($statxfs_includes): Likewise for sys/statvfs.h.
90597         Check for the following members in both structs statfs and statvfs:
90598         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90599
90600 2002-06-01  Jim Meyering  <meyering@lucent.com>
90601
90602         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90603         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90604
90605 2002-05-28  Jim Meyering  <meyering@lucent.com>
90606
90607         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90608         Reported by Volker Borchert.
90609
90610 2002-05-27  Jim Meyering  <meyering@lucent.com>
90611
90612         Fix a problem seen only on nonconforming systems whereby ls.c's
90613         use of localtime, and then of gettimeofday would cause trouble:
90614         the localtime call used to initialize rpl_gettimeofday's save
90615         mechanism would clobber ls's current local time information so
90616         that in any long listing the first file would always be listed
90617         with date 1970-01-01.  Analysis by Volker Borchert.
90618
90619         * lib/gettimeofday.c (localtime): Undefine.
90620         (rpl_localtime): New function.
90621
90622 2002-05-27  Jim Meyering  <meyering@lucent.com>
90623
90624         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90625         localtime.
90626
90627         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90628         use the replacement function; it wouldn't resolve at link time.
90629         Reported by Volker Borchert.
90630
90631 2002-05-22  Jim Meyering  <meyering@lucent.com>
90632
90633         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90634         file-type.h.
90635         * lib/file-type.h: New file.
90636         * lib/file-type.c (file_type): New file/function.  Extracted from
90637         diffutils.
90638
90639 2002-04-30  Jim Meyering  <meyering@lucent.com>
90640
90641         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90642
90643 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90644
90645         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90646
90647 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90648
90649         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90650         Do not check for alloca.h (no longer used) or stdbool.h (was never
90651         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90652
90653 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90654
90655         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90656
90657 2002-04-29  Jim Meyering  <meyering@lucent.com>
90658
90659         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90660         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90661         Use AC_FUNC_STRNLEN here instead.
90662
90663         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90664         With autoconf-2.53a, it's part of AC_PROG_CC.
90665
90666 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90667
90668         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90669         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90670
90671 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90672
90673         * lib/sig2str.h, lib/sig2str.c: New files.
90674         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90675
90676 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90677
90678         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90679         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90680         of 127, since 64 is the largest conceivable number for ancient
90681         nonstandard hosts.
90682         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90683
90684 2002-04-28  Jim Meyering  <meyering@lucent.com>
90685
90686         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90687
90688 2002-04-24  Jim Meyering  <meyering@lucent.com>
90689
90690         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90691         (jm_PREREQ): Use it.
90692
90693         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90694         mach/mach.h fcntl.h.
90695         Check for this function: setlocale.
90696
90697 2002-04-24  Jim Meyering  <meyering@lucent.com>
90698
90699         * lib/gettext.h: New file, from Gettext.
90700         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90701         (libfetish_a_SOURCES): Add gettext.h.
90702
90703 2002-04-16  Jim Meyering  <meyering@lucent.com>
90704
90705         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90706         ut_pid, ut_id, ut_exit.
90707
90708 2002-04-16  Jim Meyering  <meyering@lucent.com>
90709
90710         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90711         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90712         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90713
90714 2002-04-12  Jim Meyering  <meyering@lucent.com>
90715
90716         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90717         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90718         existence of the getmntinfo function.  Needed for Darwin 5.3.
90719
90720         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90721         This is necessary at least on Darwin 5.3.
90722
90723         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90724         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90725         strnlen.o in the library, and that makes some versions of ranlib
90726         object.
90727
90728 2002-04-12  Jim Meyering  <meyering@lucent.com>
90729
90730         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90731
90732 2002-04-09  Jim Meyering  <meyering@lucent.com>
90733
90734         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90735         to be more precise.  Rather than saying we're checking whether the
90736         function `works', say what we're testing.
90737         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90738         Reported by Bruno Haible.
90739
90740 2002-03-10  Jim Meyering  <meyering@lucent.com>
90741
90742         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90743         Suggestion from Santiago Vila.
90744
90745 2002-03-08  Jim Meyering  <meyering@lucent.com>
90746
90747         * lib/rename.c: Mention that this wrapper is needed also on
90748         mips-dec-ultrix4.4 systems.
90749
90750 2002-03-02  Jim Meyering  <meyering@lucent.com>
90751
90752         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90753         not HAVE_CLOCK_SETTIME.
90754
90755 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90756
90757         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90758         Check for clock_settime.
90759
90760 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90761
90762         * lib/nanosleep.h: Rename to....
90763         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90764
90765         * lib/gettime.c: New file.
90766         * lib/settime.c: New file.
90767         * lib/stime.c: Remove.
90768
90769         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90770         timespec.h.  Remove nanosleep.h.
90771
90772 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90773
90774         * m4/acl.m4: New file.
90775         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90776         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90777
90778 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90779
90780         * lib/acl.c, lib/acl.h: New files.
90781         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90782
90783 2002-02-24  Jim Meyering  <meyering@lucent.com>
90784
90785         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90786         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90787         cause trouble.  Reported by Nelson Beebe.
90788
90789 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90790
90791         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90792         compilers that don't know that xalloc_die never returns.
90793
90794 2002-02-20  Jim Meyering  <meyering@lucent.com>
90795
90796         * lib/getdate.c: Regenerate using bison-1.33.
90797
90798 2002-02-17  Jim Meyering  <meyering@lucent.com>
90799
90800         * config/config.guess (main): Don't use `head -1'; it's no longer
90801         portable. Use `sed 1q' instead.
90802
90803 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90804
90805         * m4/codeset.m4: Upgrade to gettext-0.11.
90806         * m4/gettext.m4: Upgrade to gettext-0.11.
90807         * m4/glibc21.m4: Upgrade to gettext-0.11.
90808         * m4/iconv.m4: Upgrade to gettext-0.11.
90809         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90810         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90811         * m4/lib-ld.m4: New file, from gettext-0.11.
90812         * m4/lib-link.m4: New file, from gettext-0.11.
90813         * m4/lib-prefix.m4: New file, from gettext-0.11.
90814         * m4/progtest.m4: Upgrade to gettext-0.11.
90815
90816 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90817
90818         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90819         (jm_PREREQ): Use it.
90820
90821 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90822
90823         * lib/posixver.c, lib/posixver.h: New files.
90824         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90825
90826 2002-02-02  Paul Eggert  <eggert@twinsun.com>
90827             Bruno Haible  <bruno@clisp.org>
90828
90829         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
90830         (fwrite_success_callback): New declaration.
90831         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
90832         print_unicode_char. Call failure callback instead of error.
90833         (fwrite_success_callback): New function.
90834         (exit_failure_callback): New function.
90835         (fallback_failure_callback): New function.
90836         (print_unicode_char): Call unicode_to_mb.
90837
90838 2002-01-26  Jim Meyering  <meyering@lucent.com>
90839
90840         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
90841         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
90842
90843 2002-01-26  Jim Meyering  <meyering@lucent.com>
90844
90845         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
90846
90847 2002-01-22  Paul Eggert  <eggert@twinsun.com>
90848
90849         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
90850
90851 2002-01-22  Jim Meyering  <meyering@lucent.com>
90852
90853         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
90854         Otherwise, some versions of automake would omit the rule that makes
90855         Makefile from Makefile.in.
90856
90857 2002-01-21  Paul Eggert  <eggert@twinsun.com>
90858
90859         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
90860         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90861         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
90862         (memcoll): Set errno to zero if there is no error.
90863
90864         * lib/quotearg.c (quotearg_buffer_restyled):
90865         Fix bug with quoting buffers containing NUL when backslashing escapes.
90866         This bug was exposed by the other changes in this patch.
90867         (quotearg_n_options): New arg ARGSIZE.
90868         All callers changed.
90869         (quoting_options_from_style): New function.
90870         (quotearg_n_style): Use it.
90871         (quotearg_n_style_mem): New function.
90872
90873         * lib/quotearg.h (quotearg_n_style_mem): New function.
90874
90875 2002-01-19  Jim Meyering  <meyering@lucent.com>
90876
90877         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
90878         Remove useless quotes: DF_PROG="df".
90879         * m4/strnlen.m4: New file.
90880
90881 2002-01-16  Paul Eggert  <eggert@twinsun.com>
90882
90883         * lib/backupfile.c (ISDIGIT): Comment fix.
90884         * lib/getdate.y (ISDIGIT): Likewise.
90885         * lib/posixtm.c (ISDIGIT, year): Likewise.
90886         * lib/strverscmp.c (ISDIGIT): Likewise.
90887         * lib/userspec.c (ISDIGIT): Likewise.
90888
90889 2002-01-16  Jim Meyering  <meyering@lucent.com>
90890
90891         * lib/getdate.y: Add three semicolons, each just before a closing
90892         brace. Bison (as of version 1.31) no longer papers over that mistake.
90893
90894 2002-01-05  Jim Meyering  <meyering@lucent.com>
90895
90896         * lib/version-etc.c (version_etc_copyright): Update copyright year.
90897
90898 2001-12-19  Paul Eggert  <eggert@twinsun.com>
90899
90900         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
90901         not silently exit merely because the output buffer happens to
90902         have nothing pending.
90903
90904 2001-12-18  Paul Eggert  <eggert@twinsun.com>
90905
90906         See the big note in ../ChangeLog.
90907         * lib/human.c (suffixes): Prefer K to k for 1024.
90908         (generate_suffix_backwards): New function.
90909         (human_readable_inexact): Use it.
90910         * lib/xstrtol.c (__xstrtol): If there is no number but there
90911         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
90912         Accept 'K' as well as 'k'.
90913
90914 2001-12-15  Jim Meyering  <meyering@lucent.com>
90915
90916         * lib/regex.h (__restrict_arr): Update from libc.
90917
90918         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
90919         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
90920         (STREQ): Define.
90921
90922 2001-12-14  Jim Meyering  <meyering@lucent.com>
90923
90924         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
90925         Suggestion from Bruno Haible.
90926
90927 2001-12-10  Jim Meyering  <meyering@lucent.com>
90928
90929         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
90930         xrealloc, Instead, include "xalloc.h".
90931         (initbuffer): Don't cast xmalloc return value to char*.
90932         (readline): Reword comment.
90933         Don't cast xrealloc return value to char*
90934         Return NULL, not 0.
90935
90936 2001-12-09  Jim Meyering  <meyering@lucent.com>
90937
90938         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
90939         about `signed and unsigned type in conditional expression'.
90940         * lib/posixtm.c (posix_time_parse): Likewise.
90941
90942         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
90943
90944         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
90945         to avoid a pedantic warning.
90946
90947         * lib/getstr.c: Don't include assert.h.
90948         (getstr): Remove warning-evoking assertions.
90949         Return -1 if offset parameter is out of bounds.
90950         Change the type of a local from int to size_t.
90951
90952         * lib/strftime.c (my_strftime_localtime_r): Include this function
90953         definition in the `#if ! HAVE_TM_GMTOFF' block.
90954
90955         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
90956         Include xalloc.h instead.
90957
90958 2001-12-02  Jim Meyering  <meyering@lucent.com>
90959
90960         * lib/tempname.c: Don't declare getenv, thus reverting the change of
90961         2001-11-18.  It's no longer necessary, now that stdlib.h is always
90962         included.
90963
90964         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
90965         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
90966
90967 2001-11-30  Akim Demaille  <akim@epita.fr>
90968
90969         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
90970         before being defined.
90971
90972 2001-11-27  Paul Eggert  <eggert@twinsun.com>
90973
90974         * lib/quotearg.h (quotearg_n, quotearg_n_style):
90975         First arg is int, not unsigned.
90976         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
90977         (SIZE_MAX, UINT_MAX): New macros.
90978         (quotearg_n_options): Abort if N is negative.
90979         Avoid overflow check on hosts where size_t is 64 bits and int
90980         is 32 bits, as overflow is impossible there.
90981         Fix off-by-one typo that caused unnecessary reallocation.
90982
90983 2001-11-27  Jim Meyering  <meyering@lucent.com>
90984
90985         * lib/tempname.c: Merge with version from libc.
90986         * lib/regex.c: Likewise.
90987
90988         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
90989         systems for which STDC_HEADERS is 0, it was not included, resulting in
90990         a warning about an integer-to-pointer conversion problem with getenv.
90991         Reported by Volker Borchert.
90992
90993 2001-11-26  Jim Meyering  <meyering@lucent.com>
90994
90995         * lib/gtod.h: Remove file.
90996         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
90997         * lib/gettimeofday.c: Don't include gtod.h.
90998         (GTOD_init): Remove function.
90999         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91000         Suggestion from Volker Borchert.
91001
91002 2001-11-23  Jim Meyering  <meyering@lucent.com>
91003
91004         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91005         it.
91006         * lib/hash.c (struct hash_table): Define it here instead.
91007
91008 2001-11-22  Jim Meyering  <meyering@lucent.com>
91009
91010         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91011
91012 2001-11-20  Jim Meyering  <meyering@lucent.com>
91013
91014         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91015         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91016
91017 2001-11-19  Jim Meyering  <meyering@lucent.com>
91018
91019         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91020         directory.  Use "conftestXXXXXX" as the template.
91021         Suggestion from Paul Eggert.
91022
91023         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91024         immediately, so the test doesn't mistakenly hit the max-open-files
91025         limit.
91026
91027 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91028
91029         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91030         (TEMPORARIES): New macro.
91031         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91032         removes an artificial limitation (e.g. HP-UX 10.20, where
91033         TMP_MAX is 17576).
91034
91035 2001-11-18  Jim Meyering  <meyering@lucent.com>
91036
91037         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91038
91039 2001-11-18  Jim Meyering  <meyering@lucent.com>
91040
91041         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91042         on SunOS 4.
91043
91044         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91045         files will be created before anything else.
91046
91047 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91048
91049         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91050         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91051
91052 2001-11-17  Jim Meyering  <meyering@lucent.com>
91053
91054         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91055         Prompted by a report from Bob Proulx.
91056
91057         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91058         Instead, require UTILS_FUNC_MKSTEMP.
91059
91060 2001-11-17  Jim Meyering  <meyering@lucent.com>
91061
91062         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91063         Now, that's done as part of AC_FUNC_STRTOD.
91064
91065 2001-11-17  Jim Meyering  <meyering@lucent.com>
91066
91067         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91068         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91069         rather than group writable.  Patch by Juan F. Codagnone.
91070
91071         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91072         xrealloc, Instead, include "xalloc.h".
91073
91074         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91075         Remove explicit declarations of xmalloc, xrealloc,
91076         and xstrdup.  Instead, include "xalloc.h".
91077
91078         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91079         unlocked-io.h.
91080         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91081         Likewise.
91082         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91083
91084         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91085         Reported by Padraig Brady.
91086
91087         * lib/mkstemp.c: #undef mkstemp.
91088         Include config.h.
91089         (rpl_mkstemp): Rename from mkstemp.
91090         Protoize.
91091
91092 2001-11-16  Jim Meyering  <meyering@lucent.com>
91093
91094         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91095         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91096         determine the amount of total physical memory, use pstat_getstatic.
91097         HPUX-11 doesn't define _SC_PHYS_PAGES.
91098         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91099         If sysconf couldn't be used to determine the amount of available
91100         physical memory, use both pstat_getstatic and pstat_getdynamic.
91101         Based on a patch from Bob Proulx.
91102
91103 2001-11-10  Jim Meyering  <meyering@lucent.com>
91104
91105         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91106         (jm_PREREQ): Use it.
91107
91108 2001-11-09  Jim Meyering  <meyering@lucent.com>
91109
91110         * m4/jm-macros.m4: Require autoconf-2.52f.
91111         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91112         Use these AC_-prefixed names, not the AM_-prefixed ones.
91113
91114         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91115
91116 2001-11-05  Jim Meyering  <meyering@lucent.com>
91117
91118         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91119
91120 2001-11-04  Jim Meyering  <meyering@lucent.com>
91121
91122         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91123         $DEFS.
91124
91125 2001-11-03  Jim Meyering  <meyering@lucent.com>
91126
91127         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91128         of AC_DEFUN.
91129
91130         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91131         know the name of the variable in the macro definition.
91132
91133 2001-11-03  Jim Meyering  <meyering@lucent.com>
91134
91135         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91136         in argmatch_to_argument call.
91137
91138         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91139         argument.
91140
91141         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91142         e.g., a fault due to an attempt to free a NULL pointer.
91143
91144 2001-11-01  Jim Meyering  <meyering@lucent.com>
91145
91146         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91147         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91148
91149 2001-11-01  Jim Meyering  <meyering@lucent.com>
91150
91151         * lib/dirfd.c, lib/dirfd.h: New files.
91152         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91153
91154         * lib/hash.c (hash_print) [TESTING]: Clean up.
91155
91156 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91157
91158         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91159         to avoid a warning if -Wall.
91160
91161 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91162
91163         * README: New file
91164         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91165         (per RMS's instructions, this is now the canonical source)
91166         * lgpl/, gpl/: New directories.
91167
91168 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91169
91170         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91171
91172 2001-10-21  Jim Meyering  <meyering@lucent.com>
91173
91174         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91175         this code would end up calling gettext even in packages built
91176         with --disable-nls.
91177         * lib/getopt.c (_): Likewise.
91178         * lib/regex.c (_): Likewise.
91179
91180 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91181
91182         * m4/error.m4 (jm_PREREQ_ERROR):
91183         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91184         AC_FUNC_STRERROR_R does that.
91185         Check for strerror declaration.
91186
91187         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91188         are supposed to have them these days.
91189         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91190         Merge changes from latest Autoconf CVS.
91191         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91192         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91193         POSIX decided to standardize on the int flavor of strerror_r.
91194
91195 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91196
91197         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91198         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91199         Use strerror_r that is only a macro, even if it is not a function.
91200         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91201         (private_strerror): Use prototypes, not old-style function definition.
91202         (print_errno_message): New function.
91203         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91204         char*-flavored one.
91205         (error_tail, error, error_at_line): Use it.
91206
91207 2001-10-11  Jim Meyering  <meyering@lucent.com>
91208
91209         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91210         and quote_n (1, ... to avoid clobbering a buffer.
91211
91212 2001-10-05  Jim Meyering  <meyering@lucent.com>
91213
91214         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91215         hash-pjw.h.
91216         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91217         * lib/hash-pjw.h: New file.
91218
91219 2001-09-30  Jim Meyering  <meyering@lucent.com>
91220
91221         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91222         `struct fsstat' has the `f_fstypename' member.
91223         Use that to define FS_TYPE, which is now used to make
91224         the getfsstat link test tighter.
91225
91226 2001-09-30  Jim Meyering  <meyering@lucent.com>
91227
91228         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91229         Include <sys/ucred.h>, for Apple Darwin.
91230         Include sys/mount.h and sys/fs_types.h only if available.
91231         (FS_TYPE): Define.
91232         (read_filesystem_list): Use FS_TYPE.
91233
91234 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91235
91236         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91237         a boolean context.
91238
91239 2001-09-29  Jim Meyering  <meyering@lucent.com>
91240
91241         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91242         [one-argument getmntent function]): Include stdio.h before mntent.h.
91243         SunOS 4.1.x needs it for the declaration of `FILE'.
91244         Patch by Volker Borchert.
91245
91246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91247         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91248         sys/fs_types.h, and make the link-test for getfsstat guard #include
91249         directives with appropriate #if HAVE_*_H tests so that we can
91250         detect getfsstat on Apple Darwin1.3.7 systems.
91251         Reported by Nelson Beebe.
91252         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91253
91254 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91255
91256         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91257         #defines strtoimax.  Also treat the other strto* functions
91258         like strtoimax.
91259
91260         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91261         Check for strtoul and strtoumax,
91262         as those declarations are made even in the signed case.
91263         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91264         Likewise, for strtol and strtoimax.
91265
91266 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91267
91268         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91269         #defines strtoimax.  Also treat the other strto* functions
91270         like strtoimax.
91271
91272         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91273         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91274         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91275
91276 2001-09-26  Jim Meyering  <meyering@lucent.com>
91277
91278         Most macros in unlocked-io.h had the wrong number of arguments.
91279         * lib/gen-uio: New script.
91280         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91281         * lib/unlocked-io.hin: Remove file.
91282         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91283         rather than trying to embed it here.
91284         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91285         Reported by Padraig Brady.
91286
91287 2001-09-25  Volker Borchert  <bt@teknon.de>
91288
91289         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91290         `result'.
91291
91292 2001-09-24  Jim Meyering  <meyering@lucent.com>
91293
91294         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91295
91296 2001-09-23  Jim Meyering  <meyering@lucent.com>
91297
91298         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91299         instead of the mere test for existence of mntent.h.  The latter
91300         would get a false-positive on AIX 3.4 systems.
91301         In the outer getmntent if-block, don't die if neither of the getmntent
91302         tests succeeds.  Instead, just fall through and continue with the
91303         remaining tests.
91304
91305 2001-09-23  Jim Meyering  <meyering@lucent.com>
91306
91307         * lib/mountlist.c: Remove useless parentheses in #if directives.
91308         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91309         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91310
91311 2001-09-22  Jim Meyering  <meyering@lucent.com>
91312
91313         * m4/gettext.m4: New file.  From gettext.
91314         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91315         * m4/progtest.m4: Likewise
91316         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91317         * m4/glibc21.m4: Likewise.
91318
91319         * m4/libintl.m4: Remove.  No longer used.
91320
91321 2001-09-22  Jim Meyering  <meyering@lucent.com>
91322
91323         * lib/localcharset.c: Update from latest gettext.
91324         * lib/config.charset: Likewise.
91325
91326 2001-09-20  Jim Meyering  <meyering@lucent.com>
91327
91328         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91329         strtoimax.
91330         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91331         strtoumax.
91332
91333 2001-09-20  Jim Meyering  <meyering@lucent.com>
91334
91335         * lib/xstrtol.c (strtoimax): Guard declaration with
91336         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91337         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91338         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91339         (strtoumax): Likewise, for completeness (it wasn't necessary).
91340
91341 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91342
91343         * lib/strtoimax.c (HAVE_LONG_LONG):
91344         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91345         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91346         to work around bug in IBM C compiler.
91347
91348 2001-09-17  Jim Meyering  <meyering@lucent.com>
91349
91350         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91351         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91352         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91353         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91354         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91355         whenever the right hand side need not be expanded by the shell.
91356
91357 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91358
91359         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91360         library.  It's not correct, as some older glibcs are buggy.
91361         fnmatch wasn't fixed until glibc 2.2.
91362
91363         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91364         special shell magic here.
91365
91366 2001-09-16  Jim Meyering  <meyering@lucent.com>
91367
91368         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91369         * m4/jm-macros.m4: Require it.
91370
91371 2001-09-16  Jim Meyering  <meyering@lucent.com>
91372
91373         * lib/mkdir.c: New file.
91374
91375 2001-09-15  Jim Meyering  <meyering@lucent.com>
91376
91377         * m4/jm-macros.m4: Check for help2man.
91378
91379 2001-09-11  Jim Meyering  <meyering@lucent.com>
91380
91381         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91382         The body, by Paul Eggert, was moved here from configure.in.
91383         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91384
91385 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91386
91387         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91388         (jm_PREREQ): Use it.
91389
91390 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91391
91392         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91393         Use ssize_t, not int, to store result of readlink.
91394         Check for ssize_t overflow as well as size_t overflow,
91395         as POSIX says the result of readlink is implementation-defined
91396         when ssize_t overflows.
91397         Remove unnecessary cast to char*.
91398         Use free+malloc instead of realloc, as the storage doesn't need
91399         to be preserved and it's clearer and can be more efficient that way.
91400         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91401         * lib/xreadlink.h (xreadlink): Update prototype.
91402
91403 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91404
91405         * lib/xgetcwd.c: Revert some of the previous change; intead,
91406         fix the HAVE_GETCWD_NULL code to behave more like the
91407         !HAVE_GETCWD_NULL code used to.
91408
91409         Include "xalloc.h".
91410         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91411         invoke xalloc_die.
91412
91413 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91414
91415         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91416         sys/param.h, as pathmax.h includes them.
91417
91418 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91419
91420         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91421         (jm_PREREQ_XGETCWD): New macro.
91422
91423         * m4/getcwd.m4: New file.
91424
91425 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91426
91427         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91428         like the HAVE_GETCWD_NULL code.
91429         Include pathmax.h if not HAVE_GETCWD.
91430         Do not include xalloc.h.
91431         (INITIAL_BUFFER_SIZE): New symbol.
91432         Do not use xmalloc / xrealloc, since the caller is responsible for
91433         handling errors.  Preserve errno around `free' during failure.
91434         Do not overrun buffer when using getwd.
91435
91436 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91437
91438         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91439         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91440         getcwd (NULL, 0).
91441
91442 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91443
91444         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91445         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91446         spotted by Jim Meyering.
91447
91448 2001-09-03  Jim Meyering  <meyering@lucent.com>
91449
91450         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91451         failure.
91452
91453 2001-09-02  Jim Meyering  <meyering@lucent.com>
91454
91455         * lib/error.c: Update from GNU libc.
91456
91457 2001-09-01  Jim Meyering  <meyering@lucent.com>
91458
91459         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91460         Used by df.
91461
91462 2001-09-01  Jim Meyering  <meyering@lucent.com>
91463
91464         * lib/xreadlink.c: New file.
91465         * lib/xreadlink.h: New file.
91466         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91467         xreadlink.h.
91468
91469         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91470         doesn't conflict with sparc Solaris 7's definition in
91471         /usr/include/sys/int_types.h.
91472
91473         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91474         files.
91475         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91476         and strncasecmp as r-values.  Unixware didn't have declarations.
91477
91478 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91479
91480         * lib/xstrtol.h: Add copyright notice.
91481         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91482         LONGINT_INVALID_SUFFIX_CHAR.
91483
91484 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91485
91486         * lib/xstrtol.c (strtoimax): New decl.
91487
91488 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91489
91490         * lib/xgetcwd.c: Don't include pathmax.h.
91491         Include stdlib.h and unistd.h if available.
91492         Include xalloc.h.
91493         (xmalloc, xstrdup, free): Remove decls.
91494         (xgetcwd): Don't assume sizes fit in unsigned.
91495         Check for overflow when computing sizes.
91496         Simplify reallocation code.
91497
91498 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91499
91500         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91501         a directory's st_size can have an arbitrary value, so the old
91502         usage could waste an arbitrary amount of memory.  All uses
91503         changed.
91504         * lib/savedir.h: Update prototype.
91505
91506 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91507
91508         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91509
91510         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91511         old strtoimax.c.
91512
91513         Also, make the following further changes to make this file's
91514         configuration more similar to that of strtol.c:
91515         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91516         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91517         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91518         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91519         changed to signed values.
91520
91521         And make the following changes as well:
91522         Fix copyright notice, as 1999 was missing.
91523         (verify): New macro.
91524         (strtoimax): Check sizes at compile-time, not run-time.
91525         Prefer strtol to strtoll if both work.
91526         (main): Remove; it was not that useful and was a pain to maintain.
91527
91528         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91529
91530 2001-08-31  Jim Meyering  <meyering@lucent.com>
91531
91532         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91533         Use an initial, malloc'd, buffer of length 128 rather than
91534         a statically allocated one of length 1024.
91535
91536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91537
91538         Simplify code, partly by assuming autoconf 2.52 semantics.
91539
91540         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91541
91542         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91543         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91544         All uses removed.
91545         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91546         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91547         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91548         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91549         jm_AC_HEADER_INTTYPES_H.
91550         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91551
91552         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91553
91554         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91555         Quote first arg of AC_DEFUN.
91556         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91557         since they are needed to parse the include file even if we need
91558         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91559         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91560         but with opposite signedness.
91561
91562 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91563
91564         Merge 'exclude' changes from tar 1.13.22.
91565         This fixes one or two unlikely storage allocation overflow bugs,
91566         but doesn't change user-visible behavior otherwise.
91567
91568 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91569
91570         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91571         (jm_PREREQ_EXCLUDE): New macro.
91572
91573 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91574
91575         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91576         tm to be declared.
91577
91578 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91579
91580         * lib/hash.c: Remove '2001' from copyright notice.
91581
91582 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91583
91584         * lib/full-write.h: New file.
91585         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91586         * lib/full-write.c: Correct credits, as cccp.c no longer
91587         exists and anyway it was so heavily changed from the old cccp
91588         code as to be unrecognizable.  Include full-write.h.
91589         (full_write): Return size_t, with short writes meaning failure.
91590         All callers changed.  This fixes a bug with large buffers
91591         on 64-bit hosts.
91592         * lib/utime.c: Include full-write.h.
91593
91594 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91595
91596         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91597         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91598         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91599         Include if available.
91600         (<xalloc.h>): Include
91601         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91602         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91603         collide with FNM macros.
91604         (struct patopts): New struct.
91605         (struct exclude): Use it, as exclude patterns now come with options.
91606         (new_exclude): Support above changes.
91607         (new_exclude, add_exclude_file):
91608         Initial size must now be a power of two to simplify overflow checking.
91609         (free_exclude, fnmatch_no_wildcards): New function.
91610         (excluded_filename): No longer requires options arg, as the options
91611         are determined by add_exclude.  Now returns bool, not int.
91612         (excluded_filename, add_exclude):
91613         Add support for the fancy new exclusion options.
91614         (add_exclude, add_exclude_file): Now takes int options arg.
91615         Check for arithmetic overflow when computing sizes.
91616         (add_exclude_file): xrealloc might modify errno, so don't
91617         realloc until after errno might be used.
91618
91619         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91620         New macros.
91621         (free_exclude): New decl.
91622         (add_exclude, add_exclude_file): Now takes int options arg.
91623         (excluded_filename): No longer requires options arg, as the options
91624         are determined by add_exclude.  Now returns bool, not int.
91625
91626 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91627
91628         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91629
91630 2001-08-27  Jim Meyering  <meyering@lucent.com>
91631
91632         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91633
91634         * lib/version-etc.c (N_): Remove definition.
91635         Revert most of last change.
91636         Instead, simply don't mark the `Copyright...' string for translation.
91637         Based on advice from Paul Eggert.
91638
91639         * lib/strtoxmax.c: Tweak comment.
91640
91641 2001-08-26  Jim Meyering  <meyering@lucent.com>
91642
91643         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91644
91645         * m4/xstrtoimax.m4: New file.
91646         * m4/xstrtoumax.m4: Add comments explaining why we
91647         AC_REPLACE_FUNCS(strtol).
91648
91649 2001-08-26  Jim Meyering  <meyering@lucent.com>
91650
91651         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91652         of copyright with `%s' so translators don't get an untranslated
91653         message in 2002.
91654         (COPYRIGHT_YEAR): Define.
91655         (version_etc): Use fprintf rather than fputs.
91656         Suggestion from Ulrich Drepper.
91657
91658         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91659
91660         * lib/strtoll.c: New file, from GNU libc.
91661         * lib/xstrtoimax.c: New file.
91662
91663         * lib/xstrtol.h: Add xstrtoimax.
91664         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91665         * lib/strtoimax.c: New file.  Likewise, but first define
91666         STRTOUXMAX_SIGNED.
91667
91668         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91669         ...
91670         * lib/strtoxmax.c: ... then renamed to this.
91671
91672 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91673
91674         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91675         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91676         (jm_AC_TYPE_INTMAX_T): New macro.
91677         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91678
91679         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91680
91681         * m4/longlong.m4: Renamed from ulonglong.m4.
91682         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91683         * m4/uintmax_t.m4: Removed.
91684
91685 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91686
91687         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91688         Port to Solaris 8, where 'sed' requires a space after the 'r'
91689         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91690         Redirect output to $tmp just once.
91691
91692 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91693
91694         * lib/addext.c (<errno.h>): Include.
91695         (errno): Declare if not defined.
91696         (addext): Work correctly when pathconf returns -1 and leaves
91697         errno alone because there is no limit.  Also, work even if
91698         pathconf returns a value greater than SIZE_MAX.
91699
91700 2001-08-12  Jim Meyering  <meyering@lucent.com>
91701
91702         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91703         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91704         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91705         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91706         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91707         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91708         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91709         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91710         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91711         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91712         utime.m4, utimes.m4, xstrtoumax.m4:
91713         Quote the first argument in each use of AC_DEFUN.
91714
91715 2001-08-12  Jim Meyering  <meyering@lucent.com>
91716
91717         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91718         Simply `return getcwd (NULL, 0);'.
91719         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91720         Use 1300 as initial value for length, not PATH_MAX.
91721
91722         * lib/pathmax.h: Clean up cpp syntax.
91723
91724 2001-08-12  Jim Meyering  <meyering@lucent.com>
91725
91726         * lib/gettimeofday.c: New file.
91727         * lib/gtod.h: New file.
91728         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91729
91730 2001-08-05  Jim Meyering  <meyering@lucent.com>
91731
91732         * m4/jm-macros.m4: Require autoconf-2.52.
91733
91734 2001-08-04  Jim Meyering  <meyering@lucent.com>
91735
91736         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91737         stmt, to get in sync with glibc.
91738
91739 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91740
91741         The following changes are from gettext 0.10.39 as maintained by
91742         Bruno Haible.
91743
91744         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91745         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91746         with inverted sense.  All uses changed.
91747
91748         * lib/mbswidth.c: Don't include <limits.h>.
91749         Include <stdlib.h> and <string.h> unconditionally.
91750         (iswcntrl, mbsinit, ISCNTRL): New macros.
91751         (mbsnwidth): Use K&R style function declarations.
91752         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91753         can optimize it when MB_CUR_MAX == 1.
91754         The width of control characters is zero, not 1.
91755
91756 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91757
91758         The following changes are from gettext 0.10.39 as maintained by
91759         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91760
91761         * m4/codeset.m4: Upgrade to serial AM1.
91762         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91763         all uses changed.  Quote first arg of AC_DEFUN.
91764         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91765
91766         * m4/iconv.m4: Upgrade to serial AM2.
91767         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91768         Add --with-libconv-prefix.
91769         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91770         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91771         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91772         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91773         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91774
91775         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91776         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91777         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91778         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91779         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91780         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91781         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91782         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91783         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91784
91785         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91786         string.h any more.
91787
91788         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91789         not the default value.
91790
91791         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91792         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91793         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91794         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91795         Also check for iswcntrl, used for wcwidth fallback.
91796         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91797         to Autoconf 2.13.
91798
91799 2001-08-03  Jim Meyering  <meyering@lucent.com>
91800
91801         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91802         as it was in the original.  Reported by Paul Eggert.
91803
91804 2001-07-16  Jim Meyering  <meyering@lucent.com>
91805
91806         * m4/gettimeofday.m4: New file.
91807         Prompted by a report from Bernhard Baehr.
91808
91809 2001-07-15  Jim Meyering  <meyering@lucent.com>
91810
91811         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91812         stuff. Now it's in ../Makefile.cfg.
91813
91814 2001-07-15  Jim Meyering  <meyering@lucent.com>
91815
91816         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91817         (BUILT_SOURCES): Add unlocked-io.h.
91818         (io_functions): Define.
91819         (unlocked-io.h): New rule.
91820         (DISTCLEANFILES): Add unlocked-io.h.
91821         (all-local): Depend on unlocked-io.h, to ensure it is created.
91822
91823         * lib/unlocked-io.hin: New file
91824
91825         * lib/regex.c: Update from glibc.
91826
91827 2001-07-05  Jim Meyering  <meyering@lucent.com>
91828
91829         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
91830         recommendation.
91831         (libfetish_a_SOURCES): Put all .h files here instead.
91832         Remove a thus-exposed (better checks in automake) duplicate and
91833         two unnecessary .h files.
91834
91835 2001-07-04  Jim Meyering  <meyering@lucent.com>
91836
91837         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
91838         that generates jm-glibc-io.m4 so that it doesn't trigger any make
91839         distcheck failure.
91840
91841 2001-07-02  Jim Meyering  <meyering@lucent.com>
91842
91843         The following changes were prompted by suggestions from Bruno Haible.
91844
91845         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
91846         is now generated.
91847         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
91848         definition of EXTRA_DIST.
91849         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
91850         ensure that the generated file is created/updated whenever the list
91851         of $(unlocked_functions) is changed.
91852         (jm-glibc-io.m4): New rule.
91853         (unlocked-io.h): New rule -- currently unused.
91854
91855 2001-06-24  Jim Meyering  <meyering@lucent.com>
91856
91857         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
91858         unmatched right bracket, rather than kludging it with an extra,
91859         falsely-matching quote in a comment.  Patch by Akim Demaille.
91860
91861 2001-06-11  Jim Meyering  <meyering@lucent.com>
91862
91863         * lib/regex.c: Update from GNU libc.
91864
91865 2001-05-27  Jim Meyering  <meyering@lucent.com>
91866
91867         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
91868         Check for ut_type in struct utmp.
91869
91870 2001-05-27  Jim Meyering  <meyering@lucent.com>
91871
91872         * lib/readutmp.h (UT_TYPE): Define.
91873
91874 2001-05-24  Jim Meyering  <meyering@lucent.com>
91875
91876         * lib/argmatch.c: Include "quote.h".
91877         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
91878         quote function.  Reported by Göran Uddeborg.
91879
91880 2001-05-22  Jim Meyering  <meyering@lucent.com>
91881
91882         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
91883         now that we use the package-supplied version unconditionally.
91884         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
91885
91886 2001-05-21  Jim Meyering  <meyering@lucent.com>
91887
91888         * m4/regex.m4: Change a couple backticks to single quotes to avoid
91889         shell syntax errors.
91890
91891 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91892
91893         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
91894
91895 2001-05-20  Paul Eggert  <eggert@twinsun.com>
91896
91897         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
91898         Don't bother to check library strftime, since
91899         we'll be using our own my_strftime function anyway.
91900         Define my_strftime instead of strftime.
91901
91902 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
91903
91904         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
91905         which is not yet declared.
91906
91907 2001-05-15  Jim Meyering  <meyering@lucent.com>
91908
91909         * m4/regex.m4: Use proper quoting so brackets appear in the test
91910         program.
91911         Reported by, and with help from, Bruno Haible.
91912
91913 2001-05-13  Jim Meyering  <meyering@lucent.com>
91914
91915         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
91916         undefined.
91917
91918 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91919
91920         dirname code cleanup.  base_name now behaves more compatibly
91921         with POSIX basename when given file names that have trailing
91922         slashes, and similarly for dir_name.  Add new primitives
91923         base_len and dir_len.  Put the directory-name-related decls
91924         into dirname.h.
91925
91926         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
91927         * lib/backupfile.c (base_name): Likewise.
91928         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
91929         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
91930         * lib/makepath.c (strip_trailing_slashes): Likewise.
91931         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
91932         ISSLASH): Likewise.
91933         * lib/rename.c (strip_trailing_slashes): Likewise.
91934         * lib/same.c (base_name): Likewise.
91935         * lib/stripslash.c (ISSLASH): Likewise.
91936
91937         * lib/addext.c: Include <dirname.h> after size_t is defined.
91938         * lib/backupfile.c: Likewise.
91939
91940         * lib/addext.c (addext): Use base_len to trim redundant
91941         trailing slashes instead of doing it ourselves.
91942         But do not trim the last slash if it is not redundant.
91943
91944         * lib/backupfile.c (find_backup_file_name,
91945         max_backup_version): Use base_len instead of rolling it ourselves.
91946         Handle the case of "" and (on DOS) "C:" correctly.
91947
91948         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
91949         needed. Include <string.h>, <dirname.h>.
91950         (base_name): Allow file names ending in slashes, other than names
91951         that are all slashes.  In this case, return the basename followed
91952         by the slashes.  This is more general, and can be used in places
91953         where the original base_name purposely had an assertion failure.
91954         (base_len): New function.
91955
91956         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
91957         Do not include <assert.h>; no longer needed.
91958         Include xalloc.h.
91959         (memrchr): Remove decl.
91960         (dir_name_r): Remove.
91961         (dir_len): Renamed from dirlen.  All callers changed.
91962         Rewrite in terms of base_name, for simplicity and consistency.
91963         (dir_name): Never return NULL.  All callers changed.
91964         Do not include <stdlib.h> in test program; no longer needed.
91965         return 0; is fine for test program.
91966
91967         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
91968         New macros.
91969         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
91970
91971         * lib/path-concat.c (path_concat): Use base_len to compute
91972         base length, not strlen; this means we cannot rely on memcpy
91973         to null-terminate.
91974
91975         * lib/same.c (STREQ): Remove.
91976         (same_name): Handle the case where the basename ends in trailing '/'.
91977
91978         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
91979         a slash was stripped.  Do not strip the last slash after a
91980         file system prefix.
91981
91982 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91983
91984         * lib/Makefile.am (libfetish_a_SOURCES):
91985         Add strftime.c, since we now compile it on all hosts.
91986
91987         * lib/strftime.c (my_strftime):
91988         Define to nstrftime if emacs, but only if my_strftime is not defined.
91989         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
91990         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
91991         Add one more extra argument: a nanoseconds value.
91992         All uses changed.
91993         (ns): New macro.
91994         (my_strftime function): Add %N format.
91995         (emacs_strftimeu): Renamed from emacs_strftime,
91996         with extra ut argument.
91997
91998 2001-05-09  Paul Eggert  <eggert@twinsun.com>
91999
92000         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92001
92002 2001-04-21  Jim Meyering  <meyering@lucent.com>
92003
92004         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92005         doesn't interfere.
92006
92007 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92008
92009         * m4/ftruncate.m4: Check for chsize.
92010         Link with ftruncate.o unconditionally if ftruncate is missing.
92011         This was required when cross-compiling to i586-mingw32msvc.
92012
92013 2001-04-08  Jim Meyering  <meyering@lucent.com>
92014
92015         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92016         recomputed; that's necessary when the offset spans a DST transition.
92017         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92018
92019 2001-04-02  Jim Meyering  <meyering@lucent.com>
92020
92021         * lib/regex.h, regex.c: Update from GNU libc.
92022
92023 2001-03-24  Jim Meyering  <meyering@lucent.com>
92024
92025         * m4/jm-macros.m4: Require autoconf-2.49d.
92026
92027 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92028
92029         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92030
92031 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92032
92033         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92034
92035 2001-03-17  Jim Meyering  <meyering@lucent.com>
92036
92037         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92038         now that the version in autoconf is equivalent.
92039         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92040
92041         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92042         Suggestion from Akim Demaille.
92043
92044         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92045         (jm_PREREQ_TEMPNAME): New function.
92046
92047 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92048
92049         * lib/tempname.c (uint64_t): Define to uintmax_t if
92050         not defined, and if UINT64_MAX is not defined.
92051         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92052         Reported by John David Anglin.
92053
92054 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92055
92056         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92057         resolve alias if codeset is empty.
92058         * lib/config.charset (BeOS): Use wildcard syntax.
92059
92060 2001-03-13  Jim Meyering  <meyering@lucent.com>
92061
92062         * lib/path-concat.c (path_concat)
92063         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92064         concatenating e.g., `C:' and `foo'.
92065         From Bruno Haible.
92066
92067 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92068
92069         * lib/localcharset.c (locale_charset): Don't use
92070         setlocale(LC_CTYPE,NULL). Don't return NULL.
92071         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92072
92073 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92074
92075         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92076         support for DOS/DJGPP.
92077
92078 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92079
92080         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92081         lacks mkstemp.  Compile our own tempname.c if we compile our own
92082         mkstemp.c, as mkstemp relies on tempname.
92083
92084 2001-03-01  Jim Meyering  <meyering@lucent.com>
92085
92086         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92087         AH_VERBATIM really does output its argument verbatim.
92088
92089 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92090
92091         * lib/Makefile.am (libfetish_a_SOURCES):
92092         Add dup-safer.c, fopen-safer.c.
92093         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92094
92095         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92096         * lib/unistd-safer.h: New files.
92097
92098 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92099
92100         The mkstemp replacement is taken from glibc 2.2.2, with some
92101         portability fixes for use outside glibc, as follows:
92102
92103         * lib/tempname.c (struct_stat64): New macro.
92104         (direxists, __gen_tempname): Use it.
92105         This avoids a portability problem with Solaris 8.
92106
92107         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92108         (<stddef.h>, <stdint.h>, <string.h>):
92109         Include only if STDC_HEADERS || _LIBC.
92110         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92111         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92112         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92113         (__set_errno): Define this macro if <errno.h> doesn't.
92114         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92115         Define these macros if <stdio.h> doesn't.
92116         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92117         Define these macros if <sys/stat.h>
92118         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92119         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92120         __xstat64): Define if not _LIBC.
92121         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92122         (__gen_tempname): Invoke gettimeofday only if
92123         HAVE_GETTIMEOFDAY || _LIBC;
92124         otherwise, fall back on plain "time".
92125         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92126
92127         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92128
92129         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92130
92131 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92132
92133         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92134
92135 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92136
92137         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92138         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92139         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92140         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92141
92142 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92143
92144         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92145         Remove workaround macros for hosts that have mbrtowc but not
92146         mbstate_t, as we now insist on proper declarations for both
92147         before using mbrtowc.
92148
92149 2001-02-17  Jim Meyering  <meyering@lucent.com>
92150
92151         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92152         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92153         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92154         UnixWare 7.1.1.
92155
92156         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92157         rather than AC_CACHE_VAL.
92158
92159 2001-02-17  Jim Meyering  <meyering@lucent.com>
92160
92161         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92162         around included file name.
92163
92164         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92165
92166         * lib/strftime.c: Update from GNU libc (the only changes were to
92167         comments).
92168
92169 2001-02-17  Jim Meyering  <meyering@lucent.com>
92170
92171         * lib/regex.c: Update from libc.
92172
92173 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92174
92175         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92176         clash.
92177
92178 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92179
92180         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92181         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92182         Reported by Mark Hounschell via Paul Eggert.
92183
92184 2001-02-07  Jim Meyering  <meyering@lucent.com>
92185
92186         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92187
92188 2001-02-05  Jim Meyering  <meyering@lucent.com>
92189
92190         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92191         it includes the patch required for `large file' support with at least
92192         HP-UX's 10.20 /bin/cc.
92193
92194 2001-02-03  Jim Meyering  <meyering@lucent.com>
92195
92196         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92197         AS_IF, now that it works once again (mysteriously).
92198         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92199
92200 2001-01-30  Jim Meyering  <meyering@lucent.com>
92201
92202         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92203         * m4/chown.m4: Rename conftestchown to conftest.chown.
92204         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92205         s/conftestdir2/conftest.d2/.
92206         * m4/utimes.m4: s/conftestdata/conftest.data/
92207         Inspired by Pavel Roskin's change in autoconf.
92208
92209 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92210
92211         * lib/config.charset: Update for FreeBSD 4.2.
92212
92213 2001-01-27  Jim Meyering  <meyering@lucent.com>
92214
92215         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92216         a use of AS_IF.
92217         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92218
92219 2001-01-26  Jim Meyering  <meyering@lucent.com>
92220
92221         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92222         quotearg.c includes it.
92223
92224 2001-01-26  Jim Meyering  <meyering@lucent.com>
92225
92226         * lib/quotearg.c: Include stddef.h.
92227         * lib/quote.c: Include stddef.h.
92228         Reported by Axel Kittenberger.
92229
92230         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92231         line in double quotes so that it evokes a better diagnostic.
92232         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92233         Reported by Axel Kittenberger.
92234
92235 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92236
92237         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92238         as if it was a `charset'.
92239
92240 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92241
92242         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92243         has const.
92244
92245 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92246
92247         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92248         to avoid a warning.  Add back 'const' to inptr.
92249
92250 2001-01-20  Jim Meyering  <meyering@lucent.com>
92251
92252         Be sure that headers are checked before used in code compiled
92253         for the type checks.
92254         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92255         In place of that, invoke jm_CHECK_ALL_TYPES.
92256         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92257         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92258         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92259         The check for ssize_t was mistakenly run before the test for unistd.h.
92260
92261         The configure-time check for stdbool.h was missing.
92262         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92263         (jm_PREREQ_HASH): New function.
92264
92265 2001-01-17  Jim Meyering  <meyering@lucent.com>
92266
92267         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92268         for autoconf-2.49c.
92269         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92270
92271 2001-01-16  Jim Meyering  <meyering@lucent.com>
92272
92273         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92274         From Bruno Haible.
92275
92276 2001-01-14  Jim Meyering  <meyering@lucent.com>
92277
92278         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92279         foo and bar.  Create conftestdir/ in the script, not in the C code.
92280         Remove directories in the script, not in the C code.
92281         Remove conftestdir{,2} before trying to create the directory.
92282         Make the entire configure script fail if the mkdir fails.
92283
92284 2001-01-14  Jim Meyering  <meyering@lucent.com>
92285
92286         * lib/rename.c: New file.  From Volker Borchert.
92287         Include stdlib.h, string.h or strings.h, and xalloc.h.
92288         Use strip_trailing_slashes rather than open-coding it.
92289
92290 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92291
92292         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92293
92294 2001-01-03  Jim Meyering  <meyering@lucent.com>
92295
92296         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92297         of local `inptr' to avoid warning with some system declarations of
92298         iconv.
92299
92300 2001-01-02  Volker Borchert  <bt@teknon.de>
92301
92302         * m4/rename.m4: New file.
92303         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92304
92305 2001-01-01  Jim Meyering  <meyering@lucent.com>
92306
92307         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92308         even on systems with utmpx.h.  It's necessary for the declaration of
92309         utmp's ut_user member.  Reported by Andreas Jaeger.
92310
92311         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92312         available. They are required for the declarations of getgrgid and
92313         getpwuid resp.
92314         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92315         Reported by Andreas Jaeger.
92316
92317 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92318
92319         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92320         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92321         so `make install' also works in VPATH builds.
92322
92323 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92324
92325         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92326         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92327         can be used in subdirectories.
92328
92329 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92330
92331         * lib/modechange.c: Do not assume that mode_t uses the
92332         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92333         the other-execute bit of FOO even if S_IXOTH != 1.
92334
92335         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92336         WOTH, XOTH, ALLM): New macros.
92337         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92338          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92339         Use them.
92340         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92341         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92342         (mode_compile):
92343         No need to use uintmax_t; unsigned long is long enough.
92344         Don't bother to get suffix since we don't use it.
92345
92346 2000-12-26  Jim Meyering  <meyering@lucent.com>
92347
92348         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92349         better with autoheader.
92350
92351 2000-12-24  Jim Meyering  <meyering@lucent.com>
92352
92353         * lib/hash.c (is_prime): Return explicit boolean values.
92354         (hash_get_first): Return NULL to appease Irix5.6's 89.
92355         Reported by Nelson Beebe.
92356
92357 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92358
92359         * lib/localcharset.c (locale_charset): Add support for Win32.
92360
92361 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92362
92363         * lib/physmem.h, lib/physmem.c: New files.
92364
92365         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92366         (noinst_HEADERS): Add physmem.h.
92367
92368         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92369         't' for compatibility with Solaris 8 sort.
92370
92371 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92372
92373         * lib/config.charset: Add support for BeOS.
92374
92375 2000-12-17  Jim Meyering  <meyering@lucent.com>
92376
92377         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92378         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92379
92380 2000-12-16  Jim Meyering  <meyering@lucent.com>
92381
92382         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92383         N and M) would have treated it like `chown N:N FILE'.
92384
92385         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92386
92387 2000-12-16  Jim Meyering  <meyering@lucent.com>
92388
92389         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92390         SHELLS_FILE to a file name that's useful on djgpp systems.
92391         Include stdlib.h.
92392         (ADDITIONAL_DEFAULT_SHELLS): Define.
92393         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92394         Based mostly on a patch from Prashant TR.
92395
92396 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92397
92398         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92399         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92400         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92401
92402 2000-12-08  Andreas Schwab  <schwab@suse.de>
92403
92404         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92405         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92406
92407 2000-12-07  Jim Meyering  <meyering@lucent.com>
92408
92409         * lib/stripslash.c (ISSLASH): Define.
92410         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92411         `/'.
92412         From Prashant TR.
92413
92414         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92415         (dir_name_r): Declare this function as static.
92416         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92417         manifest itself on a name containing a mix of slashes and
92418         backslashes.
92419         Make this function work with names starting with a DOS-style
92420         drive letter and colon prefix.
92421         (dir_name): Append `.' if necessary.
92422         Based mostly on patches from Prashant TR and Eli Zaretskii.
92423
92424         * lib/dirname.h (dir_name_r): Remove prototype.
92425
92426 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92427
92428         * m4/off_t-format.m4: Remove this file.
92429         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92430
92431 2000-12-06  Jim Meyering  <meyering@lucent.com>
92432
92433         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92434         replacement strtoull, we may well need the replacement strtoul, too.
92435         Check for declarations of strtoul and strtoull.
92436         Check for strtol.  Mainly as a cue to cause automake to include
92437         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92438         Check for limits.h -- strtol.c needs it.
92439
92440 2000-12-05  Jim Meyering  <meyering@lucent.com>
92441
92442         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92443
92444 2000-12-04  Jim Meyering  <meyering@lucent.com>
92445
92446         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92447         Also include memory.h, stdlib.h, unistd.h if appropriate.
92448         Reported by Andreas Jaeger (conflicting declaration of malloc).
92449
92450 2000-12-02  Jim Meyering  <meyering@lucent.com>
92451
92452         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92453         * m4/jm-macros.m4 (jm_MACROS): require it.
92454
92455 2000-12-02  Jim Meyering  <meyering@lucent.com>
92456
92457         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92458
92459 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92460
92461         * lib/memrchr.c: Include <config.h> before any system include file.
92462
92463 2000-11-30  Jim Meyering  <meyering@lucent.com>
92464
92465         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92466
92467 2000-11-30  Jim Meyering  <meyering@lucent.com>
92468
92469         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92470
92471 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92472
92473         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92474
92475 2000-11-26  Jim Meyering  <meyering@lucent.com>
92476
92477         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92478
92479 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92480
92481         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92482         size of (size_t) -1; it's not portable.
92483
92484 2000-11-17  Jim Meyering  <meyering@lucent.com>
92485
92486         * lib/strstr.c: Update from GNU libc.
92487
92488 2000-11-17  Akim Demaille  <akim@epita.fr>
92489
92490         * lib/obstack.h: Formatting changes.
92491         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92492         prevent type checking.
92493         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92494         cast the value to (void *): assigning a `foo *' to a `void *'
92495         variable is valid.
92496         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92497
92498 2000-11-16  Jim Meyering  <meyering@lucent.com>
92499
92500         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92501
92502 2000-11-11  Jim Meyering  <meyering@lucent.com>
92503
92504         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92505
92506 2000-11-10  Jim Meyering  <meyering@lucent.com>
92507
92508         * lib/obstack.h: Update from GNU libc.
92509         * lib/obstack.c: Likewise.
92510
92511 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92512
92513         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92514
92515 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92516
92517         * lib/getusershell.c (setusershell): Use rewind rather than
92518         fseek/fseeko, to avoid configuration hassles with fseeko.
92519         Don't bother opening SHELLS_FILE if shellstream is NULL;
92520         it's not necessary.
92521
92522 2000-11-05  Jim Meyering  <meyering@lucent.com>
92523
92524         * lib/makepath.h (make_dir): Declare.
92525         * lib/makepath.c (make_dir): Remove `static' attribute.
92526         Tweak a comment.
92527
92528 2000-11-04  Jim Meyering  <meyering@lucent.com>
92529
92530         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92531
92532 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92533
92534         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92535         last one in a bucket, advance to the next bucket.
92536
92537 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92538
92539         * lib/fnmatch.c: Do not comment out all the code if we are using
92540         the GNU C library, because in some cases we are replacing buggy
92541         code in the GNU C library itself.
92542
92543 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92544
92545         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92546         (regex_compile): Catch bogus \(\1\).
92547
92548 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92549
92550         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92551         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92552         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92553
92554 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92555
92556         * lib/error.h, getline.h, modechange.h:
92557         Remove "2000" from Copyright line, as the file hasn't been
92558         changed this year other than in the copyright notice.
92559
92560         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92561         was changed this year.
92562
92563 2000-10-29  Jim Meyering  <meyering@lucent.com>
92564
92565         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92566         renaming.
92567         * m4/ls-mntd-fs.m4: Likewise
92568
92569 2000-10-29  Jim Meyering  <meyering@lucent.com>
92570
92571         * lib/xstat.in: Fix grammar in comment.
92572
92573 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92574
92575         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92576         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92577         doesn't define __restrict_arr.
92578
92579 2000-10-28  Jim Meyering  <meyering@lucent.com>
92580
92581         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92582         (jm_PREREQ_MEMCHR): New function.
92583
92584 2000-10-28  Jim Meyering  <meyering@lucent.com>
92585
92586         * lib/memchr.c: Update from libc.
92587         Adjust for portability:
92588         [HAVE_STDLIB_H]: Include stdlib.h.
92589         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92590         Undef __memchr, too.
92591         [!weak_alias]: Define __memchr to memchr.
92592
92593         * lib/regex.c: Update from libc.
92594         * lib/regex.h: Likewise.
92595         * lib/getopt1.c: Likewise.
92596         * lib/memcmp.c: Likewise.
92597
92598         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92599         Avoid using fseek, when possible -- it's broken by design.
92600         Patch by Ulrich Drepper.
92601
92602 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92603
92604         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92605         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92606         Giving in to popular pressure to shut up the compiler with casts.
92607
92608 2000-10-26  Jim Meyering  <meyering@lucent.com>
92609
92610         * lib/strftime.c: Update from libc.
92611
92612 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92613
92614         * regex.c: More `unsigned char' -> `re_char' changes.
92615         Also change several `int' into `re_wchar_t'.
92616         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92617         (PUSH_FAILURE_POINTER): Don't cast any more.
92618         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92619         We want GCC to complain, since this piece of code makes
92620         re_match non-reentrant, which *should* be fixed.
92621         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92622         (EXTEND_BUFFER): Use RETALLOC.
92623         (SET_LIST_BIT): Don't cast.
92624         (re_wchar_t): New type.
92625         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92626         that those two functions will always properly return.
92627         (IMMEDIATE_QUIT_CHECK): Cast to void.
92628         (analyse_first): Use recursion rather than an explicit stack.
92629         (re_compile_fastmap): Can't fail anymore.
92630         (re_search_2): Don't check re_compile_fastmap for failure.
92631         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92632         Now also sets the new value (passed in a new argument).
92633         (re_match_2_internal): Use it.
92634         Also, use a new var `reg' of type size_t when looping through regs
92635         rather than reuse the inappropriate `mcnt'.
92636
92637 2000-10-25  Jim Meyering  <meyering@lucent.com>
92638
92639         * lib/obstack.c: Update from libc.
92640
92641 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92642
92643         * regex.c (regex_compile): Change the way of handling a range from
92644         a char less than 256 to a char not less than 256.
92645
92646 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92647
92648         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92649         NT-Emacs only.
92650         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92651         so that re_search functions only quit when callers expect them to.
92652
92653 2000-10-23  Jim Meyering  <meyering@lucent.com>
92654
92655         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92656         wrong.  That set_locale call must not have any side effects.
92657         From Paul Eggert.
92658
92659 2000-10-22  Jim Meyering  <meyering@lucent.com>
92660
92661         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92662         [CYCLIC]: Remove now-unused definition.
92663
92664         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92665         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92666         Suggestion from Ulrich Drepper.
92667
92668 2000-10-21  Jim Meyering  <meyering@lucent.com>
92669
92670         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92671         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92672         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92673
92674 2000-10-21  Jim Meyering  <meyering@lucent.com>
92675
92676         * lib/dirname.c (memrchr): Declare if necessary.
92677         (dir_name): Remove the restriction that there be no
92678         trailing slashes.  Now, this code skips past them, effectively
92679         ignoring them.
92680         [TEST_DIRNAME] (main): New unit tests.
92681
92682         * lib/memrchr.c: New file from GNU libc.
92683         Undef __memrchr, too.
92684         [!weak_alias]: Define __memrchr to memrchr.
92685         Guard weak_alias use with `#ifdef weak_alias'.
92686
92687 2000-10-21  Jim Meyering  <meyering@lucent.com>
92688
92689         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92690         (dir_name): Use dir_name_r.
92691         * lib/dirname.h (dir_name_r): Declare it.
92692
92693 2000-10-17  Jim Meyering  <meyering@lucent.com>
92694
92695         * lib/quote.h (PARAMS): Define and use.
92696         Reported by Akim Demaille.
92697
92698         * lib/getopt.c: Update from libc.
92699
92700 2000-10-16  Jim Meyering  <meyering@lucent.com>
92701
92702         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92703         setlocale.
92704         From Jan Fedak.
92705
92706 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92707
92708         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92709
92710 2000-09-25  Jim Meyering  <meyering@lucent.com>
92711
92712         * lib/md5.h (rol): Define (from GnuPG).
92713
92714         * lib/sha.c: Give credit (GnuPG) where due.
92715         (M): Use rol rather than open-coding it.
92716         Add a FIXME comment.
92717
92718 2000-09-21  Jim Meyering  <meyering@lucent.com>
92719
92720         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92721         Reported by Michael Stone.
92722
92723 2000-09-20  Jim Meyering  <meyering@lucent.com>
92724
92725         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92726         (noinst_HEADERS): Add sha.h.
92727         Based on code from Scott G. Miller and from GnuPG.
92728
92729 2000-09-18  Jim Meyering  <meyering@lucent.com>
92730
92731         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92732         LIBS. Otherwise, everyone ends up linking with -lelf for some
92733         configurations.
92734         Reported by Mike Stone.
92735
92736 2000-09-15  Jim Meyering  <meyering@lucent.com>
92737
92738         * lib/regex.c: Update from libc.
92739
92740 2000-09-10  Jim Meyering  <meyering@lucent.com>
92741
92742         * lib/getopt.c (_getopt_internal): Update from glibc.
92743
92744 2000-09-09  Jim Meyering  <meyering@lucent.com>
92745
92746         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92747         think it should be used as a general replacement for isascii.
92748         * lib/fnmatch.c: Likewise.
92749         * lib/mbswidth.c: Likewise
92750         * lib/regex.c: Likewise.
92751
92752         Don't use atoi.
92753         * lib/userspec.c: Include sys/param.h and limits.h.
92754         Include xstrtol.h.
92755         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92756         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92757         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92758         UID, GID.  Check range.
92759
92760 2000-09-06  Jim Meyering  <meyering@lucent.com>
92761
92762         * lib/getopt.c (_getopt_internal): Update from glibc.
92763
92764 2000-08-30  Jim Meyering  <meyering@lucent.com>
92765
92766         * lib/strftime.c: Merge in changes from GNU libc.
92767
92768 2000-08-26  Jim Meyering  <meyering@lucent.com>
92769
92770         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92771         * m4/fpending.m4: New file.
92772
92773 2000-08-26  Jim Meyering  <meyering@lucent.com>
92774
92775         * lib/closeout.c: Include "__fpending.h".
92776         (close_stdout_status): Return right away if there's nothing to flush.
92777
92778         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92779         * lib/__fpending.c: New file.
92780         * lib/__fpending.h: New file.
92781
92782 2000-08-20  Jim Meyering  <meyering@lucent.com>
92783
92784         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92785         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92786         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92787
92788 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92789
92790         Improve fileutils installation on systems where running
92791         programs (like install) can't be unlinked.
92792         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92793         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92794
92795 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92796
92797         Standardize on "memory exhausted" instead of "Memory exhausted"
92798         or "virtual memory exhausted".
92799         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92800         "virtual memory exhausted".
92801         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92802         our own message.
92803         * lib/userspec.c (parse_user_spec): Likewise.
92804         * lib/bumpalloc.h: comment fix
92805         * lib/same.c, userspec.c: Include xalloc.h.
92806
92807         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92808         not char *const and pointing to a constant array.
92809         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92810         (xrealloc): Comment fix.
92811
92812         * lib/userspec.c (parse_user_spec):
92813         Don't translate a message until just before returning,
92814         to avoid unnecessary translation.
92815
92816 2000-08-07  Jim Meyering  <meyering@lucent.com>
92817
92818         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92819         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92820         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92821         getgroups.c, gethostname.c, getopt.h, group-member.c,
92822         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92823         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92824         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92825         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
92826         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
92827         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
92828         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
92829         yesno.c: Back out Copyright date changes for each file with no change
92830         this year.  This eases coordination with other programs using the same
92831         source code modules.  From Paul Eggert.
92832
92833 2000-08-06  Paul Eggert  <eggert@twinsun.com>
92834
92835         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
92836         not char, for compatibility with glibc 2.1.3 strftime.c.
92837
92838 2000-08-03  Greg McGary  <greg@mcgary.org>
92839
92840         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
92841         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
92842         (EXTEND_BUFFER): Use them.
92843
92844 2000-08-01  Jim Meyering  <meyering@lucent.com>
92845
92846         * lib/dirname.c (ISSLASH): Define.
92847         (BACKSLASH_IS_PATH_SEPARATOR): Define.
92848         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
92849         both `\' and `/' may be use as path separators.
92850         Based on a patch from Prashant TR.
92851
92852 2000-07-31  Paul Eggert  <eggert@twinsun.com>
92853
92854         * lib/quotearg.c (quotearg_n_options): Don't make the initial
92855         slot vector a constant, since it might get modified.
92856
92857 2000-07-31  Jim Meyering  <meyering@lucent.com>
92858
92859         * lib/xmalloc.c: Use `virtual memory exhausted', not
92860         `Memory exhausted'.
92861         * lib/obstack.c (print_and_abort): Likewise.
92862
92863 2000-07-30  Paul Eggert  <eggert@twinsun.com>
92864
92865         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
92866         buffer, so that the caller can always quote one small
92867         component of a "memory exhausted" message in slot 0.
92868         From a suggestion by Jim Meyering.
92869
92870 2000-07-30  Jim Meyering  <meyering@lucent.com>
92871
92872         * lib/makepath.c (make_path): Quote the other instance, too.
92873
92874         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
92875         (STATIC_BUF_SIZE): Define.
92876         (quotearg_n_options): Use only statically allocated storage when
92877         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
92878         than STATIC_BUF_SIZE.
92879
92880 2000-07-29  Jim Meyering  <meyering@lucent.com>
92881
92882         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
92883         * lib/dirname.c (dir_name): Likewise.
92884
92885         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
92886         `/'.
92887
92888         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
92889         (dir_name): Assert that there are no trailing slashes.
92890
92891 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
92892
92893         * lib/mbswidth.h (mbswidth): Add a flags argument.
92894         (mbswidth): New declaration.
92895         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
92896         * lib/mbswidth.c (mbswidth): Add a flags argument.
92897         (mbsnwidth): New function.
92898
92899 2000-07-24  Jim Meyering  <meyering@lucent.com>
92900
92901         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
92902
92903 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92904
92905         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
92906
92907 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92908
92909         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
92910         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
92911         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
92912         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
92913         invoke multibyte primitives.
92914
92915 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92916
92917         * lib/quotearg.c:
92918         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
92919         so that mbstate_t is always defined.
92920
92921         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
92922         be 1 in at least one GCC installation, and this configuration
92923         error is likely to be common.  Ignoring MB_LEN_MAX hurts
92924         performance on hosts that have mbrtowc but have only unibyte
92925         locales, but I assume these hosts are rare.
92926
92927 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92928
92929         * lib/mbswidth.c (_XOPEN_SOURCE):
92930         Don't define; this causes problems on Solaris 7.
92931         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
92932
92933 2000-07-23  Jim Meyering  <meyering@lucent.com>
92934
92935         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
92936         too: getgrgid, getpwuid, getuid.
92937
92938 2000-07-23  Jim Meyering  <meyering@lucent.com>
92939
92940         * lib/basename.c (base_name): Add an assertion.
92941
92942 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
92943
92944         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
92945         shadow its mbsinit function.
92946
92947 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92948
92949         * lib/mbswidth.h: New file.
92950         * lib/mbswidth.c: New file.
92951         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
92952         (noinst_HEADERS): Add mbswidth.h.
92953
92954 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92955
92956         * lib/config.charset: Add support for FreeBSD. Improve support for
92957         HP-UX and IRIX 6.
92958
92959 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
92960
92961         * m4/mbswidth.m4: New file.
92962         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
92963
92964 2000-07-15  Jim Meyering  <meyering@lucent.com>
92965
92966         * lib/makepath.c: Include quote.h.
92967         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
92968         corresponding argument in a `quote (...)' call.
92969         Give better diagnostics.
92970
92971         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
92972         (noinst_HEADERS): Add quote.h.
92973
92974         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
92975         from tar's src/misc.c.
92976         * lib/quote.h: New file.  Prototypes for same.
92977
92978 2000-07-14  Paul Eggert  <eggert@twinsun.com>
92979
92980         From a suggestion by Bruno Haible.
92981         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
92982         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
92983         to decide whether to define the BeOS workaround macro;
92984         this adjusts to the change to AC_MBSTATE_T.
92985
92986 2000-07-14  Jim Meyering  <meyering@lucent.com>
92987
92988         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
92989         jm_AC_TYPE_UINTMAX_T.
92990
92991 2000-07-13  Paul Eggert  <eggert@twinsun.com>
92992
92993         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
92994
92995         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
92996         quotearg_buffer_restyled): Add support for
92997         clocale_quoting_style.  Undo previous change to
92998         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
92999         and "{RIGHT QUOTATION MARK}" msgids.
93000
93001 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93002
93003         From a suggestion by Bruno Haible.
93004         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93005         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93006         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93007         and mbstate_t, to a single-part test that simply defines mbstate_t.
93008         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93009         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93010
93011 2000-07-10  Jim Meyering  <meyering@lucent.com>
93012
93013         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93014
93015         * m4/gnu-source.m4: Output to confdefs.h directly.
93016         Suggestion from Akim Demaille.
93017
93018 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93019
93020         The old behavior of quoting `like this' doesn't look good with
93021         newer, ISO-style fonts.  See:
93022         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93023
93024         Instead, quote "like this" by default.  Let the translator
93025         tailor the locale-specific quoting behavior by providing
93026         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93027
93028         * lib/quotearg.c (N_): New macro.
93029         (gettext_default): New function.
93030         (quotearg_buffer_restyled): Use
93031         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93032         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93033
93034 2000-07-09  Jim Meyering  <meyering@lucent.com>
93035
93036         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93037         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93038
93039         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93040         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93041
93042 2000-07-09  Jim Meyering  <meyering@lucent.com>
93043
93044         * lib/Most files: Update copyright dates to include 2000.
93045
93046 2000-07-08  Jim Meyering  <meyering@lucent.com>
93047
93048         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93049         if not defined.
93050         (xgethostname): Remove now-unnecessary #ifdef.
93051         Move declaration of `err' into loop where it's used.
93052
93053 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93054         and Bruno Haible  <haible@clisp.cons.org>
93055
93056         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93057         only if the test for an object-type mbstate_t fails.  This
93058         prevents us from mistakenly reporting that mbstate_t is a
93059         system object type after we "#define mbstate_t int" to work
93060         around its lack.
93061
93062 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93063         and Bruno Haible  <haible@clisp.cons.org>
93064
93065         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93066
93067 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93068
93069         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93070         to strerror_r.
93071         Include <ctype.h> for use of isalpha.
93072
93073 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93074
93075         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93076         by allocating a larger buffer. Test the gethostname return value for
93077         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93078         returns an error and ENAMETOOLONG isn't defined.
93079
93080 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93081
93082         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93083         dimension.
93084
93085 2000-07-04  Jim Meyering  <meyering@lucent.com>
93086
93087         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93088         of the deprecated AC_CHECKING.
93089
93090 2000-07-04  Jim Meyering  <meyering@lucent.com>
93091
93092         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93093         Reported by Bruno Haible.
93094
93095 2000-07-04  Jim Meyering  <meyering@lucent.com>
93096
93097         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93098         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93099         lacks mbrtowc.
93100
93101 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93102
93103         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93104         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93105
93106 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93107         and Bruno Haible  <haible@clisp.cons.org>
93108
93109         * lib/quotearg.c (mbrtowc):
93110         Assign to *pwc, and return 1 only if result is nonzero.
93111         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93112
93113 2000-07-03  Jim Meyering  <meyering@lucent.com>
93114
93115         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93116
93117 2000-07-03  Jim Meyering  <meyering@lucent.com>
93118
93119         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93120         This is necessary to get a definition of e.g., UTMP_FILE on
93121         HP-UX 10.20.
93122         From Bob Proulx.
93123
93124 2000-07-02  Jim Meyering  <meyering@lucent.com>
93125
93126         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93127
93128         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93129         AC_LIBOBJ(function_name).
93130         * m4/chown.m4: Likewise.
93131         * m4/fnmatch.m4: Likewise.
93132         * m4/ftruncate.m4: Likewise.
93133         * m4/getgroups.m4: Likewise.
93134         * m4/getline.m4: Likewise.
93135         * m4/group-member.m4: Likewise.
93136         * m4/jm-macros.m4: Likewise.
93137         * m4/lstat.m4: Likewise.
93138         * m4/malloc.m4: Likewise.
93139         * m4/memcmp.m4: Likewise.
93140         * m4/nanosleep.m4: Likewise.
93141         * m4/putenv.m4: Likewise.
93142         * m4/realloc.m4: Likewise.
93143         * m4/regex.m4: Likewise.
93144         * m4/stat.m4: Likewise.
93145         * m4/strftime.m4: Likewise.
93146
93147 2000-07-02  Jim Meyering  <meyering@lucent.com>
93148
93149         * lib/quotearg.c (mbstate_t): Don't define here.
93150
93151 2000-07-02  Jim Meyering  <meyering@lucent.com>
93152
93153         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93154
93155 2000-07-01  Jim Meyering  <meyering@lucent.com>
93156
93157         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93158
93159 2000-07-01  Jim Meyering  <meyering@lucent.com>
93160
93161         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93162         problem.
93163
93164 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93165
93166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93167         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93168
93169 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93170
93171         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93172         per change in ../m4/ls-mntd-fs.m4.
93173         (read_filesystem_list): Ignore symbolic links.
93174
93175 2000-06-29  Jim Meyering  <meyering@lucent.com>
93176
93177         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93178         for declaration of strcmp.
93179
93180         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93181
93182         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93183         Avoid warning by casting result to `char *' to remove `const'.
93184
93185 2000-06-28  Jim Meyering  <meyering@lucent.com>
93186
93187         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93188         included by quotearg.c, for which we perform this test.  From
93189         Bruno Haible.
93190
93191 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93192
93193         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93194         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93195         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93196
93197 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93198
93199         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93200
93201 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93202
93203         savedir now sets errno on failure and invokes xmalloc to get memory.
93204         Fix a couple of other minor bugs while we're at it.
93205
93206         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93207         (NAMLEN): Remove macro.
93208         (malloc, realloc): Remove decls.
93209         (stpcpy): Likewise.
93210         ("xalloc.h"): Include.
93211         (NAME_SIZE_DEFAULT): New macro.
93212         (savedir): Use xmalloc / xrealloc to allocate memory.
93213         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93214         Skip "" directory entries.
93215         Use strlen to calculate directory entry length, since the old method
93216         is rarely used these days and isn't worth supporting.
93217         Don't use a pointer after freeing it.
93218         Check for integer overflow when calculating allocation size.
93219         Use memcpy to copy entries, instead of stpcpy.
93220         Set errno properly when returning NULL.
93221         Check for readdir error.
93222
93223 2000-06-26  Jim Meyering  <meyering@lucent.com>
93224
93225         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93226
93227 2000-06-25  Jim Meyering  <meyering@lucent.com>
93228
93229         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93230         Linux header bug when _XOPEN_SOURCE is defined to 500.
93231
93232 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93233
93234         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93235         deficiency.
93236
93237 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93238
93239         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93240         Include xalloc.h.
93241         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93242
93243 2000-06-24  Jim Meyering  <meyering@lucent.com>
93244
93245         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93246         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93247         for which strerror does return char*, but which lacks a conveniently
93248         accessible declaration of the function.  If the compile-test says
93249         strerror_r doesn't work, then resort to a `run'-test that works on
93250         BeOS and segfaults on DEC Unix.
93251
93252 2000-06-24  Jim Meyering  <meyering@lucent.com>
93253
93254         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93255
93256 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93257
93258         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93259         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93260
93261 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93262
93263         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93264         (mbrtowc, mbstate_t): Define substitutes if
93265         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93266         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93267         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93268
93269 2000-06-23  Jim Meyering  <meyering@lucent.com>
93270
93271         * m4/afs.m4: Add missing AC_MSG_RESULT.
93272         Reported by Bruno Haible.
93273
93274         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93275         Suggestion from Bruno Haible.
93276
93277 2000-06-23  Jim Meyering  <meyering@lucent.com>
93278
93279         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93280
93281 2000-06-21  Jim Meyering  <meyering@lucent.com>
93282
93283         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93284
93285 2000-06-21  Jim Meyering  <meyering@lucent.com>
93286
93287         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93288         (noinst_HEADERS): Add getstr.h.
93289
93290         * lib/getline.c (getstr): Move into a separate file.
93291         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93292         the following changes: new parameter, delim2; both delim[12]
93293         parameters have type `int', not `char'.  The latter would lose
93294         with 8-bit delimiters.
93295         * lib/getstr.h: New file.
93296
93297 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93298
93299         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93300         than 1024, return a memory chunk of least possible size, instead
93301         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93302         Use free/xmalloc instead of xrealloc to avoid copying for very long
93303         paths.
93304
93305 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93306
93307         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93308         the empty string.
93309
93310 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93311
93312         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93313         address, not strdup.  Include <stdlib.h> and don't declare free().
93314
93315 2000-06-19  Jim Meyering  <meyering@lucent.com>
93316
93317         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93318
93319 2000-06-18  Jim Meyering  <meyering@lucent.com>
93320
93321         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93322
93323         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93324         `checking whether...' message to be consistent with that of the
93325         lstat test.
93326
93327 2000-06-18  Jim Meyering  <meyering@lucent.com>
93328
93329         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93330         Besides, these days every porting target provides a mkdir function.
93331
93332         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93333         needed. (this snippet comes from src/system.h).
93334
93335 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93336
93337         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93338
93339 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93340
93341         * lib/human.c (adjust_value): New function.
93342         (human_readable_inexact): Apply rounding style even when
93343         printing approximate values.
93344
93345 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93346
93347         * lib/human.c (human_readable_inexact): Allow an input block
93348         size that is not a multiple of the output block size, and vice versa.
93349         Reported by Piergiorgio Sartor.
93350
93351 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93352
93353         * lib/getdate.y (get_date): Apply relative times after time
93354         zone indicator, not before.  Reported by Todd A. Jacobs.
93355
93356 2000-06-13  Jim Meyering  <meyering@lucent.com>
93357
93358         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93359
93360         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93361
93362 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93363
93364         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93365
93366 2000-06-12  Jim Meyering  <meyering@lucent.com>
93367
93368         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93369         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93370         optional argument.
93371         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93372         the optional argument, `lib'.
93373
93374 2000-06-08  Jim Meyering  <meyering@lucent.com>
93375
93376         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93377
93378 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93379
93380         Rewrite largefile configuration so that we don't need to run
93381         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93382         AC_CANONICAL_HOST in configure.in -- jmm]
93383
93384         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93385         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93386         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93387         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93388         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93389         All uses changed.
93390         Instead of inspecting the output of getconf, try to compile the
93391         test program without and with the macro definition.
93392         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93393         for getconf.  Instead, check for the needed flags by compiling
93394         test programs.
93395
93396 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93397
93398         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93399
93400 2000-06-04  Jim Meyering  <meyering@lucent.com>
93401
93402         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93403         SunOS 4.1.4 for which gid_t is an unsigned type.
93404
93405 2000-06-03  Jim Meyering  <meyering@lucent.com>
93406
93407         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93408         now that autoconf requires that.
93409
93410         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93411         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93412         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93413
93414 2000-06-03  Jim Meyering  <meyering@lucent.com>
93415
93416         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93417
93418 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93419
93420         * m4/glibc21.m4: New file.
93421         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93422
93423 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93424
93425         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93426         newer, don't install charset.alias.
93427         * lib/config.charset: Change the Linux/glibc rules so they become empty
93428         on glibc-2.1 or newer.
93429
93430 2000-06-02  Jim Meyering  <meyering@lucent.com>
93431
93432         * lib/mountlist.c: Back out last change.  Instead, do this...
93433         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93434         me_dummy member using the same `ignore'-testing code.
93435         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93436         fs_type strings.
93437         From Mark D. Roth.
93438
93439 2000-05-29  Jim Meyering  <meyering@lucent.com>
93440
93441         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93442         mounts with the `ignore' attribute.  Based on a patch from
93443         Mark D. Roth.
93444
93445 2000-05-28  Jim Meyering  <meyering@lucent.com>
93446
93447         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93448         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93449         * m4/stat.m4: Likewise.
93450         * m4/lstat.m4: Likewise.
93451         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93452
93453         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93454         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93455
93456 2000-05-26  Jim Meyering  <meyering@lucent.com>
93457
93458         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93459
93460 2000-05-24  Jim Meyering  <meyering@lucent.com>
93461
93462         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93463         autoconf requires that.
93464         * m4/lib-check.m4: Likewise.
93465         * m4/jm-macros.m4: Likewise.
93466         * m4/strftime.m4: Likewise.
93467
93468         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93469         AC_CHECK_DECLS, now that autoconf requires that.
93470
93471 2000-05-22  Jim Meyering  <meyering@lucent.com>
93472
93473         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93474         * m4/lstat.m4: Likewise.
93475
93476 2000-05-22  Jim Meyering  <meyering@lucent.com>
93477
93478         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93479
93480 2000-05-20  Jim Meyering  <meyering@lucent.com>
93481
93482         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93483         (jm_PREREQ): Use it.
93484
93485 2000-05-18  Jim Meyering  <meyering@lucent.com>
93486
93487         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93488         back, too, since it may have been modified by allocate_entry.
93489         (hash_delete): Rewrite to use neither the assignment operator
93490         nor the comma operator in an if-expression.
93491
93492 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93493
93494         * lib/closeout.c:
93495         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93496         Remove; no longer needed.
93497         "quotearg.h": Add include.
93498         (file_name): Do not bother to explicitly initialize to NULL; it's less
93499         efficient on some hosts.
93500         (close_stdout_status): Remove test as to whether stdout was already
93501         closed; it breaks for the case "echo x | sort >&-".
93502         Quote file name colons.
93503         Do not assume that _("write error") lacks format strings.
93504
93505 2000-05-15  Jim Meyering  <meyering@lucent.com>
93506
93507         * lib/version-etc.c (version_etc_copyright): Update the copyright
93508         string used in all --version output.
93509
93510 2000-05-14  Jim Meyering  <meyering@lucent.com>
93511
93512         * lib/closeout.c (close_stdout_set_file_name): New function.
93513         (close_stdout_status): Use new file-scoped global.
93514         Return right away if fstat says the stdout file descriptor is invalid.
93515         * lib/closeout.h (close_stdout_set_file_name): Declare.
93516
93517 2000-05-10  Jim Meyering  <meyering@lucent.com>
93518
93519         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93520         (close_stdout_set_status): New function.
93521         * lib/closeout.h (close_stdout_set_status): Declare.
93522
93523 2000-05-09  Jim Meyering  <meyering@lucent.com>
93524
93525         * m4/gettext.m4: Rename this...
93526         * m4/libintl.m4: ...to this.
93527
93528 2000-05-08  Jim Meyering  <meyering@lucent.com>
93529
93530         * lib/long-options.c: Don't include closeout.h.
93531         (parse_long_options): Don't call close_stdout for --version.
93532
93533 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93534
93535         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93536         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93537         2.1.3 bug.  This avoids a clash when files like regex.c define
93538         _GNU_SOURCE.
93539
93540 2000-05-06  Jim Meyering  <meyering@lucent.com>
93541
93542         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93543         (AC_REPLACE_FUNCS): Add strnlen.
93544
93545         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93546         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93547
93548         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93549         AC_SEARCH_LIBS call for nanosleep.
93550         (LIB_NANOSLEEP): Set and AC_SUBST.
93551
93552 2000-05-06  Jim Meyering  <meyering@lucent.com>
93553
93554         * lib/strnlen.c: Undefine __strnlen and strnlen.
93555         [!weak_alias]: Define __strnlen to strnlen.
93556
93557         * lib/atexit.c: New file, from libiberty.
93558
93559 2000-05-06  Jim Meyering  <meyering@lucent.com>
93560
93561         * lib/closeout.c (close_stdout_status): Also check for errors on the
93562         stderr stream.
93563
93564 2000-05-05  Jim Meyering  <meyering@lucent.com>
93565
93566         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93567         AC_SEARCH_LIBS call for clock_gettime.
93568         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93569
93570         * m4/search-libs.m4: Update from autoconf.
93571
93572         su doesn't work on Solaris 2.6.
93573         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93574         <shadow.h>.  Reported by Dragos Harabor.
93575
93576 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93577
93578         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93579         memcpy instead of xmalloc, xrealloc, path_concat.
93580         (locale_charset): Treat empty environment variables as absent.
93581         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93582
93583 2000-05-04  Jim Meyering  <meyering@lucent.com>
93584
93585         * lib/getopt.c: Update from glibc.
93586         * lib/obstack.c: Likewise.
93587         * lib/obstack.h: Likewise.
93588         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93589         file
93590
93591         * lib/regex.h: Likewise.
93592         * lib/strndup.c: Likewise.
93593         * lib/strnlen.c: New file, from glibc.
93594
93595 2000-05-03  Jim Meyering  <meyering@lucent.com>
93596
93597         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93598
93599 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93600
93601         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93602         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93603         compile-time test, rather than inspecting host and OS, to
93604         decide whether to define _LARGEFILE_SOURCE.
93605
93606 2000-05-01  Jim Meyering  <meyering@lucent.com>
93607
93608         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93609
93610         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93611         Based on a patch from Bruno Haible.
93612
93613 2000-05-01  Jim Meyering  <meyering@lucent.com>
93614
93615         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93616
93617 2000-04-29  Jim Meyering  <meyering@lucent.com>
93618
93619         * lib/path-concat.c: Declare strdup only if it's not defined.
93620         * lib/canon-host.c: Likewise.
93621
93622 2000-04-28  Jim Meyering  <meyering@lucent.com>
93623
93624         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93625         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93626         is included first, then limits.h is included by locale.h by libintl.h.
93627         From John David Anglin.
93628
93629 2000-04-25  Jim Meyering  <meyering@lucent.com>
93630
93631         * lib/makepath.c (S_IRWXUGO): Define.
93632         (make_path): Always perform explicit chmod if MODE specifies any
93633         of the `special' permission bits.  Prompted by a bug report against
93634         install from Mate Wierdl and Joost van Baal.
93635
93636 2000-04-18  Jim Meyering  <meyering@lucent.com>
93637
93638         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93639         (jm_PREREQ): Use it.
93640
93641 2000-04-18  Jim Meyering  <meyering@lucent.com>
93642
93643         * lib/README: New file.
93644
93645         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93646         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93647
93648 2000-04-17  Jim Meyering  <meyering@lucent.com>
93649
93650         Get it right :-)
93651         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93652         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93653         Suggestion from Akim Demaille.
93654
93655 2000-04-17  Jim Meyering  <meyering@lucent.com>
93656
93657         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93658         the definition of it to rpl_strftime also defined-away the system's
93659         declaration.
93660
93661 2000-04-15  Jim Meyering  <meyering@lucent.com>
93662
93663         Use `C' to denote so-called `contiguous' files, the same way
93664         that tar does.
93665         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93666         (ftypelet): Use S_ISCTG.
93667         From Michael Deutschmann.
93668
93669 2000-04-14  Jim Meyering  <meyering@lucent.com>
93670
93671         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93672         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93673         clobbered.
93674
93675 2000-04-14  Jim Meyering  <meyering@lucent.com>
93676
93677         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93678
93679 2000-04-13  Jim Meyering  <meyering@lucent.com>
93680
93681         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93682         AH_VERBATIM to insert required #ifndef into config.h.in.
93683         Suggestion from Akim Demaille.
93684
93685 2000-04-12  Jim Meyering  <meyering@lucent.com>
93686
93687         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93688         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93689         Christian Krackowizer.
93690
93691         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93692         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93693         (AC_SYS_LARGEFILE): Require.
93694         (AM_C_PROTOTYPES): Require.
93695
93696 2000-04-08  Jim Meyering  <meyering@lucent.com>
93697
93698         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93699         names don't conflict.  Reported by Eli Zaretskii.
93700
93701 2000-04-07  Jim Meyering  <meyering@lucent.com>
93702
93703         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93704         sys/types.h, to work around system header problems on AIX 3.2.5.
93705         From Bruno Haible.
93706
93707 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93708
93709         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93710         bug.  Deal with the different error behavior of Irix iconv.
93711
93712 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93713
93714         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93715         IRIX if the installer said otherwise.
93716
93717 2000-04-05  Jim Meyering  <meyering@lucent.com>
93718
93719         Portability tweaks required for ultrix4.3.
93720         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93721         (jm_CHECK_DECLS): Add getutent to the list of functions.
93722         (_jm_DECL_HEADERS): Add utmpx.h.
93723         From John David Anglin.
93724
93725         * m4/strftime.m4: Back out the 2000-04-02 change.
93726         Instead of that change, simply undefine putenv in the test program.
93727
93728 2000-04-05  Jim Meyering  <meyering@lucent.com>
93729
93730         Portability tweaks required for ultrix4.3.
93731         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93732         getutent.
93733         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93734         * lib/canon-host.c: Declare strdup.
93735         * lib/path-concat.c: Likewise.
93736         From John David Anglin.
93737
93738 2000-04-04  Jim Meyering  <meyering@lucent.com>
93739
93740         Be more DOS 8.3-friendly.
93741         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93742         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93743         * lib/Makefile.am: Reflect renaming.
93744         Reported by Eli Zaretskii.
93745
93746         Use a temporary file name that won't clash with `charset.alias'
93747         in the DOS 8.3 name space.
93748         * lib/Makefile.am (charset_tmp): Define.
93749         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93750         (uninstall-local): Likewise.
93751         Reported by Eli Zaretskii.
93752
93753 2000-04-03  Jim Meyering  <meyering@lucent.com>
93754
93755         * m4/gettext.m4: Fix typo in comment.
93756
93757         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93758         textutils/configure.in).  Suggestion from Paul Eggert.
93759         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93760
93761 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93762
93763         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93764         variable in the shell rather than using putenv, which isn't
93765         portable.  This avoids the configure-time inter-test dependency
93766         on the potentially-renamed putenv function.
93767
93768 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93769
93770         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93771         before checking struct stat.st_blksize, so that
93772         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93773
93774 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93775
93776         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93777         since strftime.c uses HAVE_STRFTIME to decide whether to use
93778         the underlying strftime.
93779
93780 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93781
93782         * lib/time/strftime.c (my_strftime): Make sure we call the system
93783         strftime, not ourselves, when invoking the underlying strftime.
93784
93785 2000-03-24  Jim Meyering  <meyering@lucent.com>
93786
93787         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93788         (charset_alias): Define.
93789         (install-exec-local): Factor out common code.
93790         (uninstall-local): Split lines longer than 80.
93791         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93792         (SUFFIXES): Define.
93793         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93794         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93795
93796 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93797
93798         * lib/config.charset: Output a line containing "Packages using this
93799         file".
93800         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93801         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93802         ref-del.sed): New rules.
93803
93804 2000-03-17  Jim Meyering  <meyering@lucent.com>
93805
93806         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93807         Otherwise, include <strings.h>
93808
93809 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93810
93811         * lib/unicodeio.c (utf8_wctomb): New function.
93812         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93813         format instead of in UCS-4 with platform dependent endianness.
93814
93815 2000-03-10  Jim Meyering  <meyering@lucent.com>
93816
93817         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93818         From Marco Franzen.
93819
93820 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93821
93822         * lib/savedir.c (savedir): Work even if directory size is
93823         negative; this can happen with some screwy NFS configurations.
93824
93825 2000-03-06  Jim Meyering  <meyering@lucent.com>
93826
93827         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
93828         if it's NULL (because we ran out of memory).  From Bruno Haible.
93829
93830 2000-03-05  Jim Meyering  <meyering@lucent.com>
93831
93832         * lib/localcharset.c ("path-concat.h"): Include.
93833         (get_charset_aliases): Use path_concat instead of ANSI string
93834         concatenation.
93835
93836         * lib/unicodeio.h (PARAMS): Define.
93837         Use it to guard prototype.
93838
93839 2000-03-04  Jim Meyering  <meyering@lucent.com>
93840
93841         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
93842         for lib/localcharset.c.
93843
93844 2000-03-04  Jim Meyering  <meyering@lucent.com>
93845
93846         * lib/Makefile.am (install-exec-local): Create $(libdir) before
93847         installing into it.
93848         (uninstall-local): Uncomment this rule so `make distcheck' works
93849         once again.
93850
93851         * lib/unicodeio.c (<errno.h>): Include it.
93852         (errno): Declare if not defined.
93853
93854         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
93855
93856         * lib/config.charset: New version, incorporating remarks from a linux
93857         i18n mailing list.  From Bruno Haible.
93858
93859 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
93860
93861         * m4/codeset.m4: New file.
93862         * m4/iconv.m4: New file.
93863         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
93864
93865 2000-03-03  Jim Meyering  <meyering@lucent.com>
93866
93867         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
93868
93869 2000-03-02  Jim Meyering  <meyering@lucent.com>
93870
93871         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
93872         the messages come out on separate lines.
93873
93874         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
93875         rather than jm_CHECK_DECLARATIONS.
93876         * m4/decl.m4: Remove now-unused file.
93877
93878         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
93879         geteuid.
93880
93881 2000-03-02  Jim Meyering  <meyering@lucent.com>
93882
93883         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
93884
93885 2000-03-01  Jim Meyering  <meyering@lucent.com>
93886
93887         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
93888         * lib/unicodeio.c: Likewise.
93889
93890 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
93891
93892         * lib/config.charset: New file.
93893         * lib/localcharset.c: New file.
93894         * lib/unicodeio.h, lib/unicodeio.c: New files.
93895         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
93896         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
93897         (noinst_HEADERS): Add unicodeio.h.
93898         (all-local, install-exec-local, charset.alias): New targets.
93899
93900 2000-02-28  Paul Eggert  <eggert@twinsun.com>
93901
93902         * lib/quotearg.c (ALERT_CHAR): New macro.
93903         (quotearg_buffer_restyled): Use it.
93904
93905 2000-02-27  Jim Meyering  <meyering@lucent.com>
93906
93907         * m4/check-decl.m4: Add getenv to the list.
93908
93909 2000-02-27  Jim Meyering  <meyering@lucent.com>
93910
93911         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
93912         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
93913
93914         * lib/backupfile.c: Guard inclusion of stdlib.h with
93915         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
93916         Declare malloc if needed.
93917
93918         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
93919         `#ifndef HAVE_DECL..'
93920         now that autoconf always defines the HAVE_DECL_ symbols.
93921         * lib/human.c: Likewise.
93922         * lib/same.c: Likewise.
93923         * lib/strtoumax.c: Likewise.
93924
93925         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
93926         declaration check was not run.
93927         * lib/hash.c: Likewise.
93928         * lib/human.c: Likewise.
93929         * lib/same.c: Likewise.
93930         * lib/strtoumax.c: Likewise.
93931
93932         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
93933         `.', then first look up the entire `.'-containing string as a login
93934         name.
93935
93936 2000-02-23  Jim Meyering  <meyering@lucent.com>
93937
93938         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
93939         in place of my hack.
93940
93941 2000-02-18  Paul Eggert  <eggert@twinsun.com>
93942
93943         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
93944         (textint): New typedef.
93945         (parser_control): Member year changed from int to textint.
93946         All uses changed.
93947         (YYSTYPE): Removed; replaced by %union with int and textint members.
93948         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
93949         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
93950         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
93951         (tSNUMBER, tUNUMBER): Now of type <textintval>.
93952         (date, number, to_year): Use width of number in digits, not its value,
93953         to determine whether it's a 2-digit year, or a 2-digit time.
93954         (yylex): Store number of digits of numeric tokens.
93955         Reported by John Kendall.
93956
93957         (parser_control): Changed from struct parser_control to typedef (for
93958         consistency).  All uses changed.
93959
93960         (tID): Removed; not used.
93961         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
93962
93963 2000-02-14  Paul Eggert  <eggert@twinsun.com>
93964
93965         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
93966         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
93967
93968 2000-02-12  Jim Meyering  <meyering@lucent.com>
93969
93970         * lib/userspec.c (ISDIGIT): Define it.
93971         (isdigit): Remove definition.
93972         (is_number): Use ISDIGIT, not isdigit.
93973         <libintl.h>: Include.
93974         (_ and N_): Define.
93975         (parse_user_spec): Mark translatable strings.
93976
93977 2000-02-10  Jim Meyering  <meyering@lucent.com>
93978
93979         With these changes, nanosleep.[ch] are finally enough like the other
93980         lib/* replacement files to compile on a few more losing systems.
93981
93982         * lib/nanosleep.h: Don't include config.h.
93983         Remove prototype from declaration of nanosleep.
93984         (PARAMS): Remove now-unneeded definition.
93985         * lib/nanosleep.c: #undef nanosleep.
93986         (rpl_nanosleep): Rename from nanosleep.
93987
93988 2000-02-10  Jim Meyering  <meyering@lucent.com>
93989
93990         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
93991         gnu_nanosleep to rpl_nanosleep.
93992
93993 2000-02-09  Jim Meyering  <meyering@lucent.com>
93994
93995         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
93996         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
93997
93998 2000-02-08  Akim Demaille  <akim@epita.fr>
93999
94000         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94001         `[' and `]' and remove uses of `changequote'.
94002         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94003         (AC_SYS_LARGEFILE): Likewise.
94004         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94005         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94006         of changequote.
94007         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94008         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94009         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94010         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94011
94012 2000-02-05  Jim Meyering  <meyering@lucent.com>
94013
94014         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94015         Remove explicit use of AC_HEADER_TIME.  It is required by
94016         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94017         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94018         in autoconf whereby the expansion of the latter ended up preceding
94019         the expansion of its prerequisite, AC_HEADER_TIME.
94020         Reported by Volker Borchert.
94021
94022 2000-02-03  Jim Meyering  <meyering@lucent.com>
94023
94024         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94025
94026 2000-02-03  Jim Meyering  <meyering@lucent.com>
94027
94028         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94029         rather than with `#if HAVE_UTMPNAME'.
94030
94031 2000-02-02  Jim Meyering  <meyering@lucent.com>
94032
94033         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94034         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94035         Reported by Eli Zaretskii.
94036
94037 2000-02-01  Jim Meyering  <meyering@lucent.com>
94038
94039         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94040
94041 2000-01-31  Jim Meyering  <meyering@lucent.com>
94042
94043         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94044         functions.  Add the time.h and sys/time.h headers along with the
94045         AC_REQUIRE'ment of AC_HEADER_TIME.
94046
94047 2000-01-31  Jim Meyering  <meyering@lucent.com>
94048
94049         * lib/nanosleep.h (nanosleep): Guard declaration with
94050         `#if ! HAVE_DECL_NANOSLEEP'.
94051         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94052         the declaration in that vendor's sys/timers.h.
94053         Reported by Christian Krackowizer.
94054
94055         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94056         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94057         (ISPRINT): Likewise.
94058         Reported by Tom Tromey.
94059
94060 2000-01-30  Jim Meyering  <meyering@lucent.com>
94061
94062         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94063
94064         * m4/prereq.m4 (utmp_includes): Define.
94065         Check for ut_user and ut_name members in both struct utmpx
94066         and struct utmp.
94067
94068 2000-01-30  Jim Meyering  <meyering@lucent.com>
94069
94070         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94071         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94072         header files where only utmpx.ut_user is declared.
94073
94074         * lib/readutmp.h (UT_USER): Define.
94075
94076 2000-01-29  Jim Meyering  <meyering@lucent.com>
94077
94078         * m4/lib-check.m4: New file containing library-related checks from
94079         fileutils and sh-utils (textutils had none).
94080
94081 2000-01-28  Jim Meyering  <meyering@lucent.com>
94082
94083         * m4/perl.m4: Change format of warning message to look more like that
94084         from the missing script.  Suggestion from François Pinard.
94085
94086 2000-01-25  Jim Meyering  <meyering@lucent.com>
94087
94088         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94089         well as time.h in the compile check.
94090         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94091         Fix typo in cross-compiling case: s/yes/no/.
94092
94093 2000-01-23  Jim Meyering  <meyering@lucent.com>
94094
94095         * m4/jm-macros.m4: Move df-related tests here from
94096         fileutils/configure.in
94097
94098         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94099         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94100
94101         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94102         s/space/ac_fsusage_space/.
94103         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94104
94105         * m4/ftruncate.m4: New file (derived from part of
94106         fileutils/configure.in).
94107         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94108         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94109
94110         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94111         AC_SUBST these here, rather than just in sh-util/configure.in, so
94112         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94113         all the same.
94114         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94115         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94116         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94117         (AC_SUBST(POW_LIBM)): Likewise.
94118         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94119
94120 2000-01-23  Jim Meyering  <meyering@lucent.com>
94121
94122         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94123         obstack.c.
94124
94125 2000-01-22  Jim Meyering  <meyering@lucent.com>
94126
94127         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94128
94129         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94130
94131         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94132         configure.in
94133         (AC_CHECK_HEADERS): Likewise for sh-utils.
94134         (AC_CHECK_HEADERS): Likewise for textutils.
94135         Merge the three lists of headers.
94136
94137         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94138         from fileutils' configure.in.
94139
94140         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94141         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94142         check-decl.m4.
94143
94144         * m4/check-decl.m4: Use #if rather than #ifdef.
94145         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94146         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94147         (_jm_DECL_HEADERS): Define new function.
94148         (jm_CHECK_DECLARATIONS): Require it.
94149
94150 2000-01-22  Jim Meyering  <meyering@lucent.com>
94151
94152         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94153         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94154         Required for some AIX systems.  Reported by Christian Krackowizer.
94155         [TESTING] (main): New function.
94156
94157         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94158         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94159         letters.
94160
94161         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94162         iswprint.
94163
94164         * lib/strverscmp.c (ISDIGIT): Define.
94165         (strverscmp): Use ISDIGIT, not isdigit.
94166
94167 2000-01-19  Jim Meyering  <meyering@lucent.com>
94168
94169         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94170         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94171         defines `struct timespec' in <sys/time.h>
94172
94173         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94174         Thanks to Akim for explaining.
94175
94176 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94177
94178         * lib/nanosleep.c (nanosleep):
94179         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94180         POSIX.1 doesn't require SA_INTERRUPT and some systems
94181         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94182         it's been part of POSIX.1 since day 1 (in 1988).
94183
94184 2000-01-17  Jim Meyering  <meyering@lucent.com>
94185
94186         * lib/interlock: Remove unused file.  Reported by François Pinard.
94187
94188 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94189
94190         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94191         alert, backslash, formfeed, and vertical tab unnecessarily in
94192         shell quoting style.
94193
94194 2000-01-16  Jim Meyering  <meyering@lucent.com>
94195
94196         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94197         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94198         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94199         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94200
94201 2000-01-16  Jim Meyering  <meyering@lucent.com>
94202
94203         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94204         because the latter didn't work.
94205
94206 2000-01-15  Jim Meyering  <meyering@lucent.com>
94207
94208         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94209         (AC_REPLACE_FUNCS): Add memcpy and memset.
94210         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94211         Add strpbrk.
94212         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94213
94214 2000-01-12  Jim Meyering  <meyering@lucent.com>
94215
94216         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94217         (jm_PREREQ): Use it.
94218         (jm_PREREQ_READUTMP): New macro.
94219         (jm_PREREQ): Use it.
94220
94221 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94222
94223         Quote multibyte characters correctly.
94224         * m4/c-bs-a.m4: New file.
94225         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94226         (jm_PREREQ): Use it.
94227
94228 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94229
94230         * m4/uintmax_t.m4: Port to autoconf 2.13.
94231
94232 2000-01-08  Jim Meyering  <meyering@ascend.com>
94233
94234         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94235         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94236
94237 2000-01-04  Jim Meyering  <meyering@ascend.com>
94238
94239         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94240         jm_STRUCT_DIRENT_D_TYPE.
94241         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94242         jm_STRUCT_DIRENT_D_INO.
94243         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94244         jm_STRUCT_UTIMBUF.
94245         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94246         renamings.
94247         * m4/utime.m4: Likewise.
94248
94249         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94250         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94251
94252 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94253
94254         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94255         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94256
94257 2000-01-02  Jim Meyering  <meyering@ascend.com>
94258
94259         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94260         remember if this is necessary.
94261
94262 1999-12-26  Jim Meyering  <meyering@ascend.com>
94263
94264         * m4/jm-macros.m4: Use it here.
94265         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94266
94267 1999-12-23  Jim Meyering  <meyering@ascend.com>
94268
94269         * m4/jm-macros.m4: Check for clock_gettime (moved from
94270         fileutils/configure.in)
94271         Check for gettimeofday.
94272
94273 1999-12-20  Jim Meyering  <meyering@ascend.com>
94274
94275         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94276         autoconf-2.14a-1999-12-20.
94277
94278 1999-12-19  Jim Meyering  <meyering@ascend.com>
94279
94280         * m4/lstat-slash.m4: New file.
94281         * m4/jm-macros.m4: Use the new macro:
94282         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94283
94284 1999-12-07  Jim Meyering  <meyering@ascend.com>
94285
94286         * m4/perl.m4: Require that File::Compare be available, too.
94287         Too many systems seem to lack it.
94288
94289         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94290         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94291
94292 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94293
94294         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94295         problem with the QNX 4.25 shell, which doesn't propagate exit
94296         status of failed commands inside shell assignments.
94297
94298 1999-11-17  Jim Meyering  <meyering@ascend.com>
94299
94300         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94301
94302 1999-11-07  Jim Meyering  <meyering@ascend.com>
94303
94304         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94305
94306 1999-11-06  Jim Meyering  <meyering@ascend.com>
94307
94308         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94309         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94310
94311 1999-11-05  Jim Meyering  <meyering@ascend.com>
94312
94313         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94314         configure.in of textutils, fileutils, and sh-utils into this one
94315         (shared between those packages) file.
94316         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94317         AC_STRUCT_ST_BLKSIZE.
94318
94319 1999-11-03  Jim Meyering  <meyering@ascend.com>
94320
94321         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94322         of AC_CHECK_TYPE checks includes unistd.h.
94323         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94324         Suggestion from Akim Demaille.
94325
94326 1999-10-30  Jim Meyering  <meyering@ascend.com>
94327
94328         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94329         m4-quoted string.
94330         * m4/ls-mntd-fs.m4: Likewise.
94331         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94332         * m4/jm-winsz1.m4: Likewise.
94333
94334         * m4/const.m4: Remove file, since the fix made it into the experimental
94335         version of autoconf.
94336         * m4/mktime.m4: Likewise.
94337
94338         * m4/check-type.m4: Remove file, now that the latest version of
94339         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94340
94341         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94342         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94343         AC_CHECK_TYPE.
94344
94345 1999-10-04  Jim Meyering  <meyering@ascend.com>
94346
94347         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94348
94349 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94350
94351         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94352         2.95.1 bug with HP-UX 10.20.
94353
94354 1999-09-17  Jim Meyering  <meyering@ascend.com>
94355
94356         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94357         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94358         due to missing strdup (against sh-utils-2.0).
94359
94360 1999-08-29  Jim Meyering  <meyering@ascend.com>
94361
94362         * m4/jm-macros.m4: Require jm_BISON.
94363         * m4/bison.m4: New file.
94364
94365 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94366
94367         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94368         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94369
94370 1999-08-05  Jim Meyering  <meyering@ascend.com>
94371
94372         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94373         to avoid conflicts with `conftest' on 8+3 filesystems.
94374         Suggestion from Eli Zaretskii.
94375
94376 1999-08-04  Jim Meyering  <meyering@ascend.com>
94377
94378         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94379         fileutils and sh-utils (textutils's getline test was inadequate).
94380         (AM_FUNC_GETLINE): Run this test.
94381         (AC_CHECK_FUNCS): Check for getdelim.
94382         Reported by Bob Proulx.
94383
94384 1999-08-02  Jim Meyering  <meyering@ascend.com>
94385
94386         * m4/jm-macros.m4: Add a comment.
94387
94388 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94389
94390         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94391         <inttypes.h> defines strtoumax as a macro (and not as a
94392         function).
94393
94394 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94395
94396         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94397         that we can shift, multiply and divide unsigned long long
94398         values; Ultrix cc can't do it.
94399
94400 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94401
94402         * m4/mktime.m4: New file, which is a preview of what should appear
94403         in the next public autoconf release.
94404
94405 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94406
94407         * m4/lfs.m4: Remove this file.
94408         * m4/largefile.m4: New file.  It contains the old contents of
94409         lfs.m4, except that all names with prefix AC_LFS have been
94410         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94411         compatible with future autoconf versions.  Also, some minor m4
94412         quoting problems have been fixed.
94413
94414 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94415
94416         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94417         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94418         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94419         and simplify the shell code.
94420
94421 1999-08-01  Jim Meyering  <meyering@ascend.com>
94422
94423         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94424         m4.
94425
94426 1999-07-20  Jim Meyering  <meyering@ascend.com>
94427
94428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94429
94430 1999-07-15  Jim Meyering  <meyering@ascend.com>
94431
94432         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94433
94434 1999-05-22  Jim Meyering  <meyering@ascend.com>
94435
94436         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94437
94438 1999-05-20  Jim Meyering  <meyering@ascend.com>
94439
94440         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94441         Add a colon after each `then' in case $4 is empty.
94442
94443 1999-05-16  Jim Meyering  <meyering@ascend.com>
94444
94445         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94446
94447 1999-05-10  Jim Meyering  <meyering@ascend.com>
94448
94449         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94450
94451         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94452         AC_FUNC_MKTIME.
94453
94454 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94455
94456         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94457
94458 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94459
94460         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94461         not CPPFLAGS, so that linking works correctly in IRIX.
94462
94463 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94464
94465         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94466
94467 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94468
94469         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94470         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94472         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94473         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94474
94475         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94476
94477 1999-04-20  Jim Meyering  <meyering@ascend.com>
94478
94479         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94480         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94481         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94482
94483 1999-04-18  Jim Meyering  <meyering@ascend.com>
94484
94485         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94486         * m4/jm-macros.m4: Use it.
94487
94488 1999-04-06  Jim Meyering  <meyering@ascend.com>
94489
94490         * m4/strftime.m4: Remove test for %f.
94491
94492 1999-03-29  Jim Meyering  <meyering@ascend.com>
94493
94494         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94495         superset of the AC_TYPE_* checks in the textutils, fileutils,
94496         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94497         AC_TYPE_PID_T.
94498
94499 1999-03-28  Jim Meyering  <meyering@ascend.com>
94500
94501         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94502         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94503         replaced e.g., in the *.sh files of the sh-utils.
94504
94505 1999-03-20  Jim Meyering  <meyering@ascend.com>
94506
94507         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94508         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94509         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94510
94511 1999-03-19  Jim Meyering  <meyering@ascend.com>
94512
94513         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94514
94515 1999-03-12  Jim Meyering  <meyering@ascend.com>
94516
94517         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94518
94519 1999-03-07  Jim Meyering  <meyering@ascend.com>
94520
94521         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94522         declared.
94523
94524 1999-02-17  Jim Meyering  <meyering@ascend.com>
94525
94526         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94527         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94528
94529 1999-02-07  Jim Meyering  <meyering@ascend.com>
94530
94531         * m4/group-member.m4: New file -- extracted from sh-utils'
94532         configure.in.
94533
94534         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94535         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94536
94537 1999-02-06  Jim Meyering  <meyering@ascend.com>
94538
94539         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94540         * m4/fnmatch.m4: Likewise.
94541         * m4/getgroups.m4: Likewise.
94542         * m4/lstat.m4: Likewise.
94543         * m4/malloc.m4: Likewise.
94544         * m4/putenv.m4: Likewise.
94545         * m4/realloc.m4: Likewise.
94546         * m4/regex.m4: Likewise.
94547         * m4/stat.m4: Likewise.
94548         * m4/strftime.m4: Likewise.
94549         Suggestion from Alain Magloire.
94550
94551         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94552         * m4/fnmatch.m4: Likewise.
94553         * m4/getgroups.m4: Likewise.
94554         * m4/getline.m4: Likewise.
94555         * m4/lstat.m4: Likewise.
94556         * m4/malloc.m4: Likewise.
94557         * m4/memcmp.m4: Likewise.
94558         * m4/putenv.m4: Likewise.
94559         * m4/realloc.m4: Likewise.
94560         * m4/regex.m4: Likewise.
94561         * m4/stat.m4: Likewise.
94562         * m4/strftime.m4: Likewise.
94563         Suggestion from Alain Magloire.
94564
94565         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94566         an argument.
94567
94568         * m4/regex.m4: Add a run-time Test for proper operation of
94569         re_compile_pattern.
94570
94571 1999-01-31  Jim Meyering  <meyering@ascend.com>
94572
94573         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94574
94575 1999-01-30  Jim Meyering  <meyering@ascend.com>
94576
94577         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94578
94579         * m4/jm-mktime.m4: Make this a wrapper around the official
94580         AM_FUNC_MKTIME rather than my private copy, now that the official one
94581         is up to date.
94582         * m4/mktime.m4: Remove file.
94583
94584         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94585         * m4/uptime.m4: Likewise.
94586         * m4/uintmax_t.m4: Likewise.
94587
94588 1999-01-28  Jim Meyering  <meyering@ascend.com>
94589
94590         * m4/jm-macros.m4: Use jm_AFS.
94591         * m4/afs.m4: New file (from fileutils' configure.in).
94592
94593         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94594         * m4/chown.m4: Likewise.
94595         * m4/d-ino.m4: Likewise.
94596         * m4/d-type.m4: Likewise.
94597         * m4/fnmatch.m4: Likewise.
94598         * m4/getgroups.m4: Likewise.
94599         * m4/gettext.m4: Likewise.
94600         * m4/jm-mktime.m4: Likewise.
94601         * m4/jm-winsz2.m4: Likewise.
94602         * m4/lcmessage.m4: Likewise.
94603         * m4/ls-mntd-fs.m4: Likewise.
94604         * m4/malloc.m4: Likewise.
94605         * m4/memcmp.m4: Likewise.
94606         * m4/putenv.m4: Likewise.
94607         * m4/realloc.m4: Likewise.
94608         * m4/st_mtim.m4: Likewise.
94609         * m4/strftime.m4: Likewise.
94610
94611 1999-01-16  Jim Meyering  <meyering@ascend.com>
94612
94613         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94614         (ARGMATCH_DIE_DECL): Define.
94615
94616 1999-01-12  Jim Meyering  <meyering@ascend.com>
94617
94618         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94619         Reported by Lars Hecking.
94620
94621 1999-01-10  Jim Meyering  <meyering@ascend.com>
94622
94623         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94624         gross kludge.
94625         * m4/inttypes_h.m4: Likewise.
94626         * m4/lstat.m4: Likewise.
94627         * m4/malloc.m4: Likewise.
94628         * m4/readdir.m4: Likewise.
94629         * m4/realloc.m4: Likewise.
94630         * m4/st_dm_mode.m4: Likewise.
94631         * m4/stat.m4: Likewise.
94632         * m4/utimbuf.m4: Likewise.
94633         * m4/utimes.m4: Likewise.
94634
94635         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94636         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94637         comments in config.h.in are meaningful.
94638
94639         * m4/jm-macros.m4: Require autoconf-2.13 here.
94640
94641         * m4/regex.m4: By default, don't use the included regex.c on systems
94642         with glibc 2.  Suggestion from Uli Drepper.
94643
94644 1999-01-02  Jim Meyering  <meyering@ascend.com>
94645
94646         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94647
94648 1998-12-18  Jim Meyering  <meyering@ascend.com>
94649
94650         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94651         Based on a suggestion from Lars Hecking.
94652
94653 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94654
94655         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94656
94657 1998-11-16  Jim Meyering  <meyering@ascend.com>
94658
94659         * m4/lfs.m4: Double-quote the `uname...` expression.
94660
94661 1998-11-14  Jim Meyering  <meyering@ascend.com>
94662
94663         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94664         * m4/stat.m4: Likewise.
94665
94666 1998-11-03  Jim Meyering  <meyering@ascend.com>
94667
94668         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94669         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94670
94671 1998-10-18  Jim Meyering  <meyering@ascend.com>
94672
94673         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94674
94675 1998-10-17  Jim Meyering  <meyering@ascend.com>
94676
94677         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94678         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94679         calls for those previously hard-coded headers.  Instead, take a new
94680         parameter.
94681         (jm_CHECK_DECLARATIONS): Reflect interface change.
94682         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94683         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94684
94685         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94686
94687 1998-10-14  Jim Meyering  <meyering@ascend.com>
94688
94689         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94690         instead of "TZ=America/Vancouver".  From Paul Eggert.
94691
94692 1998-10-11  Jim Meyering  <meyering@ascend.com>
94693
94694         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94695         This adds a test for a recently added compatibility fix for mktime.c.
94696         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94697
94698 1998-09-27  Jim Meyering  <meyering@ascend.com>
94699
94700         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94701
94702         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94703         ../configure.in, including a change from Gordon Matzigkeit to allow
94704         cross-compiling for the Hurd.
94705
94706         * m4/glibc.m4: New file/macro to test for the GNU C Library
94707         versions 1 and 2.  From Gordon Matzigkeit.
94708         Indent.
94709
94710 1998-09-21  Jim Meyering  <meyering@ascend.com>
94711
94712         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94713
94714 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94715
94716         Port nanosecond-resolution times to UnixWare 2.1.2 and
94717         pedantic Solaris 2.6.
94718
94719         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94720         AC_STRUCT_ST_MTIM.
94721         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94722         Generate name of ns member, instead of just 1 or undef.
94723         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94724
94725 1998-08-15  Jim Meyering  <meyering@ascend.com>
94726
94727         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94728         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94729         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94730         instead of jm_TYPE_SSIZE_T.
94731
94732 1998-08-12  Jim Meyering  <meyering@ascend.com>
94733
94734         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94735
94736 1998-08-02  Jim Meyering  <meyering@ascend.com>
94737
94738         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94739         in acconfig.h manually.
94740
94741 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94742
94743         * m4/st_mtim.m4: New file.
94744
94745 1998-07-28  Jim Meyering  <meyering@ascend.com>
94746
94747         * m4/utimes.m4: Undef stat.
94748
94749 1998-07-25  Jim Meyering  <meyering@ascend.com>
94750
94751         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94752         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94753
94754 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94755
94756         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94757         uid and gid actually remain unchanged.
94758
94759 1998-07-07  Jim Meyering  <meyering@ascend.com>
94760
94761         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94762
94763 1998-07-04  Jim Meyering  <meyering@ascend.com>
94764
94765         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94766         to prove that this macro can be used in packages without regex.c.
94767
94768 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94769
94770         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94771         is to be used.
94772
94773 1998-07-03  Jim Meyering  <meyering@ascend.com>
94774
94775         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94776
94777         * m4/gettext.m4: New file -- from gettext-0.10.35.
94778         * m4/lcmessage.m4: Likewise.
94779         * m4/progtest.m4: Likewise.
94780
94781         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94782         * m4/jm-macros.m4: Require the new macro.
94783
94784 1998-06-29  Jim Meyering  <meyering@ascend.com>
94785
94786         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94787         for the definition of NGROUPS (used in a system header included
94788         by sys/mount.h).
94789
94790 1998-06-28  Jim Meyering  <meyering@ascend.com>
94791
94792         * m4/ls-mntd-fs.m4: New file.
94793         * m4/fstypename.m4: New file.
94794
94795         * m4/jm-macros.m4: Require the new macro.
94796         * m4/jm-glibc-io.m4: New file.
94797
94798 1998-05-19  Jim Meyering  <meyering@ascend.com>
94799
94800         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94801         * m4/lchown.m4: New file.
94802
94803         * m4/Makefile.am.in: New file.
94804         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94805
94806 1998-05-14  Jim Meyering  <meyering@ascend.com>
94807
94808         * m4/Makefile.am (EXTRA_DIST): Add them.
94809         * m4/jm-macros.m4: New file.
94810         * m4/utimbuf.m4: New file.
94811
94812 1998-05-12  Jim Meyering  <meyering@ascend.com>
94813
94814         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94815
94816 1998-05-11  Jim Meyering  <meyering@ascend.com>
94817
94818         * m4/isc-posix.m4: New file.
94819
94820 1998-05-10  Jim Meyering  <meyering@ascend.com>
94821
94822         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94823
94824 1998-05-09  Jim Meyering  <meyering@ascend.com>
94825
94826         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
94827         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
94828         with automake.
94829
94830         * m4/ssize_t.m4: New file.
94831         * m4/mktime.m4: Remove file -- the new automake has this now.
94832
94833 1998-04-26  Jim Meyering  <meyering@ascend.com>
94834
94835         * m4/assert.m4: New file.
94836         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
94837
94838 1998-04-05  Jim Meyering  <meyering@ascend.com>
94839
94840         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
94841         (jm_PREREQ): Use it here.
94842
94843 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
94844
94845         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
94846         in acconfig.h.
94847
94848 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
94849
94850         * m4/prereq.m4: New file.
94851         * m4/error.m4: New file.
94852         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
94853
94854 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
94855
94856         * m4/getline.m4: Don't set am_cv_func_working_getline before the
94857         cache-check for the same variable -- that defeated the purpose of
94858         the test; the test program was never run.  This was a problem only
94859         on systems with losing getline functions -- HP-UX 10.20 is one.
94860         Reported by Bjorn Helgaas.
94861
94862 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
94863
94864         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
94865
94866 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
94867
94868         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
94869
94870         * m4/const.m4: New file.  Use an initializer in this declaration
94871         typedef int charset[2]; const charset x;
94872         Reported by Bob Glickstein.
94873
94874 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
94875
94876         * m4/chown.m4: Fix reversed types on -1 args to chown.
94877         From Kaveh Ghazi.
94878
94879 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
94880
94881         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
94882         Add lseek and memchr.
94883
94884         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
94885         T.E.Dickey <dickey@clark.net> said that some older preprocessors
94886         have a 20-character limit on names.
94887
94888 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
94889
94890         * m4/inttypes_h.m4: New file.
94891         * m4/uintmax_t.m4: New file.
94892         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
94893
94894
94895         -----
94896
94897         Local Variables:
94898         coding: utf-8
94899         End:
94900
94901         Copyright (C) 1997-2012 Free Software Foundation, Inc.
94902
94903         Copying and distribution of this file, with or without
94904         modification, are permitted provided the copyright notice
94905         and this notice are preserved.